1
0

configure 1.1 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. ## --------------------- ##
  10. ## M4sh Initialization. ##
  11. ## --------------------- ##
  12. # Be more Bourne compatible
  13. DUALCASE=1; export DUALCASE # for MKS sh
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. setopt NO_GLOB_SUBST
  21. else
  22. case `(set -o) 2>/dev/null` in
  23. *posix*) set -o posix ;;
  24. esac
  25. fi
  26. # PATH needs CR
  27. # Avoid depending upon Character Ranges.
  28. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  29. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  30. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  31. as_cr_digits='0123456789'
  32. as_cr_alnum=$as_cr_Letters$as_cr_digits
  33. # The user is always right.
  34. if test "${PATH_SEPARATOR+set}" != set; then
  35. echo "#! /bin/sh" >conf$$.sh
  36. echo "exit 0" >>conf$$.sh
  37. chmod +x conf$$.sh
  38. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  39. PATH_SEPARATOR=';'
  40. else
  41. PATH_SEPARATOR=:
  42. fi
  43. rm -f conf$$.sh
  44. fi
  45. # Support unset when possible.
  46. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  47. as_unset=unset
  48. else
  49. as_unset=false
  50. fi
  51. # IFS
  52. # We need space, tab and new line, in precisely that order. Quoting is
  53. # there to prevent editors from complaining about space-tab.
  54. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  55. # splitting by setting IFS to empty value.)
  56. as_nl='
  57. '
  58. IFS=" "" $as_nl"
  59. # Find who we are. Look in the path if we contain no directory separator.
  60. case $0 in
  61. *[\\/]* ) as_myself=$0 ;;
  62. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  63. for as_dir in $PATH
  64. do
  65. IFS=$as_save_IFS
  66. test -z "$as_dir" && as_dir=.
  67. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  68. done
  69. IFS=$as_save_IFS
  70. ;;
  71. esac
  72. # We did not find ourselves, most probably we were run as `sh COMMAND'
  73. # in which case we are not to be found in the path.
  74. if test "x$as_myself" = x; then
  75. as_myself=$0
  76. fi
  77. if test ! -f "$as_myself"; then
  78. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  79. { (exit 1); exit 1; }
  80. fi
  81. # Work around bugs in pre-3.0 UWIN ksh.
  82. for as_var in ENV MAIL MAILPATH
  83. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  84. done
  85. PS1='$ '
  86. PS2='> '
  87. PS4='+ '
  88. # NLS nuisances.
  89. for as_var in \
  90. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  91. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  92. LC_TELEPHONE LC_TIME
  93. do
  94. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  95. eval $as_var=C; export $as_var
  96. else
  97. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  98. fi
  99. done
  100. # Required to use basename.
  101. if expr a : '\(a\)' >/dev/null 2>&1 &&
  102. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  103. as_expr=expr
  104. else
  105. as_expr=false
  106. fi
  107. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  108. as_basename=basename
  109. else
  110. as_basename=false
  111. fi
  112. # Name of the executable.
  113. as_me=`$as_basename -- "$0" ||
  114. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  115. X"$0" : 'X\(//\)$' \| \
  116. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  117. echo X/"$0" |
  118. sed '/^.*\/\([^/][^/]*\)\/*$/{
  119. s//\1/
  120. q
  121. }
  122. /^X\/\(\/\/\)$/{
  123. s//\1/
  124. q
  125. }
  126. /^X\/\(\/\).*/{
  127. s//\1/
  128. q
  129. }
  130. s/.*/./; q'`
  131. # CDPATH.
  132. $as_unset CDPATH
  133. if test "x$CONFIG_SHELL" = x; then
  134. if (eval ":") 2>/dev/null; then
  135. as_have_required=yes
  136. else
  137. as_have_required=no
  138. fi
  139. if test $as_have_required = yes && (eval ":
  140. (as_func_return () {
  141. (exit \$1)
  142. }
  143. as_func_success () {
  144. as_func_return 0
  145. }
  146. as_func_failure () {
  147. as_func_return 1
  148. }
  149. as_func_ret_success () {
  150. return 0
  151. }
  152. as_func_ret_failure () {
  153. return 1
  154. }
  155. exitcode=0
  156. if as_func_success; then
  157. :
  158. else
  159. exitcode=1
  160. echo as_func_success failed.
  161. fi
  162. if as_func_failure; then
  163. exitcode=1
  164. echo as_func_failure succeeded.
  165. fi
  166. if as_func_ret_success; then
  167. :
  168. else
  169. exitcode=1
  170. echo as_func_ret_success failed.
  171. fi
  172. if as_func_ret_failure; then
  173. exitcode=1
  174. echo as_func_ret_failure succeeded.
  175. fi
  176. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  177. :
  178. else
  179. exitcode=1
  180. echo positional parameters were not saved.
  181. fi
  182. test \$exitcode = 0) || { (exit 1); exit 1; }
  183. (
  184. as_lineno_1=\$LINENO
  185. as_lineno_2=\$LINENO
  186. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  187. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  188. ") 2> /dev/null; then
  189. :
  190. else
  191. as_candidate_shells=
  192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  193. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  194. do
  195. IFS=$as_save_IFS
  196. test -z "$as_dir" && as_dir=.
  197. case $as_dir in
  198. /*)
  199. for as_base in sh bash ksh sh5; do
  200. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  201. done;;
  202. esac
  203. done
  204. IFS=$as_save_IFS
  205. for as_shell in $as_candidate_shells $SHELL; do
  206. # Try only shells that exist, to save several forks.
  207. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  208. { ("$as_shell") 2> /dev/null <<\_ASEOF
  209. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  210. emulate sh
  211. NULLCMD=:
  212. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  213. # is contrary to our usage. Disable this feature.
  214. alias -g '${1+"$@"}'='"$@"'
  215. setopt NO_GLOB_SUBST
  216. else
  217. case `(set -o) 2>/dev/null` in
  218. *posix*) set -o posix ;;
  219. esac
  220. fi
  221. :
  222. _ASEOF
  223. }; then
  224. CONFIG_SHELL=$as_shell
  225. as_have_required=yes
  226. if { "$as_shell" 2> /dev/null <<\_ASEOF
  227. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  228. emulate sh
  229. NULLCMD=:
  230. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  231. # is contrary to our usage. Disable this feature.
  232. alias -g '${1+"$@"}'='"$@"'
  233. setopt NO_GLOB_SUBST
  234. else
  235. case `(set -o) 2>/dev/null` in
  236. *posix*) set -o posix ;;
  237. esac
  238. fi
  239. :
  240. (as_func_return () {
  241. (exit $1)
  242. }
  243. as_func_success () {
  244. as_func_return 0
  245. }
  246. as_func_failure () {
  247. as_func_return 1
  248. }
  249. as_func_ret_success () {
  250. return 0
  251. }
  252. as_func_ret_failure () {
  253. return 1
  254. }
  255. exitcode=0
  256. if as_func_success; then
  257. :
  258. else
  259. exitcode=1
  260. echo as_func_success failed.
  261. fi
  262. if as_func_failure; then
  263. exitcode=1
  264. echo as_func_failure succeeded.
  265. fi
  266. if as_func_ret_success; then
  267. :
  268. else
  269. exitcode=1
  270. echo as_func_ret_success failed.
  271. fi
  272. if as_func_ret_failure; then
  273. exitcode=1
  274. echo as_func_ret_failure succeeded.
  275. fi
  276. if ( set x; as_func_ret_success y && test x = "$1" ); then
  277. :
  278. else
  279. exitcode=1
  280. echo positional parameters were not saved.
  281. fi
  282. test $exitcode = 0) || { (exit 1); exit 1; }
  283. (
  284. as_lineno_1=$LINENO
  285. as_lineno_2=$LINENO
  286. test "x$as_lineno_1" != "x$as_lineno_2" &&
  287. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  288. _ASEOF
  289. }; then
  290. break
  291. fi
  292. fi
  293. done
  294. if test "x$CONFIG_SHELL" != x; then
  295. for as_var in BASH_ENV ENV
  296. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  297. done
  298. export CONFIG_SHELL
  299. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  300. fi
  301. if test $as_have_required = no; then
  302. echo This script requires a shell more modern than all the
  303. echo shells that I found on your system. Please install a
  304. echo modern shell, or manually run the script under such a
  305. echo shell if you do have one.
  306. { (exit 1); exit 1; }
  307. fi
  308. fi
  309. fi
  310. (eval "as_func_return () {
  311. (exit \$1)
  312. }
  313. as_func_success () {
  314. as_func_return 0
  315. }
  316. as_func_failure () {
  317. as_func_return 1
  318. }
  319. as_func_ret_success () {
  320. return 0
  321. }
  322. as_func_ret_failure () {
  323. return 1
  324. }
  325. exitcode=0
  326. if as_func_success; then
  327. :
  328. else
  329. exitcode=1
  330. echo as_func_success failed.
  331. fi
  332. if as_func_failure; then
  333. exitcode=1
  334. echo as_func_failure succeeded.
  335. fi
  336. if as_func_ret_success; then
  337. :
  338. else
  339. exitcode=1
  340. echo as_func_ret_success failed.
  341. fi
  342. if as_func_ret_failure; then
  343. exitcode=1
  344. echo as_func_ret_failure succeeded.
  345. fi
  346. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  347. :
  348. else
  349. exitcode=1
  350. echo positional parameters were not saved.
  351. fi
  352. test \$exitcode = 0") || {
  353. echo No shell found that supports shell functions.
  354. echo Please tell autoconf@gnu.org about your system,
  355. echo including any error possibly output before this
  356. echo message
  357. }
  358. as_lineno_1=$LINENO
  359. as_lineno_2=$LINENO
  360. test "x$as_lineno_1" != "x$as_lineno_2" &&
  361. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  362. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  363. # uniformly replaced by the line number. The first 'sed' inserts a
  364. # line-number line after each line using $LINENO; the second 'sed'
  365. # does the real work. The second script uses 'N' to pair each
  366. # line-number line with the line containing $LINENO, and appends
  367. # trailing '-' during substitution so that $LINENO is not a special
  368. # case at line end.
  369. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  370. # scripts with optimization help from Paolo Bonzini. Blame Lee
  371. # E. McMahon (1931-1989) for sed's syntax. :-)
  372. sed -n '
  373. p
  374. /[$]LINENO/=
  375. ' <$as_myself |
  376. sed '
  377. s/[$]LINENO.*/&-/
  378. t lineno
  379. b
  380. :lineno
  381. N
  382. :loop
  383. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  384. t loop
  385. s/-\n.*//
  386. ' >$as_me.lineno &&
  387. chmod +x "$as_me.lineno" ||
  388. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  389. { (exit 1); exit 1; }; }
  390. # Don't try to exec as it changes $[0], causing all sort of problems
  391. # (the dirname of $[0] is not the place where we might find the
  392. # original and so on. Autoconf is especially sensitive to this).
  393. . "./$as_me.lineno"
  394. # Exit status is that of the last command.
  395. exit
  396. }
  397. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  398. as_dirname=dirname
  399. else
  400. as_dirname=false
  401. fi
  402. ECHO_C= ECHO_N= ECHO_T=
  403. case `echo -n x` in
  404. -n*)
  405. case `echo 'x\c'` in
  406. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  407. *) ECHO_C='\c';;
  408. esac;;
  409. *)
  410. ECHO_N='-n';;
  411. esac
  412. if expr a : '\(a\)' >/dev/null 2>&1 &&
  413. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  414. as_expr=expr
  415. else
  416. as_expr=false
  417. fi
  418. rm -f conf$$ conf$$.exe conf$$.file
  419. if test -d conf$$.dir; then
  420. rm -f conf$$.dir/conf$$.file
  421. else
  422. rm -f conf$$.dir
  423. mkdir conf$$.dir
  424. fi
  425. echo >conf$$.file
  426. if ln -s conf$$.file conf$$ 2>/dev/null; then
  427. as_ln_s='ln -s'
  428. # ... but there are two gotchas:
  429. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  430. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  431. # In both cases, we have to default to `cp -p'.
  432. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  433. as_ln_s='cp -p'
  434. elif ln conf$$.file conf$$ 2>/dev/null; then
  435. as_ln_s=ln
  436. else
  437. as_ln_s='cp -p'
  438. fi
  439. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  440. rmdir conf$$.dir 2>/dev/null
  441. if mkdir -p . 2>/dev/null; then
  442. as_mkdir_p=:
  443. else
  444. test -d ./-p && rmdir ./-p
  445. as_mkdir_p=false
  446. fi
  447. if test -x / >/dev/null 2>&1; then
  448. as_test_x='test -x'
  449. else
  450. if ls -dL / >/dev/null 2>&1; then
  451. as_ls_L_option=L
  452. else
  453. as_ls_L_option=
  454. fi
  455. as_test_x='
  456. eval sh -c '\''
  457. if test -d "$1"; then
  458. test -d "$1/.";
  459. else
  460. case $1 in
  461. -*)set "./$1";;
  462. esac;
  463. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  464. ???[sx]*):;;*)false;;esac;fi
  465. '\'' sh
  466. '
  467. fi
  468. as_executable_p=$as_test_x
  469. # Sed expression to map a string onto a valid CPP name.
  470. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  471. # Sed expression to map a string onto a valid variable name.
  472. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  473. # Check that we are running under the correct shell.
  474. SHELL=${CONFIG_SHELL-/bin/sh}
  475. case X$ECHO in
  476. X*--fallback-echo)
  477. # Remove one level of quotation (which was required for Make).
  478. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  479. ;;
  480. esac
  481. echo=${ECHO-echo}
  482. if test "X$1" = X--no-reexec; then
  483. # Discard the --no-reexec flag, and continue.
  484. shift
  485. elif test "X$1" = X--fallback-echo; then
  486. # Avoid inline document here, it may be left over
  487. :
  488. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  489. # Yippee, $echo works!
  490. :
  491. else
  492. # Restart under the correct shell.
  493. exec $SHELL "$0" --no-reexec ${1+"$@"}
  494. fi
  495. if test "X$1" = X--fallback-echo; then
  496. # used as fallback echo
  497. shift
  498. cat <<EOF
  499. $*
  500. EOF
  501. exit 0
  502. fi
  503. # The HP-UX ksh and POSIX shell print the target directory to stdout
  504. # if CDPATH is set.
  505. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  506. if test -z "$ECHO"; then
  507. if test "X${echo_test_string+set}" != Xset; then
  508. # find a string as large as possible, as long as the shell can cope with it
  509. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  510. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  511. if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  512. echo_test_string=`eval $cmd` &&
  513. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  514. then
  515. break
  516. fi
  517. done
  518. fi
  519. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  520. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  521. test "X$echo_testing_string" = "X$echo_test_string"; then
  522. :
  523. else
  524. # The Solaris, AIX, and Digital Unix default echo programs unquote
  525. # backslashes. This makes it impossible to quote backslashes using
  526. # echo "$something" | sed 's/\\/\\\\/g'
  527. #
  528. # So, first we look for a working echo in the user's PATH.
  529. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  530. for dir in $PATH /usr/ucb; do
  531. IFS="$lt_save_ifs"
  532. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  533. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  534. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  535. test "X$echo_testing_string" = "X$echo_test_string"; then
  536. echo="$dir/echo"
  537. break
  538. fi
  539. done
  540. IFS="$lt_save_ifs"
  541. if test "X$echo" = Xecho; then
  542. # We didn't find a better echo, so look for alternatives.
  543. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  544. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  545. test "X$echo_testing_string" = "X$echo_test_string"; then
  546. # This shell has a builtin print -r that does the trick.
  547. echo='print -r'
  548. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  549. test "X$CONFIG_SHELL" != X/bin/ksh; then
  550. # If we have ksh, try running configure again with it.
  551. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  552. export ORIGINAL_CONFIG_SHELL
  553. CONFIG_SHELL=/bin/ksh
  554. export CONFIG_SHELL
  555. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  556. else
  557. # Try using printf.
  558. echo='printf %s\n'
  559. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  560. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  561. test "X$echo_testing_string" = "X$echo_test_string"; then
  562. # Cool, printf works
  563. :
  564. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  565. test "X$echo_testing_string" = 'X\t' &&
  566. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  567. test "X$echo_testing_string" = "X$echo_test_string"; then
  568. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  569. export CONFIG_SHELL
  570. SHELL="$CONFIG_SHELL"
  571. export SHELL
  572. echo="$CONFIG_SHELL $0 --fallback-echo"
  573. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  574. test "X$echo_testing_string" = 'X\t' &&
  575. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  576. test "X$echo_testing_string" = "X$echo_test_string"; then
  577. echo="$CONFIG_SHELL $0 --fallback-echo"
  578. else
  579. # maybe with a smaller string...
  580. prev=:
  581. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  582. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  583. then
  584. break
  585. fi
  586. prev="$cmd"
  587. done
  588. if test "$prev" != 'sed 50q "$0"'; then
  589. echo_test_string=`eval $prev`
  590. export echo_test_string
  591. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  592. else
  593. # Oops. We lost completely, so just stick with echo.
  594. echo=echo
  595. fi
  596. fi
  597. fi
  598. fi
  599. fi
  600. fi
  601. # Copy echo and quote the copy suitably for passing to libtool from
  602. # the Makefile, instead of quoting the original, which is used later.
  603. ECHO=$echo
  604. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  605. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  606. fi
  607. tagnames=${tagnames+${tagnames},}CXX
  608. tagnames=${tagnames+${tagnames},}F77
  609. exec 7<&0 </dev/null 6>&1
  610. # Name of the host.
  611. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  612. # so uname gets run too.
  613. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  614. #
  615. # Initializations.
  616. #
  617. ac_default_prefix=/usr/local
  618. ac_clean_files=
  619. ac_config_libobj_dir=.
  620. LIBOBJS=
  621. cross_compiling=no
  622. subdirs=
  623. MFLAGS=
  624. MAKEFLAGS=
  625. SHELL=${CONFIG_SHELL-/bin/sh}
  626. # Identity of this package.
  627. PACKAGE_NAME=
  628. PACKAGE_TARNAME=
  629. PACKAGE_VERSION=
  630. PACKAGE_STRING=
  631. PACKAGE_BUGREPORT=
  632. ac_unique_file="tcpreplay"
  633. ac_unique_file="src/tcpreplay.c"
  634. # Factoring default headers for most tests.
  635. ac_includes_default="\
  636. #include <stdio.h>
  637. #ifdef HAVE_SYS_TYPES_H
  638. # include <sys/types.h>
  639. #endif
  640. #ifdef HAVE_SYS_STAT_H
  641. # include <sys/stat.h>
  642. #endif
  643. #ifdef STDC_HEADERS
  644. # include <stdlib.h>
  645. # include <stddef.h>
  646. #else
  647. # ifdef HAVE_STDLIB_H
  648. # include <stdlib.h>
  649. # endif
  650. #endif
  651. #ifdef HAVE_STRING_H
  652. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  653. # include <memory.h>
  654. # endif
  655. # include <string.h>
  656. #endif
  657. #ifdef HAVE_STRINGS_H
  658. # include <strings.h>
  659. #endif
  660. #ifdef HAVE_INTTYPES_H
  661. # include <inttypes.h>
  662. #endif
  663. #ifdef HAVE_STDINT_H
  664. # include <stdint.h>
  665. #endif
  666. #ifdef HAVE_UNISTD_H
  667. # include <unistd.h>
  668. #endif"
  669. ac_subst_vars='SHELL
  670. PATH_SEPARATOR
  671. PACKAGE_NAME
  672. PACKAGE_TARNAME
  673. PACKAGE_VERSION
  674. PACKAGE_STRING
  675. PACKAGE_BUGREPORT
  676. exec_prefix
  677. prefix
  678. program_transform_name
  679. bindir
  680. sbindir
  681. libexecdir
  682. datarootdir
  683. datadir
  684. sysconfdir
  685. sharedstatedir
  686. localstatedir
  687. includedir
  688. oldincludedir
  689. docdir
  690. infodir
  691. htmldir
  692. dvidir
  693. pdfdir
  694. psdir
  695. libdir
  696. localedir
  697. mandir
  698. DEFS
  699. ECHO_C
  700. ECHO_N
  701. ECHO_T
  702. LIBS
  703. build_alias
  704. host_alias
  705. target_alias
  706. MAINTAINER_MODE_TRUE
  707. MAINTAINER_MODE_FALSE
  708. MAINT
  709. TCPREPLAY_VERSION
  710. TCPREPLAY_RELEASE
  711. build
  712. build_cpu
  713. build_vendor
  714. build_os
  715. host
  716. host_cpu
  717. host_vendor
  718. host_os
  719. target
  720. target_cpu
  721. target_vendor
  722. target_os
  723. INSTALL_PROGRAM
  724. INSTALL_SCRIPT
  725. INSTALL_DATA
  726. am__isrc
  727. CYGPATH_W
  728. PACKAGE
  729. VERSION
  730. ACLOCAL
  731. AUTOCONF
  732. AUTOMAKE
  733. AUTOHEADER
  734. MAKEINFO
  735. install_sh
  736. STRIP
  737. INSTALL_STRIP_PROGRAM
  738. mkdir_p
  739. AWK
  740. SET_MAKE
  741. am__leading_dot
  742. AMTAR
  743. am__tar
  744. am__untar
  745. CC
  746. CFLAGS
  747. LDFLAGS
  748. CPPFLAGS
  749. ac_ct_CC
  750. EXEEXT
  751. OBJEXT
  752. DEPDIR
  753. am__include
  754. am__quote
  755. AMDEP_TRUE
  756. AMDEP_FALSE
  757. AMDEPBACKSLASH
  758. CCDEPMODE
  759. am__fastdepCC_TRUE
  760. am__fastdepCC_FALSE
  761. SED
  762. GREP
  763. EGREP
  764. LN_S
  765. ECHO
  766. AR
  767. RANLIB
  768. CPP
  769. CXX
  770. CXXFLAGS
  771. ac_ct_CXX
  772. CXXDEPMODE
  773. am__fastdepCXX_TRUE
  774. am__fastdepCXX_FALSE
  775. CXXCPP
  776. F77
  777. FFLAGS
  778. ac_ct_F77
  779. LIBTOOL
  780. PRINTF
  781. AUTOGEN
  782. LIBOBJS
  783. SYSTEM_STRLCPY_TRUE
  784. SYSTEM_STRLCPY_FALSE
  785. WORDS_BIGENDIAN_TRUE
  786. WORDS_BIGENDIAN_FALSE
  787. debug_flag
  788. ENABLE_TCPREPLAY_EDIT_TRUE
  789. ENABLE_TCPREPLAY_EDIT_FALSE
  790. LNETINC
  791. LNETLIB
  792. LPCAPINC
  793. LPCAPLIB
  794. PCAP_BPF_H_FILE
  795. pcncfg
  796. LNAVLIB
  797. LNAV_CFLAGS
  798. tcpdump_path
  799. ENABLE_TCPDUMP_TRUE
  800. ENABLE_TCPDUMP_FALSE
  801. nic1
  802. nic2
  803. LIBOPTS_DIR
  804. INSTALL_LIBOPTS_TRUE
  805. INSTALL_LIBOPTS_FALSE
  806. NEED_LIBOPTS_TRUE
  807. NEED_LIBOPTS_FALSE
  808. LIBOPTS_LDADD
  809. LIBOPTS_CFLAGS
  810. LTLIBOBJS'
  811. ac_subst_files=''
  812. ac_precious_vars='build_alias
  813. host_alias
  814. target_alias
  815. CC
  816. CFLAGS
  817. LDFLAGS
  818. LIBS
  819. CPPFLAGS
  820. CPP
  821. CXX
  822. CXXFLAGS
  823. CCC
  824. CXXCPP
  825. F77
  826. FFLAGS'
  827. # Initialize some variables set by options.
  828. ac_init_help=
  829. ac_init_version=false
  830. # The variables have the same names as the options, with
  831. # dashes changed to underlines.
  832. cache_file=/dev/null
  833. exec_prefix=NONE
  834. no_create=
  835. no_recursion=
  836. prefix=NONE
  837. program_prefix=NONE
  838. program_suffix=NONE
  839. program_transform_name=s,x,x,
  840. silent=
  841. site=
  842. srcdir=
  843. verbose=
  844. x_includes=NONE
  845. x_libraries=NONE
  846. # Installation directory options.
  847. # These are left unexpanded so users can "make install exec_prefix=/foo"
  848. # and all the variables that are supposed to be based on exec_prefix
  849. # by default will actually change.
  850. # Use braces instead of parens because sh, perl, etc. also accept them.
  851. # (The list follows the same order as the GNU Coding Standards.)
  852. bindir='${exec_prefix}/bin'
  853. sbindir='${exec_prefix}/sbin'
  854. libexecdir='${exec_prefix}/libexec'
  855. datarootdir='${prefix}/share'
  856. datadir='${datarootdir}'
  857. sysconfdir='${prefix}/etc'
  858. sharedstatedir='${prefix}/com'
  859. localstatedir='${prefix}/var'
  860. includedir='${prefix}/include'
  861. oldincludedir='/usr/include'
  862. docdir='${datarootdir}/doc/${PACKAGE}'
  863. infodir='${datarootdir}/info'
  864. htmldir='${docdir}'
  865. dvidir='${docdir}'
  866. pdfdir='${docdir}'
  867. psdir='${docdir}'
  868. libdir='${exec_prefix}/lib'
  869. localedir='${datarootdir}/locale'
  870. mandir='${datarootdir}/man'
  871. ac_prev=
  872. ac_dashdash=
  873. for ac_option
  874. do
  875. # If the previous option needs an argument, assign it.
  876. if test -n "$ac_prev"; then
  877. eval $ac_prev=\$ac_option
  878. ac_prev=
  879. continue
  880. fi
  881. case $ac_option in
  882. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  883. *) ac_optarg=yes ;;
  884. esac
  885. # Accept the important Cygnus configure options, so we can diagnose typos.
  886. case $ac_dashdash$ac_option in
  887. --)
  888. ac_dashdash=yes ;;
  889. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  890. ac_prev=bindir ;;
  891. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  892. bindir=$ac_optarg ;;
  893. -build | --build | --buil | --bui | --bu)
  894. ac_prev=build_alias ;;
  895. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  896. build_alias=$ac_optarg ;;
  897. -cache-file | --cache-file | --cache-fil | --cache-fi \
  898. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  899. ac_prev=cache_file ;;
  900. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  901. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  902. cache_file=$ac_optarg ;;
  903. --config-cache | -C)
  904. cache_file=config.cache ;;
  905. -datadir | --datadir | --datadi | --datad)
  906. ac_prev=datadir ;;
  907. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  908. datadir=$ac_optarg ;;
  909. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  910. | --dataroo | --dataro | --datar)
  911. ac_prev=datarootdir ;;
  912. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  913. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  914. datarootdir=$ac_optarg ;;
  915. -disable-* | --disable-*)
  916. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  917. # Reject names that are not valid shell variable names.
  918. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  919. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  920. { (exit 1); exit 1; }; }
  921. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  922. eval enable_$ac_feature=no ;;
  923. -docdir | --docdir | --docdi | --doc | --do)
  924. ac_prev=docdir ;;
  925. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  926. docdir=$ac_optarg ;;
  927. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  928. ac_prev=dvidir ;;
  929. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  930. dvidir=$ac_optarg ;;
  931. -enable-* | --enable-*)
  932. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  933. # Reject names that are not valid shell variable names.
  934. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  935. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  936. { (exit 1); exit 1; }; }
  937. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  938. eval enable_$ac_feature=\$ac_optarg ;;
  939. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  940. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  941. | --exec | --exe | --ex)
  942. ac_prev=exec_prefix ;;
  943. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  944. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  945. | --exec=* | --exe=* | --ex=*)
  946. exec_prefix=$ac_optarg ;;
  947. -gas | --gas | --ga | --g)
  948. # Obsolete; use --with-gas.
  949. with_gas=yes ;;
  950. -help | --help | --hel | --he | -h)
  951. ac_init_help=long ;;
  952. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  953. ac_init_help=recursive ;;
  954. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  955. ac_init_help=short ;;
  956. -host | --host | --hos | --ho)
  957. ac_prev=host_alias ;;
  958. -host=* | --host=* | --hos=* | --ho=*)
  959. host_alias=$ac_optarg ;;
  960. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  961. ac_prev=htmldir ;;
  962. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  963. | --ht=*)
  964. htmldir=$ac_optarg ;;
  965. -includedir | --includedir | --includedi | --included | --include \
  966. | --includ | --inclu | --incl | --inc)
  967. ac_prev=includedir ;;
  968. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  969. | --includ=* | --inclu=* | --incl=* | --inc=*)
  970. includedir=$ac_optarg ;;
  971. -infodir | --infodir | --infodi | --infod | --info | --inf)
  972. ac_prev=infodir ;;
  973. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  974. infodir=$ac_optarg ;;
  975. -libdir | --libdir | --libdi | --libd)
  976. ac_prev=libdir ;;
  977. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  978. libdir=$ac_optarg ;;
  979. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  980. | --libexe | --libex | --libe)
  981. ac_prev=libexecdir ;;
  982. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  983. | --libexe=* | --libex=* | --libe=*)
  984. libexecdir=$ac_optarg ;;
  985. -localedir | --localedir | --localedi | --localed | --locale)
  986. ac_prev=localedir ;;
  987. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  988. localedir=$ac_optarg ;;
  989. -localstatedir | --localstatedir | --localstatedi | --localstated \
  990. | --localstate | --localstat | --localsta | --localst | --locals)
  991. ac_prev=localstatedir ;;
  992. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  993. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  994. localstatedir=$ac_optarg ;;
  995. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  996. ac_prev=mandir ;;
  997. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  998. mandir=$ac_optarg ;;
  999. -nfp | --nfp | --nf)
  1000. # Obsolete; use --without-fp.
  1001. with_fp=no ;;
  1002. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1003. | --no-cr | --no-c | -n)
  1004. no_create=yes ;;
  1005. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1006. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1007. no_recursion=yes ;;
  1008. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1009. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1010. | --oldin | --oldi | --old | --ol | --o)
  1011. ac_prev=oldincludedir ;;
  1012. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1013. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1014. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1015. oldincludedir=$ac_optarg ;;
  1016. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1017. ac_prev=prefix ;;
  1018. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1019. prefix=$ac_optarg ;;
  1020. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1021. | --program-pre | --program-pr | --program-p)
  1022. ac_prev=program_prefix ;;
  1023. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1024. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1025. program_prefix=$ac_optarg ;;
  1026. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1027. | --program-suf | --program-su | --program-s)
  1028. ac_prev=program_suffix ;;
  1029. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1030. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1031. program_suffix=$ac_optarg ;;
  1032. -program-transform-name | --program-transform-name \
  1033. | --program-transform-nam | --program-transform-na \
  1034. | --program-transform-n | --program-transform- \
  1035. | --program-transform | --program-transfor \
  1036. | --program-transfo | --program-transf \
  1037. | --program-trans | --program-tran \
  1038. | --progr-tra | --program-tr | --program-t)
  1039. ac_prev=program_transform_name ;;
  1040. -program-transform-name=* | --program-transform-name=* \
  1041. | --program-transform-nam=* | --program-transform-na=* \
  1042. | --program-transform-n=* | --program-transform-=* \
  1043. | --program-transform=* | --program-transfor=* \
  1044. | --program-transfo=* | --program-transf=* \
  1045. | --program-trans=* | --program-tran=* \
  1046. | --progr-tra=* | --program-tr=* | --program-t=*)
  1047. program_transform_name=$ac_optarg ;;
  1048. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1049. ac_prev=pdfdir ;;
  1050. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1051. pdfdir=$ac_optarg ;;
  1052. -psdir | --psdir | --psdi | --psd | --ps)
  1053. ac_prev=psdir ;;
  1054. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1055. psdir=$ac_optarg ;;
  1056. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1057. | -silent | --silent | --silen | --sile | --sil)
  1058. silent=yes ;;
  1059. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1060. ac_prev=sbindir ;;
  1061. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1062. | --sbi=* | --sb=*)
  1063. sbindir=$ac_optarg ;;
  1064. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1065. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1066. | --sharedst | --shareds | --shared | --share | --shar \
  1067. | --sha | --sh)
  1068. ac_prev=sharedstatedir ;;
  1069. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1070. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1071. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1072. | --sha=* | --sh=*)
  1073. sharedstatedir=$ac_optarg ;;
  1074. -site | --site | --sit)
  1075. ac_prev=site ;;
  1076. -site=* | --site=* | --sit=*)
  1077. site=$ac_optarg ;;
  1078. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1079. ac_prev=srcdir ;;
  1080. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1081. srcdir=$ac_optarg ;;
  1082. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1083. | --syscon | --sysco | --sysc | --sys | --sy)
  1084. ac_prev=sysconfdir ;;
  1085. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1086. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1087. sysconfdir=$ac_optarg ;;
  1088. -target | --target | --targe | --targ | --tar | --ta | --t)
  1089. ac_prev=target_alias ;;
  1090. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1091. target_alias=$ac_optarg ;;
  1092. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1093. verbose=yes ;;
  1094. -version | --version | --versio | --versi | --vers | -V)
  1095. ac_init_version=: ;;
  1096. -with-* | --with-*)
  1097. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1098. # Reject names that are not valid shell variable names.
  1099. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1100. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1101. { (exit 1); exit 1; }; }
  1102. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1103. eval with_$ac_package=\$ac_optarg ;;
  1104. -without-* | --without-*)
  1105. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1106. # Reject names that are not valid shell variable names.
  1107. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1108. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1109. { (exit 1); exit 1; }; }
  1110. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1111. eval with_$ac_package=no ;;
  1112. --x)
  1113. # Obsolete; use --with-x.
  1114. with_x=yes ;;
  1115. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1116. | --x-incl | --x-inc | --x-in | --x-i)
  1117. ac_prev=x_includes ;;
  1118. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1119. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1120. x_includes=$ac_optarg ;;
  1121. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1122. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1123. ac_prev=x_libraries ;;
  1124. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1125. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1126. x_libraries=$ac_optarg ;;
  1127. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1128. Try \`$0 --help' for more information." >&2
  1129. { (exit 1); exit 1; }; }
  1130. ;;
  1131. *=*)
  1132. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1133. # Reject names that are not valid shell variable names.
  1134. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1135. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1136. { (exit 1); exit 1; }; }
  1137. eval $ac_envvar=\$ac_optarg
  1138. export $ac_envvar ;;
  1139. *)
  1140. # FIXME: should be removed in autoconf 3.0.
  1141. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1142. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1143. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1144. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1145. ;;
  1146. esac
  1147. done
  1148. if test -n "$ac_prev"; then
  1149. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1150. { echo "$as_me: error: missing argument to $ac_option" >&2
  1151. { (exit 1); exit 1; }; }
  1152. fi
  1153. # Be sure to have absolute directory names.
  1154. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1155. datadir sysconfdir sharedstatedir localstatedir includedir \
  1156. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1157. libdir localedir mandir
  1158. do
  1159. eval ac_val=\$$ac_var
  1160. case $ac_val in
  1161. [\\/$]* | ?:[\\/]* ) continue;;
  1162. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1163. esac
  1164. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1165. { (exit 1); exit 1; }; }
  1166. done
  1167. # There might be people who depend on the old broken behavior: `$host'
  1168. # used to hold the argument of --host etc.
  1169. # FIXME: To remove some day.
  1170. build=$build_alias
  1171. host=$host_alias
  1172. target=$target_alias
  1173. # FIXME: To remove some day.
  1174. if test "x$host_alias" != x; then
  1175. if test "x$build_alias" = x; then
  1176. cross_compiling=maybe
  1177. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1178. If a cross compiler is detected then cross compile mode will be used." >&2
  1179. elif test "x$build_alias" != "x$host_alias"; then
  1180. cross_compiling=yes
  1181. fi
  1182. fi
  1183. ac_tool_prefix=
  1184. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1185. test "$silent" = yes && exec 6>/dev/null
  1186. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1187. ac_ls_di=`ls -di .` &&
  1188. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1189. { echo "$as_me: error: Working directory cannot be determined" >&2
  1190. { (exit 1); exit 1; }; }
  1191. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1192. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1193. { (exit 1); exit 1; }; }
  1194. # Find the source files, if location was not specified.
  1195. if test -z "$srcdir"; then
  1196. ac_srcdir_defaulted=yes
  1197. # Try the directory containing this script, then the parent directory.
  1198. ac_confdir=`$as_dirname -- "$0" ||
  1199. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1200. X"$0" : 'X\(//\)[^/]' \| \
  1201. X"$0" : 'X\(//\)$' \| \
  1202. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1203. echo X"$0" |
  1204. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1205. s//\1/
  1206. q
  1207. }
  1208. /^X\(\/\/\)[^/].*/{
  1209. s//\1/
  1210. q
  1211. }
  1212. /^X\(\/\/\)$/{
  1213. s//\1/
  1214. q
  1215. }
  1216. /^X\(\/\).*/{
  1217. s//\1/
  1218. q
  1219. }
  1220. s/.*/./; q'`
  1221. srcdir=$ac_confdir
  1222. if test ! -r "$srcdir/$ac_unique_file"; then
  1223. srcdir=..
  1224. fi
  1225. else
  1226. ac_srcdir_defaulted=no
  1227. fi
  1228. if test ! -r "$srcdir/$ac_unique_file"; then
  1229. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1230. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1231. { (exit 1); exit 1; }; }
  1232. fi
  1233. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1234. ac_abs_confdir=`(
  1235. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1236. { (exit 1); exit 1; }; }
  1237. pwd)`
  1238. # When building in place, set srcdir=.
  1239. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1240. srcdir=.
  1241. fi
  1242. # Remove unnecessary trailing slashes from srcdir.
  1243. # Double slashes in file names in object file debugging info
  1244. # mess up M-x gdb in Emacs.
  1245. case $srcdir in
  1246. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1247. esac
  1248. for ac_var in $ac_precious_vars; do
  1249. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1250. eval ac_env_${ac_var}_value=\$${ac_var}
  1251. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1252. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1253. done
  1254. #
  1255. # Report the --help message.
  1256. #
  1257. if test "$ac_init_help" = "long"; then
  1258. # Omit some internal or obsolete options to make the list less imposing.
  1259. # This message is too long to be a string in the A/UX 3.1 sh.
  1260. cat <<_ACEOF
  1261. \`configure' configures this package to adapt to many kinds of systems.
  1262. Usage: $0 [OPTION]... [VAR=VALUE]...
  1263. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1264. VAR=VALUE. See below for descriptions of some of the useful variables.
  1265. Defaults for the options are specified in brackets.
  1266. Configuration:
  1267. -h, --help display this help and exit
  1268. --help=short display options specific to this package
  1269. --help=recursive display the short help of all the included packages
  1270. -V, --version display version information and exit
  1271. -q, --quiet, --silent do not print \`checking...' messages
  1272. --cache-file=FILE cache test results in FILE [disabled]
  1273. -C, --config-cache alias for \`--cache-file=config.cache'
  1274. -n, --no-create do not create output files
  1275. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1276. Installation directories:
  1277. --prefix=PREFIX install architecture-independent files in PREFIX
  1278. [$ac_default_prefix]
  1279. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1280. [PREFIX]
  1281. By default, \`make install' will install all the files in
  1282. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1283. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1284. for instance \`--prefix=\$HOME'.
  1285. For better control, use the options below.
  1286. Fine tuning of the installation directories:
  1287. --bindir=DIR user executables [EPREFIX/bin]
  1288. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1289. --libexecdir=DIR program executables [EPREFIX/libexec]
  1290. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1291. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1292. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1293. --libdir=DIR object code libraries [EPREFIX/lib]
  1294. --includedir=DIR C header files [PREFIX/include]
  1295. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1296. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1297. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1298. --infodir=DIR info documentation [DATAROOTDIR/info]
  1299. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1300. --mandir=DIR man documentation [DATAROOTDIR/man]
  1301. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1302. --htmldir=DIR html documentation [DOCDIR]
  1303. --dvidir=DIR dvi documentation [DOCDIR]
  1304. --pdfdir=DIR pdf documentation [DOCDIR]
  1305. --psdir=DIR ps documentation [DOCDIR]
  1306. _ACEOF
  1307. cat <<\_ACEOF
  1308. Program names:
  1309. --program-prefix=PREFIX prepend PREFIX to installed program names
  1310. --program-suffix=SUFFIX append SUFFIX to installed program names
  1311. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1312. System types:
  1313. --build=BUILD configure for building on BUILD [guessed]
  1314. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1315. --target=TARGET configure for building compilers for TARGET [HOST]
  1316. _ACEOF
  1317. fi
  1318. if test -n "$ac_init_help"; then
  1319. cat <<\_ACEOF
  1320. Optional Features:
  1321. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1322. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1323. --enable-maintainer-mode enable make rules and dependencies not useful
  1324. (and sometimes confusing) to the casual installer
  1325. --enable-shared[=PKGS] build shared libraries [default=yes]
  1326. --enable-static[=PKGS] build static libraries [default=yes]
  1327. --enable-fast-install[=PKGS]
  1328. optimize for fast installation [default=yes]
  1329. --disable-dependency-tracking speeds up one-time build
  1330. --enable-dependency-tracking do not reject slow dependency extractors
  1331. --disable-libtool-lock avoid locking (might break parallel builds)
  1332. --disable-largefile omit support for large files
  1333. --enable-debug Enable debugging code and support for the -d option
  1334. --enable-pedantic Enable gcc's -pedantic option
  1335. --enable-efence Enable Electric Fence memory debugger
  1336. --enable-gprof Enable GNU Profiler
  1337. --disable-64bits Do not use 64bit packet counters
  1338. --enable-force-bpf Force using BPF for sending packets
  1339. --enable-force-pf Force using Linux's PF_PACKET for sending packets
  1340. --enable-force-libnet Force using libnet for sending packets
  1341. --enable-force-inject Force using libpcap's pcap_inject() for sending
  1342. packets
  1343. --enable-force-sendpacket
  1344. Force using libpcap's pcap_sendpacket() for sending
  1345. packets
  1346. --enable-tcpreplay-edit Link packet editing code with tcpreplay
  1347. --enable-dynamic-link Dynamically link libraries
  1348. --enable-libnet Enable using the libnet 1.1.x library (deprecated)
  1349. --enable-local-libopts Force using the supplied libopts tearoff code
  1350. --disable-libopts-install
  1351. Do not install libopts with client installation
  1352. --disable-optional-args not wanting optional option args
  1353. Optional Packages:
  1354. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1355. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1356. --with-dmalloc use dmalloc, as in
  1357. http://www.dmalloc.com/dmalloc.tar.gz
  1358. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1359. --with-pic try to use only PIC/non-PIC objects [default=use
  1360. both]
  1361. --with-tags[=TAGS] include additional configurations [automatic]
  1362. --with-libnet=DIR Use libnet in DIR
  1363. --with-libpcap=DIR Use libpcap in DIR
  1364. --with-pcapnav-config=FILE
  1365. Use given pcapnav-config
  1366. --with-tcpdump=FILE Path to tcpdump binary
  1367. --with-testnic=NIC Select which network card to use for testing
  1368. --with-testnic2=NIC2 Select an optional 2nd network card to use for
  1369. testing
  1370. --with-autoopts-config specify the config-info script
  1371. --with-regex-header a reg expr header is specified
  1372. --with-libregex libregex installation prefix
  1373. --with-libregex-cflags libregex compile flags
  1374. --with-libregex-libs libregex link command arguments
  1375. Some influential environment variables:
  1376. CC C compiler command
  1377. CFLAGS C compiler flags
  1378. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1379. nonstandard directory <lib dir>
  1380. LIBS libraries to pass to the linker, e.g. -l<library>
  1381. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1382. you have headers in a nonstandard directory <include dir>
  1383. CPP C preprocessor
  1384. CXX C++ compiler command
  1385. CXXFLAGS C++ compiler flags
  1386. CXXCPP C++ preprocessor
  1387. F77 Fortran 77 compiler command
  1388. FFLAGS Fortran 77 compiler flags
  1389. Use these variables to override the choices made by `configure' or to help
  1390. it to find libraries and programs with nonstandard names/locations.
  1391. _ACEOF
  1392. ac_status=$?
  1393. fi
  1394. if test "$ac_init_help" = "recursive"; then
  1395. # If there are subdirs, report their specific --help.
  1396. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1397. test -d "$ac_dir" || continue
  1398. ac_builddir=.
  1399. case "$ac_dir" in
  1400. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1401. *)
  1402. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1403. # A ".." for each directory in $ac_dir_suffix.
  1404. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1405. case $ac_top_builddir_sub in
  1406. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1407. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1408. esac ;;
  1409. esac
  1410. ac_abs_top_builddir=$ac_pwd
  1411. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1412. # for backward compatibility:
  1413. ac_top_builddir=$ac_top_build_prefix
  1414. case $srcdir in
  1415. .) # We are building in place.
  1416. ac_srcdir=.
  1417. ac_top_srcdir=$ac_top_builddir_sub
  1418. ac_abs_top_srcdir=$ac_pwd ;;
  1419. [\\/]* | ?:[\\/]* ) # Absolute name.
  1420. ac_srcdir=$srcdir$ac_dir_suffix;
  1421. ac_top_srcdir=$srcdir
  1422. ac_abs_top_srcdir=$srcdir ;;
  1423. *) # Relative name.
  1424. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1425. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1426. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1427. esac
  1428. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1429. cd "$ac_dir" || { ac_status=$?; continue; }
  1430. # Check for guested configure.
  1431. if test -f "$ac_srcdir/configure.gnu"; then
  1432. echo &&
  1433. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1434. elif test -f "$ac_srcdir/configure"; then
  1435. echo &&
  1436. $SHELL "$ac_srcdir/configure" --help=recursive
  1437. else
  1438. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1439. fi || ac_status=$?
  1440. cd "$ac_pwd" || { ac_status=$?; break; }
  1441. done
  1442. fi
  1443. test -n "$ac_init_help" && exit $ac_status
  1444. if $ac_init_version; then
  1445. cat <<\_ACEOF
  1446. configure
  1447. generated by GNU Autoconf 2.61
  1448. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1449. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1450. This configure script is free software; the Free Software Foundation
  1451. gives unlimited permission to copy, distribute and modify it.
  1452. _ACEOF
  1453. exit
  1454. fi
  1455. cat >config.log <<_ACEOF
  1456. This file contains any messages produced by compilers while
  1457. running configure, to aid debugging if configure makes a mistake.
  1458. It was created by $as_me, which was
  1459. generated by GNU Autoconf 2.61. Invocation command line was
  1460. $ $0 $@
  1461. _ACEOF
  1462. exec 5>>config.log
  1463. {
  1464. cat <<_ASUNAME
  1465. ## --------- ##
  1466. ## Platform. ##
  1467. ## --------- ##
  1468. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1469. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1470. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1471. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1472. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1473. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1474. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1475. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1476. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1477. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1478. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1479. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1480. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1481. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1482. _ASUNAME
  1483. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1484. for as_dir in $PATH
  1485. do
  1486. IFS=$as_save_IFS
  1487. test -z "$as_dir" && as_dir=.
  1488. echo "PATH: $as_dir"
  1489. done
  1490. IFS=$as_save_IFS
  1491. } >&5
  1492. cat >&5 <<_ACEOF
  1493. ## ----------- ##
  1494. ## Core tests. ##
  1495. ## ----------- ##
  1496. _ACEOF
  1497. # Keep a trace of the command line.
  1498. # Strip out --no-create and --no-recursion so they do not pile up.
  1499. # Strip out --silent because we don't want to record it for future runs.
  1500. # Also quote any args containing shell meta-characters.
  1501. # Make two passes to allow for proper duplicate-argument suppression.
  1502. ac_configure_args=
  1503. ac_configure_args0=
  1504. ac_configure_args1=
  1505. ac_must_keep_next=false
  1506. for ac_pass in 1 2
  1507. do
  1508. for ac_arg
  1509. do
  1510. case $ac_arg in
  1511. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1512. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1513. | -silent | --silent | --silen | --sile | --sil)
  1514. continue ;;
  1515. *\'*)
  1516. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1517. esac
  1518. case $ac_pass in
  1519. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1520. 2)
  1521. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1522. if test $ac_must_keep_next = true; then
  1523. ac_must_keep_next=false # Got value, back to normal.
  1524. else
  1525. case $ac_arg in
  1526. *=* | --config-cache | -C | -disable-* | --disable-* \
  1527. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1528. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1529. | -with-* | --with-* | -without-* | --without-* | --x)
  1530. case "$ac_configure_args0 " in
  1531. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1532. esac
  1533. ;;
  1534. -* ) ac_must_keep_next=true ;;
  1535. esac
  1536. fi
  1537. ac_configure_args="$ac_configure_args '$ac_arg'"
  1538. ;;
  1539. esac
  1540. done
  1541. done
  1542. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1543. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1544. # When interrupted or exit'd, cleanup temporary files, and complete
  1545. # config.log. We remove comments because anyway the quotes in there
  1546. # would cause problems or look ugly.
  1547. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1548. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1549. trap 'exit_status=$?
  1550. # Save into config.log some information that might help in debugging.
  1551. {
  1552. echo
  1553. cat <<\_ASBOX
  1554. ## ---------------- ##
  1555. ## Cache variables. ##
  1556. ## ---------------- ##
  1557. _ASBOX
  1558. echo
  1559. # The following way of writing the cache mishandles newlines in values,
  1560. (
  1561. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1562. eval ac_val=\$$ac_var
  1563. case $ac_val in #(
  1564. *${as_nl}*)
  1565. case $ac_var in #(
  1566. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1567. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1568. esac
  1569. case $ac_var in #(
  1570. _ | IFS | as_nl) ;; #(
  1571. *) $as_unset $ac_var ;;
  1572. esac ;;
  1573. esac
  1574. done
  1575. (set) 2>&1 |
  1576. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1577. *${as_nl}ac_space=\ *)
  1578. sed -n \
  1579. "s/'\''/'\''\\\\'\'''\''/g;
  1580. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1581. ;; #(
  1582. *)
  1583. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1584. ;;
  1585. esac |
  1586. sort
  1587. )
  1588. echo
  1589. cat <<\_ASBOX
  1590. ## ----------------- ##
  1591. ## Output variables. ##
  1592. ## ----------------- ##
  1593. _ASBOX
  1594. echo
  1595. for ac_var in $ac_subst_vars
  1596. do
  1597. eval ac_val=\$$ac_var
  1598. case $ac_val in
  1599. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1600. esac
  1601. echo "$ac_var='\''$ac_val'\''"
  1602. done | sort
  1603. echo
  1604. if test -n "$ac_subst_files"; then
  1605. cat <<\_ASBOX
  1606. ## ------------------- ##
  1607. ## File substitutions. ##
  1608. ## ------------------- ##
  1609. _ASBOX
  1610. echo
  1611. for ac_var in $ac_subst_files
  1612. do
  1613. eval ac_val=\$$ac_var
  1614. case $ac_val in
  1615. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1616. esac
  1617. echo "$ac_var='\''$ac_val'\''"
  1618. done | sort
  1619. echo
  1620. fi
  1621. if test -s confdefs.h; then
  1622. cat <<\_ASBOX
  1623. ## ----------- ##
  1624. ## confdefs.h. ##
  1625. ## ----------- ##
  1626. _ASBOX
  1627. echo
  1628. cat confdefs.h
  1629. echo
  1630. fi
  1631. test "$ac_signal" != 0 &&
  1632. echo "$as_me: caught signal $ac_signal"
  1633. echo "$as_me: exit $exit_status"
  1634. } >&5
  1635. rm -f core *.core core.conftest.* &&
  1636. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1637. exit $exit_status
  1638. ' 0
  1639. for ac_signal in 1 2 13 15; do
  1640. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1641. done
  1642. ac_signal=0
  1643. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1644. rm -f -r conftest* confdefs.h
  1645. # Predefined preprocessor variables.
  1646. cat >>confdefs.h <<_ACEOF
  1647. #define PACKAGE_NAME "$PACKAGE_NAME"
  1648. _ACEOF
  1649. cat >>confdefs.h <<_ACEOF
  1650. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1651. _ACEOF
  1652. cat >>confdefs.h <<_ACEOF
  1653. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1654. _ACEOF
  1655. cat >>confdefs.h <<_ACEOF
  1656. #define PACKAGE_STRING "$PACKAGE_STRING"
  1657. _ACEOF
  1658. cat >>confdefs.h <<_ACEOF
  1659. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1660. _ACEOF
  1661. # Let the site file select an alternate cache file if it wants to.
  1662. # Prefer explicitly selected file to automatically selected ones.
  1663. if test -n "$CONFIG_SITE"; then
  1664. set x "$CONFIG_SITE"
  1665. elif test "x$prefix" != xNONE; then
  1666. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1667. else
  1668. set x "$ac_default_prefix/share/config.site" \
  1669. "$ac_default_prefix/etc/config.site"
  1670. fi
  1671. shift
  1672. for ac_site_file
  1673. do
  1674. if test -r "$ac_site_file"; then
  1675. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1676. echo "$as_me: loading site script $ac_site_file" >&6;}
  1677. sed 's/^/| /' "$ac_site_file" >&5
  1678. . "$ac_site_file"
  1679. fi
  1680. done
  1681. if test -r "$cache_file"; then
  1682. # Some versions of bash will fail to source /dev/null (special
  1683. # files actually), so we avoid doing that.
  1684. if test -f "$cache_file"; then
  1685. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1686. echo "$as_me: loading cache $cache_file" >&6;}
  1687. case $cache_file in
  1688. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1689. *) . "./$cache_file";;
  1690. esac
  1691. fi
  1692. else
  1693. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1694. echo "$as_me: creating cache $cache_file" >&6;}
  1695. >$cache_file
  1696. fi
  1697. # Check that the precious variables saved in the cache have kept the same
  1698. # value.
  1699. ac_cache_corrupted=false
  1700. for ac_var in $ac_precious_vars; do
  1701. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1702. eval ac_new_set=\$ac_env_${ac_var}_set
  1703. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1704. eval ac_new_val=\$ac_env_${ac_var}_value
  1705. case $ac_old_set,$ac_new_set in
  1706. set,)
  1707. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1708. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1709. ac_cache_corrupted=: ;;
  1710. ,set)
  1711. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1712. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1713. ac_cache_corrupted=: ;;
  1714. ,);;
  1715. *)
  1716. if test "x$ac_old_val" != "x$ac_new_val"; then
  1717. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1718. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1719. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1720. echo "$as_me: former value: $ac_old_val" >&2;}
  1721. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1722. echo "$as_me: current value: $ac_new_val" >&2;}
  1723. ac_cache_corrupted=:
  1724. fi;;
  1725. esac
  1726. # Pass precious variables to config.status.
  1727. if test "$ac_new_set" = set; then
  1728. case $ac_new_val in
  1729. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1730. *) ac_arg=$ac_var=$ac_new_val ;;
  1731. esac
  1732. case " $ac_configure_args " in
  1733. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1734. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1735. esac
  1736. fi
  1737. done
  1738. if $ac_cache_corrupted; then
  1739. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1740. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1741. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1742. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1743. { (exit 1); exit 1; }; }
  1744. fi
  1745. ac_ext=c
  1746. ac_cpp='$CPP $CPPFLAGS'
  1747. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1748. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1749. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1750. ac_config_headers="$ac_config_headers src/config.h"
  1751. ac_aux_dir=
  1752. for ac_dir in config "$srcdir"/config; do
  1753. if test -f "$ac_dir/install-sh"; then
  1754. ac_aux_dir=$ac_dir
  1755. ac_install_sh="$ac_aux_dir/install-sh -c"
  1756. break
  1757. elif test -f "$ac_dir/install.sh"; then
  1758. ac_aux_dir=$ac_dir
  1759. ac_install_sh="$ac_aux_dir/install.sh -c"
  1760. break
  1761. elif test -f "$ac_dir/shtool"; then
  1762. ac_aux_dir=$ac_dir
  1763. ac_install_sh="$ac_aux_dir/shtool install -c"
  1764. break
  1765. fi
  1766. done
  1767. if test -z "$ac_aux_dir"; then
  1768. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
  1769. echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
  1770. { (exit 1); exit 1; }; }
  1771. fi
  1772. # These three variables are undocumented and unsupported,
  1773. # and are intended to be withdrawn in a future Autoconf release.
  1774. # They can cause serious problems if a builder's source tree is in a directory
  1775. # whose full name contains unusual characters.
  1776. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1777. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1778. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1779. { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  1780. echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
  1781. # Check whether --enable-maintainer-mode was given.
  1782. if test "${enable_maintainer_mode+set}" = set; then
  1783. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  1784. else
  1785. USE_MAINTAINER_MODE=no
  1786. fi
  1787. { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  1788. echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
  1789. if test $USE_MAINTAINER_MODE = yes; then
  1790. MAINTAINER_MODE_TRUE=
  1791. MAINTAINER_MODE_FALSE='#'
  1792. else
  1793. MAINTAINER_MODE_TRUE='#'
  1794. MAINTAINER_MODE_FALSE=
  1795. fi
  1796. MAINT=$MAINTAINER_MODE_TRUE
  1797. { echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
  1798. echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6; }
  1799. # Check whether --with-dmalloc was given.
  1800. if test "${with_dmalloc+set}" = set; then
  1801. withval=$with_dmalloc; if test "$withval" = yes; then
  1802. { echo "$as_me:$LINENO: result: yes" >&5
  1803. echo "${ECHO_T}yes" >&6; }
  1804. cat >>confdefs.h <<\_ACEOF
  1805. #define WITH_DMALLOC 1
  1806. _ACEOF
  1807. LIBS="$LIBS -ldmalloc"
  1808. LDFLAGS="$LDFLAGS -g"
  1809. else
  1810. { echo "$as_me:$LINENO: result: no" >&5
  1811. echo "${ECHO_T}no" >&6; }
  1812. fi
  1813. else
  1814. { echo "$as_me:$LINENO: result: no" >&5
  1815. echo "${ECHO_T}no" >&6; }
  1816. fi
  1817. MAJOR_VERSION=3
  1818. MINOR_VERSION=2
  1819. MICRO_VERSION=3
  1820. TCPREPLAY_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION
  1821. TCPREPLAY_RELEASE=1
  1822. cat >>confdefs.h <<\_ACEOF
  1823. #define PACKAGE tcpreplay
  1824. _ACEOF
  1825. cat >>confdefs.h <<_ACEOF
  1826. #define VERSION "$TCPREPLAY_VERSION"
  1827. _ACEOF
  1828. USER_CFLAGS=$CFLAGS
  1829. CFLAGS="${CFLAGS} -Wall -O3 -std=gnu99"
  1830. # Make sure we can run config.sub.
  1831. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1832. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1833. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1834. { (exit 1); exit 1; }; }
  1835. { echo "$as_me:$LINENO: checking build system type" >&5
  1836. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  1837. if test "${ac_cv_build+set}" = set; then
  1838. echo $ECHO_N "(cached) $ECHO_C" >&6
  1839. else
  1840. ac_build_alias=$build_alias
  1841. test "x$ac_build_alias" = x &&
  1842. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1843. test "x$ac_build_alias" = x &&
  1844. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1845. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1846. { (exit 1); exit 1; }; }
  1847. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1848. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1849. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1850. { (exit 1); exit 1; }; }
  1851. fi
  1852. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1853. echo "${ECHO_T}$ac_cv_build" >&6; }
  1854. case $ac_cv_build in
  1855. *-*-*) ;;
  1856. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1857. echo "$as_me: error: invalid value of canonical build" >&2;}
  1858. { (exit 1); exit 1; }; };;
  1859. esac
  1860. build=$ac_cv_build
  1861. ac_save_IFS=$IFS; IFS='-'
  1862. set x $ac_cv_build
  1863. shift
  1864. build_cpu=$1
  1865. build_vendor=$2
  1866. shift; shift
  1867. # Remember, the first character of IFS is used to create $*,
  1868. # except with old shells:
  1869. build_os=$*
  1870. IFS=$ac_save_IFS
  1871. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1872. { echo "$as_me:$LINENO: checking host system type" >&5
  1873. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  1874. if test "${ac_cv_host+set}" = set; then
  1875. echo $ECHO_N "(cached) $ECHO_C" >&6
  1876. else
  1877. if test "x$host_alias" = x; then
  1878. ac_cv_host=$ac_cv_build
  1879. else
  1880. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1881. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1882. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1883. { (exit 1); exit 1; }; }
  1884. fi
  1885. fi
  1886. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1887. echo "${ECHO_T}$ac_cv_host" >&6; }
  1888. case $ac_cv_host in
  1889. *-*-*) ;;
  1890. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1891. echo "$as_me: error: invalid value of canonical host" >&2;}
  1892. { (exit 1); exit 1; }; };;
  1893. esac
  1894. host=$ac_cv_host
  1895. ac_save_IFS=$IFS; IFS='-'
  1896. set x $ac_cv_host
  1897. shift
  1898. host_cpu=$1
  1899. host_vendor=$2
  1900. shift; shift
  1901. # Remember, the first character of IFS is used to create $*,
  1902. # except with old shells:
  1903. host_os=$*
  1904. IFS=$ac_save_IFS
  1905. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1906. { echo "$as_me:$LINENO: checking target system type" >&5
  1907. echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
  1908. if test "${ac_cv_target+set}" = set; then
  1909. echo $ECHO_N "(cached) $ECHO_C" >&6
  1910. else
  1911. if test "x$target_alias" = x; then
  1912. ac_cv_target=$ac_cv_host
  1913. else
  1914. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  1915. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  1916. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  1917. { (exit 1); exit 1; }; }
  1918. fi
  1919. fi
  1920. { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1921. echo "${ECHO_T}$ac_cv_target" >&6; }
  1922. case $ac_cv_target in
  1923. *-*-*) ;;
  1924. *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  1925. echo "$as_me: error: invalid value of canonical target" >&2;}
  1926. { (exit 1); exit 1; }; };;
  1927. esac
  1928. target=$ac_cv_target
  1929. ac_save_IFS=$IFS; IFS='-'
  1930. set x $ac_cv_target
  1931. shift
  1932. target_cpu=$1
  1933. target_vendor=$2
  1934. shift; shift
  1935. # Remember, the first character of IFS is used to create $*,
  1936. # except with old shells:
  1937. target_os=$*
  1938. IFS=$ac_save_IFS
  1939. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  1940. # The aliases save the names the user supplied, while $host etc.
  1941. # will get canonicalized.
  1942. test -n "$target_alias" &&
  1943. test "$program_prefix$program_suffix$program_transform_name" = \
  1944. NONENONEs,x,x, &&
  1945. program_prefix=${target_alias}-
  1946. { echo "$as_me:$LINENO: checking for cygwin development environment" >&5
  1947. echo $ECHO_N "checking for cygwin development environment... $ECHO_C" >&6; }
  1948. if test `echo $target | grep -c cygwin` -gt 0 ; then
  1949. cat >>confdefs.h <<\_ACEOF
  1950. #define HAVE_WIN32 1
  1951. _ACEOF
  1952. { echo "$as_me:$LINENO: result: yes" >&5
  1953. echo "${ECHO_T}yes" >&6; }
  1954. else
  1955. { echo "$as_me:$LINENO: result: no" >&5
  1956. echo "${ECHO_T}no" >&6; }
  1957. fi
  1958. am__api_version='1.10'
  1959. # Find a good install program. We prefer a C program (faster),
  1960. # so one script is as good as another. But avoid the broken or
  1961. # incompatible versions:
  1962. # SysV /etc/install, /usr/sbin/install
  1963. # SunOS /usr/etc/install
  1964. # IRIX /sbin/install
  1965. # AIX /bin/install
  1966. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1967. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1968. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1969. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1970. # OS/2's system install, which has a completely different semantic
  1971. # ./install, which can be erroneously created by make from ./install.sh.
  1972. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1973. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1974. if test -z "$INSTALL"; then
  1975. if test "${ac_cv_path_install+set}" = set; then
  1976. echo $ECHO_N "(cached) $ECHO_C" >&6
  1977. else
  1978. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1979. for as_dir in $PATH
  1980. do
  1981. IFS=$as_save_IFS
  1982. test -z "$as_dir" && as_dir=.
  1983. # Account for people who put trailing slashes in PATH elements.
  1984. case $as_dir/ in
  1985. ./ | .// | /cC/* | \
  1986. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1987. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1988. /usr/ucb/* ) ;;
  1989. *)
  1990. # OSF1 and SCO ODT 3.0 have their own names for install.
  1991. # Don't use installbsd from OSF since it installs stuff as root
  1992. # by default.
  1993. for ac_prog in ginstall scoinst install; do
  1994. for ac_exec_ext in '' $ac_executable_extensions; do
  1995. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1996. if test $ac_prog = install &&
  1997. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1998. # AIX install. It has an incompatible calling convention.
  1999. :
  2000. elif test $ac_prog = install &&
  2001. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2002. # program-specific install script used by HP pwplus--don't use.
  2003. :
  2004. else
  2005. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2006. break 3
  2007. fi
  2008. fi
  2009. done
  2010. done
  2011. ;;
  2012. esac
  2013. done
  2014. IFS=$as_save_IFS
  2015. fi
  2016. if test "${ac_cv_path_install+set}" = set; then
  2017. INSTALL=$ac_cv_path_install
  2018. else
  2019. # As a last resort, use the slow shell script. Don't cache a
  2020. # value for INSTALL within a source directory, because that will
  2021. # break other packages using the cache if that directory is
  2022. # removed, or if the value is a relative name.
  2023. INSTALL=$ac_install_sh
  2024. fi
  2025. fi
  2026. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  2027. echo "${ECHO_T}$INSTALL" >&6; }
  2028. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2029. # It thinks the first close brace ends the variable substitution.
  2030. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2031. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2032. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2033. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  2034. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  2035. # Just in case
  2036. sleep 1
  2037. echo timestamp > conftest.file
  2038. # Do `set' in a subshell so we don't clobber the current shell's
  2039. # arguments. Must try -L first in case configure is actually a
  2040. # symlink; some systems play weird games with the mod time of symlinks
  2041. # (eg FreeBSD returns the mod time of the symlink's containing
  2042. # directory).
  2043. if (
  2044. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  2045. if test "$*" = "X"; then
  2046. # -L didn't work.
  2047. set X `ls -t $srcdir/configure conftest.file`
  2048. fi
  2049. rm -f conftest.file
  2050. if test "$*" != "X $srcdir/configure conftest.file" \
  2051. && test "$*" != "X conftest.file $srcdir/configure"; then
  2052. # If neither matched, then we have a broken ls. This can happen
  2053. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2054. # broken ls alias from the environment. This has actually
  2055. # happened. Such a system could not be considered "sane".
  2056. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  2057. alias in your environment" >&5
  2058. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  2059. alias in your environment" >&2;}
  2060. { (exit 1); exit 1; }; }
  2061. fi
  2062. test "$2" = conftest.file
  2063. )
  2064. then
  2065. # Ok.
  2066. :
  2067. else
  2068. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  2069. Check your system clock" >&5
  2070. echo "$as_me: error: newly created file is older than distributed files!
  2071. Check your system clock" >&2;}
  2072. { (exit 1); exit 1; }; }
  2073. fi
  2074. { echo "$as_me:$LINENO: result: yes" >&5
  2075. echo "${ECHO_T}yes" >&6; }
  2076. test "$program_prefix" != NONE &&
  2077. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2078. # Use a double $ so make ignores it.
  2079. test "$program_suffix" != NONE &&
  2080. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2081. # Double any \ or $. echo might interpret backslashes.
  2082. # By default was `s,x,x', remove it if useless.
  2083. cat <<\_ACEOF >conftest.sed
  2084. s/[\\$]/&&/g;s/;s,x,x,$//
  2085. _ACEOF
  2086. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  2087. rm -f conftest.sed
  2088. # expand $ac_aux_dir to an absolute path
  2089. am_aux_dir=`cd $ac_aux_dir && pwd`
  2090. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  2091. # Use eval to expand $SHELL
  2092. if eval "$MISSING --run true"; then
  2093. am_missing_run="$MISSING --run "
  2094. else
  2095. am_missing_run=
  2096. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2097. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2098. fi
  2099. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  2100. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  2101. if test -z "$MKDIR_P"; then
  2102. if test "${ac_cv_path_mkdir+set}" = set; then
  2103. echo $ECHO_N "(cached) $ECHO_C" >&6
  2104. else
  2105. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2106. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2107. do
  2108. IFS=$as_save_IFS
  2109. test -z "$as_dir" && as_dir=.
  2110. for ac_prog in mkdir gmkdir; do
  2111. for ac_exec_ext in '' $ac_executable_extensions; do
  2112. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2113. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2114. 'mkdir (GNU coreutils) '* | \
  2115. 'mkdir (coreutils) '* | \
  2116. 'mkdir (fileutils) '4.1*)
  2117. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2118. break 3;;
  2119. esac
  2120. done
  2121. done
  2122. done
  2123. IFS=$as_save_IFS
  2124. fi
  2125. if test "${ac_cv_path_mkdir+set}" = set; then
  2126. MKDIR_P="$ac_cv_path_mkdir -p"
  2127. else
  2128. # As a last resort, use the slow shell script. Don't cache a
  2129. # value for MKDIR_P within a source directory, because that will
  2130. # break other packages using the cache if that directory is
  2131. # removed, or if the value is a relative name.
  2132. test -d ./--version && rmdir ./--version
  2133. MKDIR_P="$ac_install_sh -d"
  2134. fi
  2135. fi
  2136. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  2137. echo "${ECHO_T}$MKDIR_P" >&6; }
  2138. mkdir_p="$MKDIR_P"
  2139. case $mkdir_p in
  2140. [\\/$]* | ?:[\\/]*) ;;
  2141. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2142. esac
  2143. for ac_prog in gawk mawk nawk awk
  2144. do
  2145. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2146. set dummy $ac_prog; ac_word=$2
  2147. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2148. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2149. if test "${ac_cv_prog_AWK+set}" = set; then
  2150. echo $ECHO_N "(cached) $ECHO_C" >&6
  2151. else
  2152. if test -n "$AWK"; then
  2153. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2154. else
  2155. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2156. for as_dir in $PATH
  2157. do
  2158. IFS=$as_save_IFS
  2159. test -z "$as_dir" && as_dir=.
  2160. for ac_exec_ext in '' $ac_executable_extensions; do
  2161. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2162. ac_cv_prog_AWK="$ac_prog"
  2163. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2164. break 2
  2165. fi
  2166. done
  2167. done
  2168. IFS=$as_save_IFS
  2169. fi
  2170. fi
  2171. AWK=$ac_cv_prog_AWK
  2172. if test -n "$AWK"; then
  2173. { echo "$as_me:$LINENO: result: $AWK" >&5
  2174. echo "${ECHO_T}$AWK" >&6; }
  2175. else
  2176. { echo "$as_me:$LINENO: result: no" >&5
  2177. echo "${ECHO_T}no" >&6; }
  2178. fi
  2179. test -n "$AWK" && break
  2180. done
  2181. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2182. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  2183. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2184. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2185. echo $ECHO_N "(cached) $ECHO_C" >&6
  2186. else
  2187. cat >conftest.make <<\_ACEOF
  2188. SHELL = /bin/sh
  2189. all:
  2190. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2191. _ACEOF
  2192. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2193. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2194. *@@@%%%=?*=@@@%%%*)
  2195. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2196. *)
  2197. eval ac_cv_prog_make_${ac_make}_set=no;;
  2198. esac
  2199. rm -f conftest.make
  2200. fi
  2201. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2202. { echo "$as_me:$LINENO: result: yes" >&5
  2203. echo "${ECHO_T}yes" >&6; }
  2204. SET_MAKE=
  2205. else
  2206. { echo "$as_me:$LINENO: result: no" >&5
  2207. echo "${ECHO_T}no" >&6; }
  2208. SET_MAKE="MAKE=${MAKE-make}"
  2209. fi
  2210. rm -rf .tst 2>/dev/null
  2211. mkdir .tst 2>/dev/null
  2212. if test -d .tst; then
  2213. am__leading_dot=.
  2214. else
  2215. am__leading_dot=_
  2216. fi
  2217. rmdir .tst 2>/dev/null
  2218. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2219. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2220. # is not polluted with repeated "-I."
  2221. am__isrc=' -I$(srcdir)'
  2222. # test to see if srcdir already configured
  2223. if test -f $srcdir/config.status; then
  2224. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2225. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2226. { (exit 1); exit 1; }; }
  2227. fi
  2228. fi
  2229. # test whether we have cygpath
  2230. if test -z "$CYGPATH_W"; then
  2231. if (cygpath --version) >/dev/null 2>/dev/null; then
  2232. CYGPATH_W='cygpath -w'
  2233. else
  2234. CYGPATH_W=echo
  2235. fi
  2236. fi
  2237. # Define the identity of the package.
  2238. PACKAGE=tcpreplay
  2239. VERSION=$TCPREPLAY_VERSION
  2240. # Some tools Automake needs.
  2241. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2242. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2243. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2244. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2245. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2246. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  2247. # Installed binaries are usually stripped using `strip' when the user
  2248. # run `make install-strip'. However `strip' might not be the right
  2249. # tool to use in cross-compilation environments, therefore Automake
  2250. # will honor the `STRIP' environment variable to overrule this program.
  2251. if test "$cross_compiling" != no; then
  2252. if test -n "$ac_tool_prefix"; then
  2253. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2254. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2255. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2256. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2257. if test "${ac_cv_prog_STRIP+set}" = set; then
  2258. echo $ECHO_N "(cached) $ECHO_C" >&6
  2259. else
  2260. if test -n "$STRIP"; then
  2261. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2262. else
  2263. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2264. for as_dir in $PATH
  2265. do
  2266. IFS=$as_save_IFS
  2267. test -z "$as_dir" && as_dir=.
  2268. for ac_exec_ext in '' $ac_executable_extensions; do
  2269. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2270. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2271. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2272. break 2
  2273. fi
  2274. done
  2275. done
  2276. IFS=$as_save_IFS
  2277. fi
  2278. fi
  2279. STRIP=$ac_cv_prog_STRIP
  2280. if test -n "$STRIP"; then
  2281. { echo "$as_me:$LINENO: result: $STRIP" >&5
  2282. echo "${ECHO_T}$STRIP" >&6; }
  2283. else
  2284. { echo "$as_me:$LINENO: result: no" >&5
  2285. echo "${ECHO_T}no" >&6; }
  2286. fi
  2287. fi
  2288. if test -z "$ac_cv_prog_STRIP"; then
  2289. ac_ct_STRIP=$STRIP
  2290. # Extract the first word of "strip", so it can be a program name with args.
  2291. set dummy strip; ac_word=$2
  2292. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2293. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2294. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2295. echo $ECHO_N "(cached) $ECHO_C" >&6
  2296. else
  2297. if test -n "$ac_ct_STRIP"; then
  2298. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2299. else
  2300. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2301. for as_dir in $PATH
  2302. do
  2303. IFS=$as_save_IFS
  2304. test -z "$as_dir" && as_dir=.
  2305. for ac_exec_ext in '' $ac_executable_extensions; do
  2306. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2307. ac_cv_prog_ac_ct_STRIP="strip"
  2308. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2309. break 2
  2310. fi
  2311. done
  2312. done
  2313. IFS=$as_save_IFS
  2314. fi
  2315. fi
  2316. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2317. if test -n "$ac_ct_STRIP"; then
  2318. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2319. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2320. else
  2321. { echo "$as_me:$LINENO: result: no" >&5
  2322. echo "${ECHO_T}no" >&6; }
  2323. fi
  2324. if test "x$ac_ct_STRIP" = x; then
  2325. STRIP=":"
  2326. else
  2327. case $cross_compiling:$ac_tool_warned in
  2328. yes:)
  2329. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2330. whose name does not start with the host triplet. If you think this
  2331. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2332. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2333. whose name does not start with the host triplet. If you think this
  2334. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2335. ac_tool_warned=yes ;;
  2336. esac
  2337. STRIP=$ac_ct_STRIP
  2338. fi
  2339. else
  2340. STRIP="$ac_cv_prog_STRIP"
  2341. fi
  2342. fi
  2343. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2344. # We need awk for the "check" target. The system "awk" is bad on
  2345. # some platforms.
  2346. # Always define AMTAR for backward compatibility.
  2347. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2348. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2349. # Find a good install program. We prefer a C program (faster),
  2350. # so one script is as good as another. But avoid the broken or
  2351. # incompatible versions:
  2352. # SysV /etc/install, /usr/sbin/install
  2353. # SunOS /usr/etc/install
  2354. # IRIX /sbin/install
  2355. # AIX /bin/install
  2356. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2357. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2358. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2359. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2360. # OS/2's system install, which has a completely different semantic
  2361. # ./install, which can be erroneously created by make from ./install.sh.
  2362. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  2363. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  2364. if test -z "$INSTALL"; then
  2365. if test "${ac_cv_path_install+set}" = set; then
  2366. echo $ECHO_N "(cached) $ECHO_C" >&6
  2367. else
  2368. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2369. for as_dir in $PATH
  2370. do
  2371. IFS=$as_save_IFS
  2372. test -z "$as_dir" && as_dir=.
  2373. # Account for people who put trailing slashes in PATH elements.
  2374. case $as_dir/ in
  2375. ./ | .// | /cC/* | \
  2376. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2377. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2378. /usr/ucb/* ) ;;
  2379. *)
  2380. # OSF1 and SCO ODT 3.0 have their own names for install.
  2381. # Don't use installbsd from OSF since it installs stuff as root
  2382. # by default.
  2383. for ac_prog in ginstall scoinst install; do
  2384. for ac_exec_ext in '' $ac_executable_extensions; do
  2385. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2386. if test $ac_prog = install &&
  2387. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2388. # AIX install. It has an incompatible calling convention.
  2389. :
  2390. elif test $ac_prog = install &&
  2391. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2392. # program-specific install script used by HP pwplus--don't use.
  2393. :
  2394. else
  2395. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2396. break 3
  2397. fi
  2398. fi
  2399. done
  2400. done
  2401. ;;
  2402. esac
  2403. done
  2404. IFS=$as_save_IFS
  2405. fi
  2406. if test "${ac_cv_path_install+set}" = set; then
  2407. INSTALL=$ac_cv_path_install
  2408. else
  2409. # As a last resort, use the slow shell script. Don't cache a
  2410. # value for INSTALL within a source directory, because that will
  2411. # break other packages using the cache if that directory is
  2412. # removed, or if the value is a relative name.
  2413. INSTALL=$ac_install_sh
  2414. fi
  2415. fi
  2416. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  2417. echo "${ECHO_T}$INSTALL" >&6; }
  2418. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2419. # It thinks the first close brace ends the variable substitution.
  2420. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2421. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2422. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2423. # Check whether --enable-shared was given.
  2424. if test "${enable_shared+set}" = set; then
  2425. enableval=$enable_shared; p=${PACKAGE-default}
  2426. case $enableval in
  2427. yes) enable_shared=yes ;;
  2428. no) enable_shared=no ;;
  2429. *)
  2430. enable_shared=no
  2431. # Look at the argument we got. We use all the common list separators.
  2432. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2433. for pkg in $enableval; do
  2434. IFS="$lt_save_ifs"
  2435. if test "X$pkg" = "X$p"; then
  2436. enable_shared=yes
  2437. fi
  2438. done
  2439. IFS="$lt_save_ifs"
  2440. ;;
  2441. esac
  2442. else
  2443. enable_shared=yes
  2444. fi
  2445. # Check whether --enable-static was given.
  2446. if test "${enable_static+set}" = set; then
  2447. enableval=$enable_static; p=${PACKAGE-default}
  2448. case $enableval in
  2449. yes) enable_static=yes ;;
  2450. no) enable_static=no ;;
  2451. *)
  2452. enable_static=no
  2453. # Look at the argument we got. We use all the common list separators.
  2454. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2455. for pkg in $enableval; do
  2456. IFS="$lt_save_ifs"
  2457. if test "X$pkg" = "X$p"; then
  2458. enable_static=yes
  2459. fi
  2460. done
  2461. IFS="$lt_save_ifs"
  2462. ;;
  2463. esac
  2464. else
  2465. enable_static=yes
  2466. fi
  2467. # Check whether --enable-fast-install was given.
  2468. if test "${enable_fast_install+set}" = set; then
  2469. enableval=$enable_fast_install; p=${PACKAGE-default}
  2470. case $enableval in
  2471. yes) enable_fast_install=yes ;;
  2472. no) enable_fast_install=no ;;
  2473. *)
  2474. enable_fast_install=no
  2475. # Look at the argument we got. We use all the common list separators.
  2476. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2477. for pkg in $enableval; do
  2478. IFS="$lt_save_ifs"
  2479. if test "X$pkg" = "X$p"; then
  2480. enable_fast_install=yes
  2481. fi
  2482. done
  2483. IFS="$lt_save_ifs"
  2484. ;;
  2485. esac
  2486. else
  2487. enable_fast_install=yes
  2488. fi
  2489. DEPDIR="${am__leading_dot}deps"
  2490. ac_config_commands="$ac_config_commands depfiles"
  2491. am_make=${MAKE-make}
  2492. cat > confinc << 'END'
  2493. am__doit:
  2494. @echo done
  2495. .PHONY: am__doit
  2496. END
  2497. # If we don't find an include directive, just comment out the code.
  2498. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2499. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2500. am__include="#"
  2501. am__quote=
  2502. _am_result=none
  2503. # First try GNU make style include.
  2504. echo "include confinc" > confmf
  2505. # We grep out `Entering directory' and `Leaving directory'
  2506. # messages which can occur if `w' ends up in MAKEFLAGS.
  2507. # In particular we don't look at `^make:' because GNU make might
  2508. # be invoked under some other name (usually "gmake"), in which
  2509. # case it prints its new name instead of `make'.
  2510. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2511. am__include=include
  2512. am__quote=
  2513. _am_result=GNU
  2514. fi
  2515. # Now try BSD make style include.
  2516. if test "$am__include" = "#"; then
  2517. echo '.include "confinc"' > confmf
  2518. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2519. am__include=.include
  2520. am__quote="\""
  2521. _am_result=BSD
  2522. fi
  2523. fi
  2524. { echo "$as_me:$LINENO: result: $_am_result" >&5
  2525. echo "${ECHO_T}$_am_result" >&6; }
  2526. rm -f confinc confmf
  2527. # Check whether --enable-dependency-tracking was given.
  2528. if test "${enable_dependency_tracking+set}" = set; then
  2529. enableval=$enable_dependency_tracking;
  2530. fi
  2531. if test "x$enable_dependency_tracking" != xno; then
  2532. am_depcomp="$ac_aux_dir/depcomp"
  2533. AMDEPBACKSLASH='\'
  2534. fi
  2535. if test "x$enable_dependency_tracking" != xno; then
  2536. AMDEP_TRUE=
  2537. AMDEP_FALSE='#'
  2538. else
  2539. AMDEP_TRUE='#'
  2540. AMDEP_FALSE=
  2541. fi
  2542. ac_ext=c
  2543. ac_cpp='$CPP $CPPFLAGS'
  2544. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2545. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2546. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2547. if test -n "$ac_tool_prefix"; then
  2548. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2549. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2550. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2551. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2552. if test "${ac_cv_prog_CC+set}" = set; then
  2553. echo $ECHO_N "(cached) $ECHO_C" >&6
  2554. else
  2555. if test -n "$CC"; then
  2556. ac_cv_prog_CC="$CC" # Let the user override the test.
  2557. else
  2558. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2559. for as_dir in $PATH
  2560. do
  2561. IFS=$as_save_IFS
  2562. test -z "$as_dir" && as_dir=.
  2563. for ac_exec_ext in '' $ac_executable_extensions; do
  2564. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2565. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2566. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2567. break 2
  2568. fi
  2569. done
  2570. done
  2571. IFS=$as_save_IFS
  2572. fi
  2573. fi
  2574. CC=$ac_cv_prog_CC
  2575. if test -n "$CC"; then
  2576. { echo "$as_me:$LINENO: result: $CC" >&5
  2577. echo "${ECHO_T}$CC" >&6; }
  2578. else
  2579. { echo "$as_me:$LINENO: result: no" >&5
  2580. echo "${ECHO_T}no" >&6; }
  2581. fi
  2582. fi
  2583. if test -z "$ac_cv_prog_CC"; then
  2584. ac_ct_CC=$CC
  2585. # Extract the first word of "gcc", so it can be a program name with args.
  2586. set dummy gcc; ac_word=$2
  2587. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2588. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2589. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2590. echo $ECHO_N "(cached) $ECHO_C" >&6
  2591. else
  2592. if test -n "$ac_ct_CC"; then
  2593. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2594. else
  2595. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2596. for as_dir in $PATH
  2597. do
  2598. IFS=$as_save_IFS
  2599. test -z "$as_dir" && as_dir=.
  2600. for ac_exec_ext in '' $ac_executable_extensions; do
  2601. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2602. ac_cv_prog_ac_ct_CC="gcc"
  2603. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2604. break 2
  2605. fi
  2606. done
  2607. done
  2608. IFS=$as_save_IFS
  2609. fi
  2610. fi
  2611. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2612. if test -n "$ac_ct_CC"; then
  2613. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2614. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2615. else
  2616. { echo "$as_me:$LINENO: result: no" >&5
  2617. echo "${ECHO_T}no" >&6; }
  2618. fi
  2619. if test "x$ac_ct_CC" = x; then
  2620. CC=""
  2621. else
  2622. case $cross_compiling:$ac_tool_warned in
  2623. yes:)
  2624. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2625. whose name does not start with the host triplet. If you think this
  2626. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2627. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2628. whose name does not start with the host triplet. If you think this
  2629. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2630. ac_tool_warned=yes ;;
  2631. esac
  2632. CC=$ac_ct_CC
  2633. fi
  2634. else
  2635. CC="$ac_cv_prog_CC"
  2636. fi
  2637. if test -z "$CC"; then
  2638. if test -n "$ac_tool_prefix"; then
  2639. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2640. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2641. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2642. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2643. if test "${ac_cv_prog_CC+set}" = set; then
  2644. echo $ECHO_N "(cached) $ECHO_C" >&6
  2645. else
  2646. if test -n "$CC"; then
  2647. ac_cv_prog_CC="$CC" # Let the user override the test.
  2648. else
  2649. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2650. for as_dir in $PATH
  2651. do
  2652. IFS=$as_save_IFS
  2653. test -z "$as_dir" && as_dir=.
  2654. for ac_exec_ext in '' $ac_executable_extensions; do
  2655. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2656. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2657. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2658. break 2
  2659. fi
  2660. done
  2661. done
  2662. IFS=$as_save_IFS
  2663. fi
  2664. fi
  2665. CC=$ac_cv_prog_CC
  2666. if test -n "$CC"; then
  2667. { echo "$as_me:$LINENO: result: $CC" >&5
  2668. echo "${ECHO_T}$CC" >&6; }
  2669. else
  2670. { echo "$as_me:$LINENO: result: no" >&5
  2671. echo "${ECHO_T}no" >&6; }
  2672. fi
  2673. fi
  2674. fi
  2675. if test -z "$CC"; then
  2676. # Extract the first word of "cc", so it can be a program name with args.
  2677. set dummy cc; ac_word=$2
  2678. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2679. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2680. if test "${ac_cv_prog_CC+set}" = set; then
  2681. echo $ECHO_N "(cached) $ECHO_C" >&6
  2682. else
  2683. if test -n "$CC"; then
  2684. ac_cv_prog_CC="$CC" # Let the user override the test.
  2685. else
  2686. ac_prog_rejected=no
  2687. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2688. for as_dir in $PATH
  2689. do
  2690. IFS=$as_save_IFS
  2691. test -z "$as_dir" && as_dir=.
  2692. for ac_exec_ext in '' $ac_executable_extensions; do
  2693. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2694. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2695. ac_prog_rejected=yes
  2696. continue
  2697. fi
  2698. ac_cv_prog_CC="cc"
  2699. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2700. break 2
  2701. fi
  2702. done
  2703. done
  2704. IFS=$as_save_IFS
  2705. if test $ac_prog_rejected = yes; then
  2706. # We found a bogon in the path, so make sure we never use it.
  2707. set dummy $ac_cv_prog_CC
  2708. shift
  2709. if test $# != 0; then
  2710. # We chose a different compiler from the bogus one.
  2711. # However, it has the same basename, so the bogon will be chosen
  2712. # first if we set CC to just the basename; use the full file name.
  2713. shift
  2714. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2715. fi
  2716. fi
  2717. fi
  2718. fi
  2719. CC=$ac_cv_prog_CC
  2720. if test -n "$CC"; then
  2721. { echo "$as_me:$LINENO: result: $CC" >&5
  2722. echo "${ECHO_T}$CC" >&6; }
  2723. else
  2724. { echo "$as_me:$LINENO: result: no" >&5
  2725. echo "${ECHO_T}no" >&6; }
  2726. fi
  2727. fi
  2728. if test -z "$CC"; then
  2729. if test -n "$ac_tool_prefix"; then
  2730. for ac_prog in cl.exe
  2731. do
  2732. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2733. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2734. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2735. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2736. if test "${ac_cv_prog_CC+set}" = set; then
  2737. echo $ECHO_N "(cached) $ECHO_C" >&6
  2738. else
  2739. if test -n "$CC"; then
  2740. ac_cv_prog_CC="$CC" # Let the user override the test.
  2741. else
  2742. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2743. for as_dir in $PATH
  2744. do
  2745. IFS=$as_save_IFS
  2746. test -z "$as_dir" && as_dir=.
  2747. for ac_exec_ext in '' $ac_executable_extensions; do
  2748. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2749. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2750. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2751. break 2
  2752. fi
  2753. done
  2754. done
  2755. IFS=$as_save_IFS
  2756. fi
  2757. fi
  2758. CC=$ac_cv_prog_CC
  2759. if test -n "$CC"; then
  2760. { echo "$as_me:$LINENO: result: $CC" >&5
  2761. echo "${ECHO_T}$CC" >&6; }
  2762. else
  2763. { echo "$as_me:$LINENO: result: no" >&5
  2764. echo "${ECHO_T}no" >&6; }
  2765. fi
  2766. test -n "$CC" && break
  2767. done
  2768. fi
  2769. if test -z "$CC"; then
  2770. ac_ct_CC=$CC
  2771. for ac_prog in cl.exe
  2772. do
  2773. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2774. set dummy $ac_prog; ac_word=$2
  2775. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2776. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2777. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2778. echo $ECHO_N "(cached) $ECHO_C" >&6
  2779. else
  2780. if test -n "$ac_ct_CC"; then
  2781. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2782. else
  2783. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2784. for as_dir in $PATH
  2785. do
  2786. IFS=$as_save_IFS
  2787. test -z "$as_dir" && as_dir=.
  2788. for ac_exec_ext in '' $ac_executable_extensions; do
  2789. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2790. ac_cv_prog_ac_ct_CC="$ac_prog"
  2791. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2792. break 2
  2793. fi
  2794. done
  2795. done
  2796. IFS=$as_save_IFS
  2797. fi
  2798. fi
  2799. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2800. if test -n "$ac_ct_CC"; then
  2801. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2802. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2803. else
  2804. { echo "$as_me:$LINENO: result: no" >&5
  2805. echo "${ECHO_T}no" >&6; }
  2806. fi
  2807. test -n "$ac_ct_CC" && break
  2808. done
  2809. if test "x$ac_ct_CC" = x; then
  2810. CC=""
  2811. else
  2812. case $cross_compiling:$ac_tool_warned in
  2813. yes:)
  2814. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2815. whose name does not start with the host triplet. If you think this
  2816. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2817. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2818. whose name does not start with the host triplet. If you think this
  2819. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2820. ac_tool_warned=yes ;;
  2821. esac
  2822. CC=$ac_ct_CC
  2823. fi
  2824. fi
  2825. fi
  2826. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2827. See \`config.log' for more details." >&5
  2828. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2829. See \`config.log' for more details." >&2;}
  2830. { (exit 1); exit 1; }; }
  2831. # Provide some information about the compiler.
  2832. echo "$as_me:$LINENO: checking for C compiler version" >&5
  2833. ac_compiler=`set X $ac_compile; echo $2`
  2834. { (ac_try="$ac_compiler --version >&5"
  2835. case "(($ac_try" in
  2836. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2837. *) ac_try_echo=$ac_try;;
  2838. esac
  2839. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2840. (eval "$ac_compiler --version >&5") 2>&5
  2841. ac_status=$?
  2842. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2843. (exit $ac_status); }
  2844. { (ac_try="$ac_compiler -v >&5"
  2845. case "(($ac_try" in
  2846. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2847. *) ac_try_echo=$ac_try;;
  2848. esac
  2849. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2850. (eval "$ac_compiler -v >&5") 2>&5
  2851. ac_status=$?
  2852. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2853. (exit $ac_status); }
  2854. { (ac_try="$ac_compiler -V >&5"
  2855. case "(($ac_try" in
  2856. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2857. *) ac_try_echo=$ac_try;;
  2858. esac
  2859. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2860. (eval "$ac_compiler -V >&5") 2>&5
  2861. ac_status=$?
  2862. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2863. (exit $ac_status); }
  2864. cat >conftest.$ac_ext <<_ACEOF
  2865. /* confdefs.h. */
  2866. _ACEOF
  2867. cat confdefs.h >>conftest.$ac_ext
  2868. cat >>conftest.$ac_ext <<_ACEOF
  2869. /* end confdefs.h. */
  2870. int
  2871. main ()
  2872. {
  2873. ;
  2874. return 0;
  2875. }
  2876. _ACEOF
  2877. ac_clean_files_save=$ac_clean_files
  2878. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2879. # Try to create an executable without -o first, disregard a.out.
  2880. # It will help us diagnose broken compilers, and finding out an intuition
  2881. # of exeext.
  2882. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2883. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  2884. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2885. #
  2886. # List of possible output files, starting from the most likely.
  2887. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2888. # only as a last resort. b.out is created by i960 compilers.
  2889. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2890. #
  2891. # The IRIX 6 linker writes into existing files which may not be
  2892. # executable, retaining their permissions. Remove them first so a
  2893. # subsequent execution test works.
  2894. ac_rmfiles=
  2895. for ac_file in $ac_files
  2896. do
  2897. case $ac_file in
  2898. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2899. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2900. esac
  2901. done
  2902. rm -f $ac_rmfiles
  2903. if { (ac_try="$ac_link_default"
  2904. case "(($ac_try" in
  2905. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2906. *) ac_try_echo=$ac_try;;
  2907. esac
  2908. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2909. (eval "$ac_link_default") 2>&5
  2910. ac_status=$?
  2911. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2912. (exit $ac_status); }; then
  2913. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2914. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2915. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2916. # so that the user can short-circuit this test for compilers unknown to
  2917. # Autoconf.
  2918. for ac_file in $ac_files ''
  2919. do
  2920. test -f "$ac_file" || continue
  2921. case $ac_file in
  2922. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2923. ;;
  2924. [ab].out )
  2925. # We found the default executable, but exeext='' is most
  2926. # certainly right.
  2927. break;;
  2928. *.* )
  2929. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2930. then :; else
  2931. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2932. fi
  2933. # We set ac_cv_exeext here because the later test for it is not
  2934. # safe: cross compilers may not add the suffix if given an `-o'
  2935. # argument, so we may need to know it at that point already.
  2936. # Even if this section looks crufty: it has the advantage of
  2937. # actually working.
  2938. break;;
  2939. * )
  2940. break;;
  2941. esac
  2942. done
  2943. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2944. else
  2945. ac_file=''
  2946. fi
  2947. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2948. echo "${ECHO_T}$ac_file" >&6; }
  2949. if test -z "$ac_file"; then
  2950. echo "$as_me: failed program was:" >&5
  2951. sed 's/^/| /' conftest.$ac_ext >&5
  2952. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2953. See \`config.log' for more details." >&5
  2954. echo "$as_me: error: C compiler cannot create executables
  2955. See \`config.log' for more details." >&2;}
  2956. { (exit 77); exit 77; }; }
  2957. fi
  2958. ac_exeext=$ac_cv_exeext
  2959. # Check that the compiler produces executables we can run. If not, either
  2960. # the compiler is broken, or we cross compile.
  2961. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2962. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  2963. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2964. # If not cross compiling, check that we can run a simple program.
  2965. if test "$cross_compiling" != yes; then
  2966. if { ac_try='./$ac_file'
  2967. { (case "(($ac_try" in
  2968. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2969. *) ac_try_echo=$ac_try;;
  2970. esac
  2971. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2972. (eval "$ac_try") 2>&5
  2973. ac_status=$?
  2974. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2975. (exit $ac_status); }; }; then
  2976. cross_compiling=no
  2977. else
  2978. if test "$cross_compiling" = maybe; then
  2979. cross_compiling=yes
  2980. else
  2981. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2982. If you meant to cross compile, use \`--host'.
  2983. See \`config.log' for more details." >&5
  2984. echo "$as_me: error: cannot run C compiled programs.
  2985. If you meant to cross compile, use \`--host'.
  2986. See \`config.log' for more details." >&2;}
  2987. { (exit 1); exit 1; }; }
  2988. fi
  2989. fi
  2990. fi
  2991. { echo "$as_me:$LINENO: result: yes" >&5
  2992. echo "${ECHO_T}yes" >&6; }
  2993. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2994. ac_clean_files=$ac_clean_files_save
  2995. # Check that the compiler produces executables we can run. If not, either
  2996. # the compiler is broken, or we cross compile.
  2997. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2998. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2999. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  3000. echo "${ECHO_T}$cross_compiling" >&6; }
  3001. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  3002. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  3003. if { (ac_try="$ac_link"
  3004. case "(($ac_try" in
  3005. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3006. *) ac_try_echo=$ac_try;;
  3007. esac
  3008. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3009. (eval "$ac_link") 2>&5
  3010. ac_status=$?
  3011. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3012. (exit $ac_status); }; then
  3013. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3014. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3015. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3016. # `rm'.
  3017. for ac_file in conftest.exe conftest conftest.*; do
  3018. test -f "$ac_file" || continue
  3019. case $ac_file in
  3020. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  3021. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3022. break;;
  3023. * ) break;;
  3024. esac
  3025. done
  3026. else
  3027. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  3028. See \`config.log' for more details." >&5
  3029. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  3030. See \`config.log' for more details." >&2;}
  3031. { (exit 1); exit 1; }; }
  3032. fi
  3033. rm -f conftest$ac_cv_exeext
  3034. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  3035. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  3036. rm -f conftest.$ac_ext
  3037. EXEEXT=$ac_cv_exeext
  3038. ac_exeext=$EXEEXT
  3039. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  3040. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  3041. if test "${ac_cv_objext+set}" = set; then
  3042. echo $ECHO_N "(cached) $ECHO_C" >&6
  3043. else
  3044. cat >conftest.$ac_ext <<_ACEOF
  3045. /* confdefs.h. */
  3046. _ACEOF
  3047. cat confdefs.h >>conftest.$ac_ext
  3048. cat >>conftest.$ac_ext <<_ACEOF
  3049. /* end confdefs.h. */
  3050. int
  3051. main ()
  3052. {
  3053. ;
  3054. return 0;
  3055. }
  3056. _ACEOF
  3057. rm -f conftest.o conftest.obj
  3058. if { (ac_try="$ac_compile"
  3059. case "(($ac_try" in
  3060. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3061. *) ac_try_echo=$ac_try;;
  3062. esac
  3063. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3064. (eval "$ac_compile") 2>&5
  3065. ac_status=$?
  3066. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3067. (exit $ac_status); }; then
  3068. for ac_file in conftest.o conftest.obj conftest.*; do
  3069. test -f "$ac_file" || continue;
  3070. case $ac_file in
  3071. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  3072. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3073. break;;
  3074. esac
  3075. done
  3076. else
  3077. echo "$as_me: failed program was:" >&5
  3078. sed 's/^/| /' conftest.$ac_ext >&5
  3079. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  3080. See \`config.log' for more details." >&5
  3081. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  3082. See \`config.log' for more details." >&2;}
  3083. { (exit 1); exit 1; }; }
  3084. fi
  3085. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3086. fi
  3087. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  3088. echo "${ECHO_T}$ac_cv_objext" >&6; }
  3089. OBJEXT=$ac_cv_objext
  3090. ac_objext=$OBJEXT
  3091. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3092. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3093. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3094. echo $ECHO_N "(cached) $ECHO_C" >&6
  3095. else
  3096. cat >conftest.$ac_ext <<_ACEOF
  3097. /* confdefs.h. */
  3098. _ACEOF
  3099. cat confdefs.h >>conftest.$ac_ext
  3100. cat >>conftest.$ac_ext <<_ACEOF
  3101. /* end confdefs.h. */
  3102. int
  3103. main ()
  3104. {
  3105. #ifndef __GNUC__
  3106. choke me
  3107. #endif
  3108. ;
  3109. return 0;
  3110. }
  3111. _ACEOF
  3112. rm -f conftest.$ac_objext
  3113. if { (ac_try="$ac_compile"
  3114. case "(($ac_try" in
  3115. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3116. *) ac_try_echo=$ac_try;;
  3117. esac
  3118. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3119. (eval "$ac_compile") 2>conftest.er1
  3120. ac_status=$?
  3121. grep -v '^ *+' conftest.er1 >conftest.err
  3122. rm -f conftest.er1
  3123. cat conftest.err >&5
  3124. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3125. (exit $ac_status); } && {
  3126. test -z "$ac_c_werror_flag" ||
  3127. test ! -s conftest.err
  3128. } && test -s conftest.$ac_objext; then
  3129. ac_compiler_gnu=yes
  3130. else
  3131. echo "$as_me: failed program was:" >&5
  3132. sed 's/^/| /' conftest.$ac_ext >&5
  3133. ac_compiler_gnu=no
  3134. fi
  3135. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3136. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3137. fi
  3138. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3139. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3140. GCC=`test $ac_compiler_gnu = yes && echo yes`
  3141. ac_test_CFLAGS=${CFLAGS+set}
  3142. ac_save_CFLAGS=$CFLAGS
  3143. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3144. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3145. if test "${ac_cv_prog_cc_g+set}" = set; then
  3146. echo $ECHO_N "(cached) $ECHO_C" >&6
  3147. else
  3148. ac_save_c_werror_flag=$ac_c_werror_flag
  3149. ac_c_werror_flag=yes
  3150. ac_cv_prog_cc_g=no
  3151. CFLAGS="-g"
  3152. cat >conftest.$ac_ext <<_ACEOF
  3153. /* confdefs.h. */
  3154. _ACEOF
  3155. cat confdefs.h >>conftest.$ac_ext
  3156. cat >>conftest.$ac_ext <<_ACEOF
  3157. /* end confdefs.h. */
  3158. int
  3159. main ()
  3160. {
  3161. ;
  3162. return 0;
  3163. }
  3164. _ACEOF
  3165. rm -f conftest.$ac_objext
  3166. if { (ac_try="$ac_compile"
  3167. case "(($ac_try" in
  3168. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3169. *) ac_try_echo=$ac_try;;
  3170. esac
  3171. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3172. (eval "$ac_compile") 2>conftest.er1
  3173. ac_status=$?
  3174. grep -v '^ *+' conftest.er1 >conftest.err
  3175. rm -f conftest.er1
  3176. cat conftest.err >&5
  3177. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3178. (exit $ac_status); } && {
  3179. test -z "$ac_c_werror_flag" ||
  3180. test ! -s conftest.err
  3181. } && test -s conftest.$ac_objext; then
  3182. ac_cv_prog_cc_g=yes
  3183. else
  3184. echo "$as_me: failed program was:" >&5
  3185. sed 's/^/| /' conftest.$ac_ext >&5
  3186. CFLAGS=""
  3187. cat >conftest.$ac_ext <<_ACEOF
  3188. /* confdefs.h. */
  3189. _ACEOF
  3190. cat confdefs.h >>conftest.$ac_ext
  3191. cat >>conftest.$ac_ext <<_ACEOF
  3192. /* end confdefs.h. */
  3193. int
  3194. main ()
  3195. {
  3196. ;
  3197. return 0;
  3198. }
  3199. _ACEOF
  3200. rm -f conftest.$ac_objext
  3201. if { (ac_try="$ac_compile"
  3202. case "(($ac_try" in
  3203. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3204. *) ac_try_echo=$ac_try;;
  3205. esac
  3206. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3207. (eval "$ac_compile") 2>conftest.er1
  3208. ac_status=$?
  3209. grep -v '^ *+' conftest.er1 >conftest.err
  3210. rm -f conftest.er1
  3211. cat conftest.err >&5
  3212. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3213. (exit $ac_status); } && {
  3214. test -z "$ac_c_werror_flag" ||
  3215. test ! -s conftest.err
  3216. } && test -s conftest.$ac_objext; then
  3217. :
  3218. else
  3219. echo "$as_me: failed program was:" >&5
  3220. sed 's/^/| /' conftest.$ac_ext >&5
  3221. ac_c_werror_flag=$ac_save_c_werror_flag
  3222. CFLAGS="-g"
  3223. cat >conftest.$ac_ext <<_ACEOF
  3224. /* confdefs.h. */
  3225. _ACEOF
  3226. cat confdefs.h >>conftest.$ac_ext
  3227. cat >>conftest.$ac_ext <<_ACEOF
  3228. /* end confdefs.h. */
  3229. int
  3230. main ()
  3231. {
  3232. ;
  3233. return 0;
  3234. }
  3235. _ACEOF
  3236. rm -f conftest.$ac_objext
  3237. if { (ac_try="$ac_compile"
  3238. case "(($ac_try" in
  3239. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3240. *) ac_try_echo=$ac_try;;
  3241. esac
  3242. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3243. (eval "$ac_compile") 2>conftest.er1
  3244. ac_status=$?
  3245. grep -v '^ *+' conftest.er1 >conftest.err
  3246. rm -f conftest.er1
  3247. cat conftest.err >&5
  3248. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3249. (exit $ac_status); } && {
  3250. test -z "$ac_c_werror_flag" ||
  3251. test ! -s conftest.err
  3252. } && test -s conftest.$ac_objext; then
  3253. ac_cv_prog_cc_g=yes
  3254. else
  3255. echo "$as_me: failed program was:" >&5
  3256. sed 's/^/| /' conftest.$ac_ext >&5
  3257. fi
  3258. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3259. fi
  3260. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3261. fi
  3262. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3263. ac_c_werror_flag=$ac_save_c_werror_flag
  3264. fi
  3265. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3266. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3267. if test "$ac_test_CFLAGS" = set; then
  3268. CFLAGS=$ac_save_CFLAGS
  3269. elif test $ac_cv_prog_cc_g = yes; then
  3270. if test "$GCC" = yes; then
  3271. CFLAGS="-g -O2"
  3272. else
  3273. CFLAGS="-g"
  3274. fi
  3275. else
  3276. if test "$GCC" = yes; then
  3277. CFLAGS="-O2"
  3278. else
  3279. CFLAGS=
  3280. fi
  3281. fi
  3282. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3283. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3284. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3285. echo $ECHO_N "(cached) $ECHO_C" >&6
  3286. else
  3287. ac_cv_prog_cc_c89=no
  3288. ac_save_CC=$CC
  3289. cat >conftest.$ac_ext <<_ACEOF
  3290. /* confdefs.h. */
  3291. _ACEOF
  3292. cat confdefs.h >>conftest.$ac_ext
  3293. cat >>conftest.$ac_ext <<_ACEOF
  3294. /* end confdefs.h. */
  3295. #include <stdarg.h>
  3296. #include <stdio.h>
  3297. #include <sys/types.h>
  3298. #include <sys/stat.h>
  3299. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3300. struct buf { int x; };
  3301. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3302. static char *e (p, i)
  3303. char **p;
  3304. int i;
  3305. {
  3306. return p[i];
  3307. }
  3308. static char *f (char * (*g) (char **, int), char **p, ...)
  3309. {
  3310. char *s;
  3311. va_list v;
  3312. va_start (v,p);
  3313. s = g (p, va_arg (v,int));
  3314. va_end (v);
  3315. return s;
  3316. }
  3317. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3318. function prototypes and stuff, but not '\xHH' hex character constants.
  3319. These don't provoke an error unfortunately, instead are silently treated
  3320. as 'x'. The following induces an error, until -std is added to get
  3321. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3322. array size at least. It's necessary to write '\x00'==0 to get something
  3323. that's true only with -std. */
  3324. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3325. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3326. inside strings and character constants. */
  3327. #define FOO(x) 'x'
  3328. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3329. int test (int i, double x);
  3330. struct s1 {int (*f) (int a);};
  3331. struct s2 {int (*f) (double a);};
  3332. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3333. int argc;
  3334. char **argv;
  3335. int
  3336. main ()
  3337. {
  3338. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3339. ;
  3340. return 0;
  3341. }
  3342. _ACEOF
  3343. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3344. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3345. do
  3346. CC="$ac_save_CC $ac_arg"
  3347. rm -f conftest.$ac_objext
  3348. if { (ac_try="$ac_compile"
  3349. case "(($ac_try" in
  3350. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3351. *) ac_try_echo=$ac_try;;
  3352. esac
  3353. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3354. (eval "$ac_compile") 2>conftest.er1
  3355. ac_status=$?
  3356. grep -v '^ *+' conftest.er1 >conftest.err
  3357. rm -f conftest.er1
  3358. cat conftest.err >&5
  3359. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3360. (exit $ac_status); } && {
  3361. test -z "$ac_c_werror_flag" ||
  3362. test ! -s conftest.err
  3363. } && test -s conftest.$ac_objext; then
  3364. ac_cv_prog_cc_c89=$ac_arg
  3365. else
  3366. echo "$as_me: failed program was:" >&5
  3367. sed 's/^/| /' conftest.$ac_ext >&5
  3368. fi
  3369. rm -f core conftest.err conftest.$ac_objext
  3370. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3371. done
  3372. rm -f conftest.$ac_ext
  3373. CC=$ac_save_CC
  3374. fi
  3375. # AC_CACHE_VAL
  3376. case "x$ac_cv_prog_cc_c89" in
  3377. x)
  3378. { echo "$as_me:$LINENO: result: none needed" >&5
  3379. echo "${ECHO_T}none needed" >&6; } ;;
  3380. xno)
  3381. { echo "$as_me:$LINENO: result: unsupported" >&5
  3382. echo "${ECHO_T}unsupported" >&6; } ;;
  3383. *)
  3384. CC="$CC $ac_cv_prog_cc_c89"
  3385. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3386. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3387. esac
  3388. ac_ext=c
  3389. ac_cpp='$CPP $CPPFLAGS'
  3390. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3391. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3392. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3393. depcc="$CC" am_compiler_list=
  3394. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3395. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3396. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3397. echo $ECHO_N "(cached) $ECHO_C" >&6
  3398. else
  3399. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3400. # We make a subdir and do the tests there. Otherwise we can end up
  3401. # making bogus files that we don't know about and never remove. For
  3402. # instance it was reported that on HP-UX the gcc test will end up
  3403. # making a dummy file named `D' -- because `-MD' means `put the output
  3404. # in D'.
  3405. mkdir conftest.dir
  3406. # Copy depcomp to subdir because otherwise we won't find it if we're
  3407. # using a relative directory.
  3408. cp "$am_depcomp" conftest.dir
  3409. cd conftest.dir
  3410. # We will build objects and dependencies in a subdirectory because
  3411. # it helps to detect inapplicable dependency modes. For instance
  3412. # both Tru64's cc and ICC support -MD to output dependencies as a
  3413. # side effect of compilation, but ICC will put the dependencies in
  3414. # the current directory while Tru64 will put them in the object
  3415. # directory.
  3416. mkdir sub
  3417. am_cv_CC_dependencies_compiler_type=none
  3418. if test "$am_compiler_list" = ""; then
  3419. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3420. fi
  3421. for depmode in $am_compiler_list; do
  3422. # Setup a source with many dependencies, because some compilers
  3423. # like to wrap large dependency lists on column 80 (with \), and
  3424. # we should not choose a depcomp mode which is confused by this.
  3425. #
  3426. # We need to recreate these files for each test, as the compiler may
  3427. # overwrite some of them when testing with obscure command lines.
  3428. # This happens at least with the AIX C compiler.
  3429. : > sub/conftest.c
  3430. for i in 1 2 3 4 5 6; do
  3431. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3432. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3433. # Solaris 8's {/usr,}/bin/sh.
  3434. touch sub/conftst$i.h
  3435. done
  3436. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3437. case $depmode in
  3438. nosideeffect)
  3439. # after this tag, mechanisms are not by side-effect, so they'll
  3440. # only be used when explicitly requested
  3441. if test "x$enable_dependency_tracking" = xyes; then
  3442. continue
  3443. else
  3444. break
  3445. fi
  3446. ;;
  3447. none) break ;;
  3448. esac
  3449. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3450. # mode. It turns out that the SunPro C++ compiler does not properly
  3451. # handle `-M -o', and we need to detect this.
  3452. if depmode=$depmode \
  3453. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3454. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3455. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3456. >/dev/null 2>conftest.err &&
  3457. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3458. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3459. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3460. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3461. # icc doesn't choke on unknown options, it will just issue warnings
  3462. # or remarks (even with -Werror). So we grep stderr for any message
  3463. # that says an option was ignored or not supported.
  3464. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3465. # icc: Command line warning: ignoring option '-M'; no argument required
  3466. # The diagnosis changed in icc 8.0:
  3467. # icc: Command line remark: option '-MP' not supported
  3468. if (grep 'ignoring option' conftest.err ||
  3469. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3470. am_cv_CC_dependencies_compiler_type=$depmode
  3471. break
  3472. fi
  3473. fi
  3474. done
  3475. cd ..
  3476. rm -rf conftest.dir
  3477. else
  3478. am_cv_CC_dependencies_compiler_type=none
  3479. fi
  3480. fi
  3481. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3482. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3483. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3484. if
  3485. test "x$enable_dependency_tracking" != xno \
  3486. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3487. am__fastdepCC_TRUE=
  3488. am__fastdepCC_FALSE='#'
  3489. else
  3490. am__fastdepCC_TRUE='#'
  3491. am__fastdepCC_FALSE=
  3492. fi
  3493. { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  3494. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  3495. if test "${lt_cv_path_SED+set}" = set; then
  3496. echo $ECHO_N "(cached) $ECHO_C" >&6
  3497. else
  3498. # Loop through the user's path and test for sed and gsed.
  3499. # Then use that list of sed's as ones to test for truncation.
  3500. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3501. for as_dir in $PATH
  3502. do
  3503. IFS=$as_save_IFS
  3504. test -z "$as_dir" && as_dir=.
  3505. for lt_ac_prog in sed gsed; do
  3506. for ac_exec_ext in '' $ac_executable_extensions; do
  3507. if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
  3508. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  3509. fi
  3510. done
  3511. done
  3512. done
  3513. IFS=$as_save_IFS
  3514. lt_ac_max=0
  3515. lt_ac_count=0
  3516. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  3517. # along with /bin/sed that truncates output.
  3518. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  3519. test ! -f $lt_ac_sed && continue
  3520. cat /dev/null > conftest.in
  3521. lt_ac_count=0
  3522. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  3523. # Check for GNU sed and select it if it is found.
  3524. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  3525. lt_cv_path_SED=$lt_ac_sed
  3526. break
  3527. fi
  3528. while true; do
  3529. cat conftest.in conftest.in >conftest.tmp
  3530. mv conftest.tmp conftest.in
  3531. cp conftest.in conftest.nl
  3532. echo >>conftest.nl
  3533. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  3534. cmp -s conftest.out conftest.nl || break
  3535. # 10000 chars as input seems more than enough
  3536. test $lt_ac_count -gt 10 && break
  3537. lt_ac_count=`expr $lt_ac_count + 1`
  3538. if test $lt_ac_count -gt $lt_ac_max; then
  3539. lt_ac_max=$lt_ac_count
  3540. lt_cv_path_SED=$lt_ac_sed
  3541. fi
  3542. done
  3543. done
  3544. fi
  3545. SED=$lt_cv_path_SED
  3546. { echo "$as_me:$LINENO: result: $SED" >&5
  3547. echo "${ECHO_T}$SED" >&6; }
  3548. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  3549. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  3550. if test "${ac_cv_path_GREP+set}" = set; then
  3551. echo $ECHO_N "(cached) $ECHO_C" >&6
  3552. else
  3553. # Extract the first word of "grep ggrep" to use in msg output
  3554. if test -z "$GREP"; then
  3555. set dummy grep ggrep; ac_prog_name=$2
  3556. if test "${ac_cv_path_GREP+set}" = set; then
  3557. echo $ECHO_N "(cached) $ECHO_C" >&6
  3558. else
  3559. ac_path_GREP_found=false
  3560. # Loop through the user's path and test for each of PROGNAME-LIST
  3561. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3562. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3563. do
  3564. IFS=$as_save_IFS
  3565. test -z "$as_dir" && as_dir=.
  3566. for ac_prog in grep ggrep; do
  3567. for ac_exec_ext in '' $ac_executable_extensions; do
  3568. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3569. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3570. # Check for GNU ac_path_GREP and select it if it is found.
  3571. # Check for GNU $ac_path_GREP
  3572. case `"$ac_path_GREP" --version 2>&1` in
  3573. *GNU*)
  3574. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3575. *)
  3576. ac_count=0
  3577. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3578. while :
  3579. do
  3580. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3581. mv "conftest.tmp" "conftest.in"
  3582. cp "conftest.in" "conftest.nl"
  3583. echo 'GREP' >> "conftest.nl"
  3584. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3585. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3586. ac_count=`expr $ac_count + 1`
  3587. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3588. # Best one so far, save it but keep looking for a better one
  3589. ac_cv_path_GREP="$ac_path_GREP"
  3590. ac_path_GREP_max=$ac_count
  3591. fi
  3592. # 10*(2^10) chars as input seems more than enough
  3593. test $ac_count -gt 10 && break
  3594. done
  3595. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3596. esac
  3597. $ac_path_GREP_found && break 3
  3598. done
  3599. done
  3600. done
  3601. IFS=$as_save_IFS
  3602. fi
  3603. GREP="$ac_cv_path_GREP"
  3604. if test -z "$GREP"; then
  3605. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3606. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3607. { (exit 1); exit 1; }; }
  3608. fi
  3609. else
  3610. ac_cv_path_GREP=$GREP
  3611. fi
  3612. fi
  3613. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  3614. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  3615. GREP="$ac_cv_path_GREP"
  3616. { echo "$as_me:$LINENO: checking for egrep" >&5
  3617. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  3618. if test "${ac_cv_path_EGREP+set}" = set; then
  3619. echo $ECHO_N "(cached) $ECHO_C" >&6
  3620. else
  3621. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3622. then ac_cv_path_EGREP="$GREP -E"
  3623. else
  3624. # Extract the first word of "egrep" to use in msg output
  3625. if test -z "$EGREP"; then
  3626. set dummy egrep; ac_prog_name=$2
  3627. if test "${ac_cv_path_EGREP+set}" = set; then
  3628. echo $ECHO_N "(cached) $ECHO_C" >&6
  3629. else
  3630. ac_path_EGREP_found=false
  3631. # Loop through the user's path and test for each of PROGNAME-LIST
  3632. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3633. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3634. do
  3635. IFS=$as_save_IFS
  3636. test -z "$as_dir" && as_dir=.
  3637. for ac_prog in egrep; do
  3638. for ac_exec_ext in '' $ac_executable_extensions; do
  3639. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3640. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3641. # Check for GNU ac_path_EGREP and select it if it is found.
  3642. # Check for GNU $ac_path_EGREP
  3643. case `"$ac_path_EGREP" --version 2>&1` in
  3644. *GNU*)
  3645. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3646. *)
  3647. ac_count=0
  3648. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3649. while :
  3650. do
  3651. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3652. mv "conftest.tmp" "conftest.in"
  3653. cp "conftest.in" "conftest.nl"
  3654. echo 'EGREP' >> "conftest.nl"
  3655. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3656. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3657. ac_count=`expr $ac_count + 1`
  3658. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3659. # Best one so far, save it but keep looking for a better one
  3660. ac_cv_path_EGREP="$ac_path_EGREP"
  3661. ac_path_EGREP_max=$ac_count
  3662. fi
  3663. # 10*(2^10) chars as input seems more than enough
  3664. test $ac_count -gt 10 && break
  3665. done
  3666. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3667. esac
  3668. $ac_path_EGREP_found && break 3
  3669. done
  3670. done
  3671. done
  3672. IFS=$as_save_IFS
  3673. fi
  3674. EGREP="$ac_cv_path_EGREP"
  3675. if test -z "$EGREP"; then
  3676. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3677. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3678. { (exit 1); exit 1; }; }
  3679. fi
  3680. else
  3681. ac_cv_path_EGREP=$EGREP
  3682. fi
  3683. fi
  3684. fi
  3685. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  3686. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  3687. EGREP="$ac_cv_path_EGREP"
  3688. # Check whether --with-gnu-ld was given.
  3689. if test "${with_gnu_ld+set}" = set; then
  3690. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3691. else
  3692. with_gnu_ld=no
  3693. fi
  3694. ac_prog=ld
  3695. if test "$GCC" = yes; then
  3696. # Check if gcc -print-prog-name=ld gives a path.
  3697. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  3698. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  3699. case $host in
  3700. *-*-mingw*)
  3701. # gcc leaves a trailing carriage return which upsets mingw
  3702. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3703. *)
  3704. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3705. esac
  3706. case $ac_prog in
  3707. # Accept absolute paths.
  3708. [\\/]* | ?:[\\/]*)
  3709. re_direlt='/[^/][^/]*/\.\./'
  3710. # Canonicalize the pathname of ld
  3711. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3712. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3713. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3714. done
  3715. test -z "$LD" && LD="$ac_prog"
  3716. ;;
  3717. "")
  3718. # If it fails, then pretend we aren't using GCC.
  3719. ac_prog=ld
  3720. ;;
  3721. *)
  3722. # If it is relative, then search for the first ld in PATH.
  3723. with_gnu_ld=unknown
  3724. ;;
  3725. esac
  3726. elif test "$with_gnu_ld" = yes; then
  3727. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  3728. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  3729. else
  3730. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  3731. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  3732. fi
  3733. if test "${lt_cv_path_LD+set}" = set; then
  3734. echo $ECHO_N "(cached) $ECHO_C" >&6
  3735. else
  3736. if test -z "$LD"; then
  3737. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3738. for ac_dir in $PATH; do
  3739. IFS="$lt_save_ifs"
  3740. test -z "$ac_dir" && ac_dir=.
  3741. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3742. lt_cv_path_LD="$ac_dir/$ac_prog"
  3743. # Check to see if the program is GNU ld. I'd rather use --version,
  3744. # but apparently some variants of GNU ld only accept -v.
  3745. # Break only if it was the GNU/non-GNU ld that we prefer.
  3746. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3747. *GNU* | *'with BFD'*)
  3748. test "$with_gnu_ld" != no && break
  3749. ;;
  3750. *)
  3751. test "$with_gnu_ld" != yes && break
  3752. ;;
  3753. esac
  3754. fi
  3755. done
  3756. IFS="$lt_save_ifs"
  3757. else
  3758. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3759. fi
  3760. fi
  3761. LD="$lt_cv_path_LD"
  3762. if test -n "$LD"; then
  3763. { echo "$as_me:$LINENO: result: $LD" >&5
  3764. echo "${ECHO_T}$LD" >&6; }
  3765. else
  3766. { echo "$as_me:$LINENO: result: no" >&5
  3767. echo "${ECHO_T}no" >&6; }
  3768. fi
  3769. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  3770. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  3771. { (exit 1); exit 1; }; }
  3772. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  3773. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  3774. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  3775. echo $ECHO_N "(cached) $ECHO_C" >&6
  3776. else
  3777. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3778. case `$LD -v 2>&1 </dev/null` in
  3779. *GNU* | *'with BFD'*)
  3780. lt_cv_prog_gnu_ld=yes
  3781. ;;
  3782. *)
  3783. lt_cv_prog_gnu_ld=no
  3784. ;;
  3785. esac
  3786. fi
  3787. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  3788. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  3789. with_gnu_ld=$lt_cv_prog_gnu_ld
  3790. { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  3791. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
  3792. if test "${lt_cv_ld_reload_flag+set}" = set; then
  3793. echo $ECHO_N "(cached) $ECHO_C" >&6
  3794. else
  3795. lt_cv_ld_reload_flag='-r'
  3796. fi
  3797. { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  3798. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
  3799. reload_flag=$lt_cv_ld_reload_flag
  3800. case $reload_flag in
  3801. "" | " "*) ;;
  3802. *) reload_flag=" $reload_flag" ;;
  3803. esac
  3804. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3805. case $host_os in
  3806. darwin*)
  3807. if test "$GCC" = yes; then
  3808. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  3809. else
  3810. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3811. fi
  3812. ;;
  3813. esac
  3814. { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  3815. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
  3816. if test "${lt_cv_path_NM+set}" = set; then
  3817. echo $ECHO_N "(cached) $ECHO_C" >&6
  3818. else
  3819. if test -n "$NM"; then
  3820. # Let the user override the test.
  3821. lt_cv_path_NM="$NM"
  3822. else
  3823. lt_nm_to_check="${ac_tool_prefix}nm"
  3824. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3825. lt_nm_to_check="$lt_nm_to_check nm"
  3826. fi
  3827. for lt_tmp_nm in $lt_nm_to_check; do
  3828. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3829. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3830. IFS="$lt_save_ifs"
  3831. test -z "$ac_dir" && ac_dir=.
  3832. tmp_nm="$ac_dir/$lt_tmp_nm"
  3833. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3834. # Check to see if the nm accepts a BSD-compat flag.
  3835. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3836. # nm: unknown option "B" ignored
  3837. # Tru64's nm complains that /dev/null is an invalid object file
  3838. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3839. */dev/null* | *'Invalid file or object type'*)
  3840. lt_cv_path_NM="$tmp_nm -B"
  3841. break
  3842. ;;
  3843. *)
  3844. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3845. */dev/null*)
  3846. lt_cv_path_NM="$tmp_nm -p"
  3847. break
  3848. ;;
  3849. *)
  3850. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3851. continue # so that we can try to find one that supports BSD flags
  3852. ;;
  3853. esac
  3854. ;;
  3855. esac
  3856. fi
  3857. done
  3858. IFS="$lt_save_ifs"
  3859. done
  3860. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  3861. fi
  3862. fi
  3863. { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  3864. echo "${ECHO_T}$lt_cv_path_NM" >&6; }
  3865. NM="$lt_cv_path_NM"
  3866. { echo "$as_me:$LINENO: checking whether ln -s works" >&5
  3867. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  3868. LN_S=$as_ln_s
  3869. if test "$LN_S" = "ln -s"; then
  3870. { echo "$as_me:$LINENO: result: yes" >&5
  3871. echo "${ECHO_T}yes" >&6; }
  3872. else
  3873. { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  3874. echo "${ECHO_T}no, using $LN_S" >&6; }
  3875. fi
  3876. { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  3877. echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
  3878. if test "${lt_cv_deplibs_check_method+set}" = set; then
  3879. echo $ECHO_N "(cached) $ECHO_C" >&6
  3880. else
  3881. lt_cv_file_magic_cmd='$MAGIC_CMD'
  3882. lt_cv_file_magic_test_file=
  3883. lt_cv_deplibs_check_method='unknown'
  3884. # Need to set the preceding variable on all platforms that support
  3885. # interlibrary dependencies.
  3886. # 'none' -- dependencies not supported.
  3887. # `unknown' -- same as none, but documents that we really don't know.
  3888. # 'pass_all' -- all dependencies passed with no checks.
  3889. # 'test_compile' -- check by making test program.
  3890. # 'file_magic [[regex]]' -- check by looking for files in library path
  3891. # which responds to the $file_magic_cmd with a given extended regex.
  3892. # If you have `file' or equivalent on your system and you're not sure
  3893. # whether `pass_all' will *always* work, you probably want this one.
  3894. case $host_os in
  3895. aix4* | aix5*)
  3896. lt_cv_deplibs_check_method=pass_all
  3897. ;;
  3898. beos*)
  3899. lt_cv_deplibs_check_method=pass_all
  3900. ;;
  3901. bsdi[45]*)
  3902. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  3903. lt_cv_file_magic_cmd='/usr/bin/file -L'
  3904. lt_cv_file_magic_test_file=/shlib/libc.so
  3905. ;;
  3906. cygwin*)
  3907. # func_win32_libid is a shell function defined in ltmain.sh
  3908. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3909. lt_cv_file_magic_cmd='func_win32_libid'
  3910. ;;
  3911. mingw* | pw32*)
  3912. # Base MSYS/MinGW do not provide the 'file' command needed by
  3913. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  3914. # unless we find 'file', for example because we are cross-compiling.
  3915. if ( file / ) >/dev/null 2>&1; then
  3916. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3917. lt_cv_file_magic_cmd='func_win32_libid'
  3918. else
  3919. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  3920. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3921. fi
  3922. ;;
  3923. darwin* | rhapsody*)
  3924. lt_cv_deplibs_check_method=pass_all
  3925. ;;
  3926. freebsd* | dragonfly*)
  3927. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3928. case $host_cpu in
  3929. i*86 )
  3930. # Not sure whether the presence of OpenBSD here was a mistake.
  3931. # Let's accept both of them until this is cleared up.
  3932. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  3933. lt_cv_file_magic_cmd=/usr/bin/file
  3934. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3935. ;;
  3936. esac
  3937. else
  3938. lt_cv_deplibs_check_method=pass_all
  3939. fi
  3940. ;;
  3941. gnu*)
  3942. lt_cv_deplibs_check_method=pass_all
  3943. ;;
  3944. hpux10.20* | hpux11*)
  3945. lt_cv_file_magic_cmd=/usr/bin/file
  3946. case $host_cpu in
  3947. ia64*)
  3948. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  3949. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3950. ;;
  3951. hppa*64*)
  3952. 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]'
  3953. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  3954. ;;
  3955. *)
  3956. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  3957. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3958. ;;
  3959. esac
  3960. ;;
  3961. interix[3-9]*)
  3962. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  3963. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  3964. ;;
  3965. irix5* | irix6* | nonstopux*)
  3966. case $LD in
  3967. *-32|*"-32 ") libmagic=32-bit;;
  3968. *-n32|*"-n32 ") libmagic=N32;;
  3969. *-64|*"-64 ") libmagic=64-bit;;
  3970. *) libmagic=never-match;;
  3971. esac
  3972. lt_cv_deplibs_check_method=pass_all
  3973. ;;
  3974. # This must be Linux ELF.
  3975. linux* | k*bsd*-gnu)
  3976. lt_cv_deplibs_check_method=pass_all
  3977. ;;
  3978. netbsd*)
  3979. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3980. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3981. else
  3982. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  3983. fi
  3984. ;;
  3985. newos6*)
  3986. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  3987. lt_cv_file_magic_cmd=/usr/bin/file
  3988. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3989. ;;
  3990. nto-qnx*)
  3991. lt_cv_deplibs_check_method=unknown
  3992. ;;
  3993. openbsd*)
  3994. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3995. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  3996. else
  3997. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3998. fi
  3999. ;;
  4000. osf3* | osf4* | osf5*)
  4001. lt_cv_deplibs_check_method=pass_all
  4002. ;;
  4003. rdos*)
  4004. lt_cv_deplibs_check_method=pass_all
  4005. ;;
  4006. solaris*)
  4007. lt_cv_deplibs_check_method=pass_all
  4008. ;;
  4009. sysv4 | sysv4.3*)
  4010. case $host_vendor in
  4011. motorola)
  4012. 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]'
  4013. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4014. ;;
  4015. ncr)
  4016. lt_cv_deplibs_check_method=pass_all
  4017. ;;
  4018. sequent)
  4019. lt_cv_file_magic_cmd='/bin/file'
  4020. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4021. ;;
  4022. sni)
  4023. lt_cv_file_magic_cmd='/bin/file'
  4024. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4025. lt_cv_file_magic_test_file=/lib/libc.so
  4026. ;;
  4027. siemens)
  4028. lt_cv_deplibs_check_method=pass_all
  4029. ;;
  4030. pc)
  4031. lt_cv_deplibs_check_method=pass_all
  4032. ;;
  4033. esac
  4034. ;;
  4035. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4036. lt_cv_deplibs_check_method=pass_all
  4037. ;;
  4038. esac
  4039. fi
  4040. { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  4041. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
  4042. file_magic_cmd=$lt_cv_file_magic_cmd
  4043. deplibs_check_method=$lt_cv_deplibs_check_method
  4044. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4045. # If no C compiler was specified, use CC.
  4046. LTCC=${LTCC-"$CC"}
  4047. # If no C compiler flags were specified, use CFLAGS.
  4048. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4049. # Allow CC to be a program name with arguments.
  4050. compiler=$CC
  4051. # Check whether --enable-libtool-lock was given.
  4052. if test "${enable_libtool_lock+set}" = set; then
  4053. enableval=$enable_libtool_lock;
  4054. fi
  4055. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  4056. # Some flags need to be propagated to the compiler or linker for good
  4057. # libtool support.
  4058. case $host in
  4059. ia64-*-hpux*)
  4060. # Find out which ABI we are using.
  4061. echo 'int i;' > conftest.$ac_ext
  4062. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4063. (eval $ac_compile) 2>&5
  4064. ac_status=$?
  4065. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4066. (exit $ac_status); }; then
  4067. case `/usr/bin/file conftest.$ac_objext` in
  4068. *ELF-32*)
  4069. HPUX_IA64_MODE="32"
  4070. ;;
  4071. *ELF-64*)
  4072. HPUX_IA64_MODE="64"
  4073. ;;
  4074. esac
  4075. fi
  4076. rm -rf conftest*
  4077. ;;
  4078. *-*-irix6*)
  4079. # Find out which ABI we are using.
  4080. echo '#line 4587 "configure"' > conftest.$ac_ext
  4081. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4082. (eval $ac_compile) 2>&5
  4083. ac_status=$?
  4084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4085. (exit $ac_status); }; then
  4086. if test "$lt_cv_prog_gnu_ld" = yes; then
  4087. case `/usr/bin/file conftest.$ac_objext` in
  4088. *32-bit*)
  4089. LD="${LD-ld} -melf32bsmip"
  4090. ;;
  4091. *N32*)
  4092. LD="${LD-ld} -melf32bmipn32"
  4093. ;;
  4094. *64-bit*)
  4095. LD="${LD-ld} -melf64bmip"
  4096. ;;
  4097. esac
  4098. else
  4099. case `/usr/bin/file conftest.$ac_objext` in
  4100. *32-bit*)
  4101. LD="${LD-ld} -32"
  4102. ;;
  4103. *N32*)
  4104. LD="${LD-ld} -n32"
  4105. ;;
  4106. *64-bit*)
  4107. LD="${LD-ld} -64"
  4108. ;;
  4109. esac
  4110. fi
  4111. fi
  4112. rm -rf conftest*
  4113. ;;
  4114. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  4115. s390*-*linux*|sparc*-*linux*)
  4116. # Find out which ABI we are using.
  4117. echo 'int i;' > conftest.$ac_ext
  4118. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4119. (eval $ac_compile) 2>&5
  4120. ac_status=$?
  4121. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4122. (exit $ac_status); }; then
  4123. case `/usr/bin/file conftest.o` in
  4124. *32-bit*)
  4125. case $host in
  4126. x86_64-*kfreebsd*-gnu)
  4127. LD="${LD-ld} -m elf_i386_fbsd"
  4128. ;;
  4129. x86_64-*linux*)
  4130. LD="${LD-ld} -m elf_i386"
  4131. ;;
  4132. ppc64-*linux*|powerpc64-*linux*)
  4133. LD="${LD-ld} -m elf32ppclinux"
  4134. ;;
  4135. s390x-*linux*)
  4136. LD="${LD-ld} -m elf_s390"
  4137. ;;
  4138. sparc64-*linux*)
  4139. LD="${LD-ld} -m elf32_sparc"
  4140. ;;
  4141. esac
  4142. ;;
  4143. *64-bit*)
  4144. case $host in
  4145. x86_64-*kfreebsd*-gnu)
  4146. LD="${LD-ld} -m elf_x86_64_fbsd"
  4147. ;;
  4148. x86_64-*linux*)
  4149. LD="${LD-ld} -m elf_x86_64"
  4150. ;;
  4151. ppc*-*linux*|powerpc*-*linux*)
  4152. LD="${LD-ld} -m elf64ppc"
  4153. ;;
  4154. s390*-*linux*)
  4155. LD="${LD-ld} -m elf64_s390"
  4156. ;;
  4157. sparc*-*linux*)
  4158. LD="${LD-ld} -m elf64_sparc"
  4159. ;;
  4160. esac
  4161. ;;
  4162. esac
  4163. fi
  4164. rm -rf conftest*
  4165. ;;
  4166. *-*-sco3.2v5*)
  4167. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  4168. SAVE_CFLAGS="$CFLAGS"
  4169. CFLAGS="$CFLAGS -belf"
  4170. { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  4171. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
  4172. if test "${lt_cv_cc_needs_belf+set}" = set; then
  4173. echo $ECHO_N "(cached) $ECHO_C" >&6
  4174. else
  4175. ac_ext=c
  4176. ac_cpp='$CPP $CPPFLAGS'
  4177. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4178. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4179. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4180. cat >conftest.$ac_ext <<_ACEOF
  4181. /* confdefs.h. */
  4182. _ACEOF
  4183. cat confdefs.h >>conftest.$ac_ext
  4184. cat >>conftest.$ac_ext <<_ACEOF
  4185. /* end confdefs.h. */
  4186. int
  4187. main ()
  4188. {
  4189. ;
  4190. return 0;
  4191. }
  4192. _ACEOF
  4193. rm -f conftest.$ac_objext conftest$ac_exeext
  4194. if { (ac_try="$ac_link"
  4195. case "(($ac_try" in
  4196. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4197. *) ac_try_echo=$ac_try;;
  4198. esac
  4199. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4200. (eval "$ac_link") 2>conftest.er1
  4201. ac_status=$?
  4202. grep -v '^ *+' conftest.er1 >conftest.err
  4203. rm -f conftest.er1
  4204. cat conftest.err >&5
  4205. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4206. (exit $ac_status); } && {
  4207. test -z "$ac_c_werror_flag" ||
  4208. test ! -s conftest.err
  4209. } && test -s conftest$ac_exeext &&
  4210. $as_test_x conftest$ac_exeext; then
  4211. lt_cv_cc_needs_belf=yes
  4212. else
  4213. echo "$as_me: failed program was:" >&5
  4214. sed 's/^/| /' conftest.$ac_ext >&5
  4215. lt_cv_cc_needs_belf=no
  4216. fi
  4217. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4218. conftest$ac_exeext conftest.$ac_ext
  4219. ac_ext=c
  4220. ac_cpp='$CPP $CPPFLAGS'
  4221. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4222. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4223. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4224. fi
  4225. { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  4226. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
  4227. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  4228. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  4229. CFLAGS="$SAVE_CFLAGS"
  4230. fi
  4231. ;;
  4232. sparc*-*solaris*)
  4233. # Find out which ABI we are using.
  4234. echo 'int i;' > conftest.$ac_ext
  4235. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4236. (eval $ac_compile) 2>&5
  4237. ac_status=$?
  4238. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4239. (exit $ac_status); }; then
  4240. case `/usr/bin/file conftest.o` in
  4241. *64-bit*)
  4242. case $lt_cv_prog_gnu_ld in
  4243. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  4244. *) LD="${LD-ld} -64" ;;
  4245. esac
  4246. ;;
  4247. esac
  4248. fi
  4249. rm -rf conftest*
  4250. ;;
  4251. esac
  4252. need_locks="$enable_libtool_lock"
  4253. ac_ext=c
  4254. ac_cpp='$CPP $CPPFLAGS'
  4255. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4256. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4257. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4258. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4259. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  4260. # On Suns, sometimes $CPP names a directory.
  4261. if test -n "$CPP" && test -d "$CPP"; then
  4262. CPP=
  4263. fi
  4264. if test -z "$CPP"; then
  4265. if test "${ac_cv_prog_CPP+set}" = set; then
  4266. echo $ECHO_N "(cached) $ECHO_C" >&6
  4267. else
  4268. # Double quotes because CPP needs to be expanded
  4269. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4270. do
  4271. ac_preproc_ok=false
  4272. for ac_c_preproc_warn_flag in '' yes
  4273. do
  4274. # Use a header file that comes with gcc, so configuring glibc
  4275. # with a fresh cross-compiler works.
  4276. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4277. # <limits.h> exists even on freestanding compilers.
  4278. # On the NeXT, cc -E runs the code through the compiler's parser,
  4279. # not just through cpp. "Syntax error" is here to catch this case.
  4280. cat >conftest.$ac_ext <<_ACEOF
  4281. /* confdefs.h. */
  4282. _ACEOF
  4283. cat confdefs.h >>conftest.$ac_ext
  4284. cat >>conftest.$ac_ext <<_ACEOF
  4285. /* end confdefs.h. */
  4286. #ifdef __STDC__
  4287. # include <limits.h>
  4288. #else
  4289. # include <assert.h>
  4290. #endif
  4291. Syntax error
  4292. _ACEOF
  4293. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4294. case "(($ac_try" in
  4295. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4296. *) ac_try_echo=$ac_try;;
  4297. esac
  4298. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4299. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4300. ac_status=$?
  4301. grep -v '^ *+' conftest.er1 >conftest.err
  4302. rm -f conftest.er1
  4303. cat conftest.err >&5
  4304. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4305. (exit $ac_status); } >/dev/null && {
  4306. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4307. test ! -s conftest.err
  4308. }; then
  4309. :
  4310. else
  4311. echo "$as_me: failed program was:" >&5
  4312. sed 's/^/| /' conftest.$ac_ext >&5
  4313. # Broken: fails on valid input.
  4314. continue
  4315. fi
  4316. rm -f conftest.err conftest.$ac_ext
  4317. # OK, works on sane cases. Now check whether nonexistent headers
  4318. # can be detected and how.
  4319. cat >conftest.$ac_ext <<_ACEOF
  4320. /* confdefs.h. */
  4321. _ACEOF
  4322. cat confdefs.h >>conftest.$ac_ext
  4323. cat >>conftest.$ac_ext <<_ACEOF
  4324. /* end confdefs.h. */
  4325. #include <ac_nonexistent.h>
  4326. _ACEOF
  4327. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4328. case "(($ac_try" in
  4329. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4330. *) ac_try_echo=$ac_try;;
  4331. esac
  4332. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4333. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4334. ac_status=$?
  4335. grep -v '^ *+' conftest.er1 >conftest.err
  4336. rm -f conftest.er1
  4337. cat conftest.err >&5
  4338. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4339. (exit $ac_status); } >/dev/null && {
  4340. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4341. test ! -s conftest.err
  4342. }; then
  4343. # Broken: success on invalid input.
  4344. continue
  4345. else
  4346. echo "$as_me: failed program was:" >&5
  4347. sed 's/^/| /' conftest.$ac_ext >&5
  4348. # Passes both tests.
  4349. ac_preproc_ok=:
  4350. break
  4351. fi
  4352. rm -f conftest.err conftest.$ac_ext
  4353. done
  4354. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4355. rm -f conftest.err conftest.$ac_ext
  4356. if $ac_preproc_ok; then
  4357. break
  4358. fi
  4359. done
  4360. ac_cv_prog_CPP=$CPP
  4361. fi
  4362. CPP=$ac_cv_prog_CPP
  4363. else
  4364. ac_cv_prog_CPP=$CPP
  4365. fi
  4366. { echo "$as_me:$LINENO: result: $CPP" >&5
  4367. echo "${ECHO_T}$CPP" >&6; }
  4368. ac_preproc_ok=false
  4369. for ac_c_preproc_warn_flag in '' yes
  4370. do
  4371. # Use a header file that comes with gcc, so configuring glibc
  4372. # with a fresh cross-compiler works.
  4373. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4374. # <limits.h> exists even on freestanding compilers.
  4375. # On the NeXT, cc -E runs the code through the compiler's parser,
  4376. # not just through cpp. "Syntax error" is here to catch this case.
  4377. cat >conftest.$ac_ext <<_ACEOF
  4378. /* confdefs.h. */
  4379. _ACEOF
  4380. cat confdefs.h >>conftest.$ac_ext
  4381. cat >>conftest.$ac_ext <<_ACEOF
  4382. /* end confdefs.h. */
  4383. #ifdef __STDC__
  4384. # include <limits.h>
  4385. #else
  4386. # include <assert.h>
  4387. #endif
  4388. Syntax error
  4389. _ACEOF
  4390. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4391. case "(($ac_try" in
  4392. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4393. *) ac_try_echo=$ac_try;;
  4394. esac
  4395. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4396. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4397. ac_status=$?
  4398. grep -v '^ *+' conftest.er1 >conftest.err
  4399. rm -f conftest.er1
  4400. cat conftest.err >&5
  4401. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4402. (exit $ac_status); } >/dev/null && {
  4403. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4404. test ! -s conftest.err
  4405. }; then
  4406. :
  4407. else
  4408. echo "$as_me: failed program was:" >&5
  4409. sed 's/^/| /' conftest.$ac_ext >&5
  4410. # Broken: fails on valid input.
  4411. continue
  4412. fi
  4413. rm -f conftest.err conftest.$ac_ext
  4414. # OK, works on sane cases. Now check whether nonexistent headers
  4415. # can be detected and how.
  4416. cat >conftest.$ac_ext <<_ACEOF
  4417. /* confdefs.h. */
  4418. _ACEOF
  4419. cat confdefs.h >>conftest.$ac_ext
  4420. cat >>conftest.$ac_ext <<_ACEOF
  4421. /* end confdefs.h. */
  4422. #include <ac_nonexistent.h>
  4423. _ACEOF
  4424. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4425. case "(($ac_try" in
  4426. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4427. *) ac_try_echo=$ac_try;;
  4428. esac
  4429. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4430. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4431. ac_status=$?
  4432. grep -v '^ *+' conftest.er1 >conftest.err
  4433. rm -f conftest.er1
  4434. cat conftest.err >&5
  4435. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4436. (exit $ac_status); } >/dev/null && {
  4437. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4438. test ! -s conftest.err
  4439. }; then
  4440. # Broken: success on invalid input.
  4441. continue
  4442. else
  4443. echo "$as_me: failed program was:" >&5
  4444. sed 's/^/| /' conftest.$ac_ext >&5
  4445. # Passes both tests.
  4446. ac_preproc_ok=:
  4447. break
  4448. fi
  4449. rm -f conftest.err conftest.$ac_ext
  4450. done
  4451. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4452. rm -f conftest.err conftest.$ac_ext
  4453. if $ac_preproc_ok; then
  4454. :
  4455. else
  4456. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4457. See \`config.log' for more details." >&5
  4458. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4459. See \`config.log' for more details." >&2;}
  4460. { (exit 1); exit 1; }; }
  4461. fi
  4462. ac_ext=c
  4463. ac_cpp='$CPP $CPPFLAGS'
  4464. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4465. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4466. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4467. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4468. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  4469. if test "${ac_cv_header_stdc+set}" = set; then
  4470. echo $ECHO_N "(cached) $ECHO_C" >&6
  4471. else
  4472. cat >conftest.$ac_ext <<_ACEOF
  4473. /* confdefs.h. */
  4474. _ACEOF
  4475. cat confdefs.h >>conftest.$ac_ext
  4476. cat >>conftest.$ac_ext <<_ACEOF
  4477. /* end confdefs.h. */
  4478. #include <stdlib.h>
  4479. #include <stdarg.h>
  4480. #include <string.h>
  4481. #include <float.h>
  4482. int
  4483. main ()
  4484. {
  4485. ;
  4486. return 0;
  4487. }
  4488. _ACEOF
  4489. rm -f conftest.$ac_objext
  4490. if { (ac_try="$ac_compile"
  4491. case "(($ac_try" in
  4492. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4493. *) ac_try_echo=$ac_try;;
  4494. esac
  4495. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4496. (eval "$ac_compile") 2>conftest.er1
  4497. ac_status=$?
  4498. grep -v '^ *+' conftest.er1 >conftest.err
  4499. rm -f conftest.er1
  4500. cat conftest.err >&5
  4501. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4502. (exit $ac_status); } && {
  4503. test -z "$ac_c_werror_flag" ||
  4504. test ! -s conftest.err
  4505. } && test -s conftest.$ac_objext; then
  4506. ac_cv_header_stdc=yes
  4507. else
  4508. echo "$as_me: failed program was:" >&5
  4509. sed 's/^/| /' conftest.$ac_ext >&5
  4510. ac_cv_header_stdc=no
  4511. fi
  4512. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4513. if test $ac_cv_header_stdc = yes; then
  4514. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4515. cat >conftest.$ac_ext <<_ACEOF
  4516. /* confdefs.h. */
  4517. _ACEOF
  4518. cat confdefs.h >>conftest.$ac_ext
  4519. cat >>conftest.$ac_ext <<_ACEOF
  4520. /* end confdefs.h. */
  4521. #include <string.h>
  4522. _ACEOF
  4523. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4524. $EGREP "memchr" >/dev/null 2>&1; then
  4525. :
  4526. else
  4527. ac_cv_header_stdc=no
  4528. fi
  4529. rm -f conftest*
  4530. fi
  4531. if test $ac_cv_header_stdc = yes; then
  4532. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4533. cat >conftest.$ac_ext <<_ACEOF
  4534. /* confdefs.h. */
  4535. _ACEOF
  4536. cat confdefs.h >>conftest.$ac_ext
  4537. cat >>conftest.$ac_ext <<_ACEOF
  4538. /* end confdefs.h. */
  4539. #include <stdlib.h>
  4540. _ACEOF
  4541. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4542. $EGREP "free" >/dev/null 2>&1; then
  4543. :
  4544. else
  4545. ac_cv_header_stdc=no
  4546. fi
  4547. rm -f conftest*
  4548. fi
  4549. if test $ac_cv_header_stdc = yes; then
  4550. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4551. if test "$cross_compiling" = yes; then
  4552. :
  4553. else
  4554. cat >conftest.$ac_ext <<_ACEOF
  4555. /* confdefs.h. */
  4556. _ACEOF
  4557. cat confdefs.h >>conftest.$ac_ext
  4558. cat >>conftest.$ac_ext <<_ACEOF
  4559. /* end confdefs.h. */
  4560. #include <ctype.h>
  4561. #include <stdlib.h>
  4562. #if ((' ' & 0x0FF) == 0x020)
  4563. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4564. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4565. #else
  4566. # define ISLOWER(c) \
  4567. (('a' <= (c) && (c) <= 'i') \
  4568. || ('j' <= (c) && (c) <= 'r') \
  4569. || ('s' <= (c) && (c) <= 'z'))
  4570. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4571. #endif
  4572. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4573. int
  4574. main ()
  4575. {
  4576. int i;
  4577. for (i = 0; i < 256; i++)
  4578. if (XOR (islower (i), ISLOWER (i))
  4579. || toupper (i) != TOUPPER (i))
  4580. return 2;
  4581. return 0;
  4582. }
  4583. _ACEOF
  4584. rm -f conftest$ac_exeext
  4585. if { (ac_try="$ac_link"
  4586. case "(($ac_try" in
  4587. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4588. *) ac_try_echo=$ac_try;;
  4589. esac
  4590. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4591. (eval "$ac_link") 2>&5
  4592. ac_status=$?
  4593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4594. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4595. { (case "(($ac_try" in
  4596. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4597. *) ac_try_echo=$ac_try;;
  4598. esac
  4599. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4600. (eval "$ac_try") 2>&5
  4601. ac_status=$?
  4602. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4603. (exit $ac_status); }; }; then
  4604. :
  4605. else
  4606. echo "$as_me: program exited with status $ac_status" >&5
  4607. echo "$as_me: failed program was:" >&5
  4608. sed 's/^/| /' conftest.$ac_ext >&5
  4609. ( exit $ac_status )
  4610. ac_cv_header_stdc=no
  4611. fi
  4612. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4613. fi
  4614. fi
  4615. fi
  4616. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4617. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  4618. if test $ac_cv_header_stdc = yes; then
  4619. cat >>confdefs.h <<\_ACEOF
  4620. #define STDC_HEADERS 1
  4621. _ACEOF
  4622. fi
  4623. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4624. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4625. inttypes.h stdint.h unistd.h
  4626. do
  4627. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4628. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4629. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4630. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4631. echo $ECHO_N "(cached) $ECHO_C" >&6
  4632. else
  4633. cat >conftest.$ac_ext <<_ACEOF
  4634. /* confdefs.h. */
  4635. _ACEOF
  4636. cat confdefs.h >>conftest.$ac_ext
  4637. cat >>conftest.$ac_ext <<_ACEOF
  4638. /* end confdefs.h. */
  4639. $ac_includes_default
  4640. #include <$ac_header>
  4641. _ACEOF
  4642. rm -f conftest.$ac_objext
  4643. if { (ac_try="$ac_compile"
  4644. case "(($ac_try" in
  4645. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4646. *) ac_try_echo=$ac_try;;
  4647. esac
  4648. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4649. (eval "$ac_compile") 2>conftest.er1
  4650. ac_status=$?
  4651. grep -v '^ *+' conftest.er1 >conftest.err
  4652. rm -f conftest.er1
  4653. cat conftest.err >&5
  4654. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4655. (exit $ac_status); } && {
  4656. test -z "$ac_c_werror_flag" ||
  4657. test ! -s conftest.err
  4658. } && test -s conftest.$ac_objext; then
  4659. eval "$as_ac_Header=yes"
  4660. else
  4661. echo "$as_me: failed program was:" >&5
  4662. sed 's/^/| /' conftest.$ac_ext >&5
  4663. eval "$as_ac_Header=no"
  4664. fi
  4665. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4666. fi
  4667. ac_res=`eval echo '${'$as_ac_Header'}'`
  4668. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4669. echo "${ECHO_T}$ac_res" >&6; }
  4670. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4671. cat >>confdefs.h <<_ACEOF
  4672. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4673. _ACEOF
  4674. fi
  4675. done
  4676. for ac_header in dlfcn.h
  4677. do
  4678. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4679. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4680. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4681. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4682. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4683. echo $ECHO_N "(cached) $ECHO_C" >&6
  4684. fi
  4685. ac_res=`eval echo '${'$as_ac_Header'}'`
  4686. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4687. echo "${ECHO_T}$ac_res" >&6; }
  4688. else
  4689. # Is the header compilable?
  4690. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4691. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  4692. cat >conftest.$ac_ext <<_ACEOF
  4693. /* confdefs.h. */
  4694. _ACEOF
  4695. cat confdefs.h >>conftest.$ac_ext
  4696. cat >>conftest.$ac_ext <<_ACEOF
  4697. /* end confdefs.h. */
  4698. $ac_includes_default
  4699. #include <$ac_header>
  4700. _ACEOF
  4701. rm -f conftest.$ac_objext
  4702. if { (ac_try="$ac_compile"
  4703. case "(($ac_try" in
  4704. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4705. *) ac_try_echo=$ac_try;;
  4706. esac
  4707. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4708. (eval "$ac_compile") 2>conftest.er1
  4709. ac_status=$?
  4710. grep -v '^ *+' conftest.er1 >conftest.err
  4711. rm -f conftest.er1
  4712. cat conftest.err >&5
  4713. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4714. (exit $ac_status); } && {
  4715. test -z "$ac_c_werror_flag" ||
  4716. test ! -s conftest.err
  4717. } && test -s conftest.$ac_objext; then
  4718. ac_header_compiler=yes
  4719. else
  4720. echo "$as_me: failed program was:" >&5
  4721. sed 's/^/| /' conftest.$ac_ext >&5
  4722. ac_header_compiler=no
  4723. fi
  4724. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4725. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4726. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4727. # Is the header present?
  4728. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4729. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  4730. cat >conftest.$ac_ext <<_ACEOF
  4731. /* confdefs.h. */
  4732. _ACEOF
  4733. cat confdefs.h >>conftest.$ac_ext
  4734. cat >>conftest.$ac_ext <<_ACEOF
  4735. /* end confdefs.h. */
  4736. #include <$ac_header>
  4737. _ACEOF
  4738. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4739. case "(($ac_try" in
  4740. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4741. *) ac_try_echo=$ac_try;;
  4742. esac
  4743. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4744. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4745. ac_status=$?
  4746. grep -v '^ *+' conftest.er1 >conftest.err
  4747. rm -f conftest.er1
  4748. cat conftest.err >&5
  4749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4750. (exit $ac_status); } >/dev/null && {
  4751. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4752. test ! -s conftest.err
  4753. }; then
  4754. ac_header_preproc=yes
  4755. else
  4756. echo "$as_me: failed program was:" >&5
  4757. sed 's/^/| /' conftest.$ac_ext >&5
  4758. ac_header_preproc=no
  4759. fi
  4760. rm -f conftest.err conftest.$ac_ext
  4761. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4762. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4763. # So? What about this header?
  4764. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4765. yes:no: )
  4766. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4767. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4768. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4769. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4770. ac_header_preproc=yes
  4771. ;;
  4772. no:yes:* )
  4773. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4774. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4775. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4776. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4777. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4778. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4779. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4780. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4781. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4782. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4783. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4784. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4785. ;;
  4786. esac
  4787. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4788. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4789. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4790. echo $ECHO_N "(cached) $ECHO_C" >&6
  4791. else
  4792. eval "$as_ac_Header=\$ac_header_preproc"
  4793. fi
  4794. ac_res=`eval echo '${'$as_ac_Header'}'`
  4795. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4796. echo "${ECHO_T}$ac_res" >&6; }
  4797. fi
  4798. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4799. cat >>confdefs.h <<_ACEOF
  4800. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4801. _ACEOF
  4802. fi
  4803. done
  4804. ac_ext=cpp
  4805. ac_cpp='$CXXCPP $CPPFLAGS'
  4806. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4807. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4808. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4809. if test -z "$CXX"; then
  4810. if test -n "$CCC"; then
  4811. CXX=$CCC
  4812. else
  4813. if test -n "$ac_tool_prefix"; then
  4814. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4815. do
  4816. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4817. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4818. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4819. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4820. if test "${ac_cv_prog_CXX+set}" = set; then
  4821. echo $ECHO_N "(cached) $ECHO_C" >&6
  4822. else
  4823. if test -n "$CXX"; then
  4824. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4825. else
  4826. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4827. for as_dir in $PATH
  4828. do
  4829. IFS=$as_save_IFS
  4830. test -z "$as_dir" && as_dir=.
  4831. for ac_exec_ext in '' $ac_executable_extensions; do
  4832. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4833. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4834. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4835. break 2
  4836. fi
  4837. done
  4838. done
  4839. IFS=$as_save_IFS
  4840. fi
  4841. fi
  4842. CXX=$ac_cv_prog_CXX
  4843. if test -n "$CXX"; then
  4844. { echo "$as_me:$LINENO: result: $CXX" >&5
  4845. echo "${ECHO_T}$CXX" >&6; }
  4846. else
  4847. { echo "$as_me:$LINENO: result: no" >&5
  4848. echo "${ECHO_T}no" >&6; }
  4849. fi
  4850. test -n "$CXX" && break
  4851. done
  4852. fi
  4853. if test -z "$CXX"; then
  4854. ac_ct_CXX=$CXX
  4855. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4856. do
  4857. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4858. set dummy $ac_prog; ac_word=$2
  4859. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4860. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4861. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  4862. echo $ECHO_N "(cached) $ECHO_C" >&6
  4863. else
  4864. if test -n "$ac_ct_CXX"; then
  4865. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4866. else
  4867. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4868. for as_dir in $PATH
  4869. do
  4870. IFS=$as_save_IFS
  4871. test -z "$as_dir" && as_dir=.
  4872. for ac_exec_ext in '' $ac_executable_extensions; do
  4873. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4874. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4875. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4876. break 2
  4877. fi
  4878. done
  4879. done
  4880. IFS=$as_save_IFS
  4881. fi
  4882. fi
  4883. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4884. if test -n "$ac_ct_CXX"; then
  4885. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  4886. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  4887. else
  4888. { echo "$as_me:$LINENO: result: no" >&5
  4889. echo "${ECHO_T}no" >&6; }
  4890. fi
  4891. test -n "$ac_ct_CXX" && break
  4892. done
  4893. if test "x$ac_ct_CXX" = x; then
  4894. CXX="g++"
  4895. else
  4896. case $cross_compiling:$ac_tool_warned in
  4897. yes:)
  4898. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4899. whose name does not start with the host triplet. If you think this
  4900. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4901. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4902. whose name does not start with the host triplet. If you think this
  4903. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4904. ac_tool_warned=yes ;;
  4905. esac
  4906. CXX=$ac_ct_CXX
  4907. fi
  4908. fi
  4909. fi
  4910. fi
  4911. # Provide some information about the compiler.
  4912. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  4913. ac_compiler=`set X $ac_compile; echo $2`
  4914. { (ac_try="$ac_compiler --version >&5"
  4915. case "(($ac_try" in
  4916. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4917. *) ac_try_echo=$ac_try;;
  4918. esac
  4919. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4920. (eval "$ac_compiler --version >&5") 2>&5
  4921. ac_status=$?
  4922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4923. (exit $ac_status); }
  4924. { (ac_try="$ac_compiler -v >&5"
  4925. case "(($ac_try" in
  4926. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4927. *) ac_try_echo=$ac_try;;
  4928. esac
  4929. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4930. (eval "$ac_compiler -v >&5") 2>&5
  4931. ac_status=$?
  4932. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4933. (exit $ac_status); }
  4934. { (ac_try="$ac_compiler -V >&5"
  4935. case "(($ac_try" in
  4936. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4937. *) ac_try_echo=$ac_try;;
  4938. esac
  4939. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4940. (eval "$ac_compiler -V >&5") 2>&5
  4941. ac_status=$?
  4942. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4943. (exit $ac_status); }
  4944. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  4945. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  4946. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  4947. echo $ECHO_N "(cached) $ECHO_C" >&6
  4948. else
  4949. cat >conftest.$ac_ext <<_ACEOF
  4950. /* confdefs.h. */
  4951. _ACEOF
  4952. cat confdefs.h >>conftest.$ac_ext
  4953. cat >>conftest.$ac_ext <<_ACEOF
  4954. /* end confdefs.h. */
  4955. int
  4956. main ()
  4957. {
  4958. #ifndef __GNUC__
  4959. choke me
  4960. #endif
  4961. ;
  4962. return 0;
  4963. }
  4964. _ACEOF
  4965. rm -f conftest.$ac_objext
  4966. if { (ac_try="$ac_compile"
  4967. case "(($ac_try" in
  4968. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4969. *) ac_try_echo=$ac_try;;
  4970. esac
  4971. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4972. (eval "$ac_compile") 2>conftest.er1
  4973. ac_status=$?
  4974. grep -v '^ *+' conftest.er1 >conftest.err
  4975. rm -f conftest.er1
  4976. cat conftest.err >&5
  4977. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4978. (exit $ac_status); } && {
  4979. test -z "$ac_cxx_werror_flag" ||
  4980. test ! -s conftest.err
  4981. } && test -s conftest.$ac_objext; then
  4982. ac_compiler_gnu=yes
  4983. else
  4984. echo "$as_me: failed program was:" >&5
  4985. sed 's/^/| /' conftest.$ac_ext >&5
  4986. ac_compiler_gnu=no
  4987. fi
  4988. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4989. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4990. fi
  4991. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  4992. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  4993. GXX=`test $ac_compiler_gnu = yes && echo yes`
  4994. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4995. ac_save_CXXFLAGS=$CXXFLAGS
  4996. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  4997. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  4998. if test "${ac_cv_prog_cxx_g+set}" = set; then
  4999. echo $ECHO_N "(cached) $ECHO_C" >&6
  5000. else
  5001. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  5002. ac_cxx_werror_flag=yes
  5003. ac_cv_prog_cxx_g=no
  5004. CXXFLAGS="-g"
  5005. cat >conftest.$ac_ext <<_ACEOF
  5006. /* confdefs.h. */
  5007. _ACEOF
  5008. cat confdefs.h >>conftest.$ac_ext
  5009. cat >>conftest.$ac_ext <<_ACEOF
  5010. /* end confdefs.h. */
  5011. int
  5012. main ()
  5013. {
  5014. ;
  5015. return 0;
  5016. }
  5017. _ACEOF
  5018. rm -f conftest.$ac_objext
  5019. if { (ac_try="$ac_compile"
  5020. case "(($ac_try" in
  5021. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5022. *) ac_try_echo=$ac_try;;
  5023. esac
  5024. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5025. (eval "$ac_compile") 2>conftest.er1
  5026. ac_status=$?
  5027. grep -v '^ *+' conftest.er1 >conftest.err
  5028. rm -f conftest.er1
  5029. cat conftest.err >&5
  5030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5031. (exit $ac_status); } && {
  5032. test -z "$ac_cxx_werror_flag" ||
  5033. test ! -s conftest.err
  5034. } && test -s conftest.$ac_objext; then
  5035. ac_cv_prog_cxx_g=yes
  5036. else
  5037. echo "$as_me: failed program was:" >&5
  5038. sed 's/^/| /' conftest.$ac_ext >&5
  5039. CXXFLAGS=""
  5040. cat >conftest.$ac_ext <<_ACEOF
  5041. /* confdefs.h. */
  5042. _ACEOF
  5043. cat confdefs.h >>conftest.$ac_ext
  5044. cat >>conftest.$ac_ext <<_ACEOF
  5045. /* end confdefs.h. */
  5046. int
  5047. main ()
  5048. {
  5049. ;
  5050. return 0;
  5051. }
  5052. _ACEOF
  5053. rm -f conftest.$ac_objext
  5054. if { (ac_try="$ac_compile"
  5055. case "(($ac_try" in
  5056. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5057. *) ac_try_echo=$ac_try;;
  5058. esac
  5059. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5060. (eval "$ac_compile") 2>conftest.er1
  5061. ac_status=$?
  5062. grep -v '^ *+' conftest.er1 >conftest.err
  5063. rm -f conftest.er1
  5064. cat conftest.err >&5
  5065. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5066. (exit $ac_status); } && {
  5067. test -z "$ac_cxx_werror_flag" ||
  5068. test ! -s conftest.err
  5069. } && test -s conftest.$ac_objext; then
  5070. :
  5071. else
  5072. echo "$as_me: failed program was:" >&5
  5073. sed 's/^/| /' conftest.$ac_ext >&5
  5074. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5075. CXXFLAGS="-g"
  5076. cat >conftest.$ac_ext <<_ACEOF
  5077. /* confdefs.h. */
  5078. _ACEOF
  5079. cat confdefs.h >>conftest.$ac_ext
  5080. cat >>conftest.$ac_ext <<_ACEOF
  5081. /* end confdefs.h. */
  5082. int
  5083. main ()
  5084. {
  5085. ;
  5086. return 0;
  5087. }
  5088. _ACEOF
  5089. rm -f conftest.$ac_objext
  5090. if { (ac_try="$ac_compile"
  5091. case "(($ac_try" in
  5092. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5093. *) ac_try_echo=$ac_try;;
  5094. esac
  5095. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5096. (eval "$ac_compile") 2>conftest.er1
  5097. ac_status=$?
  5098. grep -v '^ *+' conftest.er1 >conftest.err
  5099. rm -f conftest.er1
  5100. cat conftest.err >&5
  5101. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5102. (exit $ac_status); } && {
  5103. test -z "$ac_cxx_werror_flag" ||
  5104. test ! -s conftest.err
  5105. } && test -s conftest.$ac_objext; then
  5106. ac_cv_prog_cxx_g=yes
  5107. else
  5108. echo "$as_me: failed program was:" >&5
  5109. sed 's/^/| /' conftest.$ac_ext >&5
  5110. fi
  5111. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5112. fi
  5113. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5114. fi
  5115. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5116. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5117. fi
  5118. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  5119. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  5120. if test "$ac_test_CXXFLAGS" = set; then
  5121. CXXFLAGS=$ac_save_CXXFLAGS
  5122. elif test $ac_cv_prog_cxx_g = yes; then
  5123. if test "$GXX" = yes; then
  5124. CXXFLAGS="-g -O2"
  5125. else
  5126. CXXFLAGS="-g"
  5127. fi
  5128. else
  5129. if test "$GXX" = yes; then
  5130. CXXFLAGS="-O2"
  5131. else
  5132. CXXFLAGS=
  5133. fi
  5134. fi
  5135. ac_ext=cpp
  5136. ac_cpp='$CXXCPP $CPPFLAGS'
  5137. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5138. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5139. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5140. depcc="$CXX" am_compiler_list=
  5141. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  5142. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  5143. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  5144. echo $ECHO_N "(cached) $ECHO_C" >&6
  5145. else
  5146. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5147. # We make a subdir and do the tests there. Otherwise we can end up
  5148. # making bogus files that we don't know about and never remove. For
  5149. # instance it was reported that on HP-UX the gcc test will end up
  5150. # making a dummy file named `D' -- because `-MD' means `put the output
  5151. # in D'.
  5152. mkdir conftest.dir
  5153. # Copy depcomp to subdir because otherwise we won't find it if we're
  5154. # using a relative directory.
  5155. cp "$am_depcomp" conftest.dir
  5156. cd conftest.dir
  5157. # We will build objects and dependencies in a subdirectory because
  5158. # it helps to detect inapplicable dependency modes. For instance
  5159. # both Tru64's cc and ICC support -MD to output dependencies as a
  5160. # side effect of compilation, but ICC will put the dependencies in
  5161. # the current directory while Tru64 will put them in the object
  5162. # directory.
  5163. mkdir sub
  5164. am_cv_CXX_dependencies_compiler_type=none
  5165. if test "$am_compiler_list" = ""; then
  5166. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5167. fi
  5168. for depmode in $am_compiler_list; do
  5169. # Setup a source with many dependencies, because some compilers
  5170. # like to wrap large dependency lists on column 80 (with \), and
  5171. # we should not choose a depcomp mode which is confused by this.
  5172. #
  5173. # We need to recreate these files for each test, as the compiler may
  5174. # overwrite some of them when testing with obscure command lines.
  5175. # This happens at least with the AIX C compiler.
  5176. : > sub/conftest.c
  5177. for i in 1 2 3 4 5 6; do
  5178. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5179. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  5180. # Solaris 8's {/usr,}/bin/sh.
  5181. touch sub/conftst$i.h
  5182. done
  5183. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5184. case $depmode in
  5185. nosideeffect)
  5186. # after this tag, mechanisms are not by side-effect, so they'll
  5187. # only be used when explicitly requested
  5188. if test "x$enable_dependency_tracking" = xyes; then
  5189. continue
  5190. else
  5191. break
  5192. fi
  5193. ;;
  5194. none) break ;;
  5195. esac
  5196. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5197. # mode. It turns out that the SunPro C++ compiler does not properly
  5198. # handle `-M -o', and we need to detect this.
  5199. if depmode=$depmode \
  5200. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  5201. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5202. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  5203. >/dev/null 2>conftest.err &&
  5204. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5205. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5206. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  5207. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5208. # icc doesn't choke on unknown options, it will just issue warnings
  5209. # or remarks (even with -Werror). So we grep stderr for any message
  5210. # that says an option was ignored or not supported.
  5211. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5212. # icc: Command line warning: ignoring option '-M'; no argument required
  5213. # The diagnosis changed in icc 8.0:
  5214. # icc: Command line remark: option '-MP' not supported
  5215. if (grep 'ignoring option' conftest.err ||
  5216. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5217. am_cv_CXX_dependencies_compiler_type=$depmode
  5218. break
  5219. fi
  5220. fi
  5221. done
  5222. cd ..
  5223. rm -rf conftest.dir
  5224. else
  5225. am_cv_CXX_dependencies_compiler_type=none
  5226. fi
  5227. fi
  5228. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  5229. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  5230. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  5231. if
  5232. test "x$enable_dependency_tracking" != xno \
  5233. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  5234. am__fastdepCXX_TRUE=
  5235. am__fastdepCXX_FALSE='#'
  5236. else
  5237. am__fastdepCXX_TRUE='#'
  5238. am__fastdepCXX_FALSE=
  5239. fi
  5240. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  5241. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  5242. (test "X$CXX" != "Xg++"))) ; then
  5243. ac_ext=cpp
  5244. ac_cpp='$CXXCPP $CPPFLAGS'
  5245. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5246. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5247. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5248. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  5249. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  5250. if test -z "$CXXCPP"; then
  5251. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  5252. echo $ECHO_N "(cached) $ECHO_C" >&6
  5253. else
  5254. # Double quotes because CXXCPP needs to be expanded
  5255. for CXXCPP in "$CXX -E" "/lib/cpp"
  5256. do
  5257. ac_preproc_ok=false
  5258. for ac_cxx_preproc_warn_flag in '' yes
  5259. do
  5260. # Use a header file that comes with gcc, so configuring glibc
  5261. # with a fresh cross-compiler works.
  5262. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5263. # <limits.h> exists even on freestanding compilers.
  5264. # On the NeXT, cc -E runs the code through the compiler's parser,
  5265. # not just through cpp. "Syntax error" is here to catch this case.
  5266. cat >conftest.$ac_ext <<_ACEOF
  5267. /* confdefs.h. */
  5268. _ACEOF
  5269. cat confdefs.h >>conftest.$ac_ext
  5270. cat >>conftest.$ac_ext <<_ACEOF
  5271. /* end confdefs.h. */
  5272. #ifdef __STDC__
  5273. # include <limits.h>
  5274. #else
  5275. # include <assert.h>
  5276. #endif
  5277. Syntax error
  5278. _ACEOF
  5279. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5280. case "(($ac_try" in
  5281. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5282. *) ac_try_echo=$ac_try;;
  5283. esac
  5284. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5285. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5286. ac_status=$?
  5287. grep -v '^ *+' conftest.er1 >conftest.err
  5288. rm -f conftest.er1
  5289. cat conftest.err >&5
  5290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5291. (exit $ac_status); } >/dev/null && {
  5292. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5293. test ! -s conftest.err
  5294. }; then
  5295. :
  5296. else
  5297. echo "$as_me: failed program was:" >&5
  5298. sed 's/^/| /' conftest.$ac_ext >&5
  5299. # Broken: fails on valid input.
  5300. continue
  5301. fi
  5302. rm -f conftest.err conftest.$ac_ext
  5303. # OK, works on sane cases. Now check whether nonexistent headers
  5304. # can be detected and how.
  5305. cat >conftest.$ac_ext <<_ACEOF
  5306. /* confdefs.h. */
  5307. _ACEOF
  5308. cat confdefs.h >>conftest.$ac_ext
  5309. cat >>conftest.$ac_ext <<_ACEOF
  5310. /* end confdefs.h. */
  5311. #include <ac_nonexistent.h>
  5312. _ACEOF
  5313. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5314. case "(($ac_try" in
  5315. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5316. *) ac_try_echo=$ac_try;;
  5317. esac
  5318. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5319. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5320. ac_status=$?
  5321. grep -v '^ *+' conftest.er1 >conftest.err
  5322. rm -f conftest.er1
  5323. cat conftest.err >&5
  5324. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5325. (exit $ac_status); } >/dev/null && {
  5326. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5327. test ! -s conftest.err
  5328. }; then
  5329. # Broken: success on invalid input.
  5330. continue
  5331. else
  5332. echo "$as_me: failed program was:" >&5
  5333. sed 's/^/| /' conftest.$ac_ext >&5
  5334. # Passes both tests.
  5335. ac_preproc_ok=:
  5336. break
  5337. fi
  5338. rm -f conftest.err conftest.$ac_ext
  5339. done
  5340. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5341. rm -f conftest.err conftest.$ac_ext
  5342. if $ac_preproc_ok; then
  5343. break
  5344. fi
  5345. done
  5346. ac_cv_prog_CXXCPP=$CXXCPP
  5347. fi
  5348. CXXCPP=$ac_cv_prog_CXXCPP
  5349. else
  5350. ac_cv_prog_CXXCPP=$CXXCPP
  5351. fi
  5352. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  5353. echo "${ECHO_T}$CXXCPP" >&6; }
  5354. ac_preproc_ok=false
  5355. for ac_cxx_preproc_warn_flag in '' yes
  5356. do
  5357. # Use a header file that comes with gcc, so configuring glibc
  5358. # with a fresh cross-compiler works.
  5359. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5360. # <limits.h> exists even on freestanding compilers.
  5361. # On the NeXT, cc -E runs the code through the compiler's parser,
  5362. # not just through cpp. "Syntax error" is here to catch this case.
  5363. cat >conftest.$ac_ext <<_ACEOF
  5364. /* confdefs.h. */
  5365. _ACEOF
  5366. cat confdefs.h >>conftest.$ac_ext
  5367. cat >>conftest.$ac_ext <<_ACEOF
  5368. /* end confdefs.h. */
  5369. #ifdef __STDC__
  5370. # include <limits.h>
  5371. #else
  5372. # include <assert.h>
  5373. #endif
  5374. Syntax error
  5375. _ACEOF
  5376. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5377. case "(($ac_try" in
  5378. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5379. *) ac_try_echo=$ac_try;;
  5380. esac
  5381. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5382. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5383. ac_status=$?
  5384. grep -v '^ *+' conftest.er1 >conftest.err
  5385. rm -f conftest.er1
  5386. cat conftest.err >&5
  5387. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5388. (exit $ac_status); } >/dev/null && {
  5389. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5390. test ! -s conftest.err
  5391. }; then
  5392. :
  5393. else
  5394. echo "$as_me: failed program was:" >&5
  5395. sed 's/^/| /' conftest.$ac_ext >&5
  5396. # Broken: fails on valid input.
  5397. continue
  5398. fi
  5399. rm -f conftest.err conftest.$ac_ext
  5400. # OK, works on sane cases. Now check whether nonexistent headers
  5401. # can be detected and how.
  5402. cat >conftest.$ac_ext <<_ACEOF
  5403. /* confdefs.h. */
  5404. _ACEOF
  5405. cat confdefs.h >>conftest.$ac_ext
  5406. cat >>conftest.$ac_ext <<_ACEOF
  5407. /* end confdefs.h. */
  5408. #include <ac_nonexistent.h>
  5409. _ACEOF
  5410. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5411. case "(($ac_try" in
  5412. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5413. *) ac_try_echo=$ac_try;;
  5414. esac
  5415. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5416. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5417. ac_status=$?
  5418. grep -v '^ *+' conftest.er1 >conftest.err
  5419. rm -f conftest.er1
  5420. cat conftest.err >&5
  5421. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5422. (exit $ac_status); } >/dev/null && {
  5423. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5424. test ! -s conftest.err
  5425. }; then
  5426. # Broken: success on invalid input.
  5427. continue
  5428. else
  5429. echo "$as_me: failed program was:" >&5
  5430. sed 's/^/| /' conftest.$ac_ext >&5
  5431. # Passes both tests.
  5432. ac_preproc_ok=:
  5433. break
  5434. fi
  5435. rm -f conftest.err conftest.$ac_ext
  5436. done
  5437. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5438. rm -f conftest.err conftest.$ac_ext
  5439. if $ac_preproc_ok; then
  5440. :
  5441. else
  5442. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5443. See \`config.log' for more details." >&5
  5444. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5445. See \`config.log' for more details." >&2;}
  5446. { (exit 1); exit 1; }; }
  5447. fi
  5448. ac_ext=cpp
  5449. ac_cpp='$CXXCPP $CPPFLAGS'
  5450. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5451. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5452. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5453. fi
  5454. ac_ext=f
  5455. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  5456. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5457. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  5458. if test -n "$ac_tool_prefix"; then
  5459. for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
  5460. do
  5461. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5462. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5463. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5464. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5465. if test "${ac_cv_prog_F77+set}" = set; then
  5466. echo $ECHO_N "(cached) $ECHO_C" >&6
  5467. else
  5468. if test -n "$F77"; then
  5469. ac_cv_prog_F77="$F77" # Let the user override the test.
  5470. else
  5471. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5472. for as_dir in $PATH
  5473. do
  5474. IFS=$as_save_IFS
  5475. test -z "$as_dir" && as_dir=.
  5476. for ac_exec_ext in '' $ac_executable_extensions; do
  5477. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5478. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  5479. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5480. break 2
  5481. fi
  5482. done
  5483. done
  5484. IFS=$as_save_IFS
  5485. fi
  5486. fi
  5487. F77=$ac_cv_prog_F77
  5488. if test -n "$F77"; then
  5489. { echo "$as_me:$LINENO: result: $F77" >&5
  5490. echo "${ECHO_T}$F77" >&6; }
  5491. else
  5492. { echo "$as_me:$LINENO: result: no" >&5
  5493. echo "${ECHO_T}no" >&6; }
  5494. fi
  5495. test -n "$F77" && break
  5496. done
  5497. fi
  5498. if test -z "$F77"; then
  5499. ac_ct_F77=$F77
  5500. for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
  5501. do
  5502. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5503. set dummy $ac_prog; ac_word=$2
  5504. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5505. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5506. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  5507. echo $ECHO_N "(cached) $ECHO_C" >&6
  5508. else
  5509. if test -n "$ac_ct_F77"; then
  5510. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  5511. else
  5512. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5513. for as_dir in $PATH
  5514. do
  5515. IFS=$as_save_IFS
  5516. test -z "$as_dir" && as_dir=.
  5517. for ac_exec_ext in '' $ac_executable_extensions; do
  5518. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5519. ac_cv_prog_ac_ct_F77="$ac_prog"
  5520. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5521. break 2
  5522. fi
  5523. done
  5524. done
  5525. IFS=$as_save_IFS
  5526. fi
  5527. fi
  5528. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  5529. if test -n "$ac_ct_F77"; then
  5530. { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  5531. echo "${ECHO_T}$ac_ct_F77" >&6; }
  5532. else
  5533. { echo "$as_me:$LINENO: result: no" >&5
  5534. echo "${ECHO_T}no" >&6; }
  5535. fi
  5536. test -n "$ac_ct_F77" && break
  5537. done
  5538. if test "x$ac_ct_F77" = x; then
  5539. F77=""
  5540. else
  5541. case $cross_compiling:$ac_tool_warned in
  5542. yes:)
  5543. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5544. whose name does not start with the host triplet. If you think this
  5545. configuration is useful to you, please write to autoconf@gnu.org." >&5
  5546. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5547. whose name does not start with the host triplet. If you think this
  5548. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5549. ac_tool_warned=yes ;;
  5550. esac
  5551. F77=$ac_ct_F77
  5552. fi
  5553. fi
  5554. # Provide some information about the compiler.
  5555. echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
  5556. ac_compiler=`set X $ac_compile; echo $2`
  5557. { (ac_try="$ac_compiler --version >&5"
  5558. case "(($ac_try" in
  5559. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5560. *) ac_try_echo=$ac_try;;
  5561. esac
  5562. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5563. (eval "$ac_compiler --version >&5") 2>&5
  5564. ac_status=$?
  5565. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5566. (exit $ac_status); }
  5567. { (ac_try="$ac_compiler -v >&5"
  5568. case "(($ac_try" in
  5569. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5570. *) ac_try_echo=$ac_try;;
  5571. esac
  5572. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5573. (eval "$ac_compiler -v >&5") 2>&5
  5574. ac_status=$?
  5575. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5576. (exit $ac_status); }
  5577. { (ac_try="$ac_compiler -V >&5"
  5578. case "(($ac_try" in
  5579. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5580. *) ac_try_echo=$ac_try;;
  5581. esac
  5582. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5583. (eval "$ac_compiler -V >&5") 2>&5
  5584. ac_status=$?
  5585. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5586. (exit $ac_status); }
  5587. rm -f a.out
  5588. # If we don't use `.F' as extension, the preprocessor is not run on the
  5589. # input file. (Note that this only needs to work for GNU compilers.)
  5590. ac_save_ext=$ac_ext
  5591. ac_ext=F
  5592. { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  5593. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
  5594. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  5595. echo $ECHO_N "(cached) $ECHO_C" >&6
  5596. else
  5597. cat >conftest.$ac_ext <<_ACEOF
  5598. program main
  5599. #ifndef __GNUC__
  5600. choke me
  5601. #endif
  5602. end
  5603. _ACEOF
  5604. rm -f conftest.$ac_objext
  5605. if { (ac_try="$ac_compile"
  5606. case "(($ac_try" in
  5607. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5608. *) ac_try_echo=$ac_try;;
  5609. esac
  5610. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5611. (eval "$ac_compile") 2>conftest.er1
  5612. ac_status=$?
  5613. grep -v '^ *+' conftest.er1 >conftest.err
  5614. rm -f conftest.er1
  5615. cat conftest.err >&5
  5616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5617. (exit $ac_status); } && {
  5618. test -z "$ac_f77_werror_flag" ||
  5619. test ! -s conftest.err
  5620. } && test -s conftest.$ac_objext; then
  5621. ac_compiler_gnu=yes
  5622. else
  5623. echo "$as_me: failed program was:" >&5
  5624. sed 's/^/| /' conftest.$ac_ext >&5
  5625. ac_compiler_gnu=no
  5626. fi
  5627. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5628. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  5629. fi
  5630. { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  5631. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
  5632. ac_ext=$ac_save_ext
  5633. ac_test_FFLAGS=${FFLAGS+set}
  5634. ac_save_FFLAGS=$FFLAGS
  5635. FFLAGS=
  5636. { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  5637. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
  5638. if test "${ac_cv_prog_f77_g+set}" = set; then
  5639. echo $ECHO_N "(cached) $ECHO_C" >&6
  5640. else
  5641. FFLAGS=-g
  5642. cat >conftest.$ac_ext <<_ACEOF
  5643. program main
  5644. end
  5645. _ACEOF
  5646. rm -f conftest.$ac_objext
  5647. if { (ac_try="$ac_compile"
  5648. case "(($ac_try" in
  5649. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5650. *) ac_try_echo=$ac_try;;
  5651. esac
  5652. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5653. (eval "$ac_compile") 2>conftest.er1
  5654. ac_status=$?
  5655. grep -v '^ *+' conftest.er1 >conftest.err
  5656. rm -f conftest.er1
  5657. cat conftest.err >&5
  5658. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5659. (exit $ac_status); } && {
  5660. test -z "$ac_f77_werror_flag" ||
  5661. test ! -s conftest.err
  5662. } && test -s conftest.$ac_objext; then
  5663. ac_cv_prog_f77_g=yes
  5664. else
  5665. echo "$as_me: failed program was:" >&5
  5666. sed 's/^/| /' conftest.$ac_ext >&5
  5667. ac_cv_prog_f77_g=no
  5668. fi
  5669. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5670. fi
  5671. { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  5672. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
  5673. if test "$ac_test_FFLAGS" = set; then
  5674. FFLAGS=$ac_save_FFLAGS
  5675. elif test $ac_cv_prog_f77_g = yes; then
  5676. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5677. FFLAGS="-g -O2"
  5678. else
  5679. FFLAGS="-g"
  5680. fi
  5681. else
  5682. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5683. FFLAGS="-O2"
  5684. else
  5685. FFLAGS=
  5686. fi
  5687. fi
  5688. G77=`test $ac_compiler_gnu = yes && echo yes`
  5689. ac_ext=c
  5690. ac_cpp='$CPP $CPPFLAGS'
  5691. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5692. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5693. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5694. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  5695. # find the maximum length of command line arguments
  5696. { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  5697. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
  5698. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  5699. echo $ECHO_N "(cached) $ECHO_C" >&6
  5700. else
  5701. i=0
  5702. teststring="ABCD"
  5703. case $build_os in
  5704. msdosdjgpp*)
  5705. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5706. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5707. # during glob expansion). Even if it were fixed, the result of this
  5708. # check would be larger than it should be.
  5709. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5710. ;;
  5711. gnu*)
  5712. # Under GNU Hurd, this test is not required because there is
  5713. # no limit to the length of command line arguments.
  5714. # Libtool will interpret -1 as no limit whatsoever
  5715. lt_cv_sys_max_cmd_len=-1;
  5716. ;;
  5717. cygwin* | mingw*)
  5718. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5719. # about 5 minutes as the teststring grows exponentially.
  5720. # Worse, since 9x/ME are not pre-emptively multitasking,
  5721. # you end up with a "frozen" computer, even though with patience
  5722. # the test eventually succeeds (with a max line length of 256k).
  5723. # Instead, let's just punt: use the minimum linelength reported by
  5724. # all of the supported platforms: 8192 (on NT/2K/XP).
  5725. lt_cv_sys_max_cmd_len=8192;
  5726. ;;
  5727. amigaos*)
  5728. # On AmigaOS with pdksh, this test takes hours, literally.
  5729. # So we just punt and use a minimum line length of 8192.
  5730. lt_cv_sys_max_cmd_len=8192;
  5731. ;;
  5732. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5733. # This has been around since 386BSD, at least. Likely further.
  5734. if test -x /sbin/sysctl; then
  5735. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5736. elif test -x /usr/sbin/sysctl; then
  5737. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5738. else
  5739. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5740. fi
  5741. # And add a safety zone
  5742. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5743. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5744. ;;
  5745. interix*)
  5746. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5747. lt_cv_sys_max_cmd_len=196608
  5748. ;;
  5749. osf*)
  5750. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5751. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5752. # nice to cause kernel panics so lets avoid the loop below.
  5753. # First set a reasonable default.
  5754. lt_cv_sys_max_cmd_len=16384
  5755. #
  5756. if test -x /sbin/sysconfig; then
  5757. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5758. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5759. esac
  5760. fi
  5761. ;;
  5762. sco3.2v5*)
  5763. lt_cv_sys_max_cmd_len=102400
  5764. ;;
  5765. sysv5* | sco5v6* | sysv4.2uw2*)
  5766. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5767. if test -n "$kargmax"; then
  5768. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5769. else
  5770. lt_cv_sys_max_cmd_len=32768
  5771. fi
  5772. ;;
  5773. *)
  5774. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5775. if test -n "$lt_cv_sys_max_cmd_len"; then
  5776. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5777. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5778. else
  5779. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5780. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  5781. = "XX$teststring") >/dev/null 2>&1 &&
  5782. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  5783. lt_cv_sys_max_cmd_len=$new_result &&
  5784. test $i != 17 # 1/2 MB should be enough
  5785. do
  5786. i=`expr $i + 1`
  5787. teststring=$teststring$teststring
  5788. done
  5789. teststring=
  5790. # Add a significant safety factor because C++ compilers can tack on massive
  5791. # amounts of additional arguments before passing them to the linker.
  5792. # It appears as though 1/2 is a usable value.
  5793. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5794. fi
  5795. ;;
  5796. esac
  5797. fi
  5798. if test -n $lt_cv_sys_max_cmd_len ; then
  5799. { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  5800. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
  5801. else
  5802. { echo "$as_me:$LINENO: result: none" >&5
  5803. echo "${ECHO_T}none" >&6; }
  5804. fi
  5805. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5806. { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  5807. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
  5808. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  5809. echo $ECHO_N "(cached) $ECHO_C" >&6
  5810. else
  5811. # These are sane defaults that work on at least a few old systems.
  5812. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5813. # Character class describing NM global symbol codes.
  5814. symcode='[BCDEGRST]'
  5815. # Regexp to match symbols that can be accessed directly from C.
  5816. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5817. # Transform an extracted symbol line into a proper C declaration
  5818. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  5819. # Transform an extracted symbol line into symbol name and symbol address
  5820. 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'"
  5821. # Define system-specific variables.
  5822. case $host_os in
  5823. aix*)
  5824. symcode='[BCDT]'
  5825. ;;
  5826. cygwin* | mingw* | pw32*)
  5827. symcode='[ABCDGISTW]'
  5828. ;;
  5829. hpux*) # Its linker distinguishes data from code symbols
  5830. if test "$host_cpu" = ia64; then
  5831. symcode='[ABCDEGRST]'
  5832. fi
  5833. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5834. 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'"
  5835. ;;
  5836. linux* | k*bsd*-gnu)
  5837. if test "$host_cpu" = ia64; then
  5838. symcode='[ABCDGIRSTW]'
  5839. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5840. 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'"
  5841. fi
  5842. ;;
  5843. irix* | nonstopux*)
  5844. symcode='[BCDEGRST]'
  5845. ;;
  5846. osf*)
  5847. symcode='[BCDEGQRST]'
  5848. ;;
  5849. solaris*)
  5850. symcode='[BDRT]'
  5851. ;;
  5852. sco3.2v5*)
  5853. symcode='[DT]'
  5854. ;;
  5855. sysv4.2uw2*)
  5856. symcode='[DT]'
  5857. ;;
  5858. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5859. symcode='[ABDT]'
  5860. ;;
  5861. sysv4)
  5862. symcode='[DFNSTU]'
  5863. ;;
  5864. esac
  5865. # Handle CRLF in mingw tool chain
  5866. opt_cr=
  5867. case $build_os in
  5868. mingw*)
  5869. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5870. ;;
  5871. esac
  5872. # If we're using GNU nm, then use its standard symbol codes.
  5873. case `$NM -V 2>&1` in
  5874. *GNU* | *'with BFD'*)
  5875. symcode='[ABCDGIRSTW]' ;;
  5876. esac
  5877. # Try without a prefix undercore, then with it.
  5878. for ac_symprfx in "" "_"; do
  5879. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5880. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5881. # Write the raw and C identifiers.
  5882. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5883. # Check to see that the pipe works correctly.
  5884. pipe_works=no
  5885. rm -f conftest*
  5886. cat > conftest.$ac_ext <<EOF
  5887. #ifdef __cplusplus
  5888. extern "C" {
  5889. #endif
  5890. char nm_test_var;
  5891. void nm_test_func(){}
  5892. #ifdef __cplusplus
  5893. }
  5894. #endif
  5895. int main(){nm_test_var='a';nm_test_func();return(0);}
  5896. EOF
  5897. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5898. (eval $ac_compile) 2>&5
  5899. ac_status=$?
  5900. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5901. (exit $ac_status); }; then
  5902. # Now try to grab the symbols.
  5903. nlist=conftest.nm
  5904. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  5905. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5906. ac_status=$?
  5907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5908. (exit $ac_status); } && test -s "$nlist"; then
  5909. # Try sorting and uniquifying the output.
  5910. if sort "$nlist" | uniq > "$nlist"T; then
  5911. mv -f "$nlist"T "$nlist"
  5912. else
  5913. rm -f "$nlist"T
  5914. fi
  5915. # Make sure that we snagged all the symbols we need.
  5916. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  5917. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  5918. cat <<EOF > conftest.$ac_ext
  5919. #ifdef __cplusplus
  5920. extern "C" {
  5921. #endif
  5922. EOF
  5923. # Now generate the symbol file.
  5924. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  5925. cat <<EOF >> conftest.$ac_ext
  5926. #if defined (__STDC__) && __STDC__
  5927. # define lt_ptr_t void *
  5928. #else
  5929. # define lt_ptr_t char *
  5930. # define const
  5931. #endif
  5932. /* The mapping between symbol names and symbols. */
  5933. const struct {
  5934. const char *name;
  5935. lt_ptr_t address;
  5936. }
  5937. lt_preloaded_symbols[] =
  5938. {
  5939. EOF
  5940. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  5941. cat <<\EOF >> conftest.$ac_ext
  5942. {0, (lt_ptr_t) 0}
  5943. };
  5944. #ifdef __cplusplus
  5945. }
  5946. #endif
  5947. EOF
  5948. # Now try linking the two files.
  5949. mv conftest.$ac_objext conftstm.$ac_objext
  5950. lt_save_LIBS="$LIBS"
  5951. lt_save_CFLAGS="$CFLAGS"
  5952. LIBS="conftstm.$ac_objext"
  5953. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5954. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5955. (eval $ac_link) 2>&5
  5956. ac_status=$?
  5957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5958. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  5959. pipe_works=yes
  5960. fi
  5961. LIBS="$lt_save_LIBS"
  5962. CFLAGS="$lt_save_CFLAGS"
  5963. else
  5964. echo "cannot find nm_test_func in $nlist" >&5
  5965. fi
  5966. else
  5967. echo "cannot find nm_test_var in $nlist" >&5
  5968. fi
  5969. else
  5970. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5971. fi
  5972. else
  5973. echo "$progname: failed program was:" >&5
  5974. cat conftest.$ac_ext >&5
  5975. fi
  5976. rm -f conftest* conftst*
  5977. # Do not use the global_symbol_pipe unless it works.
  5978. if test "$pipe_works" = yes; then
  5979. break
  5980. else
  5981. lt_cv_sys_global_symbol_pipe=
  5982. fi
  5983. done
  5984. fi
  5985. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5986. lt_cv_sys_global_symbol_to_cdecl=
  5987. fi
  5988. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5989. { echo "$as_me:$LINENO: result: failed" >&5
  5990. echo "${ECHO_T}failed" >&6; }
  5991. else
  5992. { echo "$as_me:$LINENO: result: ok" >&5
  5993. echo "${ECHO_T}ok" >&6; }
  5994. fi
  5995. { echo "$as_me:$LINENO: checking for objdir" >&5
  5996. echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
  5997. if test "${lt_cv_objdir+set}" = set; then
  5998. echo $ECHO_N "(cached) $ECHO_C" >&6
  5999. else
  6000. rm -f .libs 2>/dev/null
  6001. mkdir .libs 2>/dev/null
  6002. if test -d .libs; then
  6003. lt_cv_objdir=.libs
  6004. else
  6005. # MS-DOS does not allow filenames that begin with a dot.
  6006. lt_cv_objdir=_libs
  6007. fi
  6008. rmdir .libs 2>/dev/null
  6009. fi
  6010. { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  6011. echo "${ECHO_T}$lt_cv_objdir" >&6; }
  6012. objdir=$lt_cv_objdir
  6013. case $host_os in
  6014. aix3*)
  6015. # AIX sometimes has problems with the GCC collect2 program. For some
  6016. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6017. # vanish in a puff of smoke.
  6018. if test "X${COLLECT_NAMES+set}" != Xset; then
  6019. COLLECT_NAMES=
  6020. export COLLECT_NAMES
  6021. fi
  6022. ;;
  6023. esac
  6024. # Sed substitution that helps us do robust quoting. It backslashifies
  6025. # metacharacters that are still active within double-quoted strings.
  6026. Xsed='sed -e 1s/^X//'
  6027. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  6028. # Same as above, but do not quote variable references.
  6029. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  6030. # Sed substitution to delay expansion of an escaped shell variable in a
  6031. # double_quote_subst'ed string.
  6032. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6033. # Sed substitution to avoid accidental globbing in evaled expressions
  6034. no_glob_subst='s/\*/\\\*/g'
  6035. # Constants:
  6036. rm="rm -f"
  6037. # Global variables:
  6038. default_ofile=libtool
  6039. can_build_shared=yes
  6040. # All known linkers require a `.a' archive for static linking (except MSVC,
  6041. # which needs '.lib').
  6042. libext=a
  6043. ltmain="$ac_aux_dir/ltmain.sh"
  6044. ofile="$default_ofile"
  6045. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6046. if test -n "$ac_tool_prefix"; then
  6047. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  6048. set dummy ${ac_tool_prefix}ar; ac_word=$2
  6049. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6050. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6051. if test "${ac_cv_prog_AR+set}" = set; then
  6052. echo $ECHO_N "(cached) $ECHO_C" >&6
  6053. else
  6054. if test -n "$AR"; then
  6055. ac_cv_prog_AR="$AR" # Let the user override the test.
  6056. else
  6057. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6058. for as_dir in $PATH
  6059. do
  6060. IFS=$as_save_IFS
  6061. test -z "$as_dir" && as_dir=.
  6062. for ac_exec_ext in '' $ac_executable_extensions; do
  6063. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6064. ac_cv_prog_AR="${ac_tool_prefix}ar"
  6065. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6066. break 2
  6067. fi
  6068. done
  6069. done
  6070. IFS=$as_save_IFS
  6071. fi
  6072. fi
  6073. AR=$ac_cv_prog_AR
  6074. if test -n "$AR"; then
  6075. { echo "$as_me:$LINENO: result: $AR" >&5
  6076. echo "${ECHO_T}$AR" >&6; }
  6077. else
  6078. { echo "$as_me:$LINENO: result: no" >&5
  6079. echo "${ECHO_T}no" >&6; }
  6080. fi
  6081. fi
  6082. if test -z "$ac_cv_prog_AR"; then
  6083. ac_ct_AR=$AR
  6084. # Extract the first word of "ar", so it can be a program name with args.
  6085. set dummy ar; ac_word=$2
  6086. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6087. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6088. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  6089. echo $ECHO_N "(cached) $ECHO_C" >&6
  6090. else
  6091. if test -n "$ac_ct_AR"; then
  6092. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6093. else
  6094. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6095. for as_dir in $PATH
  6096. do
  6097. IFS=$as_save_IFS
  6098. test -z "$as_dir" && as_dir=.
  6099. for ac_exec_ext in '' $ac_executable_extensions; do
  6100. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6101. ac_cv_prog_ac_ct_AR="ar"
  6102. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6103. break 2
  6104. fi
  6105. done
  6106. done
  6107. IFS=$as_save_IFS
  6108. fi
  6109. fi
  6110. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6111. if test -n "$ac_ct_AR"; then
  6112. { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  6113. echo "${ECHO_T}$ac_ct_AR" >&6; }
  6114. else
  6115. { echo "$as_me:$LINENO: result: no" >&5
  6116. echo "${ECHO_T}no" >&6; }
  6117. fi
  6118. if test "x$ac_ct_AR" = x; then
  6119. AR="false"
  6120. else
  6121. case $cross_compiling:$ac_tool_warned in
  6122. yes:)
  6123. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6124. whose name does not start with the host triplet. If you think this
  6125. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6126. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6127. whose name does not start with the host triplet. If you think this
  6128. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6129. ac_tool_warned=yes ;;
  6130. esac
  6131. AR=$ac_ct_AR
  6132. fi
  6133. else
  6134. AR="$ac_cv_prog_AR"
  6135. fi
  6136. if test -n "$ac_tool_prefix"; then
  6137. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6138. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6139. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6140. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6141. if test "${ac_cv_prog_RANLIB+set}" = set; then
  6142. echo $ECHO_N "(cached) $ECHO_C" >&6
  6143. else
  6144. if test -n "$RANLIB"; then
  6145. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6146. else
  6147. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6148. for as_dir in $PATH
  6149. do
  6150. IFS=$as_save_IFS
  6151. test -z "$as_dir" && as_dir=.
  6152. for ac_exec_ext in '' $ac_executable_extensions; do
  6153. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6154. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6155. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6156. break 2
  6157. fi
  6158. done
  6159. done
  6160. IFS=$as_save_IFS
  6161. fi
  6162. fi
  6163. RANLIB=$ac_cv_prog_RANLIB
  6164. if test -n "$RANLIB"; then
  6165. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  6166. echo "${ECHO_T}$RANLIB" >&6; }
  6167. else
  6168. { echo "$as_me:$LINENO: result: no" >&5
  6169. echo "${ECHO_T}no" >&6; }
  6170. fi
  6171. fi
  6172. if test -z "$ac_cv_prog_RANLIB"; then
  6173. ac_ct_RANLIB=$RANLIB
  6174. # Extract the first word of "ranlib", so it can be a program name with args.
  6175. set dummy ranlib; ac_word=$2
  6176. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6177. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6178. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  6179. echo $ECHO_N "(cached) $ECHO_C" >&6
  6180. else
  6181. if test -n "$ac_ct_RANLIB"; then
  6182. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6183. else
  6184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6185. for as_dir in $PATH
  6186. do
  6187. IFS=$as_save_IFS
  6188. test -z "$as_dir" && as_dir=.
  6189. for ac_exec_ext in '' $ac_executable_extensions; do
  6190. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6191. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6192. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6193. break 2
  6194. fi
  6195. done
  6196. done
  6197. IFS=$as_save_IFS
  6198. fi
  6199. fi
  6200. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6201. if test -n "$ac_ct_RANLIB"; then
  6202. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  6203. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  6204. else
  6205. { echo "$as_me:$LINENO: result: no" >&5
  6206. echo "${ECHO_T}no" >&6; }
  6207. fi
  6208. if test "x$ac_ct_RANLIB" = x; then
  6209. RANLIB=":"
  6210. else
  6211. case $cross_compiling:$ac_tool_warned in
  6212. yes:)
  6213. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6214. whose name does not start with the host triplet. If you think this
  6215. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6216. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6217. whose name does not start with the host triplet. If you think this
  6218. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6219. ac_tool_warned=yes ;;
  6220. esac
  6221. RANLIB=$ac_ct_RANLIB
  6222. fi
  6223. else
  6224. RANLIB="$ac_cv_prog_RANLIB"
  6225. fi
  6226. if test -n "$ac_tool_prefix"; then
  6227. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6228. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6229. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6230. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6231. if test "${ac_cv_prog_STRIP+set}" = set; then
  6232. echo $ECHO_N "(cached) $ECHO_C" >&6
  6233. else
  6234. if test -n "$STRIP"; then
  6235. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6236. else
  6237. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6238. for as_dir in $PATH
  6239. do
  6240. IFS=$as_save_IFS
  6241. test -z "$as_dir" && as_dir=.
  6242. for ac_exec_ext in '' $ac_executable_extensions; do
  6243. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6244. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6245. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6246. break 2
  6247. fi
  6248. done
  6249. done
  6250. IFS=$as_save_IFS
  6251. fi
  6252. fi
  6253. STRIP=$ac_cv_prog_STRIP
  6254. if test -n "$STRIP"; then
  6255. { echo "$as_me:$LINENO: result: $STRIP" >&5
  6256. echo "${ECHO_T}$STRIP" >&6; }
  6257. else
  6258. { echo "$as_me:$LINENO: result: no" >&5
  6259. echo "${ECHO_T}no" >&6; }
  6260. fi
  6261. fi
  6262. if test -z "$ac_cv_prog_STRIP"; then
  6263. ac_ct_STRIP=$STRIP
  6264. # Extract the first word of "strip", so it can be a program name with args.
  6265. set dummy strip; ac_word=$2
  6266. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6267. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6268. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  6269. echo $ECHO_N "(cached) $ECHO_C" >&6
  6270. else
  6271. if test -n "$ac_ct_STRIP"; then
  6272. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6273. else
  6274. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6275. for as_dir in $PATH
  6276. do
  6277. IFS=$as_save_IFS
  6278. test -z "$as_dir" && as_dir=.
  6279. for ac_exec_ext in '' $ac_executable_extensions; do
  6280. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6281. ac_cv_prog_ac_ct_STRIP="strip"
  6282. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6283. break 2
  6284. fi
  6285. done
  6286. done
  6287. IFS=$as_save_IFS
  6288. fi
  6289. fi
  6290. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6291. if test -n "$ac_ct_STRIP"; then
  6292. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  6293. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  6294. else
  6295. { echo "$as_me:$LINENO: result: no" >&5
  6296. echo "${ECHO_T}no" >&6; }
  6297. fi
  6298. if test "x$ac_ct_STRIP" = x; then
  6299. STRIP=":"
  6300. else
  6301. case $cross_compiling:$ac_tool_warned in
  6302. yes:)
  6303. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6304. whose name does not start with the host triplet. If you think this
  6305. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6306. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6307. whose name does not start with the host triplet. If you think this
  6308. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6309. ac_tool_warned=yes ;;
  6310. esac
  6311. STRIP=$ac_ct_STRIP
  6312. fi
  6313. else
  6314. STRIP="$ac_cv_prog_STRIP"
  6315. fi
  6316. old_CC="$CC"
  6317. old_CFLAGS="$CFLAGS"
  6318. # Set sane defaults for various variables
  6319. test -z "$AR" && AR=ar
  6320. test -z "$AR_FLAGS" && AR_FLAGS=cru
  6321. test -z "$AS" && AS=as
  6322. test -z "$CC" && CC=cc
  6323. test -z "$LTCC" && LTCC=$CC
  6324. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6325. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6326. test -z "$LD" && LD=ld
  6327. test -z "$LN_S" && LN_S="ln -s"
  6328. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6329. test -z "$NM" && NM=nm
  6330. test -z "$SED" && SED=sed
  6331. test -z "$OBJDUMP" && OBJDUMP=objdump
  6332. test -z "$RANLIB" && RANLIB=:
  6333. test -z "$STRIP" && STRIP=:
  6334. test -z "$ac_objext" && ac_objext=o
  6335. # Determine commands to create old-style static archives.
  6336. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6337. old_postinstall_cmds='chmod 644 $oldlib'
  6338. old_postuninstall_cmds=
  6339. if test -n "$RANLIB"; then
  6340. case $host_os in
  6341. openbsd*)
  6342. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  6343. ;;
  6344. *)
  6345. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  6346. ;;
  6347. esac
  6348. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6349. fi
  6350. for cc_temp in $compiler""; do
  6351. case $cc_temp in
  6352. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6353. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6354. \-*) ;;
  6355. *) break;;
  6356. esac
  6357. done
  6358. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6359. # Only perform the check for file, if the check method requires it
  6360. case $deplibs_check_method in
  6361. file_magic*)
  6362. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6363. { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  6364. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
  6365. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6366. echo $ECHO_N "(cached) $ECHO_C" >&6
  6367. else
  6368. case $MAGIC_CMD in
  6369. [\\/*] | ?:[\\/]*)
  6370. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6371. ;;
  6372. *)
  6373. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6374. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6375. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6376. for ac_dir in $ac_dummy; do
  6377. IFS="$lt_save_ifs"
  6378. test -z "$ac_dir" && ac_dir=.
  6379. if test -f $ac_dir/${ac_tool_prefix}file; then
  6380. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6381. if test -n "$file_magic_test_file"; then
  6382. case $deplibs_check_method in
  6383. "file_magic "*)
  6384. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6385. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6386. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6387. $EGREP "$file_magic_regex" > /dev/null; then
  6388. :
  6389. else
  6390. cat <<EOF 1>&2
  6391. *** Warning: the command libtool uses to detect shared libraries,
  6392. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6393. *** The result is that libtool may fail to recognize shared libraries
  6394. *** as such. This will affect the creation of libtool libraries that
  6395. *** depend on shared libraries, but programs linked with such libtool
  6396. *** libraries will work regardless of this problem. Nevertheless, you
  6397. *** may want to report the problem to your system manager and/or to
  6398. *** bug-libtool@gnu.org
  6399. EOF
  6400. fi ;;
  6401. esac
  6402. fi
  6403. break
  6404. fi
  6405. done
  6406. IFS="$lt_save_ifs"
  6407. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6408. ;;
  6409. esac
  6410. fi
  6411. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6412. if test -n "$MAGIC_CMD"; then
  6413. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6414. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  6415. else
  6416. { echo "$as_me:$LINENO: result: no" >&5
  6417. echo "${ECHO_T}no" >&6; }
  6418. fi
  6419. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6420. if test -n "$ac_tool_prefix"; then
  6421. { echo "$as_me:$LINENO: checking for file" >&5
  6422. echo $ECHO_N "checking for file... $ECHO_C" >&6; }
  6423. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6424. echo $ECHO_N "(cached) $ECHO_C" >&6
  6425. else
  6426. case $MAGIC_CMD in
  6427. [\\/*] | ?:[\\/]*)
  6428. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6429. ;;
  6430. *)
  6431. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6432. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6433. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6434. for ac_dir in $ac_dummy; do
  6435. IFS="$lt_save_ifs"
  6436. test -z "$ac_dir" && ac_dir=.
  6437. if test -f $ac_dir/file; then
  6438. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6439. if test -n "$file_magic_test_file"; then
  6440. case $deplibs_check_method in
  6441. "file_magic "*)
  6442. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6443. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6444. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6445. $EGREP "$file_magic_regex" > /dev/null; then
  6446. :
  6447. else
  6448. cat <<EOF 1>&2
  6449. *** Warning: the command libtool uses to detect shared libraries,
  6450. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6451. *** The result is that libtool may fail to recognize shared libraries
  6452. *** as such. This will affect the creation of libtool libraries that
  6453. *** depend on shared libraries, but programs linked with such libtool
  6454. *** libraries will work regardless of this problem. Nevertheless, you
  6455. *** may want to report the problem to your system manager and/or to
  6456. *** bug-libtool@gnu.org
  6457. EOF
  6458. fi ;;
  6459. esac
  6460. fi
  6461. break
  6462. fi
  6463. done
  6464. IFS="$lt_save_ifs"
  6465. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6466. ;;
  6467. esac
  6468. fi
  6469. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6470. if test -n "$MAGIC_CMD"; then
  6471. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6472. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  6473. else
  6474. { echo "$as_me:$LINENO: result: no" >&5
  6475. echo "${ECHO_T}no" >&6; }
  6476. fi
  6477. else
  6478. MAGIC_CMD=:
  6479. fi
  6480. fi
  6481. fi
  6482. ;;
  6483. esac
  6484. enable_dlopen=no
  6485. enable_win32_dll=no
  6486. # Check whether --enable-libtool-lock was given.
  6487. if test "${enable_libtool_lock+set}" = set; then
  6488. enableval=$enable_libtool_lock;
  6489. fi
  6490. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6491. # Check whether --with-pic was given.
  6492. if test "${with_pic+set}" = set; then
  6493. withval=$with_pic; pic_mode="$withval"
  6494. else
  6495. pic_mode=default
  6496. fi
  6497. test -z "$pic_mode" && pic_mode=default
  6498. # Use C for the default configuration in the libtool script
  6499. tagname=
  6500. lt_save_CC="$CC"
  6501. ac_ext=c
  6502. ac_cpp='$CPP $CPPFLAGS'
  6503. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6504. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6505. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6506. # Source file extension for C test sources.
  6507. ac_ext=c
  6508. # Object file extension for compiled C test sources.
  6509. objext=o
  6510. objext=$objext
  6511. # Code to be used in simple compile tests
  6512. lt_simple_compile_test_code="int some_variable = 0;"
  6513. # Code to be used in simple link tests
  6514. lt_simple_link_test_code='int main(){return(0);}'
  6515. # If no C compiler was specified, use CC.
  6516. LTCC=${LTCC-"$CC"}
  6517. # If no C compiler flags were specified, use CFLAGS.
  6518. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6519. # Allow CC to be a program name with arguments.
  6520. compiler=$CC
  6521. # save warnings/boilerplate of simple test code
  6522. ac_outfile=conftest.$ac_objext
  6523. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6524. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6525. _lt_compiler_boilerplate=`cat conftest.err`
  6526. $rm conftest*
  6527. ac_outfile=conftest.$ac_objext
  6528. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6529. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6530. _lt_linker_boilerplate=`cat conftest.err`
  6531. $rm conftest*
  6532. lt_prog_compiler_no_builtin_flag=
  6533. if test "$GCC" = yes; then
  6534. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  6535. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6536. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  6537. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  6538. echo $ECHO_N "(cached) $ECHO_C" >&6
  6539. else
  6540. lt_cv_prog_compiler_rtti_exceptions=no
  6541. ac_outfile=conftest.$ac_objext
  6542. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6543. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6544. # Insert the option either (1) after the last *FLAGS variable, or
  6545. # (2) before a word containing "conftest.", or (3) at the end.
  6546. # Note that $ac_compile itself does not contain backslashes and begins
  6547. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6548. # The option is referenced via a variable to avoid confusing sed.
  6549. lt_compile=`echo "$ac_compile" | $SED \
  6550. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6551. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6552. -e 's:$: $lt_compiler_flag:'`
  6553. (eval echo "\"\$as_me:7324: $lt_compile\"" >&5)
  6554. (eval "$lt_compile" 2>conftest.err)
  6555. ac_status=$?
  6556. cat conftest.err >&5
  6557. echo "$as_me:7328: \$? = $ac_status" >&5
  6558. if (exit $ac_status) && test -s "$ac_outfile"; then
  6559. # The compiler can only warn and ignore the option if not recognized
  6560. # So say no if there are warnings other than the usual output.
  6561. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6562. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6563. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6564. lt_cv_prog_compiler_rtti_exceptions=yes
  6565. fi
  6566. fi
  6567. $rm conftest*
  6568. fi
  6569. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6570. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6571. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6572. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6573. else
  6574. :
  6575. fi
  6576. fi
  6577. lt_prog_compiler_wl=
  6578. lt_prog_compiler_pic=
  6579. lt_prog_compiler_static=
  6580. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  6581. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  6582. if test "$GCC" = yes; then
  6583. lt_prog_compiler_wl='-Wl,'
  6584. lt_prog_compiler_static='-static'
  6585. case $host_os in
  6586. aix*)
  6587. # All AIX code is PIC.
  6588. if test "$host_cpu" = ia64; then
  6589. # AIX 5 now supports IA64 processor
  6590. lt_prog_compiler_static='-Bstatic'
  6591. fi
  6592. ;;
  6593. amigaos*)
  6594. # FIXME: we need at least 68020 code to build shared libraries, but
  6595. # adding the `-m68020' flag to GCC prevents building anything better,
  6596. # like `-m68040'.
  6597. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6598. ;;
  6599. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6600. # PIC is the default for these OSes.
  6601. ;;
  6602. mingw* | cygwin* | pw32* | os2*)
  6603. # This hack is so that the source file can tell whether it is being
  6604. # built for inclusion in a dll (and should export symbols for example).
  6605. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6606. # (--disable-auto-import) libraries
  6607. lt_prog_compiler_pic='-DDLL_EXPORT'
  6608. ;;
  6609. darwin* | rhapsody*)
  6610. # PIC is the default on this platform
  6611. # Common symbols not allowed in MH_DYLIB files
  6612. lt_prog_compiler_pic='-fno-common'
  6613. ;;
  6614. interix[3-9]*)
  6615. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6616. # Instead, we relocate shared libraries at runtime.
  6617. ;;
  6618. msdosdjgpp*)
  6619. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6620. # on systems that don't support them.
  6621. lt_prog_compiler_can_build_shared=no
  6622. enable_shared=no
  6623. ;;
  6624. sysv4*MP*)
  6625. if test -d /usr/nec; then
  6626. lt_prog_compiler_pic=-Kconform_pic
  6627. fi
  6628. ;;
  6629. hpux*)
  6630. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6631. # not for PA HP-UX.
  6632. case $host_cpu in
  6633. hppa*64*|ia64*)
  6634. # +Z the default
  6635. ;;
  6636. *)
  6637. lt_prog_compiler_pic='-fPIC'
  6638. ;;
  6639. esac
  6640. ;;
  6641. *)
  6642. lt_prog_compiler_pic='-fPIC'
  6643. ;;
  6644. esac
  6645. else
  6646. # PORTME Check for flag to pass linker flags through the system compiler.
  6647. case $host_os in
  6648. aix*)
  6649. lt_prog_compiler_wl='-Wl,'
  6650. if test "$host_cpu" = ia64; then
  6651. # AIX 5 now supports IA64 processor
  6652. lt_prog_compiler_static='-Bstatic'
  6653. else
  6654. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6655. fi
  6656. ;;
  6657. darwin*)
  6658. # PIC is the default on this platform
  6659. # Common symbols not allowed in MH_DYLIB files
  6660. case $cc_basename in
  6661. xlc*)
  6662. lt_prog_compiler_pic='-qnocommon'
  6663. lt_prog_compiler_wl='-Wl,'
  6664. ;;
  6665. esac
  6666. ;;
  6667. mingw* | cygwin* | pw32* | os2*)
  6668. # This hack is so that the source file can tell whether it is being
  6669. # built for inclusion in a dll (and should export symbols for example).
  6670. lt_prog_compiler_pic='-DDLL_EXPORT'
  6671. ;;
  6672. hpux9* | hpux10* | hpux11*)
  6673. lt_prog_compiler_wl='-Wl,'
  6674. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6675. # not for PA HP-UX.
  6676. case $host_cpu in
  6677. hppa*64*|ia64*)
  6678. # +Z the default
  6679. ;;
  6680. *)
  6681. lt_prog_compiler_pic='+Z'
  6682. ;;
  6683. esac
  6684. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6685. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6686. ;;
  6687. irix5* | irix6* | nonstopux*)
  6688. lt_prog_compiler_wl='-Wl,'
  6689. # PIC (with -KPIC) is the default.
  6690. lt_prog_compiler_static='-non_shared'
  6691. ;;
  6692. newsos6)
  6693. lt_prog_compiler_pic='-KPIC'
  6694. lt_prog_compiler_static='-Bstatic'
  6695. ;;
  6696. linux* | k*bsd*-gnu)
  6697. case $cc_basename in
  6698. icc* | ecc*)
  6699. lt_prog_compiler_wl='-Wl,'
  6700. lt_prog_compiler_pic='-KPIC'
  6701. lt_prog_compiler_static='-static'
  6702. ;;
  6703. pgcc* | pgf77* | pgf90* | pgf95*)
  6704. # Portland Group compilers (*not* the Pentium gcc compiler,
  6705. # which looks to be a dead project)
  6706. lt_prog_compiler_wl='-Wl,'
  6707. lt_prog_compiler_pic='-fpic'
  6708. lt_prog_compiler_static='-Bstatic'
  6709. ;;
  6710. ccc*)
  6711. lt_prog_compiler_wl='-Wl,'
  6712. # All Alpha code is PIC.
  6713. lt_prog_compiler_static='-non_shared'
  6714. ;;
  6715. *)
  6716. case `$CC -V 2>&1 | sed 5q` in
  6717. *Sun\ C*)
  6718. # Sun C 5.9
  6719. lt_prog_compiler_pic='-KPIC'
  6720. lt_prog_compiler_static='-Bstatic'
  6721. lt_prog_compiler_wl='-Wl,'
  6722. ;;
  6723. *Sun\ F*)
  6724. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6725. lt_prog_compiler_pic='-KPIC'
  6726. lt_prog_compiler_static='-Bstatic'
  6727. lt_prog_compiler_wl=''
  6728. ;;
  6729. esac
  6730. ;;
  6731. esac
  6732. ;;
  6733. osf3* | osf4* | osf5*)
  6734. lt_prog_compiler_wl='-Wl,'
  6735. # All OSF/1 code is PIC.
  6736. lt_prog_compiler_static='-non_shared'
  6737. ;;
  6738. rdos*)
  6739. lt_prog_compiler_static='-non_shared'
  6740. ;;
  6741. solaris*)
  6742. lt_prog_compiler_pic='-KPIC'
  6743. lt_prog_compiler_static='-Bstatic'
  6744. case $cc_basename in
  6745. f77* | f90* | f95*)
  6746. lt_prog_compiler_wl='-Qoption ld ';;
  6747. *)
  6748. lt_prog_compiler_wl='-Wl,';;
  6749. esac
  6750. ;;
  6751. sunos4*)
  6752. lt_prog_compiler_wl='-Qoption ld '
  6753. lt_prog_compiler_pic='-PIC'
  6754. lt_prog_compiler_static='-Bstatic'
  6755. ;;
  6756. sysv4 | sysv4.2uw2* | sysv4.3*)
  6757. lt_prog_compiler_wl='-Wl,'
  6758. lt_prog_compiler_pic='-KPIC'
  6759. lt_prog_compiler_static='-Bstatic'
  6760. ;;
  6761. sysv4*MP*)
  6762. if test -d /usr/nec ;then
  6763. lt_prog_compiler_pic='-Kconform_pic'
  6764. lt_prog_compiler_static='-Bstatic'
  6765. fi
  6766. ;;
  6767. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6768. lt_prog_compiler_wl='-Wl,'
  6769. lt_prog_compiler_pic='-KPIC'
  6770. lt_prog_compiler_static='-Bstatic'
  6771. ;;
  6772. unicos*)
  6773. lt_prog_compiler_wl='-Wl,'
  6774. lt_prog_compiler_can_build_shared=no
  6775. ;;
  6776. uts4*)
  6777. lt_prog_compiler_pic='-pic'
  6778. lt_prog_compiler_static='-Bstatic'
  6779. ;;
  6780. *)
  6781. lt_prog_compiler_can_build_shared=no
  6782. ;;
  6783. esac
  6784. fi
  6785. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  6786. echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
  6787. #
  6788. # Check to make sure the PIC flag actually works.
  6789. #
  6790. if test -n "$lt_prog_compiler_pic"; then
  6791. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6792. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
  6793. if test "${lt_prog_compiler_pic_works+set}" = set; then
  6794. echo $ECHO_N "(cached) $ECHO_C" >&6
  6795. else
  6796. lt_prog_compiler_pic_works=no
  6797. ac_outfile=conftest.$ac_objext
  6798. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6799. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6800. # Insert the option either (1) after the last *FLAGS variable, or
  6801. # (2) before a word containing "conftest.", or (3) at the end.
  6802. # Note that $ac_compile itself does not contain backslashes and begins
  6803. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6804. # The option is referenced via a variable to avoid confusing sed.
  6805. lt_compile=`echo "$ac_compile" | $SED \
  6806. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6807. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6808. -e 's:$: $lt_compiler_flag:'`
  6809. (eval echo "\"\$as_me:7614: $lt_compile\"" >&5)
  6810. (eval "$lt_compile" 2>conftest.err)
  6811. ac_status=$?
  6812. cat conftest.err >&5
  6813. echo "$as_me:7618: \$? = $ac_status" >&5
  6814. if (exit $ac_status) && test -s "$ac_outfile"; then
  6815. # The compiler can only warn and ignore the option if not recognized
  6816. # So say no if there are warnings other than the usual output.
  6817. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6818. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6819. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6820. lt_prog_compiler_pic_works=yes
  6821. fi
  6822. fi
  6823. $rm conftest*
  6824. fi
  6825. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  6826. echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
  6827. if test x"$lt_prog_compiler_pic_works" = xyes; then
  6828. case $lt_prog_compiler_pic in
  6829. "" | " "*) ;;
  6830. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6831. esac
  6832. else
  6833. lt_prog_compiler_pic=
  6834. lt_prog_compiler_can_build_shared=no
  6835. fi
  6836. fi
  6837. case $host_os in
  6838. # For platforms which do not support PIC, -DPIC is meaningless:
  6839. *djgpp*)
  6840. lt_prog_compiler_pic=
  6841. ;;
  6842. *)
  6843. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6844. ;;
  6845. esac
  6846. #
  6847. # Check to make sure the static flag actually works.
  6848. #
  6849. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  6850. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6851. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  6852. if test "${lt_prog_compiler_static_works+set}" = set; then
  6853. echo $ECHO_N "(cached) $ECHO_C" >&6
  6854. else
  6855. lt_prog_compiler_static_works=no
  6856. save_LDFLAGS="$LDFLAGS"
  6857. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6858. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  6859. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6860. # The linker can only warn and ignore the option if not recognized
  6861. # So say no if there are warnings
  6862. if test -s conftest.err; then
  6863. # Append any errors to the config.log.
  6864. cat conftest.err 1>&5
  6865. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  6866. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6867. if diff conftest.exp conftest.er2 >/dev/null; then
  6868. lt_prog_compiler_static_works=yes
  6869. fi
  6870. else
  6871. lt_prog_compiler_static_works=yes
  6872. fi
  6873. fi
  6874. $rm conftest*
  6875. LDFLAGS="$save_LDFLAGS"
  6876. fi
  6877. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  6878. echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
  6879. if test x"$lt_prog_compiler_static_works" = xyes; then
  6880. :
  6881. else
  6882. lt_prog_compiler_static=
  6883. fi
  6884. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  6885. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  6886. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  6887. echo $ECHO_N "(cached) $ECHO_C" >&6
  6888. else
  6889. lt_cv_prog_compiler_c_o=no
  6890. $rm -r conftest 2>/dev/null
  6891. mkdir conftest
  6892. cd conftest
  6893. mkdir out
  6894. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6895. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6896. # Insert the option either (1) after the last *FLAGS variable, or
  6897. # (2) before a word containing "conftest.", or (3) at the end.
  6898. # Note that $ac_compile itself does not contain backslashes and begins
  6899. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6900. lt_compile=`echo "$ac_compile" | $SED \
  6901. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6902. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6903. -e 's:$: $lt_compiler_flag:'`
  6904. (eval echo "\"\$as_me:7718: $lt_compile\"" >&5)
  6905. (eval "$lt_compile" 2>out/conftest.err)
  6906. ac_status=$?
  6907. cat out/conftest.err >&5
  6908. echo "$as_me:7722: \$? = $ac_status" >&5
  6909. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6910. then
  6911. # The compiler can only warn and ignore the option if not recognized
  6912. # So say no if there are warnings
  6913. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  6914. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6915. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6916. lt_cv_prog_compiler_c_o=yes
  6917. fi
  6918. fi
  6919. chmod u+w . 2>&5
  6920. $rm conftest*
  6921. # SGI C++ compiler will create directory out/ii_files/ for
  6922. # template instantiation
  6923. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  6924. $rm out/* && rmdir out
  6925. cd ..
  6926. rmdir conftest
  6927. $rm conftest*
  6928. fi
  6929. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  6930. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
  6931. hard_links="nottested"
  6932. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  6933. # do not overwrite the value of need_locks provided by the user
  6934. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  6935. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  6936. hard_links=yes
  6937. $rm conftest*
  6938. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6939. touch conftest.a
  6940. ln conftest.a conftest.b 2>&5 || hard_links=no
  6941. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6942. { echo "$as_me:$LINENO: result: $hard_links" >&5
  6943. echo "${ECHO_T}$hard_links" >&6; }
  6944. if test "$hard_links" = no; then
  6945. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  6946. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  6947. need_locks=warn
  6948. fi
  6949. else
  6950. need_locks=no
  6951. fi
  6952. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  6953. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  6954. runpath_var=
  6955. allow_undefined_flag=
  6956. enable_shared_with_static_runtimes=no
  6957. archive_cmds=
  6958. archive_expsym_cmds=
  6959. old_archive_From_new_cmds=
  6960. old_archive_from_expsyms_cmds=
  6961. export_dynamic_flag_spec=
  6962. whole_archive_flag_spec=
  6963. thread_safe_flag_spec=
  6964. hardcode_libdir_flag_spec=
  6965. hardcode_libdir_flag_spec_ld=
  6966. hardcode_libdir_separator=
  6967. hardcode_direct=no
  6968. hardcode_minus_L=no
  6969. hardcode_shlibpath_var=unsupported
  6970. link_all_deplibs=unknown
  6971. hardcode_automatic=no
  6972. module_cmds=
  6973. module_expsym_cmds=
  6974. always_export_symbols=no
  6975. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6976. # include_expsyms should be a list of space-separated symbols to be *always*
  6977. # included in the symbol list
  6978. include_expsyms=
  6979. # exclude_expsyms can be an extended regexp of symbols to exclude
  6980. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  6981. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  6982. # as well as any symbol that contains `d'.
  6983. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  6984. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  6985. # platforms (ab)use it in PIC code, but their linkers get confused if
  6986. # the symbol is explicitly referenced. Since portable code cannot
  6987. # rely on this symbol name, it's probably fine to never include it in
  6988. # preloaded symbol tables.
  6989. extract_expsyms_cmds=
  6990. # Just being paranoid about ensuring that cc_basename is set.
  6991. for cc_temp in $compiler""; do
  6992. case $cc_temp in
  6993. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6994. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6995. \-*) ;;
  6996. *) break;;
  6997. esac
  6998. done
  6999. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  7000. case $host_os in
  7001. cygwin* | mingw* | pw32*)
  7002. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7003. # When not using gcc, we currently assume that we are using
  7004. # Microsoft Visual C++.
  7005. if test "$GCC" != yes; then
  7006. with_gnu_ld=no
  7007. fi
  7008. ;;
  7009. interix*)
  7010. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7011. with_gnu_ld=yes
  7012. ;;
  7013. openbsd*)
  7014. with_gnu_ld=no
  7015. ;;
  7016. esac
  7017. ld_shlibs=yes
  7018. if test "$with_gnu_ld" = yes; then
  7019. # If archive_cmds runs LD, not CC, wlarc should be empty
  7020. wlarc='${wl}'
  7021. # Set some defaults for GNU ld with shared library support. These
  7022. # are reset later if shared libraries are not supported. Putting them
  7023. # here allows them to be overridden if necessary.
  7024. runpath_var=LD_RUN_PATH
  7025. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  7026. export_dynamic_flag_spec='${wl}--export-dynamic'
  7027. # ancient GNU ld didn't support --whole-archive et. al.
  7028. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  7029. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7030. else
  7031. whole_archive_flag_spec=
  7032. fi
  7033. supports_anon_versioning=no
  7034. case `$LD -v 2>/dev/null` in
  7035. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7036. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7037. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7038. *\ 2.11.*) ;; # other 2.11 versions
  7039. *) supports_anon_versioning=yes ;;
  7040. esac
  7041. # See if GNU ld supports shared libraries.
  7042. case $host_os in
  7043. aix3* | aix4* | aix5*)
  7044. # On AIX/PPC, the GNU linker is very broken
  7045. if test "$host_cpu" != ia64; then
  7046. ld_shlibs=no
  7047. cat <<EOF 1>&2
  7048. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7049. *** to be unable to reliably create shared libraries on AIX.
  7050. *** Therefore, libtool is disabling shared libraries support. If you
  7051. *** really care for shared libraries, you may want to modify your PATH
  7052. *** so that a non-GNU linker is found, and then restart.
  7053. EOF
  7054. fi
  7055. ;;
  7056. amigaos*)
  7057. 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)'
  7058. hardcode_libdir_flag_spec='-L$libdir'
  7059. hardcode_minus_L=yes
  7060. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  7061. # that the semantics of dynamic libraries on AmigaOS, at least up
  7062. # to version 4, is to share data among multiple programs linked
  7063. # with the same dynamic library. Since this doesn't match the
  7064. # behavior of shared libraries on other platforms, we can't use
  7065. # them.
  7066. ld_shlibs=no
  7067. ;;
  7068. beos*)
  7069. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7070. allow_undefined_flag=unsupported
  7071. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7072. # support --undefined. This deserves some investigation. FIXME
  7073. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7074. else
  7075. ld_shlibs=no
  7076. fi
  7077. ;;
  7078. cygwin* | mingw* | pw32*)
  7079. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7080. # as there is no search path for DLLs.
  7081. hardcode_libdir_flag_spec='-L$libdir'
  7082. allow_undefined_flag=unsupported
  7083. always_export_symbols=no
  7084. enable_shared_with_static_runtimes=yes
  7085. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7086. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  7087. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7088. # If the export-symbols file already is a .def file (1st line
  7089. # is EXPORTS), use it as is; otherwise, prepend...
  7090. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7091. cp $export_symbols $output_objdir/$soname.def;
  7092. else
  7093. echo EXPORTS > $output_objdir/$soname.def;
  7094. cat $export_symbols >> $output_objdir/$soname.def;
  7095. fi~
  7096. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7097. else
  7098. ld_shlibs=no
  7099. fi
  7100. ;;
  7101. interix[3-9]*)
  7102. hardcode_direct=no
  7103. hardcode_shlibpath_var=no
  7104. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7105. export_dynamic_flag_spec='${wl}-E'
  7106. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7107. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7108. # default) and relocated if they conflict, which is a slow very memory
  7109. # consuming and fragmenting process. To avoid this, we pick a random,
  7110. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7111. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7112. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7113. 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'
  7114. ;;
  7115. gnu* | linux* | k*bsd*-gnu)
  7116. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7117. tmp_addflag=
  7118. case $cc_basename,$host_cpu in
  7119. pgcc*) # Portland Group C compiler
  7120. 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'
  7121. tmp_addflag=' $pic_flag'
  7122. ;;
  7123. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  7124. 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'
  7125. tmp_addflag=' $pic_flag -Mnomain' ;;
  7126. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7127. tmp_addflag=' -i_dynamic' ;;
  7128. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7129. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7130. ifc* | ifort*) # Intel Fortran compiler
  7131. tmp_addflag=' -nofor_main' ;;
  7132. esac
  7133. case `$CC -V 2>&1 | sed 5q` in
  7134. *Sun\ C*) # Sun C 5.9
  7135. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  7136. tmp_sharedflag='-G' ;;
  7137. *Sun\ F*) # Sun Fortran 8.3
  7138. tmp_sharedflag='-G' ;;
  7139. *)
  7140. tmp_sharedflag='-shared' ;;
  7141. esac
  7142. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7143. if test $supports_anon_versioning = yes; then
  7144. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  7145. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7146. $echo "local: *; };" >> $output_objdir/$libname.ver~
  7147. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7148. fi
  7149. else
  7150. ld_shlibs=no
  7151. fi
  7152. ;;
  7153. netbsd*)
  7154. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7155. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7156. wlarc=
  7157. else
  7158. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7159. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7160. fi
  7161. ;;
  7162. solaris*)
  7163. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  7164. ld_shlibs=no
  7165. cat <<EOF 1>&2
  7166. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7167. *** create shared libraries on Solaris systems. Therefore, libtool
  7168. *** is disabling shared libraries support. We urge you to upgrade GNU
  7169. *** binutils to release 2.9.1 or newer. Another option is to modify
  7170. *** your PATH or compiler configuration so that the native linker is
  7171. *** used, and then restart.
  7172. EOF
  7173. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7174. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7175. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7176. else
  7177. ld_shlibs=no
  7178. fi
  7179. ;;
  7180. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7181. case `$LD -v 2>&1` in
  7182. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7183. ld_shlibs=no
  7184. cat <<_LT_EOF 1>&2
  7185. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7186. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7187. *** is disabling shared libraries support. We urge you to upgrade GNU
  7188. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7189. *** your PATH or compiler configuration so that the native linker is
  7190. *** used, and then restart.
  7191. _LT_EOF
  7192. ;;
  7193. *)
  7194. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7195. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  7196. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  7197. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  7198. else
  7199. ld_shlibs=no
  7200. fi
  7201. ;;
  7202. esac
  7203. ;;
  7204. sunos4*)
  7205. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7206. wlarc=
  7207. hardcode_direct=yes
  7208. hardcode_shlibpath_var=no
  7209. ;;
  7210. *)
  7211. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7212. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7213. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7214. else
  7215. ld_shlibs=no
  7216. fi
  7217. ;;
  7218. esac
  7219. if test "$ld_shlibs" = no; then
  7220. runpath_var=
  7221. hardcode_libdir_flag_spec=
  7222. export_dynamic_flag_spec=
  7223. whole_archive_flag_spec=
  7224. fi
  7225. else
  7226. # PORTME fill in a description of your system's linker (not GNU ld)
  7227. case $host_os in
  7228. aix3*)
  7229. allow_undefined_flag=unsupported
  7230. always_export_symbols=yes
  7231. 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'
  7232. # Note: this linker hardcodes the directories in LIBPATH if there
  7233. # are no directories specified by -L.
  7234. hardcode_minus_L=yes
  7235. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7236. # Neither direct hardcoding nor static linking is supported with a
  7237. # broken collect2.
  7238. hardcode_direct=unsupported
  7239. fi
  7240. ;;
  7241. aix4* | aix5*)
  7242. if test "$host_cpu" = ia64; then
  7243. # On IA64, the linker does run time linking by default, so we don't
  7244. # have to do anything special.
  7245. aix_use_runtimelinking=no
  7246. exp_sym_flag='-Bexport'
  7247. no_entry_flag=""
  7248. else
  7249. # If we're using GNU nm, then we don't want the "-C" option.
  7250. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7251. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  7252. 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'
  7253. else
  7254. 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'
  7255. fi
  7256. aix_use_runtimelinking=no
  7257. # Test if we are trying to use run time linking or normal
  7258. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7259. # need to do runtime linking.
  7260. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  7261. for ld_flag in $LDFLAGS; do
  7262. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7263. aix_use_runtimelinking=yes
  7264. break
  7265. fi
  7266. done
  7267. ;;
  7268. esac
  7269. exp_sym_flag='-bexport'
  7270. no_entry_flag='-bnoentry'
  7271. fi
  7272. # When large executables or shared objects are built, AIX ld can
  7273. # have problems creating the table of contents. If linking a library
  7274. # or program results in "error TOC overflow" add -mminimal-toc to
  7275. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7276. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7277. archive_cmds=''
  7278. hardcode_direct=yes
  7279. hardcode_libdir_separator=':'
  7280. link_all_deplibs=yes
  7281. if test "$GCC" = yes; then
  7282. case $host_os in aix4.[012]|aix4.[012].*)
  7283. # We only want to do this on AIX 4.2 and lower, the check
  7284. # below for broken collect2 doesn't work under 4.3+
  7285. collect2name=`${CC} -print-prog-name=collect2`
  7286. if test -f "$collect2name" && \
  7287. strings "$collect2name" | grep resolve_lib_name >/dev/null
  7288. then
  7289. # We have reworked collect2
  7290. :
  7291. else
  7292. # We have old collect2
  7293. hardcode_direct=unsupported
  7294. # It fails to find uninstalled libraries when the uninstalled
  7295. # path is not listed in the libpath. Setting hardcode_minus_L
  7296. # to unsupported forces relinking
  7297. hardcode_minus_L=yes
  7298. hardcode_libdir_flag_spec='-L$libdir'
  7299. hardcode_libdir_separator=
  7300. fi
  7301. ;;
  7302. esac
  7303. shared_flag='-shared'
  7304. if test "$aix_use_runtimelinking" = yes; then
  7305. shared_flag="$shared_flag "'${wl}-G'
  7306. fi
  7307. else
  7308. # not using gcc
  7309. if test "$host_cpu" = ia64; then
  7310. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7311. # chokes on -Wl,-G. The following line is correct:
  7312. shared_flag='-G'
  7313. else
  7314. if test "$aix_use_runtimelinking" = yes; then
  7315. shared_flag='${wl}-G'
  7316. else
  7317. shared_flag='${wl}-bM:SRE'
  7318. fi
  7319. fi
  7320. fi
  7321. # It seems that -bexpall does not export symbols beginning with
  7322. # underscore (_), so it is better to generate a list of symbols to export.
  7323. always_export_symbols=yes
  7324. if test "$aix_use_runtimelinking" = yes; then
  7325. # Warning - without using the other runtime loading flags (-brtl),
  7326. # -berok will link without error, but may produce a broken library.
  7327. allow_undefined_flag='-berok'
  7328. # Determine the default libpath from the value encoded in an empty executable.
  7329. cat >conftest.$ac_ext <<_ACEOF
  7330. /* confdefs.h. */
  7331. _ACEOF
  7332. cat confdefs.h >>conftest.$ac_ext
  7333. cat >>conftest.$ac_ext <<_ACEOF
  7334. /* end confdefs.h. */
  7335. int
  7336. main ()
  7337. {
  7338. ;
  7339. return 0;
  7340. }
  7341. _ACEOF
  7342. rm -f conftest.$ac_objext conftest$ac_exeext
  7343. if { (ac_try="$ac_link"
  7344. case "(($ac_try" in
  7345. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7346. *) ac_try_echo=$ac_try;;
  7347. esac
  7348. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7349. (eval "$ac_link") 2>conftest.er1
  7350. ac_status=$?
  7351. grep -v '^ *+' conftest.er1 >conftest.err
  7352. rm -f conftest.er1
  7353. cat conftest.err >&5
  7354. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7355. (exit $ac_status); } && {
  7356. test -z "$ac_c_werror_flag" ||
  7357. test ! -s conftest.err
  7358. } && test -s conftest$ac_exeext &&
  7359. $as_test_x conftest$ac_exeext; then
  7360. lt_aix_libpath_sed='
  7361. /Import File Strings/,/^$/ {
  7362. /^0/ {
  7363. s/^0 *\(.*\)$/\1/
  7364. p
  7365. }
  7366. }'
  7367. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7368. # Check for a 64-bit object if we didn't find anything.
  7369. if test -z "$aix_libpath"; then
  7370. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7371. fi
  7372. else
  7373. echo "$as_me: failed program was:" >&5
  7374. sed 's/^/| /' conftest.$ac_ext >&5
  7375. fi
  7376. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7377. conftest$ac_exeext conftest.$ac_ext
  7378. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7379. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7380. 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"
  7381. else
  7382. if test "$host_cpu" = ia64; then
  7383. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7384. allow_undefined_flag="-z nodefs"
  7385. 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"
  7386. else
  7387. # Determine the default libpath from the value encoded in an empty executable.
  7388. cat >conftest.$ac_ext <<_ACEOF
  7389. /* confdefs.h. */
  7390. _ACEOF
  7391. cat confdefs.h >>conftest.$ac_ext
  7392. cat >>conftest.$ac_ext <<_ACEOF
  7393. /* end confdefs.h. */
  7394. int
  7395. main ()
  7396. {
  7397. ;
  7398. return 0;
  7399. }
  7400. _ACEOF
  7401. rm -f conftest.$ac_objext conftest$ac_exeext
  7402. if { (ac_try="$ac_link"
  7403. case "(($ac_try" in
  7404. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7405. *) ac_try_echo=$ac_try;;
  7406. esac
  7407. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7408. (eval "$ac_link") 2>conftest.er1
  7409. ac_status=$?
  7410. grep -v '^ *+' conftest.er1 >conftest.err
  7411. rm -f conftest.er1
  7412. cat conftest.err >&5
  7413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7414. (exit $ac_status); } && {
  7415. test -z "$ac_c_werror_flag" ||
  7416. test ! -s conftest.err
  7417. } && test -s conftest$ac_exeext &&
  7418. $as_test_x conftest$ac_exeext; then
  7419. lt_aix_libpath_sed='
  7420. /Import File Strings/,/^$/ {
  7421. /^0/ {
  7422. s/^0 *\(.*\)$/\1/
  7423. p
  7424. }
  7425. }'
  7426. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7427. # Check for a 64-bit object if we didn't find anything.
  7428. if test -z "$aix_libpath"; then
  7429. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7430. fi
  7431. else
  7432. echo "$as_me: failed program was:" >&5
  7433. sed 's/^/| /' conftest.$ac_ext >&5
  7434. fi
  7435. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7436. conftest$ac_exeext conftest.$ac_ext
  7437. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7438. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7439. # Warning - without using the other run time loading flags,
  7440. # -berok will link without error, but may produce a broken library.
  7441. no_undefined_flag=' ${wl}-bernotok'
  7442. allow_undefined_flag=' ${wl}-berok'
  7443. # Exported symbols can be pulled into shared objects from archives
  7444. whole_archive_flag_spec='$convenience'
  7445. archive_cmds_need_lc=yes
  7446. # This is similar to how AIX traditionally builds its shared libraries.
  7447. 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'
  7448. fi
  7449. fi
  7450. ;;
  7451. amigaos*)
  7452. 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)'
  7453. hardcode_libdir_flag_spec='-L$libdir'
  7454. hardcode_minus_L=yes
  7455. # see comment about different semantics on the GNU ld section
  7456. ld_shlibs=no
  7457. ;;
  7458. bsdi[45]*)
  7459. export_dynamic_flag_spec=-rdynamic
  7460. ;;
  7461. cygwin* | mingw* | pw32*)
  7462. # When not using gcc, we currently assume that we are using
  7463. # Microsoft Visual C++.
  7464. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7465. # no search path for DLLs.
  7466. hardcode_libdir_flag_spec=' '
  7467. allow_undefined_flag=unsupported
  7468. # Tell ltmain to make .lib files, not .a files.
  7469. libext=lib
  7470. # Tell ltmain to make .dll files, not .so files.
  7471. shrext_cmds=".dll"
  7472. # FIXME: Setting linknames here is a bad hack.
  7473. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7474. # The linker will automatically build a .lib file if we build a DLL.
  7475. old_archive_From_new_cmds='true'
  7476. # FIXME: Should let the user specify the lib program.
  7477. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7478. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7479. enable_shared_with_static_runtimes=yes
  7480. ;;
  7481. darwin* | rhapsody*)
  7482. case $host_os in
  7483. rhapsody* | darwin1.[012])
  7484. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  7485. ;;
  7486. *) # Darwin 1.3 on
  7487. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  7488. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7489. else
  7490. case ${MACOSX_DEPLOYMENT_TARGET} in
  7491. 10.[012])
  7492. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7493. ;;
  7494. 10.*)
  7495. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  7496. ;;
  7497. esac
  7498. fi
  7499. ;;
  7500. esac
  7501. archive_cmds_need_lc=no
  7502. hardcode_direct=no
  7503. hardcode_automatic=yes
  7504. hardcode_shlibpath_var=unsupported
  7505. whole_archive_flag_spec=''
  7506. link_all_deplibs=yes
  7507. if test "$GCC" = yes ; then
  7508. output_verbose_link_cmd='echo'
  7509. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  7510. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  7511. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  7512. 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}'
  7513. 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}'
  7514. else
  7515. case $cc_basename in
  7516. xlc*)
  7517. output_verbose_link_cmd='echo'
  7518. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  7519. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  7520. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  7521. 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7522. 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}'
  7523. ;;
  7524. *)
  7525. ld_shlibs=no
  7526. ;;
  7527. esac
  7528. fi
  7529. ;;
  7530. dgux*)
  7531. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7532. hardcode_libdir_flag_spec='-L$libdir'
  7533. hardcode_shlibpath_var=no
  7534. ;;
  7535. freebsd1*)
  7536. ld_shlibs=no
  7537. ;;
  7538. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7539. # support. Future versions do this automatically, but an explicit c++rt0.o
  7540. # does not break anything, and helps significantly (at the cost of a little
  7541. # extra space).
  7542. freebsd2.2*)
  7543. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7544. hardcode_libdir_flag_spec='-R$libdir'
  7545. hardcode_direct=yes
  7546. hardcode_shlibpath_var=no
  7547. ;;
  7548. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7549. freebsd2*)
  7550. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7551. hardcode_direct=yes
  7552. hardcode_minus_L=yes
  7553. hardcode_shlibpath_var=no
  7554. ;;
  7555. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7556. freebsd* | dragonfly*)
  7557. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7558. hardcode_libdir_flag_spec='-R$libdir'
  7559. hardcode_direct=yes
  7560. hardcode_shlibpath_var=no
  7561. ;;
  7562. hpux9*)
  7563. if test "$GCC" = yes; then
  7564. 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'
  7565. else
  7566. 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'
  7567. fi
  7568. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7569. hardcode_libdir_separator=:
  7570. hardcode_direct=yes
  7571. # hardcode_minus_L: Not really in the search PATH,
  7572. # but as the default location of the library.
  7573. hardcode_minus_L=yes
  7574. export_dynamic_flag_spec='${wl}-E'
  7575. ;;
  7576. hpux10*)
  7577. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7578. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7579. else
  7580. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7581. fi
  7582. if test "$with_gnu_ld" = no; then
  7583. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7584. hardcode_libdir_separator=:
  7585. hardcode_direct=yes
  7586. export_dynamic_flag_spec='${wl}-E'
  7587. # hardcode_minus_L: Not really in the search PATH,
  7588. # but as the default location of the library.
  7589. hardcode_minus_L=yes
  7590. fi
  7591. ;;
  7592. hpux11*)
  7593. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7594. case $host_cpu in
  7595. hppa*64*)
  7596. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7597. ;;
  7598. ia64*)
  7599. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7600. ;;
  7601. *)
  7602. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7603. ;;
  7604. esac
  7605. else
  7606. case $host_cpu in
  7607. hppa*64*)
  7608. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7609. ;;
  7610. ia64*)
  7611. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7612. ;;
  7613. *)
  7614. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7615. ;;
  7616. esac
  7617. fi
  7618. if test "$with_gnu_ld" = no; then
  7619. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7620. hardcode_libdir_separator=:
  7621. case $host_cpu in
  7622. hppa*64*|ia64*)
  7623. hardcode_libdir_flag_spec_ld='+b $libdir'
  7624. hardcode_direct=no
  7625. hardcode_shlibpath_var=no
  7626. ;;
  7627. *)
  7628. hardcode_direct=yes
  7629. export_dynamic_flag_spec='${wl}-E'
  7630. # hardcode_minus_L: Not really in the search PATH,
  7631. # but as the default location of the library.
  7632. hardcode_minus_L=yes
  7633. ;;
  7634. esac
  7635. fi
  7636. ;;
  7637. irix5* | irix6* | nonstopux*)
  7638. if test "$GCC" = yes; then
  7639. 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'
  7640. else
  7641. 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'
  7642. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7643. fi
  7644. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7645. hardcode_libdir_separator=:
  7646. link_all_deplibs=yes
  7647. ;;
  7648. netbsd*)
  7649. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7650. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7651. else
  7652. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7653. fi
  7654. hardcode_libdir_flag_spec='-R$libdir'
  7655. hardcode_direct=yes
  7656. hardcode_shlibpath_var=no
  7657. ;;
  7658. newsos6)
  7659. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7660. hardcode_direct=yes
  7661. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7662. hardcode_libdir_separator=:
  7663. hardcode_shlibpath_var=no
  7664. ;;
  7665. openbsd*)
  7666. if test -f /usr/libexec/ld.so; then
  7667. hardcode_direct=yes
  7668. hardcode_shlibpath_var=no
  7669. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7670. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7671. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7672. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7673. export_dynamic_flag_spec='${wl}-E'
  7674. else
  7675. case $host_os in
  7676. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7677. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7678. hardcode_libdir_flag_spec='-R$libdir'
  7679. ;;
  7680. *)
  7681. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7682. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7683. ;;
  7684. esac
  7685. fi
  7686. else
  7687. ld_shlibs=no
  7688. fi
  7689. ;;
  7690. os2*)
  7691. hardcode_libdir_flag_spec='-L$libdir'
  7692. hardcode_minus_L=yes
  7693. allow_undefined_flag=unsupported
  7694. 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'
  7695. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7696. ;;
  7697. osf3*)
  7698. if test "$GCC" = yes; then
  7699. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7700. 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'
  7701. else
  7702. allow_undefined_flag=' -expect_unresolved \*'
  7703. 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'
  7704. fi
  7705. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7706. hardcode_libdir_separator=:
  7707. ;;
  7708. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7709. if test "$GCC" = yes; then
  7710. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7711. 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'
  7712. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7713. else
  7714. allow_undefined_flag=' -expect_unresolved \*'
  7715. 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'
  7716. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  7717. $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'
  7718. # Both c and cxx compiler support -rpath directly
  7719. hardcode_libdir_flag_spec='-rpath $libdir'
  7720. fi
  7721. hardcode_libdir_separator=:
  7722. ;;
  7723. solaris*)
  7724. no_undefined_flag=' -z text'
  7725. if test "$GCC" = yes; then
  7726. wlarc='${wl}'
  7727. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7728. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7729. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  7730. else
  7731. wlarc=''
  7732. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7733. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7734. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  7735. fi
  7736. hardcode_libdir_flag_spec='-R$libdir'
  7737. hardcode_shlibpath_var=no
  7738. case $host_os in
  7739. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7740. *)
  7741. # The compiler driver will combine and reorder linker options,
  7742. # but understands `-z linker_flag'. GCC discards it without `$wl',
  7743. # but is careful enough not to reorder.
  7744. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7745. if test "$GCC" = yes; then
  7746. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  7747. else
  7748. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  7749. fi
  7750. ;;
  7751. esac
  7752. link_all_deplibs=yes
  7753. ;;
  7754. sunos4*)
  7755. if test "x$host_vendor" = xsequent; then
  7756. # Use $CC to link under sequent, because it throws in some extra .o
  7757. # files that make .init and .fini sections work.
  7758. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7759. else
  7760. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7761. fi
  7762. hardcode_libdir_flag_spec='-L$libdir'
  7763. hardcode_direct=yes
  7764. hardcode_minus_L=yes
  7765. hardcode_shlibpath_var=no
  7766. ;;
  7767. sysv4)
  7768. case $host_vendor in
  7769. sni)
  7770. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7771. hardcode_direct=yes # is this really true???
  7772. ;;
  7773. siemens)
  7774. ## LD is ld it makes a PLAMLIB
  7775. ## CC just makes a GrossModule.
  7776. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7777. reload_cmds='$CC -r -o $output$reload_objs'
  7778. hardcode_direct=no
  7779. ;;
  7780. motorola)
  7781. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7782. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7783. ;;
  7784. esac
  7785. runpath_var='LD_RUN_PATH'
  7786. hardcode_shlibpath_var=no
  7787. ;;
  7788. sysv4.3*)
  7789. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7790. hardcode_shlibpath_var=no
  7791. export_dynamic_flag_spec='-Bexport'
  7792. ;;
  7793. sysv4*MP*)
  7794. if test -d /usr/nec; then
  7795. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7796. hardcode_shlibpath_var=no
  7797. runpath_var=LD_RUN_PATH
  7798. hardcode_runpath_var=yes
  7799. ld_shlibs=yes
  7800. fi
  7801. ;;
  7802. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  7803. no_undefined_flag='${wl}-z,text'
  7804. archive_cmds_need_lc=no
  7805. hardcode_shlibpath_var=no
  7806. runpath_var='LD_RUN_PATH'
  7807. if test "$GCC" = yes; then
  7808. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7809. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7810. else
  7811. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7812. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7813. fi
  7814. ;;
  7815. sysv5* | sco3.2v5* | sco5v6*)
  7816. # Note: We can NOT use -z defs as we might desire, because we do not
  7817. # link with -lc, and that would cause any symbols used from libc to
  7818. # always be unresolved, which means just about no library would
  7819. # ever link correctly. If we're not using GNU ld we use -z text
  7820. # though, which does catch some bad symbols but isn't as heavy-handed
  7821. # as -z defs.
  7822. no_undefined_flag='${wl}-z,text'
  7823. allow_undefined_flag='${wl}-z,nodefs'
  7824. archive_cmds_need_lc=no
  7825. hardcode_shlibpath_var=no
  7826. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  7827. hardcode_libdir_separator=':'
  7828. link_all_deplibs=yes
  7829. export_dynamic_flag_spec='${wl}-Bexport'
  7830. runpath_var='LD_RUN_PATH'
  7831. if test "$GCC" = yes; then
  7832. archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7833. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7834. else
  7835. archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7836. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7837. fi
  7838. ;;
  7839. uts4*)
  7840. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7841. hardcode_libdir_flag_spec='-L$libdir'
  7842. hardcode_shlibpath_var=no
  7843. ;;
  7844. *)
  7845. ld_shlibs=no
  7846. ;;
  7847. esac
  7848. fi
  7849. { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  7850. echo "${ECHO_T}$ld_shlibs" >&6; }
  7851. test "$ld_shlibs" = no && can_build_shared=no
  7852. #
  7853. # Do we need to explicitly link libc?
  7854. #
  7855. case "x$archive_cmds_need_lc" in
  7856. x|xyes)
  7857. # Assume -lc should be added
  7858. archive_cmds_need_lc=yes
  7859. if test "$enable_shared" = yes && test "$GCC" = yes; then
  7860. case $archive_cmds in
  7861. *'~'*)
  7862. # FIXME: we may have to deal with multi-command sequences.
  7863. ;;
  7864. '$CC '*)
  7865. # Test whether the compiler implicitly links with -lc since on some
  7866. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7867. # to ld, don't add -lc before -lgcc.
  7868. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  7869. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  7870. $rm conftest*
  7871. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7872. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7873. (eval $ac_compile) 2>&5
  7874. ac_status=$?
  7875. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7876. (exit $ac_status); } 2>conftest.err; then
  7877. soname=conftest
  7878. lib=conftest
  7879. libobjs=conftest.$ac_objext
  7880. deplibs=
  7881. wl=$lt_prog_compiler_wl
  7882. pic_flag=$lt_prog_compiler_pic
  7883. compiler_flags=-v
  7884. linker_flags=-v
  7885. verstring=
  7886. output_objdir=.
  7887. libname=conftest
  7888. lt_save_allow_undefined_flag=$allow_undefined_flag
  7889. allow_undefined_flag=
  7890. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  7891. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  7892. ac_status=$?
  7893. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7894. (exit $ac_status); }
  7895. then
  7896. archive_cmds_need_lc=no
  7897. else
  7898. archive_cmds_need_lc=yes
  7899. fi
  7900. allow_undefined_flag=$lt_save_allow_undefined_flag
  7901. else
  7902. cat conftest.err 1>&5
  7903. fi
  7904. $rm conftest*
  7905. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  7906. echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
  7907. ;;
  7908. esac
  7909. fi
  7910. ;;
  7911. esac
  7912. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  7913. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  7914. library_names_spec=
  7915. libname_spec='lib$name'
  7916. soname_spec=
  7917. shrext_cmds=".so"
  7918. postinstall_cmds=
  7919. postuninstall_cmds=
  7920. finish_cmds=
  7921. finish_eval=
  7922. shlibpath_var=
  7923. shlibpath_overrides_runpath=unknown
  7924. version_type=none
  7925. dynamic_linker="$host_os ld.so"
  7926. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  7927. if test "$GCC" = yes; then
  7928. case $host_os in
  7929. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  7930. *) lt_awk_arg="/^libraries:/" ;;
  7931. esac
  7932. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7933. if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
  7934. # if the path contains ";" then we assume it to be the separator
  7935. # otherwise default to the standard path separator (i.e. ":") - it is
  7936. # assumed that no part of a normal pathname contains ";" but that should
  7937. # okay in the real world where ";" in dirpaths is itself problematic.
  7938. lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  7939. else
  7940. lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7941. fi
  7942. # Ok, now we have the path, separated by spaces, we can step through it
  7943. # and add multilib dir if necessary.
  7944. lt_tmp_lt_search_path_spec=
  7945. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  7946. for lt_sys_path in $lt_search_path_spec; do
  7947. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  7948. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  7949. else
  7950. test -d "$lt_sys_path" && \
  7951. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  7952. fi
  7953. done
  7954. lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
  7955. BEGIN {RS=" "; FS="/|\n";} {
  7956. lt_foo="";
  7957. lt_count=0;
  7958. for (lt_i = NF; lt_i > 0; lt_i--) {
  7959. if ($lt_i != "" && $lt_i != ".") {
  7960. if ($lt_i == "..") {
  7961. lt_count++;
  7962. } else {
  7963. if (lt_count == 0) {
  7964. lt_foo="/" $lt_i lt_foo;
  7965. } else {
  7966. lt_count--;
  7967. }
  7968. }
  7969. }
  7970. }
  7971. if (lt_foo != "") { lt_freq[lt_foo]++; }
  7972. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  7973. }'`
  7974. sys_lib_search_path_spec=`echo $lt_search_path_spec`
  7975. else
  7976. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  7977. fi
  7978. need_lib_prefix=unknown
  7979. hardcode_into_libs=no
  7980. # when you set need_version to no, make sure it does not cause -set_version
  7981. # flags to be left without arguments
  7982. need_version=unknown
  7983. case $host_os in
  7984. aix3*)
  7985. version_type=linux
  7986. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  7987. shlibpath_var=LIBPATH
  7988. # AIX 3 has no versioning support, so we append a major version to the name.
  7989. soname_spec='${libname}${release}${shared_ext}$major'
  7990. ;;
  7991. aix4* | aix5*)
  7992. version_type=linux
  7993. need_lib_prefix=no
  7994. need_version=no
  7995. hardcode_into_libs=yes
  7996. if test "$host_cpu" = ia64; then
  7997. # AIX 5 supports IA64
  7998. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  7999. shlibpath_var=LD_LIBRARY_PATH
  8000. else
  8001. # With GCC up to 2.95.x, collect2 would create an import file
  8002. # for dependence libraries. The import file would start with
  8003. # the line `#! .'. This would cause the generated library to
  8004. # depend on `.', always an invalid library. This was fixed in
  8005. # development snapshots of GCC prior to 3.0.
  8006. case $host_os in
  8007. aix4 | aix4.[01] | aix4.[01].*)
  8008. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8009. echo ' yes '
  8010. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  8011. :
  8012. else
  8013. can_build_shared=no
  8014. fi
  8015. ;;
  8016. esac
  8017. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8018. # soname into executable. Probably we can add versioning support to
  8019. # collect2, so additional links can be useful in future.
  8020. if test "$aix_use_runtimelinking" = yes; then
  8021. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8022. # instead of lib<name>.a to let people know that these are not
  8023. # typical AIX shared libraries.
  8024. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8025. else
  8026. # We preserve .a as extension for shared libraries through AIX4.2
  8027. # and later when we are not doing run time linking.
  8028. library_names_spec='${libname}${release}.a $libname.a'
  8029. soname_spec='${libname}${release}${shared_ext}$major'
  8030. fi
  8031. shlibpath_var=LIBPATH
  8032. fi
  8033. ;;
  8034. amigaos*)
  8035. library_names_spec='$libname.ixlibrary $libname.a'
  8036. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8037. 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'
  8038. ;;
  8039. beos*)
  8040. library_names_spec='${libname}${shared_ext}'
  8041. dynamic_linker="$host_os ld.so"
  8042. shlibpath_var=LIBRARY_PATH
  8043. ;;
  8044. bsdi[45]*)
  8045. version_type=linux
  8046. need_version=no
  8047. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8048. soname_spec='${libname}${release}${shared_ext}$major'
  8049. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8050. shlibpath_var=LD_LIBRARY_PATH
  8051. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8052. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8053. # the default ld.so.conf also contains /usr/contrib/lib and
  8054. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8055. # libtool to hard-code these into programs
  8056. ;;
  8057. cygwin* | mingw* | pw32*)
  8058. version_type=windows
  8059. shrext_cmds=".dll"
  8060. need_version=no
  8061. need_lib_prefix=no
  8062. case $GCC,$host_os in
  8063. yes,cygwin* | yes,mingw* | yes,pw32*)
  8064. library_names_spec='$libname.dll.a'
  8065. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8066. postinstall_cmds='base_file=`basename \${file}`~
  8067. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  8068. dldir=$destdir/`dirname \$dlpath`~
  8069. test -d \$dldir || mkdir -p \$dldir~
  8070. $install_prog $dir/$dlname \$dldir/$dlname~
  8071. chmod a+x \$dldir/$dlname'
  8072. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8073. dlpath=$dir/\$dldll~
  8074. $rm \$dlpath'
  8075. shlibpath_overrides_runpath=yes
  8076. case $host_os in
  8077. cygwin*)
  8078. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8079. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8080. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  8081. ;;
  8082. mingw*)
  8083. # MinGW DLLs use traditional 'lib' prefix
  8084. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8085. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8086. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  8087. # It is most probably a Windows format PATH printed by
  8088. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  8089. # path with ; separators, and with drive letters. We can handle the
  8090. # drive letters (cygwin fileutils understands them), so leave them,
  8091. # especially as we might pass files found there to a mingw objdump,
  8092. # which wouldn't understand a cygwinified path. Ahh.
  8093. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8094. else
  8095. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8096. fi
  8097. ;;
  8098. pw32*)
  8099. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8100. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8101. ;;
  8102. esac
  8103. ;;
  8104. *)
  8105. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8106. ;;
  8107. esac
  8108. dynamic_linker='Win32 ld.exe'
  8109. # FIXME: first we should search . and the directory the executable is in
  8110. shlibpath_var=PATH
  8111. ;;
  8112. darwin* | rhapsody*)
  8113. dynamic_linker="$host_os dyld"
  8114. version_type=darwin
  8115. need_lib_prefix=no
  8116. need_version=no
  8117. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8118. soname_spec='${libname}${release}${major}$shared_ext'
  8119. shlibpath_overrides_runpath=yes
  8120. shlibpath_var=DYLD_LIBRARY_PATH
  8121. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8122. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8123. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8124. ;;
  8125. dgux*)
  8126. version_type=linux
  8127. need_lib_prefix=no
  8128. need_version=no
  8129. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8130. soname_spec='${libname}${release}${shared_ext}$major'
  8131. shlibpath_var=LD_LIBRARY_PATH
  8132. ;;
  8133. freebsd1*)
  8134. dynamic_linker=no
  8135. ;;
  8136. freebsd* | dragonfly*)
  8137. # DragonFly does not have aout. When/if they implement a new
  8138. # versioning mechanism, adjust this.
  8139. if test -x /usr/bin/objformat; then
  8140. objformat=`/usr/bin/objformat`
  8141. else
  8142. case $host_os in
  8143. freebsd[123]*) objformat=aout ;;
  8144. *) objformat=elf ;;
  8145. esac
  8146. fi
  8147. version_type=freebsd-$objformat
  8148. case $version_type in
  8149. freebsd-elf*)
  8150. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8151. need_version=no
  8152. need_lib_prefix=no
  8153. ;;
  8154. freebsd-*)
  8155. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8156. need_version=yes
  8157. ;;
  8158. esac
  8159. shlibpath_var=LD_LIBRARY_PATH
  8160. case $host_os in
  8161. freebsd2*)
  8162. shlibpath_overrides_runpath=yes
  8163. ;;
  8164. freebsd3.[01]* | freebsdelf3.[01]*)
  8165. shlibpath_overrides_runpath=yes
  8166. hardcode_into_libs=yes
  8167. ;;
  8168. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8169. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8170. shlibpath_overrides_runpath=no
  8171. hardcode_into_libs=yes
  8172. ;;
  8173. *) # from 4.6 on, and DragonFly
  8174. shlibpath_overrides_runpath=yes
  8175. hardcode_into_libs=yes
  8176. ;;
  8177. esac
  8178. ;;
  8179. gnu*)
  8180. version_type=linux
  8181. need_lib_prefix=no
  8182. need_version=no
  8183. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8184. soname_spec='${libname}${release}${shared_ext}$major'
  8185. shlibpath_var=LD_LIBRARY_PATH
  8186. hardcode_into_libs=yes
  8187. ;;
  8188. hpux9* | hpux10* | hpux11*)
  8189. # Give a soname corresponding to the major version so that dld.sl refuses to
  8190. # link against other versions.
  8191. version_type=sunos
  8192. need_lib_prefix=no
  8193. need_version=no
  8194. case $host_cpu in
  8195. ia64*)
  8196. shrext_cmds='.so'
  8197. hardcode_into_libs=yes
  8198. dynamic_linker="$host_os dld.so"
  8199. shlibpath_var=LD_LIBRARY_PATH
  8200. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8201. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8202. soname_spec='${libname}${release}${shared_ext}$major'
  8203. if test "X$HPUX_IA64_MODE" = X32; then
  8204. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8205. else
  8206. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8207. fi
  8208. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8209. ;;
  8210. hppa*64*)
  8211. shrext_cmds='.sl'
  8212. hardcode_into_libs=yes
  8213. dynamic_linker="$host_os dld.sl"
  8214. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8215. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8216. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8217. soname_spec='${libname}${release}${shared_ext}$major'
  8218. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8219. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8220. ;;
  8221. *)
  8222. shrext_cmds='.sl'
  8223. dynamic_linker="$host_os dld.sl"
  8224. shlibpath_var=SHLIB_PATH
  8225. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8226. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8227. soname_spec='${libname}${release}${shared_ext}$major'
  8228. ;;
  8229. esac
  8230. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  8231. postinstall_cmds='chmod 555 $lib'
  8232. ;;
  8233. interix[3-9]*)
  8234. version_type=linux
  8235. need_lib_prefix=no
  8236. need_version=no
  8237. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8238. soname_spec='${libname}${release}${shared_ext}$major'
  8239. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8240. shlibpath_var=LD_LIBRARY_PATH
  8241. shlibpath_overrides_runpath=no
  8242. hardcode_into_libs=yes
  8243. ;;
  8244. irix5* | irix6* | nonstopux*)
  8245. case $host_os in
  8246. nonstopux*) version_type=nonstopux ;;
  8247. *)
  8248. if test "$lt_cv_prog_gnu_ld" = yes; then
  8249. version_type=linux
  8250. else
  8251. version_type=irix
  8252. fi ;;
  8253. esac
  8254. need_lib_prefix=no
  8255. need_version=no
  8256. soname_spec='${libname}${release}${shared_ext}$major'
  8257. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8258. case $host_os in
  8259. irix5* | nonstopux*)
  8260. libsuff= shlibsuff=
  8261. ;;
  8262. *)
  8263. case $LD in # libtool.m4 will add one of these switches to LD
  8264. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8265. libsuff= shlibsuff= libmagic=32-bit;;
  8266. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8267. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8268. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8269. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8270. *) libsuff= shlibsuff= libmagic=never-match;;
  8271. esac
  8272. ;;
  8273. esac
  8274. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8275. shlibpath_overrides_runpath=no
  8276. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8277. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8278. hardcode_into_libs=yes
  8279. ;;
  8280. # No shared lib support for Linux oldld, aout, or coff.
  8281. linux*oldld* | linux*aout* | linux*coff*)
  8282. dynamic_linker=no
  8283. ;;
  8284. # This must be Linux ELF.
  8285. linux* | k*bsd*-gnu)
  8286. version_type=linux
  8287. need_lib_prefix=no
  8288. need_version=no
  8289. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8290. soname_spec='${libname}${release}${shared_ext}$major'
  8291. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8292. shlibpath_var=LD_LIBRARY_PATH
  8293. shlibpath_overrides_runpath=no
  8294. # This implies no fast_install, which is unacceptable.
  8295. # Some rework will be needed to allow for fast_install
  8296. # before this can be enabled.
  8297. hardcode_into_libs=yes
  8298. # Append ld.so.conf contents to the search path
  8299. if test -f /etc/ld.so.conf; then
  8300. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  8301. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8302. fi
  8303. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8304. # powerpc, because MkLinux only supported shared libraries with the
  8305. # GNU dynamic linker. Since this was broken with cross compilers,
  8306. # most powerpc-linux boxes support dynamic linking these days and
  8307. # people can always --disable-shared, the test was removed, and we
  8308. # assume the GNU/Linux dynamic linker is in use.
  8309. dynamic_linker='GNU/Linux ld.so'
  8310. ;;
  8311. netbsd*)
  8312. version_type=sunos
  8313. need_lib_prefix=no
  8314. need_version=no
  8315. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  8316. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8317. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8318. dynamic_linker='NetBSD (a.out) ld.so'
  8319. else
  8320. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8321. soname_spec='${libname}${release}${shared_ext}$major'
  8322. dynamic_linker='NetBSD ld.elf_so'
  8323. fi
  8324. shlibpath_var=LD_LIBRARY_PATH
  8325. shlibpath_overrides_runpath=yes
  8326. hardcode_into_libs=yes
  8327. ;;
  8328. newsos6)
  8329. version_type=linux
  8330. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8331. shlibpath_var=LD_LIBRARY_PATH
  8332. shlibpath_overrides_runpath=yes
  8333. ;;
  8334. nto-qnx*)
  8335. version_type=linux
  8336. need_lib_prefix=no
  8337. need_version=no
  8338. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8339. soname_spec='${libname}${release}${shared_ext}$major'
  8340. shlibpath_var=LD_LIBRARY_PATH
  8341. shlibpath_overrides_runpath=yes
  8342. ;;
  8343. openbsd*)
  8344. version_type=sunos
  8345. sys_lib_dlsearch_path_spec="/usr/lib"
  8346. need_lib_prefix=no
  8347. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8348. case $host_os in
  8349. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8350. *) need_version=no ;;
  8351. esac
  8352. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8353. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8354. shlibpath_var=LD_LIBRARY_PATH
  8355. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8356. case $host_os in
  8357. openbsd2.[89] | openbsd2.[89].*)
  8358. shlibpath_overrides_runpath=no
  8359. ;;
  8360. *)
  8361. shlibpath_overrides_runpath=yes
  8362. ;;
  8363. esac
  8364. else
  8365. shlibpath_overrides_runpath=yes
  8366. fi
  8367. ;;
  8368. os2*)
  8369. libname_spec='$name'
  8370. shrext_cmds=".dll"
  8371. need_lib_prefix=no
  8372. library_names_spec='$libname${shared_ext} $libname.a'
  8373. dynamic_linker='OS/2 ld.exe'
  8374. shlibpath_var=LIBPATH
  8375. ;;
  8376. osf3* | osf4* | osf5*)
  8377. version_type=osf
  8378. need_lib_prefix=no
  8379. need_version=no
  8380. soname_spec='${libname}${release}${shared_ext}$major'
  8381. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8382. shlibpath_var=LD_LIBRARY_PATH
  8383. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8384. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8385. ;;
  8386. rdos*)
  8387. dynamic_linker=no
  8388. ;;
  8389. solaris*)
  8390. version_type=linux
  8391. need_lib_prefix=no
  8392. need_version=no
  8393. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8394. soname_spec='${libname}${release}${shared_ext}$major'
  8395. shlibpath_var=LD_LIBRARY_PATH
  8396. shlibpath_overrides_runpath=yes
  8397. hardcode_into_libs=yes
  8398. # ldd complains unless libraries are executable
  8399. postinstall_cmds='chmod +x $lib'
  8400. ;;
  8401. sunos4*)
  8402. version_type=sunos
  8403. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8404. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8405. shlibpath_var=LD_LIBRARY_PATH
  8406. shlibpath_overrides_runpath=yes
  8407. if test "$with_gnu_ld" = yes; then
  8408. need_lib_prefix=no
  8409. fi
  8410. need_version=yes
  8411. ;;
  8412. sysv4 | sysv4.3*)
  8413. version_type=linux
  8414. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8415. soname_spec='${libname}${release}${shared_ext}$major'
  8416. shlibpath_var=LD_LIBRARY_PATH
  8417. case $host_vendor in
  8418. sni)
  8419. shlibpath_overrides_runpath=no
  8420. need_lib_prefix=no
  8421. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8422. runpath_var=LD_RUN_PATH
  8423. ;;
  8424. siemens)
  8425. need_lib_prefix=no
  8426. ;;
  8427. motorola)
  8428. need_lib_prefix=no
  8429. need_version=no
  8430. shlibpath_overrides_runpath=no
  8431. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8432. ;;
  8433. esac
  8434. ;;
  8435. sysv4*MP*)
  8436. if test -d /usr/nec ;then
  8437. version_type=linux
  8438. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8439. soname_spec='$libname${shared_ext}.$major'
  8440. shlibpath_var=LD_LIBRARY_PATH
  8441. fi
  8442. ;;
  8443. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8444. version_type=freebsd-elf
  8445. need_lib_prefix=no
  8446. need_version=no
  8447. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8448. soname_spec='${libname}${release}${shared_ext}$major'
  8449. shlibpath_var=LD_LIBRARY_PATH
  8450. hardcode_into_libs=yes
  8451. if test "$with_gnu_ld" = yes; then
  8452. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8453. shlibpath_overrides_runpath=no
  8454. else
  8455. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8456. shlibpath_overrides_runpath=yes
  8457. case $host_os in
  8458. sco3.2v5*)
  8459. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8460. ;;
  8461. esac
  8462. fi
  8463. sys_lib_dlsearch_path_spec='/usr/lib'
  8464. ;;
  8465. uts4*)
  8466. version_type=linux
  8467. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8468. soname_spec='${libname}${release}${shared_ext}$major'
  8469. shlibpath_var=LD_LIBRARY_PATH
  8470. ;;
  8471. *)
  8472. dynamic_linker=no
  8473. ;;
  8474. esac
  8475. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  8476. echo "${ECHO_T}$dynamic_linker" >&6; }
  8477. test "$dynamic_linker" = no && can_build_shared=no
  8478. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8479. if test "$GCC" = yes; then
  8480. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8481. fi
  8482. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  8483. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  8484. hardcode_action=
  8485. if test -n "$hardcode_libdir_flag_spec" || \
  8486. test -n "$runpath_var" || \
  8487. test "X$hardcode_automatic" = "Xyes" ; then
  8488. # We can hardcode non-existant directories.
  8489. if test "$hardcode_direct" != no &&
  8490. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8491. # have to relink, otherwise we might link with an installed library
  8492. # when we should be linking with a yet-to-be-installed one
  8493. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8494. test "$hardcode_minus_L" != no; then
  8495. # Linking always hardcodes the temporary library directory.
  8496. hardcode_action=relink
  8497. else
  8498. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8499. hardcode_action=immediate
  8500. fi
  8501. else
  8502. # We cannot hardcode anything, or else we can only hardcode existing
  8503. # directories.
  8504. hardcode_action=unsupported
  8505. fi
  8506. { echo "$as_me:$LINENO: result: $hardcode_action" >&5
  8507. echo "${ECHO_T}$hardcode_action" >&6; }
  8508. if test "$hardcode_action" = relink; then
  8509. # Fast installation is not supported
  8510. enable_fast_install=no
  8511. elif test "$shlibpath_overrides_runpath" = yes ||
  8512. test "$enable_shared" = no; then
  8513. # Fast installation is not necessary
  8514. enable_fast_install=needless
  8515. fi
  8516. striplib=
  8517. old_striplib=
  8518. { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  8519. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  8520. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  8521. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  8522. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  8523. { echo "$as_me:$LINENO: result: yes" >&5
  8524. echo "${ECHO_T}yes" >&6; }
  8525. else
  8526. # FIXME - insert some real tests, host_os isn't really good enough
  8527. case $host_os in
  8528. darwin*)
  8529. if test -n "$STRIP" ; then
  8530. striplib="$STRIP -x"
  8531. old_striplib="$STRIP -S"
  8532. { echo "$as_me:$LINENO: result: yes" >&5
  8533. echo "${ECHO_T}yes" >&6; }
  8534. else
  8535. { echo "$as_me:$LINENO: result: no" >&5
  8536. echo "${ECHO_T}no" >&6; }
  8537. fi
  8538. ;;
  8539. *)
  8540. { echo "$as_me:$LINENO: result: no" >&5
  8541. echo "${ECHO_T}no" >&6; }
  8542. ;;
  8543. esac
  8544. fi
  8545. if test "x$enable_dlopen" != xyes; then
  8546. enable_dlopen=unknown
  8547. enable_dlopen_self=unknown
  8548. enable_dlopen_self_static=unknown
  8549. else
  8550. lt_cv_dlopen=no
  8551. lt_cv_dlopen_libs=
  8552. case $host_os in
  8553. beos*)
  8554. lt_cv_dlopen="load_add_on"
  8555. lt_cv_dlopen_libs=
  8556. lt_cv_dlopen_self=yes
  8557. ;;
  8558. mingw* | pw32*)
  8559. lt_cv_dlopen="LoadLibrary"
  8560. lt_cv_dlopen_libs=
  8561. ;;
  8562. cygwin*)
  8563. lt_cv_dlopen="dlopen"
  8564. lt_cv_dlopen_libs=
  8565. ;;
  8566. darwin*)
  8567. # if libdl is installed we need to link against it
  8568. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8569. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  8570. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8571. echo $ECHO_N "(cached) $ECHO_C" >&6
  8572. else
  8573. ac_check_lib_save_LIBS=$LIBS
  8574. LIBS="-ldl $LIBS"
  8575. cat >conftest.$ac_ext <<_ACEOF
  8576. /* confdefs.h. */
  8577. _ACEOF
  8578. cat confdefs.h >>conftest.$ac_ext
  8579. cat >>conftest.$ac_ext <<_ACEOF
  8580. /* end confdefs.h. */
  8581. /* Override any GCC internal prototype to avoid an error.
  8582. Use char because int might match the return type of a GCC
  8583. builtin and then its argument prototype would still apply. */
  8584. #ifdef __cplusplus
  8585. extern "C"
  8586. #endif
  8587. char dlopen ();
  8588. int
  8589. main ()
  8590. {
  8591. return dlopen ();
  8592. ;
  8593. return 0;
  8594. }
  8595. _ACEOF
  8596. rm -f conftest.$ac_objext conftest$ac_exeext
  8597. if { (ac_try="$ac_link"
  8598. case "(($ac_try" in
  8599. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8600. *) ac_try_echo=$ac_try;;
  8601. esac
  8602. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8603. (eval "$ac_link") 2>conftest.er1
  8604. ac_status=$?
  8605. grep -v '^ *+' conftest.er1 >conftest.err
  8606. rm -f conftest.er1
  8607. cat conftest.err >&5
  8608. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8609. (exit $ac_status); } && {
  8610. test -z "$ac_c_werror_flag" ||
  8611. test ! -s conftest.err
  8612. } && test -s conftest$ac_exeext &&
  8613. $as_test_x conftest$ac_exeext; then
  8614. ac_cv_lib_dl_dlopen=yes
  8615. else
  8616. echo "$as_me: failed program was:" >&5
  8617. sed 's/^/| /' conftest.$ac_ext >&5
  8618. ac_cv_lib_dl_dlopen=no
  8619. fi
  8620. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8621. conftest$ac_exeext conftest.$ac_ext
  8622. LIBS=$ac_check_lib_save_LIBS
  8623. fi
  8624. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8625. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  8626. if test $ac_cv_lib_dl_dlopen = yes; then
  8627. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8628. else
  8629. lt_cv_dlopen="dyld"
  8630. lt_cv_dlopen_libs=
  8631. lt_cv_dlopen_self=yes
  8632. fi
  8633. ;;
  8634. *)
  8635. { echo "$as_me:$LINENO: checking for shl_load" >&5
  8636. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  8637. if test "${ac_cv_func_shl_load+set}" = set; then
  8638. echo $ECHO_N "(cached) $ECHO_C" >&6
  8639. else
  8640. cat >conftest.$ac_ext <<_ACEOF
  8641. /* confdefs.h. */
  8642. _ACEOF
  8643. cat confdefs.h >>conftest.$ac_ext
  8644. cat >>conftest.$ac_ext <<_ACEOF
  8645. /* end confdefs.h. */
  8646. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  8647. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8648. #define shl_load innocuous_shl_load
  8649. /* System header to define __stub macros and hopefully few prototypes,
  8650. which can conflict with char shl_load (); below.
  8651. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8652. <limits.h> exists even on freestanding compilers. */
  8653. #ifdef __STDC__
  8654. # include <limits.h>
  8655. #else
  8656. # include <assert.h>
  8657. #endif
  8658. #undef shl_load
  8659. /* Override any GCC internal prototype to avoid an error.
  8660. Use char because int might match the return type of a GCC
  8661. builtin and then its argument prototype would still apply. */
  8662. #ifdef __cplusplus
  8663. extern "C"
  8664. #endif
  8665. char shl_load ();
  8666. /* The GNU C library defines this for functions which it implements
  8667. to always fail with ENOSYS. Some functions are actually named
  8668. something starting with __ and the normal name is an alias. */
  8669. #if defined __stub_shl_load || defined __stub___shl_load
  8670. choke me
  8671. #endif
  8672. int
  8673. main ()
  8674. {
  8675. return shl_load ();
  8676. ;
  8677. return 0;
  8678. }
  8679. _ACEOF
  8680. rm -f conftest.$ac_objext conftest$ac_exeext
  8681. if { (ac_try="$ac_link"
  8682. case "(($ac_try" in
  8683. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8684. *) ac_try_echo=$ac_try;;
  8685. esac
  8686. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8687. (eval "$ac_link") 2>conftest.er1
  8688. ac_status=$?
  8689. grep -v '^ *+' conftest.er1 >conftest.err
  8690. rm -f conftest.er1
  8691. cat conftest.err >&5
  8692. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8693. (exit $ac_status); } && {
  8694. test -z "$ac_c_werror_flag" ||
  8695. test ! -s conftest.err
  8696. } && test -s conftest$ac_exeext &&
  8697. $as_test_x conftest$ac_exeext; then
  8698. ac_cv_func_shl_load=yes
  8699. else
  8700. echo "$as_me: failed program was:" >&5
  8701. sed 's/^/| /' conftest.$ac_ext >&5
  8702. ac_cv_func_shl_load=no
  8703. fi
  8704. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8705. conftest$ac_exeext conftest.$ac_ext
  8706. fi
  8707. { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  8708. echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  8709. if test $ac_cv_func_shl_load = yes; then
  8710. lt_cv_dlopen="shl_load"
  8711. else
  8712. { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  8713. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  8714. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  8715. echo $ECHO_N "(cached) $ECHO_C" >&6
  8716. else
  8717. ac_check_lib_save_LIBS=$LIBS
  8718. LIBS="-ldld $LIBS"
  8719. cat >conftest.$ac_ext <<_ACEOF
  8720. /* confdefs.h. */
  8721. _ACEOF
  8722. cat confdefs.h >>conftest.$ac_ext
  8723. cat >>conftest.$ac_ext <<_ACEOF
  8724. /* end confdefs.h. */
  8725. /* Override any GCC internal prototype to avoid an error.
  8726. Use char because int might match the return type of a GCC
  8727. builtin and then its argument prototype would still apply. */
  8728. #ifdef __cplusplus
  8729. extern "C"
  8730. #endif
  8731. char shl_load ();
  8732. int
  8733. main ()
  8734. {
  8735. return shl_load ();
  8736. ;
  8737. return 0;
  8738. }
  8739. _ACEOF
  8740. rm -f conftest.$ac_objext conftest$ac_exeext
  8741. if { (ac_try="$ac_link"
  8742. case "(($ac_try" in
  8743. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8744. *) ac_try_echo=$ac_try;;
  8745. esac
  8746. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8747. (eval "$ac_link") 2>conftest.er1
  8748. ac_status=$?
  8749. grep -v '^ *+' conftest.er1 >conftest.err
  8750. rm -f conftest.er1
  8751. cat conftest.err >&5
  8752. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8753. (exit $ac_status); } && {
  8754. test -z "$ac_c_werror_flag" ||
  8755. test ! -s conftest.err
  8756. } && test -s conftest$ac_exeext &&
  8757. $as_test_x conftest$ac_exeext; then
  8758. ac_cv_lib_dld_shl_load=yes
  8759. else
  8760. echo "$as_me: failed program was:" >&5
  8761. sed 's/^/| /' conftest.$ac_ext >&5
  8762. ac_cv_lib_dld_shl_load=no
  8763. fi
  8764. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8765. conftest$ac_exeext conftest.$ac_ext
  8766. LIBS=$ac_check_lib_save_LIBS
  8767. fi
  8768. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  8769. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  8770. if test $ac_cv_lib_dld_shl_load = yes; then
  8771. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  8772. else
  8773. { echo "$as_me:$LINENO: checking for dlopen" >&5
  8774. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  8775. if test "${ac_cv_func_dlopen+set}" = set; then
  8776. echo $ECHO_N "(cached) $ECHO_C" >&6
  8777. else
  8778. cat >conftest.$ac_ext <<_ACEOF
  8779. /* confdefs.h. */
  8780. _ACEOF
  8781. cat confdefs.h >>conftest.$ac_ext
  8782. cat >>conftest.$ac_ext <<_ACEOF
  8783. /* end confdefs.h. */
  8784. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  8785. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8786. #define dlopen innocuous_dlopen
  8787. /* System header to define __stub macros and hopefully few prototypes,
  8788. which can conflict with char dlopen (); below.
  8789. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8790. <limits.h> exists even on freestanding compilers. */
  8791. #ifdef __STDC__
  8792. # include <limits.h>
  8793. #else
  8794. # include <assert.h>
  8795. #endif
  8796. #undef dlopen
  8797. /* Override any GCC internal prototype to avoid an error.
  8798. Use char because int might match the return type of a GCC
  8799. builtin and then its argument prototype would still apply. */
  8800. #ifdef __cplusplus
  8801. extern "C"
  8802. #endif
  8803. char dlopen ();
  8804. /* The GNU C library defines this for functions which it implements
  8805. to always fail with ENOSYS. Some functions are actually named
  8806. something starting with __ and the normal name is an alias. */
  8807. #if defined __stub_dlopen || defined __stub___dlopen
  8808. choke me
  8809. #endif
  8810. int
  8811. main ()
  8812. {
  8813. return dlopen ();
  8814. ;
  8815. return 0;
  8816. }
  8817. _ACEOF
  8818. rm -f conftest.$ac_objext conftest$ac_exeext
  8819. if { (ac_try="$ac_link"
  8820. case "(($ac_try" in
  8821. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8822. *) ac_try_echo=$ac_try;;
  8823. esac
  8824. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8825. (eval "$ac_link") 2>conftest.er1
  8826. ac_status=$?
  8827. grep -v '^ *+' conftest.er1 >conftest.err
  8828. rm -f conftest.er1
  8829. cat conftest.err >&5
  8830. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8831. (exit $ac_status); } && {
  8832. test -z "$ac_c_werror_flag" ||
  8833. test ! -s conftest.err
  8834. } && test -s conftest$ac_exeext &&
  8835. $as_test_x conftest$ac_exeext; then
  8836. ac_cv_func_dlopen=yes
  8837. else
  8838. echo "$as_me: failed program was:" >&5
  8839. sed 's/^/| /' conftest.$ac_ext >&5
  8840. ac_cv_func_dlopen=no
  8841. fi
  8842. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8843. conftest$ac_exeext conftest.$ac_ext
  8844. fi
  8845. { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  8846. echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  8847. if test $ac_cv_func_dlopen = yes; then
  8848. lt_cv_dlopen="dlopen"
  8849. else
  8850. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8851. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  8852. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8853. echo $ECHO_N "(cached) $ECHO_C" >&6
  8854. else
  8855. ac_check_lib_save_LIBS=$LIBS
  8856. LIBS="-ldl $LIBS"
  8857. cat >conftest.$ac_ext <<_ACEOF
  8858. /* confdefs.h. */
  8859. _ACEOF
  8860. cat confdefs.h >>conftest.$ac_ext
  8861. cat >>conftest.$ac_ext <<_ACEOF
  8862. /* end confdefs.h. */
  8863. /* Override any GCC internal prototype to avoid an error.
  8864. Use char because int might match the return type of a GCC
  8865. builtin and then its argument prototype would still apply. */
  8866. #ifdef __cplusplus
  8867. extern "C"
  8868. #endif
  8869. char dlopen ();
  8870. int
  8871. main ()
  8872. {
  8873. return dlopen ();
  8874. ;
  8875. return 0;
  8876. }
  8877. _ACEOF
  8878. rm -f conftest.$ac_objext conftest$ac_exeext
  8879. if { (ac_try="$ac_link"
  8880. case "(($ac_try" in
  8881. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8882. *) ac_try_echo=$ac_try;;
  8883. esac
  8884. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8885. (eval "$ac_link") 2>conftest.er1
  8886. ac_status=$?
  8887. grep -v '^ *+' conftest.er1 >conftest.err
  8888. rm -f conftest.er1
  8889. cat conftest.err >&5
  8890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8891. (exit $ac_status); } && {
  8892. test -z "$ac_c_werror_flag" ||
  8893. test ! -s conftest.err
  8894. } && test -s conftest$ac_exeext &&
  8895. $as_test_x conftest$ac_exeext; then
  8896. ac_cv_lib_dl_dlopen=yes
  8897. else
  8898. echo "$as_me: failed program was:" >&5
  8899. sed 's/^/| /' conftest.$ac_ext >&5
  8900. ac_cv_lib_dl_dlopen=no
  8901. fi
  8902. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8903. conftest$ac_exeext conftest.$ac_ext
  8904. LIBS=$ac_check_lib_save_LIBS
  8905. fi
  8906. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8907. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  8908. if test $ac_cv_lib_dl_dlopen = yes; then
  8909. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8910. else
  8911. { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  8912. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  8913. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  8914. echo $ECHO_N "(cached) $ECHO_C" >&6
  8915. else
  8916. ac_check_lib_save_LIBS=$LIBS
  8917. LIBS="-lsvld $LIBS"
  8918. cat >conftest.$ac_ext <<_ACEOF
  8919. /* confdefs.h. */
  8920. _ACEOF
  8921. cat confdefs.h >>conftest.$ac_ext
  8922. cat >>conftest.$ac_ext <<_ACEOF
  8923. /* end confdefs.h. */
  8924. /* Override any GCC internal prototype to avoid an error.
  8925. Use char because int might match the return type of a GCC
  8926. builtin and then its argument prototype would still apply. */
  8927. #ifdef __cplusplus
  8928. extern "C"
  8929. #endif
  8930. char dlopen ();
  8931. int
  8932. main ()
  8933. {
  8934. return dlopen ();
  8935. ;
  8936. return 0;
  8937. }
  8938. _ACEOF
  8939. rm -f conftest.$ac_objext conftest$ac_exeext
  8940. if { (ac_try="$ac_link"
  8941. case "(($ac_try" in
  8942. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8943. *) ac_try_echo=$ac_try;;
  8944. esac
  8945. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8946. (eval "$ac_link") 2>conftest.er1
  8947. ac_status=$?
  8948. grep -v '^ *+' conftest.er1 >conftest.err
  8949. rm -f conftest.er1
  8950. cat conftest.err >&5
  8951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8952. (exit $ac_status); } && {
  8953. test -z "$ac_c_werror_flag" ||
  8954. test ! -s conftest.err
  8955. } && test -s conftest$ac_exeext &&
  8956. $as_test_x conftest$ac_exeext; then
  8957. ac_cv_lib_svld_dlopen=yes
  8958. else
  8959. echo "$as_me: failed program was:" >&5
  8960. sed 's/^/| /' conftest.$ac_ext >&5
  8961. ac_cv_lib_svld_dlopen=no
  8962. fi
  8963. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8964. conftest$ac_exeext conftest.$ac_ext
  8965. LIBS=$ac_check_lib_save_LIBS
  8966. fi
  8967. { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  8968. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  8969. if test $ac_cv_lib_svld_dlopen = yes; then
  8970. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  8971. else
  8972. { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  8973. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  8974. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  8975. echo $ECHO_N "(cached) $ECHO_C" >&6
  8976. else
  8977. ac_check_lib_save_LIBS=$LIBS
  8978. LIBS="-ldld $LIBS"
  8979. cat >conftest.$ac_ext <<_ACEOF
  8980. /* confdefs.h. */
  8981. _ACEOF
  8982. cat confdefs.h >>conftest.$ac_ext
  8983. cat >>conftest.$ac_ext <<_ACEOF
  8984. /* end confdefs.h. */
  8985. /* Override any GCC internal prototype to avoid an error.
  8986. Use char because int might match the return type of a GCC
  8987. builtin and then its argument prototype would still apply. */
  8988. #ifdef __cplusplus
  8989. extern "C"
  8990. #endif
  8991. char dld_link ();
  8992. int
  8993. main ()
  8994. {
  8995. return dld_link ();
  8996. ;
  8997. return 0;
  8998. }
  8999. _ACEOF
  9000. rm -f conftest.$ac_objext conftest$ac_exeext
  9001. if { (ac_try="$ac_link"
  9002. case "(($ac_try" in
  9003. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9004. *) ac_try_echo=$ac_try;;
  9005. esac
  9006. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9007. (eval "$ac_link") 2>conftest.er1
  9008. ac_status=$?
  9009. grep -v '^ *+' conftest.er1 >conftest.err
  9010. rm -f conftest.er1
  9011. cat conftest.err >&5
  9012. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9013. (exit $ac_status); } && {
  9014. test -z "$ac_c_werror_flag" ||
  9015. test ! -s conftest.err
  9016. } && test -s conftest$ac_exeext &&
  9017. $as_test_x conftest$ac_exeext; then
  9018. ac_cv_lib_dld_dld_link=yes
  9019. else
  9020. echo "$as_me: failed program was:" >&5
  9021. sed 's/^/| /' conftest.$ac_ext >&5
  9022. ac_cv_lib_dld_dld_link=no
  9023. fi
  9024. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9025. conftest$ac_exeext conftest.$ac_ext
  9026. LIBS=$ac_check_lib_save_LIBS
  9027. fi
  9028. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  9029. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  9030. if test $ac_cv_lib_dld_dld_link = yes; then
  9031. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  9032. fi
  9033. fi
  9034. fi
  9035. fi
  9036. fi
  9037. fi
  9038. ;;
  9039. esac
  9040. if test "x$lt_cv_dlopen" != xno; then
  9041. enable_dlopen=yes
  9042. else
  9043. enable_dlopen=no
  9044. fi
  9045. case $lt_cv_dlopen in
  9046. dlopen)
  9047. save_CPPFLAGS="$CPPFLAGS"
  9048. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9049. save_LDFLAGS="$LDFLAGS"
  9050. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9051. save_LIBS="$LIBS"
  9052. LIBS="$lt_cv_dlopen_libs $LIBS"
  9053. { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  9054. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  9055. if test "${lt_cv_dlopen_self+set}" = set; then
  9056. echo $ECHO_N "(cached) $ECHO_C" >&6
  9057. else
  9058. if test "$cross_compiling" = yes; then :
  9059. lt_cv_dlopen_self=cross
  9060. else
  9061. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9062. lt_status=$lt_dlunknown
  9063. cat > conftest.$ac_ext <<EOF
  9064. #line 10067 "configure"
  9065. #include "confdefs.h"
  9066. #if HAVE_DLFCN_H
  9067. #include <dlfcn.h>
  9068. #endif
  9069. #include <stdio.h>
  9070. #ifdef RTLD_GLOBAL
  9071. # define LT_DLGLOBAL RTLD_GLOBAL
  9072. #else
  9073. # ifdef DL_GLOBAL
  9074. # define LT_DLGLOBAL DL_GLOBAL
  9075. # else
  9076. # define LT_DLGLOBAL 0
  9077. # endif
  9078. #endif
  9079. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9080. find out it does not work in some platform. */
  9081. #ifndef LT_DLLAZY_OR_NOW
  9082. # ifdef RTLD_LAZY
  9083. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9084. # else
  9085. # ifdef DL_LAZY
  9086. # define LT_DLLAZY_OR_NOW DL_LAZY
  9087. # else
  9088. # ifdef RTLD_NOW
  9089. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9090. # else
  9091. # ifdef DL_NOW
  9092. # define LT_DLLAZY_OR_NOW DL_NOW
  9093. # else
  9094. # define LT_DLLAZY_OR_NOW 0
  9095. # endif
  9096. # endif
  9097. # endif
  9098. # endif
  9099. #endif
  9100. #ifdef __cplusplus
  9101. extern "C" void exit (int);
  9102. #endif
  9103. void fnord() { int i=42;}
  9104. int main ()
  9105. {
  9106. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9107. int status = $lt_dlunknown;
  9108. if (self)
  9109. {
  9110. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9111. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9112. /* dlclose (self); */
  9113. }
  9114. else
  9115. puts (dlerror ());
  9116. exit (status);
  9117. }
  9118. EOF
  9119. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9120. (eval $ac_link) 2>&5
  9121. ac_status=$?
  9122. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9123. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9124. (./conftest; exit; ) >&5 2>/dev/null
  9125. lt_status=$?
  9126. case x$lt_status in
  9127. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9128. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9129. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9130. esac
  9131. else :
  9132. # compilation failed
  9133. lt_cv_dlopen_self=no
  9134. fi
  9135. fi
  9136. rm -fr conftest*
  9137. fi
  9138. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  9139. echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  9140. if test "x$lt_cv_dlopen_self" = xyes; then
  9141. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9142. { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  9143. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  9144. if test "${lt_cv_dlopen_self_static+set}" = set; then
  9145. echo $ECHO_N "(cached) $ECHO_C" >&6
  9146. else
  9147. if test "$cross_compiling" = yes; then :
  9148. lt_cv_dlopen_self_static=cross
  9149. else
  9150. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9151. lt_status=$lt_dlunknown
  9152. cat > conftest.$ac_ext <<EOF
  9153. #line 10167 "configure"
  9154. #include "confdefs.h"
  9155. #if HAVE_DLFCN_H
  9156. #include <dlfcn.h>
  9157. #endif
  9158. #include <stdio.h>
  9159. #ifdef RTLD_GLOBAL
  9160. # define LT_DLGLOBAL RTLD_GLOBAL
  9161. #else
  9162. # ifdef DL_GLOBAL
  9163. # define LT_DLGLOBAL DL_GLOBAL
  9164. # else
  9165. # define LT_DLGLOBAL 0
  9166. # endif
  9167. #endif
  9168. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9169. find out it does not work in some platform. */
  9170. #ifndef LT_DLLAZY_OR_NOW
  9171. # ifdef RTLD_LAZY
  9172. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9173. # else
  9174. # ifdef DL_LAZY
  9175. # define LT_DLLAZY_OR_NOW DL_LAZY
  9176. # else
  9177. # ifdef RTLD_NOW
  9178. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9179. # else
  9180. # ifdef DL_NOW
  9181. # define LT_DLLAZY_OR_NOW DL_NOW
  9182. # else
  9183. # define LT_DLLAZY_OR_NOW 0
  9184. # endif
  9185. # endif
  9186. # endif
  9187. # endif
  9188. #endif
  9189. #ifdef __cplusplus
  9190. extern "C" void exit (int);
  9191. #endif
  9192. void fnord() { int i=42;}
  9193. int main ()
  9194. {
  9195. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9196. int status = $lt_dlunknown;
  9197. if (self)
  9198. {
  9199. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9200. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9201. /* dlclose (self); */
  9202. }
  9203. else
  9204. puts (dlerror ());
  9205. exit (status);
  9206. }
  9207. EOF
  9208. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9209. (eval $ac_link) 2>&5
  9210. ac_status=$?
  9211. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9212. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9213. (./conftest; exit; ) >&5 2>/dev/null
  9214. lt_status=$?
  9215. case x$lt_status in
  9216. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9217. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9218. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9219. esac
  9220. else :
  9221. # compilation failed
  9222. lt_cv_dlopen_self_static=no
  9223. fi
  9224. fi
  9225. rm -fr conftest*
  9226. fi
  9227. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  9228. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  9229. fi
  9230. CPPFLAGS="$save_CPPFLAGS"
  9231. LDFLAGS="$save_LDFLAGS"
  9232. LIBS="$save_LIBS"
  9233. ;;
  9234. esac
  9235. case $lt_cv_dlopen_self in
  9236. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9237. *) enable_dlopen_self=unknown ;;
  9238. esac
  9239. case $lt_cv_dlopen_self_static in
  9240. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9241. *) enable_dlopen_self_static=unknown ;;
  9242. esac
  9243. fi
  9244. # Report which library types will actually be built
  9245. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  9246. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  9247. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  9248. echo "${ECHO_T}$can_build_shared" >&6; }
  9249. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  9250. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  9251. test "$can_build_shared" = "no" && enable_shared=no
  9252. # On AIX, shared libraries and static libraries use the same namespace, and
  9253. # are all built from PIC.
  9254. case $host_os in
  9255. aix3*)
  9256. test "$enable_shared" = yes && enable_static=no
  9257. if test -n "$RANLIB"; then
  9258. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9259. postinstall_cmds='$RANLIB $lib'
  9260. fi
  9261. ;;
  9262. aix4* | aix5*)
  9263. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9264. test "$enable_shared" = yes && enable_static=no
  9265. fi
  9266. ;;
  9267. esac
  9268. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  9269. echo "${ECHO_T}$enable_shared" >&6; }
  9270. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  9271. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  9272. # Make sure either enable_shared or enable_static is yes.
  9273. test "$enable_shared" = yes || enable_static=yes
  9274. { echo "$as_me:$LINENO: result: $enable_static" >&5
  9275. echo "${ECHO_T}$enable_static" >&6; }
  9276. # The else clause should only fire when bootstrapping the
  9277. # libtool distribution, otherwise you forgot to ship ltmain.sh
  9278. # with your package, and you will get complaints that there are
  9279. # no rules to generate ltmain.sh.
  9280. if test -f "$ltmain"; then
  9281. # See if we are running on zsh, and set the options which allow our commands through
  9282. # without removal of \ escapes.
  9283. if test -n "${ZSH_VERSION+set}" ; then
  9284. setopt NO_GLOB_SUBST
  9285. fi
  9286. # Now quote all the things that may contain metacharacters while being
  9287. # careful not to overquote the AC_SUBSTed values. We take copies of the
  9288. # variables and quote the copies for generation of the libtool script.
  9289. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  9290. SED SHELL STRIP \
  9291. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  9292. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  9293. deplibs_check_method reload_flag reload_cmds need_locks \
  9294. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  9295. lt_cv_sys_global_symbol_to_c_name_address \
  9296. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  9297. old_postinstall_cmds old_postuninstall_cmds \
  9298. compiler \
  9299. CC \
  9300. LD \
  9301. lt_prog_compiler_wl \
  9302. lt_prog_compiler_pic \
  9303. lt_prog_compiler_static \
  9304. lt_prog_compiler_no_builtin_flag \
  9305. export_dynamic_flag_spec \
  9306. thread_safe_flag_spec \
  9307. whole_archive_flag_spec \
  9308. enable_shared_with_static_runtimes \
  9309. old_archive_cmds \
  9310. old_archive_from_new_cmds \
  9311. predep_objects \
  9312. postdep_objects \
  9313. predeps \
  9314. postdeps \
  9315. compiler_lib_search_path \
  9316. archive_cmds \
  9317. archive_expsym_cmds \
  9318. postinstall_cmds \
  9319. postuninstall_cmds \
  9320. old_archive_from_expsyms_cmds \
  9321. allow_undefined_flag \
  9322. no_undefined_flag \
  9323. export_symbols_cmds \
  9324. hardcode_libdir_flag_spec \
  9325. hardcode_libdir_flag_spec_ld \
  9326. hardcode_libdir_separator \
  9327. hardcode_automatic \
  9328. module_cmds \
  9329. module_expsym_cmds \
  9330. lt_cv_prog_compiler_c_o \
  9331. fix_srcfile_path \
  9332. exclude_expsyms \
  9333. include_expsyms; do
  9334. case $var in
  9335. old_archive_cmds | \
  9336. old_archive_from_new_cmds | \
  9337. archive_cmds | \
  9338. archive_expsym_cmds | \
  9339. module_cmds | \
  9340. module_expsym_cmds | \
  9341. old_archive_from_expsyms_cmds | \
  9342. export_symbols_cmds | \
  9343. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  9344. postinstall_cmds | postuninstall_cmds | \
  9345. old_postinstall_cmds | old_postuninstall_cmds | \
  9346. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  9347. # Double-quote double-evaled strings.
  9348. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  9349. ;;
  9350. *)
  9351. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  9352. ;;
  9353. esac
  9354. done
  9355. case $lt_echo in
  9356. *'\$0 --fallback-echo"')
  9357. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  9358. ;;
  9359. esac
  9360. cfgfile="${ofile}T"
  9361. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  9362. $rm -f "$cfgfile"
  9363. { echo "$as_me:$LINENO: creating $ofile" >&5
  9364. echo "$as_me: creating $ofile" >&6;}
  9365. cat <<__EOF__ >> "$cfgfile"
  9366. #! $SHELL
  9367. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  9368. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  9369. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  9370. #
  9371. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
  9372. # Free Software Foundation, Inc.
  9373. #
  9374. # This file is part of GNU Libtool:
  9375. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  9376. #
  9377. # This program is free software; you can redistribute it and/or modify
  9378. # it under the terms of the GNU General Public License as published by
  9379. # the Free Software Foundation; either version 2 of the License, or
  9380. # (at your option) any later version.
  9381. #
  9382. # This program is distributed in the hope that it will be useful, but
  9383. # WITHOUT ANY WARRANTY; without even the implied warranty of
  9384. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  9385. # General Public License for more details.
  9386. #
  9387. # You should have received a copy of the GNU General Public License
  9388. # along with this program; if not, write to the Free Software
  9389. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  9390. #
  9391. # As a special exception to the GNU General Public License, if you
  9392. # distribute this file as part of a program that contains a
  9393. # configuration script generated by Autoconf, you may include it under
  9394. # the same distribution terms that you use for the rest of that program.
  9395. # A sed program that does not truncate output.
  9396. SED=$lt_SED
  9397. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  9398. Xsed="$SED -e 1s/^X//"
  9399. # The HP-UX ksh and POSIX shell print the target directory to stdout
  9400. # if CDPATH is set.
  9401. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9402. # The names of the tagged configurations supported by this script.
  9403. available_tags=
  9404. # ### BEGIN LIBTOOL CONFIG
  9405. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  9406. # Shell to use when invoking shell scripts.
  9407. SHELL=$lt_SHELL
  9408. # Whether or not to build shared libraries.
  9409. build_libtool_libs=$enable_shared
  9410. # Whether or not to build static libraries.
  9411. build_old_libs=$enable_static
  9412. # Whether or not to add -lc for building shared libraries.
  9413. build_libtool_need_lc=$archive_cmds_need_lc
  9414. # Whether or not to disallow shared libs when runtime libs are static
  9415. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  9416. # Whether or not to optimize for fast installation.
  9417. fast_install=$enable_fast_install
  9418. # The host system.
  9419. host_alias=$host_alias
  9420. host=$host
  9421. host_os=$host_os
  9422. # The build system.
  9423. build_alias=$build_alias
  9424. build=$build
  9425. build_os=$build_os
  9426. # An echo program that does not interpret backslashes.
  9427. echo=$lt_echo
  9428. # The archiver.
  9429. AR=$lt_AR
  9430. AR_FLAGS=$lt_AR_FLAGS
  9431. # A C compiler.
  9432. LTCC=$lt_LTCC
  9433. # LTCC compiler flags.
  9434. LTCFLAGS=$lt_LTCFLAGS
  9435. # A language-specific compiler.
  9436. CC=$lt_compiler
  9437. # Is the compiler the GNU C compiler?
  9438. with_gcc=$GCC
  9439. # An ERE matcher.
  9440. EGREP=$lt_EGREP
  9441. # The linker used to build libraries.
  9442. LD=$lt_LD
  9443. # Whether we need hard or soft links.
  9444. LN_S=$lt_LN_S
  9445. # A BSD-compatible nm program.
  9446. NM=$lt_NM
  9447. # A symbol stripping program
  9448. STRIP=$lt_STRIP
  9449. # Used to examine libraries when file_magic_cmd begins "file"
  9450. MAGIC_CMD=$MAGIC_CMD
  9451. # Used on cygwin: DLL creation program.
  9452. DLLTOOL="$DLLTOOL"
  9453. # Used on cygwin: object dumper.
  9454. OBJDUMP="$OBJDUMP"
  9455. # Used on cygwin: assembler.
  9456. AS="$AS"
  9457. # The name of the directory that contains temporary libtool files.
  9458. objdir=$objdir
  9459. # How to create reloadable object files.
  9460. reload_flag=$lt_reload_flag
  9461. reload_cmds=$lt_reload_cmds
  9462. # How to pass a linker flag through the compiler.
  9463. wl=$lt_lt_prog_compiler_wl
  9464. # Object file suffix (normally "o").
  9465. objext="$ac_objext"
  9466. # Old archive suffix (normally "a").
  9467. libext="$libext"
  9468. # Shared library suffix (normally ".so").
  9469. shrext_cmds='$shrext_cmds'
  9470. # Executable file suffix (normally "").
  9471. exeext="$exeext"
  9472. # Additional compiler flags for building library objects.
  9473. pic_flag=$lt_lt_prog_compiler_pic
  9474. pic_mode=$pic_mode
  9475. # What is the maximum length of a command?
  9476. max_cmd_len=$lt_cv_sys_max_cmd_len
  9477. # Does compiler simultaneously support -c and -o options?
  9478. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  9479. # Must we lock files when doing compilation?
  9480. need_locks=$lt_need_locks
  9481. # Do we need the lib prefix for modules?
  9482. need_lib_prefix=$need_lib_prefix
  9483. # Do we need a version for libraries?
  9484. need_version=$need_version
  9485. # Whether dlopen is supported.
  9486. dlopen_support=$enable_dlopen
  9487. # Whether dlopen of programs is supported.
  9488. dlopen_self=$enable_dlopen_self
  9489. # Whether dlopen of statically linked programs is supported.
  9490. dlopen_self_static=$enable_dlopen_self_static
  9491. # Compiler flag to prevent dynamic linking.
  9492. link_static_flag=$lt_lt_prog_compiler_static
  9493. # Compiler flag to turn off builtin functions.
  9494. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  9495. # Compiler flag to allow reflexive dlopens.
  9496. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  9497. # Compiler flag to generate shared objects directly from archives.
  9498. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  9499. # Compiler flag to generate thread-safe objects.
  9500. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  9501. # Library versioning type.
  9502. version_type=$version_type
  9503. # Format of library name prefix.
  9504. libname_spec=$lt_libname_spec
  9505. # List of archive names. First name is the real one, the rest are links.
  9506. # The last name is the one that the linker finds with -lNAME.
  9507. library_names_spec=$lt_library_names_spec
  9508. # The coded name of the library, if different from the real name.
  9509. soname_spec=$lt_soname_spec
  9510. # Commands used to build and install an old-style archive.
  9511. RANLIB=$lt_RANLIB
  9512. old_archive_cmds=$lt_old_archive_cmds
  9513. old_postinstall_cmds=$lt_old_postinstall_cmds
  9514. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  9515. # Create an old-style archive from a shared archive.
  9516. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  9517. # Create a temporary old-style archive to link instead of a shared archive.
  9518. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  9519. # Commands used to build and install a shared archive.
  9520. archive_cmds=$lt_archive_cmds
  9521. archive_expsym_cmds=$lt_archive_expsym_cmds
  9522. postinstall_cmds=$lt_postinstall_cmds
  9523. postuninstall_cmds=$lt_postuninstall_cmds
  9524. # Commands used to build a loadable module (assumed same as above if empty)
  9525. module_cmds=$lt_module_cmds
  9526. module_expsym_cmds=$lt_module_expsym_cmds
  9527. # Commands to strip libraries.
  9528. old_striplib=$lt_old_striplib
  9529. striplib=$lt_striplib
  9530. # Dependencies to place before the objects being linked to create a
  9531. # shared library.
  9532. predep_objects=$lt_predep_objects
  9533. # Dependencies to place after the objects being linked to create a
  9534. # shared library.
  9535. postdep_objects=$lt_postdep_objects
  9536. # Dependencies to place before the objects being linked to create a
  9537. # shared library.
  9538. predeps=$lt_predeps
  9539. # Dependencies to place after the objects being linked to create a
  9540. # shared library.
  9541. postdeps=$lt_postdeps
  9542. # The library search path used internally by the compiler when linking
  9543. # a shared library.
  9544. compiler_lib_search_path=$lt_compiler_lib_search_path
  9545. # Method to check whether dependent libraries are shared objects.
  9546. deplibs_check_method=$lt_deplibs_check_method
  9547. # Command to use when deplibs_check_method == file_magic.
  9548. file_magic_cmd=$lt_file_magic_cmd
  9549. # Flag that allows shared libraries with undefined symbols to be built.
  9550. allow_undefined_flag=$lt_allow_undefined_flag
  9551. # Flag that forces no undefined symbols.
  9552. no_undefined_flag=$lt_no_undefined_flag
  9553. # Commands used to finish a libtool library installation in a directory.
  9554. finish_cmds=$lt_finish_cmds
  9555. # Same as above, but a single script fragment to be evaled but not shown.
  9556. finish_eval=$lt_finish_eval
  9557. # Take the output of nm and produce a listing of raw symbols and C names.
  9558. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  9559. # Transform the output of nm in a proper C declaration
  9560. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  9561. # Transform the output of nm in a C name address pair
  9562. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  9563. # This is the shared library runtime path variable.
  9564. runpath_var=$runpath_var
  9565. # This is the shared library path variable.
  9566. shlibpath_var=$shlibpath_var
  9567. # Is shlibpath searched before the hard-coded library search path?
  9568. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  9569. # How to hardcode a shared library path into an executable.
  9570. hardcode_action=$hardcode_action
  9571. # Whether we should hardcode library paths into libraries.
  9572. hardcode_into_libs=$hardcode_into_libs
  9573. # Flag to hardcode \$libdir into a binary during linking.
  9574. # This must work even if \$libdir does not exist.
  9575. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  9576. # If ld is used when linking, flag to hardcode \$libdir into
  9577. # a binary during linking. This must work even if \$libdir does
  9578. # not exist.
  9579. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  9580. # Whether we need a single -rpath flag with a separated argument.
  9581. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  9582. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  9583. # resulting binary.
  9584. hardcode_direct=$hardcode_direct
  9585. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  9586. # resulting binary.
  9587. hardcode_minus_L=$hardcode_minus_L
  9588. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  9589. # the resulting binary.
  9590. hardcode_shlibpath_var=$hardcode_shlibpath_var
  9591. # Set to yes if building a shared library automatically hardcodes DIR into the library
  9592. # and all subsequent libraries and executables linked against it.
  9593. hardcode_automatic=$hardcode_automatic
  9594. # Variables whose values should be saved in libtool wrapper scripts and
  9595. # restored at relink time.
  9596. variables_saved_for_relink="$variables_saved_for_relink"
  9597. # Whether libtool must link a program against all its dependency libraries.
  9598. link_all_deplibs=$link_all_deplibs
  9599. # Compile-time system search path for libraries
  9600. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  9601. # Run-time system search path for libraries
  9602. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  9603. # Fix the shell variable \$srcfile for the compiler.
  9604. fix_srcfile_path=$lt_fix_srcfile_path
  9605. # Set to yes if exported symbols are required.
  9606. always_export_symbols=$always_export_symbols
  9607. # The commands to list exported symbols.
  9608. export_symbols_cmds=$lt_export_symbols_cmds
  9609. # The commands to extract the exported symbol list from a shared archive.
  9610. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  9611. # Symbols that should not be listed in the preloaded symbols.
  9612. exclude_expsyms=$lt_exclude_expsyms
  9613. # Symbols that must always be exported.
  9614. include_expsyms=$lt_include_expsyms
  9615. # ### END LIBTOOL CONFIG
  9616. __EOF__
  9617. case $host_os in
  9618. aix3*)
  9619. cat <<\EOF >> "$cfgfile"
  9620. # AIX sometimes has problems with the GCC collect2 program. For some
  9621. # reason, if we set the COLLECT_NAMES environment variable, the problems
  9622. # vanish in a puff of smoke.
  9623. if test "X${COLLECT_NAMES+set}" != Xset; then
  9624. COLLECT_NAMES=
  9625. export COLLECT_NAMES
  9626. fi
  9627. EOF
  9628. ;;
  9629. esac
  9630. # We use sed instead of cat because bash on DJGPP gets confused if
  9631. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  9632. # text mode, it properly converts lines to CR/LF. This bash problem
  9633. # is reportedly fixed, but why not run on old versions too?
  9634. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  9635. mv -f "$cfgfile" "$ofile" || \
  9636. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  9637. chmod +x "$ofile"
  9638. else
  9639. # If there is no Makefile yet, we rely on a make rule to execute
  9640. # `config.status --recheck' to rerun these tests and create the
  9641. # libtool script then.
  9642. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  9643. if test -f "$ltmain_in"; then
  9644. test -f Makefile && make "$ltmain"
  9645. fi
  9646. fi
  9647. ac_ext=c
  9648. ac_cpp='$CPP $CPPFLAGS'
  9649. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9650. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9651. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9652. CC="$lt_save_CC"
  9653. # Check whether --with-tags was given.
  9654. if test "${with_tags+set}" = set; then
  9655. withval=$with_tags; tagnames="$withval"
  9656. fi
  9657. if test -f "$ltmain" && test -n "$tagnames"; then
  9658. if test ! -f "${ofile}"; then
  9659. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  9660. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  9661. fi
  9662. if test -z "$LTCC"; then
  9663. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  9664. if test -z "$LTCC"; then
  9665. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  9666. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  9667. else
  9668. { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  9669. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  9670. fi
  9671. fi
  9672. if test -z "$LTCFLAGS"; then
  9673. eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  9674. fi
  9675. # Extract list of available tagged configurations in $ofile.
  9676. # Note that this assumes the entire list is on one line.
  9677. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  9678. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9679. for tagname in $tagnames; do
  9680. IFS="$lt_save_ifs"
  9681. # Check whether tagname contains only valid characters
  9682. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  9683. "") ;;
  9684. *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  9685. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  9686. { (exit 1); exit 1; }; }
  9687. ;;
  9688. esac
  9689. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  9690. then
  9691. { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  9692. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  9693. { (exit 1); exit 1; }; }
  9694. fi
  9695. # Update the list of available tags.
  9696. if test -n "$tagname"; then
  9697. echo appending configuration tag \"$tagname\" to $ofile
  9698. case $tagname in
  9699. CXX)
  9700. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9701. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9702. (test "X$CXX" != "Xg++"))) ; then
  9703. ac_ext=cpp
  9704. ac_cpp='$CXXCPP $CPPFLAGS'
  9705. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9706. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9707. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9708. archive_cmds_need_lc_CXX=no
  9709. allow_undefined_flag_CXX=
  9710. always_export_symbols_CXX=no
  9711. archive_expsym_cmds_CXX=
  9712. export_dynamic_flag_spec_CXX=
  9713. hardcode_direct_CXX=no
  9714. hardcode_libdir_flag_spec_CXX=
  9715. hardcode_libdir_flag_spec_ld_CXX=
  9716. hardcode_libdir_separator_CXX=
  9717. hardcode_minus_L_CXX=no
  9718. hardcode_shlibpath_var_CXX=unsupported
  9719. hardcode_automatic_CXX=no
  9720. module_cmds_CXX=
  9721. module_expsym_cmds_CXX=
  9722. link_all_deplibs_CXX=unknown
  9723. old_archive_cmds_CXX=$old_archive_cmds
  9724. no_undefined_flag_CXX=
  9725. whole_archive_flag_spec_CXX=
  9726. enable_shared_with_static_runtimes_CXX=no
  9727. # Dependencies to place before and after the object being linked:
  9728. predep_objects_CXX=
  9729. postdep_objects_CXX=
  9730. predeps_CXX=
  9731. postdeps_CXX=
  9732. compiler_lib_search_path_CXX=
  9733. # Source file extension for C++ test sources.
  9734. ac_ext=cpp
  9735. # Object file extension for compiled C++ test sources.
  9736. objext=o
  9737. objext_CXX=$objext
  9738. # Code to be used in simple compile tests
  9739. lt_simple_compile_test_code="int some_variable = 0;"
  9740. # Code to be used in simple link tests
  9741. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  9742. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9743. # If no C compiler was specified, use CC.
  9744. LTCC=${LTCC-"$CC"}
  9745. # If no C compiler flags were specified, use CFLAGS.
  9746. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9747. # Allow CC to be a program name with arguments.
  9748. compiler=$CC
  9749. # save warnings/boilerplate of simple test code
  9750. ac_outfile=conftest.$ac_objext
  9751. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  9752. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9753. _lt_compiler_boilerplate=`cat conftest.err`
  9754. $rm conftest*
  9755. ac_outfile=conftest.$ac_objext
  9756. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  9757. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9758. _lt_linker_boilerplate=`cat conftest.err`
  9759. $rm conftest*
  9760. # Allow CC to be a program name with arguments.
  9761. lt_save_CC=$CC
  9762. lt_save_LD=$LD
  9763. lt_save_GCC=$GCC
  9764. GCC=$GXX
  9765. lt_save_with_gnu_ld=$with_gnu_ld
  9766. lt_save_path_LD=$lt_cv_path_LD
  9767. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9768. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9769. else
  9770. $as_unset lt_cv_prog_gnu_ld
  9771. fi
  9772. if test -n "${lt_cv_path_LDCXX+set}"; then
  9773. lt_cv_path_LD=$lt_cv_path_LDCXX
  9774. else
  9775. $as_unset lt_cv_path_LD
  9776. fi
  9777. test -z "${LDCXX+set}" || LD=$LDCXX
  9778. CC=${CXX-"c++"}
  9779. compiler=$CC
  9780. compiler_CXX=$CC
  9781. for cc_temp in $compiler""; do
  9782. case $cc_temp in
  9783. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9784. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9785. \-*) ;;
  9786. *) break;;
  9787. esac
  9788. done
  9789. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  9790. # We don't want -fno-exception wen compiling C++ code, so set the
  9791. # no_builtin_flag separately
  9792. if test "$GXX" = yes; then
  9793. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  9794. else
  9795. lt_prog_compiler_no_builtin_flag_CXX=
  9796. fi
  9797. if test "$GXX" = yes; then
  9798. # Set up default GNU C++ configuration
  9799. # Check whether --with-gnu-ld was given.
  9800. if test "${with_gnu_ld+set}" = set; then
  9801. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  9802. else
  9803. with_gnu_ld=no
  9804. fi
  9805. ac_prog=ld
  9806. if test "$GCC" = yes; then
  9807. # Check if gcc -print-prog-name=ld gives a path.
  9808. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  9809. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  9810. case $host in
  9811. *-*-mingw*)
  9812. # gcc leaves a trailing carriage return which upsets mingw
  9813. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  9814. *)
  9815. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  9816. esac
  9817. case $ac_prog in
  9818. # Accept absolute paths.
  9819. [\\/]* | ?:[\\/]*)
  9820. re_direlt='/[^/][^/]*/\.\./'
  9821. # Canonicalize the pathname of ld
  9822. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  9823. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  9824. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  9825. done
  9826. test -z "$LD" && LD="$ac_prog"
  9827. ;;
  9828. "")
  9829. # If it fails, then pretend we aren't using GCC.
  9830. ac_prog=ld
  9831. ;;
  9832. *)
  9833. # If it is relative, then search for the first ld in PATH.
  9834. with_gnu_ld=unknown
  9835. ;;
  9836. esac
  9837. elif test "$with_gnu_ld" = yes; then
  9838. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  9839. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  9840. else
  9841. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  9842. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  9843. fi
  9844. if test "${lt_cv_path_LD+set}" = set; then
  9845. echo $ECHO_N "(cached) $ECHO_C" >&6
  9846. else
  9847. if test -z "$LD"; then
  9848. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9849. for ac_dir in $PATH; do
  9850. IFS="$lt_save_ifs"
  9851. test -z "$ac_dir" && ac_dir=.
  9852. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  9853. lt_cv_path_LD="$ac_dir/$ac_prog"
  9854. # Check to see if the program is GNU ld. I'd rather use --version,
  9855. # but apparently some variants of GNU ld only accept -v.
  9856. # Break only if it was the GNU/non-GNU ld that we prefer.
  9857. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  9858. *GNU* | *'with BFD'*)
  9859. test "$with_gnu_ld" != no && break
  9860. ;;
  9861. *)
  9862. test "$with_gnu_ld" != yes && break
  9863. ;;
  9864. esac
  9865. fi
  9866. done
  9867. IFS="$lt_save_ifs"
  9868. else
  9869. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  9870. fi
  9871. fi
  9872. LD="$lt_cv_path_LD"
  9873. if test -n "$LD"; then
  9874. { echo "$as_me:$LINENO: result: $LD" >&5
  9875. echo "${ECHO_T}$LD" >&6; }
  9876. else
  9877. { echo "$as_me:$LINENO: result: no" >&5
  9878. echo "${ECHO_T}no" >&6; }
  9879. fi
  9880. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  9881. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  9882. { (exit 1); exit 1; }; }
  9883. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  9884. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  9885. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  9886. echo $ECHO_N "(cached) $ECHO_C" >&6
  9887. else
  9888. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  9889. case `$LD -v 2>&1 </dev/null` in
  9890. *GNU* | *'with BFD'*)
  9891. lt_cv_prog_gnu_ld=yes
  9892. ;;
  9893. *)
  9894. lt_cv_prog_gnu_ld=no
  9895. ;;
  9896. esac
  9897. fi
  9898. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  9899. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  9900. with_gnu_ld=$lt_cv_prog_gnu_ld
  9901. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  9902. # archiving commands below assume that GNU ld is being used.
  9903. if test "$with_gnu_ld" = yes; then
  9904. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9905. 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'
  9906. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  9907. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9908. # If archive_cmds runs LD, not CC, wlarc should be empty
  9909. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  9910. # investigate it a little bit more. (MM)
  9911. wlarc='${wl}'
  9912. # ancient GNU ld didn't support --whole-archive et. al.
  9913. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  9914. grep 'no-whole-archive' > /dev/null; then
  9915. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9916. else
  9917. whole_archive_flag_spec_CXX=
  9918. fi
  9919. else
  9920. with_gnu_ld=no
  9921. wlarc=
  9922. # A generic and very simple default shared library creation
  9923. # command for GNU C++ for the case where it uses the native
  9924. # linker, instead of GNU ld. If possible, this setting should
  9925. # overridden to take advantage of the native linker features on
  9926. # the platform it is being used on.
  9927. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9928. fi
  9929. # Commands to make compiler produce verbose output that lists
  9930. # what "hidden" libraries, object files and flags are used when
  9931. # linking a shared library.
  9932. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9933. else
  9934. GXX=no
  9935. with_gnu_ld=no
  9936. wlarc=
  9937. fi
  9938. # PORTME: fill in a description of your system's C++ link characteristics
  9939. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9940. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  9941. ld_shlibs_CXX=yes
  9942. case $host_os in
  9943. aix3*)
  9944. # FIXME: insert proper C++ library support
  9945. ld_shlibs_CXX=no
  9946. ;;
  9947. aix4* | aix5*)
  9948. if test "$host_cpu" = ia64; then
  9949. # On IA64, the linker does run time linking by default, so we don't
  9950. # have to do anything special.
  9951. aix_use_runtimelinking=no
  9952. exp_sym_flag='-Bexport'
  9953. no_entry_flag=""
  9954. else
  9955. aix_use_runtimelinking=no
  9956. # Test if we are trying to use run time linking or normal
  9957. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9958. # need to do runtime linking.
  9959. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  9960. for ld_flag in $LDFLAGS; do
  9961. case $ld_flag in
  9962. *-brtl*)
  9963. aix_use_runtimelinking=yes
  9964. break
  9965. ;;
  9966. esac
  9967. done
  9968. ;;
  9969. esac
  9970. exp_sym_flag='-bexport'
  9971. no_entry_flag='-bnoentry'
  9972. fi
  9973. # When large executables or shared objects are built, AIX ld can
  9974. # have problems creating the table of contents. If linking a library
  9975. # or program results in "error TOC overflow" add -mminimal-toc to
  9976. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9977. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9978. archive_cmds_CXX=''
  9979. hardcode_direct_CXX=yes
  9980. hardcode_libdir_separator_CXX=':'
  9981. link_all_deplibs_CXX=yes
  9982. if test "$GXX" = yes; then
  9983. case $host_os in aix4.[012]|aix4.[012].*)
  9984. # We only want to do this on AIX 4.2 and lower, the check
  9985. # below for broken collect2 doesn't work under 4.3+
  9986. collect2name=`${CC} -print-prog-name=collect2`
  9987. if test -f "$collect2name" && \
  9988. strings "$collect2name" | grep resolve_lib_name >/dev/null
  9989. then
  9990. # We have reworked collect2
  9991. :
  9992. else
  9993. # We have old collect2
  9994. hardcode_direct_CXX=unsupported
  9995. # It fails to find uninstalled libraries when the uninstalled
  9996. # path is not listed in the libpath. Setting hardcode_minus_L
  9997. # to unsupported forces relinking
  9998. hardcode_minus_L_CXX=yes
  9999. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10000. hardcode_libdir_separator_CXX=
  10001. fi
  10002. ;;
  10003. esac
  10004. shared_flag='-shared'
  10005. if test "$aix_use_runtimelinking" = yes; then
  10006. shared_flag="$shared_flag "'${wl}-G'
  10007. fi
  10008. else
  10009. # not using gcc
  10010. if test "$host_cpu" = ia64; then
  10011. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10012. # chokes on -Wl,-G. The following line is correct:
  10013. shared_flag='-G'
  10014. else
  10015. if test "$aix_use_runtimelinking" = yes; then
  10016. shared_flag='${wl}-G'
  10017. else
  10018. shared_flag='${wl}-bM:SRE'
  10019. fi
  10020. fi
  10021. fi
  10022. # It seems that -bexpall does not export symbols beginning with
  10023. # underscore (_), so it is better to generate a list of symbols to export.
  10024. always_export_symbols_CXX=yes
  10025. if test "$aix_use_runtimelinking" = yes; then
  10026. # Warning - without using the other runtime loading flags (-brtl),
  10027. # -berok will link without error, but may produce a broken library.
  10028. allow_undefined_flag_CXX='-berok'
  10029. # Determine the default libpath from the value encoded in an empty executable.
  10030. cat >conftest.$ac_ext <<_ACEOF
  10031. /* confdefs.h. */
  10032. _ACEOF
  10033. cat confdefs.h >>conftest.$ac_ext
  10034. cat >>conftest.$ac_ext <<_ACEOF
  10035. /* end confdefs.h. */
  10036. int
  10037. main ()
  10038. {
  10039. ;
  10040. return 0;
  10041. }
  10042. _ACEOF
  10043. rm -f conftest.$ac_objext conftest$ac_exeext
  10044. if { (ac_try="$ac_link"
  10045. case "(($ac_try" in
  10046. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10047. *) ac_try_echo=$ac_try;;
  10048. esac
  10049. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10050. (eval "$ac_link") 2>conftest.er1
  10051. ac_status=$?
  10052. grep -v '^ *+' conftest.er1 >conftest.err
  10053. rm -f conftest.er1
  10054. cat conftest.err >&5
  10055. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10056. (exit $ac_status); } && {
  10057. test -z "$ac_cxx_werror_flag" ||
  10058. test ! -s conftest.err
  10059. } && test -s conftest$ac_exeext &&
  10060. $as_test_x conftest$ac_exeext; then
  10061. lt_aix_libpath_sed='
  10062. /Import File Strings/,/^$/ {
  10063. /^0/ {
  10064. s/^0 *\(.*\)$/\1/
  10065. p
  10066. }
  10067. }'
  10068. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10069. # Check for a 64-bit object if we didn't find anything.
  10070. if test -z "$aix_libpath"; then
  10071. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10072. fi
  10073. else
  10074. echo "$as_me: failed program was:" >&5
  10075. sed 's/^/| /' conftest.$ac_ext >&5
  10076. fi
  10077. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10078. conftest$ac_exeext conftest.$ac_ext
  10079. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10080. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10081. 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"
  10082. else
  10083. if test "$host_cpu" = ia64; then
  10084. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10085. allow_undefined_flag_CXX="-z nodefs"
  10086. 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"
  10087. else
  10088. # Determine the default libpath from the value encoded in an empty executable.
  10089. cat >conftest.$ac_ext <<_ACEOF
  10090. /* confdefs.h. */
  10091. _ACEOF
  10092. cat confdefs.h >>conftest.$ac_ext
  10093. cat >>conftest.$ac_ext <<_ACEOF
  10094. /* end confdefs.h. */
  10095. int
  10096. main ()
  10097. {
  10098. ;
  10099. return 0;
  10100. }
  10101. _ACEOF
  10102. rm -f conftest.$ac_objext conftest$ac_exeext
  10103. if { (ac_try="$ac_link"
  10104. case "(($ac_try" in
  10105. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10106. *) ac_try_echo=$ac_try;;
  10107. esac
  10108. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10109. (eval "$ac_link") 2>conftest.er1
  10110. ac_status=$?
  10111. grep -v '^ *+' conftest.er1 >conftest.err
  10112. rm -f conftest.er1
  10113. cat conftest.err >&5
  10114. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10115. (exit $ac_status); } && {
  10116. test -z "$ac_cxx_werror_flag" ||
  10117. test ! -s conftest.err
  10118. } && test -s conftest$ac_exeext &&
  10119. $as_test_x conftest$ac_exeext; then
  10120. lt_aix_libpath_sed='
  10121. /Import File Strings/,/^$/ {
  10122. /^0/ {
  10123. s/^0 *\(.*\)$/\1/
  10124. p
  10125. }
  10126. }'
  10127. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10128. # Check for a 64-bit object if we didn't find anything.
  10129. if test -z "$aix_libpath"; then
  10130. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10131. fi
  10132. else
  10133. echo "$as_me: failed program was:" >&5
  10134. sed 's/^/| /' conftest.$ac_ext >&5
  10135. fi
  10136. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10137. conftest$ac_exeext conftest.$ac_ext
  10138. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10139. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10140. # Warning - without using the other run time loading flags,
  10141. # -berok will link without error, but may produce a broken library.
  10142. no_undefined_flag_CXX=' ${wl}-bernotok'
  10143. allow_undefined_flag_CXX=' ${wl}-berok'
  10144. # Exported symbols can be pulled into shared objects from archives
  10145. whole_archive_flag_spec_CXX='$convenience'
  10146. archive_cmds_need_lc_CXX=yes
  10147. # This is similar to how AIX traditionally builds its shared libraries.
  10148. 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'
  10149. fi
  10150. fi
  10151. ;;
  10152. beos*)
  10153. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  10154. allow_undefined_flag_CXX=unsupported
  10155. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10156. # support --undefined. This deserves some investigation. FIXME
  10157. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10158. else
  10159. ld_shlibs_CXX=no
  10160. fi
  10161. ;;
  10162. chorus*)
  10163. case $cc_basename in
  10164. *)
  10165. # FIXME: insert proper C++ library support
  10166. ld_shlibs_CXX=no
  10167. ;;
  10168. esac
  10169. ;;
  10170. cygwin* | mingw* | pw32*)
  10171. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10172. # as there is no search path for DLLs.
  10173. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10174. allow_undefined_flag_CXX=unsupported
  10175. always_export_symbols_CXX=no
  10176. enable_shared_with_static_runtimes_CXX=yes
  10177. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  10178. 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'
  10179. # If the export-symbols file already is a .def file (1st line
  10180. # is EXPORTS), use it as is; otherwise, prepend...
  10181. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10182. cp $export_symbols $output_objdir/$soname.def;
  10183. else
  10184. echo EXPORTS > $output_objdir/$soname.def;
  10185. cat $export_symbols >> $output_objdir/$soname.def;
  10186. fi~
  10187. $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'
  10188. else
  10189. ld_shlibs_CXX=no
  10190. fi
  10191. ;;
  10192. darwin* | rhapsody*)
  10193. case $host_os in
  10194. rhapsody* | darwin1.[012])
  10195. allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  10196. ;;
  10197. *) # Darwin 1.3 on
  10198. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  10199. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  10200. else
  10201. case ${MACOSX_DEPLOYMENT_TARGET} in
  10202. 10.[012])
  10203. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  10204. ;;
  10205. 10.*)
  10206. allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  10207. ;;
  10208. esac
  10209. fi
  10210. ;;
  10211. esac
  10212. archive_cmds_need_lc_CXX=no
  10213. hardcode_direct_CXX=no
  10214. hardcode_automatic_CXX=yes
  10215. hardcode_shlibpath_var_CXX=unsupported
  10216. whole_archive_flag_spec_CXX=''
  10217. link_all_deplibs_CXX=yes
  10218. if test "$GXX" = yes ; then
  10219. lt_int_apple_cc_single_mod=no
  10220. output_verbose_link_cmd='echo'
  10221. if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  10222. lt_int_apple_cc_single_mod=yes
  10223. fi
  10224. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  10225. archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  10226. else
  10227. 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'
  10228. fi
  10229. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  10230. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  10231. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  10232. 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}'
  10233. else
  10234. 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}'
  10235. fi
  10236. 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}'
  10237. else
  10238. case $cc_basename in
  10239. xlc*)
  10240. output_verbose_link_cmd='echo'
  10241. archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  10242. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  10243. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  10244. 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10245. 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}'
  10246. ;;
  10247. *)
  10248. ld_shlibs_CXX=no
  10249. ;;
  10250. esac
  10251. fi
  10252. ;;
  10253. dgux*)
  10254. case $cc_basename in
  10255. ec++*)
  10256. # FIXME: insert proper C++ library support
  10257. ld_shlibs_CXX=no
  10258. ;;
  10259. ghcx*)
  10260. # Green Hills C++ Compiler
  10261. # FIXME: insert proper C++ library support
  10262. ld_shlibs_CXX=no
  10263. ;;
  10264. *)
  10265. # FIXME: insert proper C++ library support
  10266. ld_shlibs_CXX=no
  10267. ;;
  10268. esac
  10269. ;;
  10270. freebsd[12]*)
  10271. # C++ shared libraries reported to be fairly broken before switch to ELF
  10272. ld_shlibs_CXX=no
  10273. ;;
  10274. freebsd-elf*)
  10275. archive_cmds_need_lc_CXX=no
  10276. ;;
  10277. freebsd* | dragonfly*)
  10278. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10279. # conventions
  10280. ld_shlibs_CXX=yes
  10281. ;;
  10282. gnu*)
  10283. ;;
  10284. hpux9*)
  10285. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10286. hardcode_libdir_separator_CXX=:
  10287. export_dynamic_flag_spec_CXX='${wl}-E'
  10288. hardcode_direct_CXX=yes
  10289. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10290. # but as the default
  10291. # location of the library.
  10292. case $cc_basename in
  10293. CC*)
  10294. # FIXME: insert proper C++ library support
  10295. ld_shlibs_CXX=no
  10296. ;;
  10297. aCC*)
  10298. 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'
  10299. # Commands to make compiler produce verbose output that lists
  10300. # what "hidden" libraries, object files and flags are used when
  10301. # linking a shared library.
  10302. #
  10303. # There doesn't appear to be a way to prevent this compiler from
  10304. # explicitly linking system object files so we need to strip them
  10305. # from the output so that they don't get included in the library
  10306. # dependencies.
  10307. 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'
  10308. ;;
  10309. *)
  10310. if test "$GXX" = yes; then
  10311. 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'
  10312. else
  10313. # FIXME: insert proper C++ library support
  10314. ld_shlibs_CXX=no
  10315. fi
  10316. ;;
  10317. esac
  10318. ;;
  10319. hpux10*|hpux11*)
  10320. if test $with_gnu_ld = no; then
  10321. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10322. hardcode_libdir_separator_CXX=:
  10323. case $host_cpu in
  10324. hppa*64*|ia64*) ;;
  10325. *)
  10326. export_dynamic_flag_spec_CXX='${wl}-E'
  10327. ;;
  10328. esac
  10329. fi
  10330. case $host_cpu in
  10331. hppa*64*|ia64*)
  10332. hardcode_direct_CXX=no
  10333. hardcode_shlibpath_var_CXX=no
  10334. ;;
  10335. *)
  10336. hardcode_direct_CXX=yes
  10337. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10338. # but as the default
  10339. # location of the library.
  10340. ;;
  10341. esac
  10342. case $cc_basename in
  10343. CC*)
  10344. # FIXME: insert proper C++ library support
  10345. ld_shlibs_CXX=no
  10346. ;;
  10347. aCC*)
  10348. case $host_cpu in
  10349. hppa*64*)
  10350. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10351. ;;
  10352. ia64*)
  10353. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10354. ;;
  10355. *)
  10356. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10357. ;;
  10358. esac
  10359. # Commands to make compiler produce verbose output that lists
  10360. # what "hidden" libraries, object files and flags are used when
  10361. # linking a shared library.
  10362. #
  10363. # There doesn't appear to be a way to prevent this compiler from
  10364. # explicitly linking system object files so we need to strip them
  10365. # from the output so that they don't get included in the library
  10366. # dependencies.
  10367. 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'
  10368. ;;
  10369. *)
  10370. if test "$GXX" = yes; then
  10371. if test $with_gnu_ld = no; then
  10372. case $host_cpu in
  10373. hppa*64*)
  10374. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10375. ;;
  10376. ia64*)
  10377. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10378. ;;
  10379. *)
  10380. 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'
  10381. ;;
  10382. esac
  10383. fi
  10384. else
  10385. # FIXME: insert proper C++ library support
  10386. ld_shlibs_CXX=no
  10387. fi
  10388. ;;
  10389. esac
  10390. ;;
  10391. interix[3-9]*)
  10392. hardcode_direct_CXX=no
  10393. hardcode_shlibpath_var_CXX=no
  10394. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10395. export_dynamic_flag_spec_CXX='${wl}-E'
  10396. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10397. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10398. # default) and relocated if they conflict, which is a slow very memory
  10399. # consuming and fragmenting process. To avoid this, we pick a random,
  10400. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10401. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10402. 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'
  10403. 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'
  10404. ;;
  10405. irix5* | irix6*)
  10406. case $cc_basename in
  10407. CC*)
  10408. # SGI C++
  10409. 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'
  10410. # Archives containing C++ object files must be created using
  10411. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10412. # necessary to make sure instantiated templates are included
  10413. # in the archive.
  10414. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10415. ;;
  10416. *)
  10417. if test "$GXX" = yes; then
  10418. if test "$with_gnu_ld" = no; then
  10419. 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'
  10420. else
  10421. 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'
  10422. fi
  10423. fi
  10424. link_all_deplibs_CXX=yes
  10425. ;;
  10426. esac
  10427. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10428. hardcode_libdir_separator_CXX=:
  10429. ;;
  10430. linux* | k*bsd*-gnu)
  10431. case $cc_basename in
  10432. KCC*)
  10433. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10434. # KCC will only create a shared library if the output file
  10435. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10436. # to its proper name (with version) after linking.
  10437. 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'
  10438. 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'
  10439. # Commands to make compiler produce verbose output that lists
  10440. # what "hidden" libraries, object files and flags are used when
  10441. # linking a shared library.
  10442. #
  10443. # There doesn't appear to be a way to prevent this compiler from
  10444. # explicitly linking system object files so we need to strip them
  10445. # from the output so that they don't get included in the library
  10446. # dependencies.
  10447. 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'
  10448. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  10449. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10450. # Archives containing C++ object files must be created using
  10451. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10452. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10453. ;;
  10454. icpc*)
  10455. # Intel C++
  10456. with_gnu_ld=yes
  10457. # version 8.0 and above of icpc choke on multiply defined symbols
  10458. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10459. # earlier do not add the objects themselves.
  10460. case `$CC -V 2>&1` in
  10461. *"Version 7."*)
  10462. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10463. 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'
  10464. ;;
  10465. *) # Version 8.0 or newer
  10466. tmp_idyn=
  10467. case $host_cpu in
  10468. ia64*) tmp_idyn=' -i_dynamic';;
  10469. esac
  10470. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10471. 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'
  10472. ;;
  10473. esac
  10474. archive_cmds_need_lc_CXX=no
  10475. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10476. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10477. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10478. ;;
  10479. pgCC*)
  10480. # Portland Group C++ compiler
  10481. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10482. 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'
  10483. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10484. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10485. 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'
  10486. ;;
  10487. cxx*)
  10488. # Compaq C++
  10489. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10490. 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'
  10491. runpath_var=LD_RUN_PATH
  10492. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10493. hardcode_libdir_separator_CXX=:
  10494. # Commands to make compiler produce verbose output that lists
  10495. # what "hidden" libraries, object files and flags are used when
  10496. # linking a shared library.
  10497. #
  10498. # There doesn't appear to be a way to prevent this compiler from
  10499. # explicitly linking system object files so we need to strip them
  10500. # from the output so that they don't get included in the library
  10501. # dependencies.
  10502. 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'
  10503. ;;
  10504. *)
  10505. case `$CC -V 2>&1 | sed 5q` in
  10506. *Sun\ C*)
  10507. # Sun C++ 5.9
  10508. no_undefined_flag_CXX=' -zdefs'
  10509. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10510. archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  10511. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10512. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  10513. # Not sure whether something based on
  10514. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  10515. # would be better.
  10516. output_verbose_link_cmd='echo'
  10517. # Archives containing C++ object files must be created using
  10518. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10519. # necessary to make sure instantiated templates are included
  10520. # in the archive.
  10521. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10522. ;;
  10523. esac
  10524. ;;
  10525. esac
  10526. ;;
  10527. lynxos*)
  10528. # FIXME: insert proper C++ library support
  10529. ld_shlibs_CXX=no
  10530. ;;
  10531. m88k*)
  10532. # FIXME: insert proper C++ library support
  10533. ld_shlibs_CXX=no
  10534. ;;
  10535. mvs*)
  10536. case $cc_basename in
  10537. cxx*)
  10538. # FIXME: insert proper C++ library support
  10539. ld_shlibs_CXX=no
  10540. ;;
  10541. *)
  10542. # FIXME: insert proper C++ library support
  10543. ld_shlibs_CXX=no
  10544. ;;
  10545. esac
  10546. ;;
  10547. netbsd*)
  10548. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  10549. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10550. wlarc=
  10551. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10552. hardcode_direct_CXX=yes
  10553. hardcode_shlibpath_var_CXX=no
  10554. fi
  10555. # Workaround some broken pre-1.5 toolchains
  10556. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10557. ;;
  10558. openbsd2*)
  10559. # C++ shared libraries are fairly broken
  10560. ld_shlibs_CXX=no
  10561. ;;
  10562. openbsd*)
  10563. if test -f /usr/libexec/ld.so; then
  10564. hardcode_direct_CXX=yes
  10565. hardcode_shlibpath_var_CXX=no
  10566. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10567. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10568. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10569. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10570. export_dynamic_flag_spec_CXX='${wl}-E'
  10571. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10572. fi
  10573. output_verbose_link_cmd='echo'
  10574. else
  10575. ld_shlibs_CXX=no
  10576. fi
  10577. ;;
  10578. osf3*)
  10579. case $cc_basename in
  10580. KCC*)
  10581. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10582. # KCC will only create a shared library if the output file
  10583. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10584. # to its proper name (with version) after linking.
  10585. 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'
  10586. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10587. hardcode_libdir_separator_CXX=:
  10588. # Archives containing C++ object files must be created using
  10589. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10590. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10591. ;;
  10592. RCC*)
  10593. # Rational C++ 2.4.1
  10594. # FIXME: insert proper C++ library support
  10595. ld_shlibs_CXX=no
  10596. ;;
  10597. cxx*)
  10598. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10599. 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'
  10600. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10601. hardcode_libdir_separator_CXX=:
  10602. # Commands to make compiler produce verbose output that lists
  10603. # what "hidden" libraries, object files and flags are used when
  10604. # linking a shared library.
  10605. #
  10606. # There doesn't appear to be a way to prevent this compiler from
  10607. # explicitly linking system object files so we need to strip them
  10608. # from the output so that they don't get included in the library
  10609. # dependencies.
  10610. 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'
  10611. ;;
  10612. *)
  10613. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10614. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10615. 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'
  10616. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10617. hardcode_libdir_separator_CXX=:
  10618. # Commands to make compiler produce verbose output that lists
  10619. # what "hidden" libraries, object files and flags are used when
  10620. # linking a shared library.
  10621. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10622. else
  10623. # FIXME: insert proper C++ library support
  10624. ld_shlibs_CXX=no
  10625. fi
  10626. ;;
  10627. esac
  10628. ;;
  10629. osf4* | osf5*)
  10630. case $cc_basename in
  10631. KCC*)
  10632. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10633. # KCC will only create a shared library if the output file
  10634. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10635. # to its proper name (with version) after linking.
  10636. 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'
  10637. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10638. hardcode_libdir_separator_CXX=:
  10639. # Archives containing C++ object files must be created using
  10640. # the KAI C++ compiler.
  10641. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  10642. ;;
  10643. RCC*)
  10644. # Rational C++ 2.4.1
  10645. # FIXME: insert proper C++ library support
  10646. ld_shlibs_CXX=no
  10647. ;;
  10648. cxx*)
  10649. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10650. 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'
  10651. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10652. echo "-hidden">> $lib.exp~
  10653. $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~
  10654. $rm $lib.exp'
  10655. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10656. hardcode_libdir_separator_CXX=:
  10657. # Commands to make compiler produce verbose output that lists
  10658. # what "hidden" libraries, object files and flags are used when
  10659. # linking a shared library.
  10660. #
  10661. # There doesn't appear to be a way to prevent this compiler from
  10662. # explicitly linking system object files so we need to strip them
  10663. # from the output so that they don't get included in the library
  10664. # dependencies.
  10665. 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'
  10666. ;;
  10667. *)
  10668. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10669. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10670. 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'
  10671. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10672. hardcode_libdir_separator_CXX=:
  10673. # Commands to make compiler produce verbose output that lists
  10674. # what "hidden" libraries, object files and flags are used when
  10675. # linking a shared library.
  10676. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10677. else
  10678. # FIXME: insert proper C++ library support
  10679. ld_shlibs_CXX=no
  10680. fi
  10681. ;;
  10682. esac
  10683. ;;
  10684. psos*)
  10685. # FIXME: insert proper C++ library support
  10686. ld_shlibs_CXX=no
  10687. ;;
  10688. sunos4*)
  10689. case $cc_basename in
  10690. CC*)
  10691. # Sun C++ 4.x
  10692. # FIXME: insert proper C++ library support
  10693. ld_shlibs_CXX=no
  10694. ;;
  10695. lcc*)
  10696. # Lucid
  10697. # FIXME: insert proper C++ library support
  10698. ld_shlibs_CXX=no
  10699. ;;
  10700. *)
  10701. # FIXME: insert proper C++ library support
  10702. ld_shlibs_CXX=no
  10703. ;;
  10704. esac
  10705. ;;
  10706. solaris*)
  10707. case $cc_basename in
  10708. CC*)
  10709. # Sun C++ 4.2, 5.x and Centerline C++
  10710. archive_cmds_need_lc_CXX=yes
  10711. no_undefined_flag_CXX=' -zdefs'
  10712. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10713. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10714. $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'
  10715. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10716. hardcode_shlibpath_var_CXX=no
  10717. case $host_os in
  10718. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10719. *)
  10720. # The compiler driver will combine and reorder linker options,
  10721. # but understands `-z linker_flag'.
  10722. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10723. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  10724. ;;
  10725. esac
  10726. link_all_deplibs_CXX=yes
  10727. output_verbose_link_cmd='echo'
  10728. # Archives containing C++ object files must be created using
  10729. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10730. # necessary to make sure instantiated templates are included
  10731. # in the archive.
  10732. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10733. ;;
  10734. gcx*)
  10735. # Green Hills C++ Compiler
  10736. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10737. # The C++ compiler must be used to create the archive.
  10738. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10739. ;;
  10740. *)
  10741. # GNU C++ compiler with Solaris linker
  10742. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10743. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10744. if $CC --version | grep -v '^2\.7' > /dev/null; then
  10745. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10746. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10747. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10748. # Commands to make compiler produce verbose output that lists
  10749. # what "hidden" libraries, object files and flags are used when
  10750. # linking a shared library.
  10751. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10752. else
  10753. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10754. # platform.
  10755. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10756. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10757. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10758. # Commands to make compiler produce verbose output that lists
  10759. # what "hidden" libraries, object files and flags are used when
  10760. # linking a shared library.
  10761. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10762. fi
  10763. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10764. case $host_os in
  10765. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10766. *)
  10767. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10768. ;;
  10769. esac
  10770. fi
  10771. ;;
  10772. esac
  10773. ;;
  10774. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10775. no_undefined_flag_CXX='${wl}-z,text'
  10776. archive_cmds_need_lc_CXX=no
  10777. hardcode_shlibpath_var_CXX=no
  10778. runpath_var='LD_RUN_PATH'
  10779. case $cc_basename in
  10780. CC*)
  10781. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10782. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10783. ;;
  10784. *)
  10785. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10786. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10787. ;;
  10788. esac
  10789. ;;
  10790. sysv5* | sco3.2v5* | sco5v6*)
  10791. # Note: We can NOT use -z defs as we might desire, because we do not
  10792. # link with -lc, and that would cause any symbols used from libc to
  10793. # always be unresolved, which means just about no library would
  10794. # ever link correctly. If we're not using GNU ld we use -z text
  10795. # though, which does catch some bad symbols but isn't as heavy-handed
  10796. # as -z defs.
  10797. # For security reasons, it is highly recommended that you always
  10798. # use absolute paths for naming shared libraries, and exclude the
  10799. # DT_RUNPATH tag from executables and libraries. But doing so
  10800. # requires that you compile everything twice, which is a pain.
  10801. # So that behaviour is only enabled if SCOABSPATH is set to a
  10802. # non-empty value in the environment. Most likely only useful for
  10803. # creating official distributions of packages.
  10804. # This is a hack until libtool officially supports absolute path
  10805. # names for shared libraries.
  10806. no_undefined_flag_CXX='${wl}-z,text'
  10807. allow_undefined_flag_CXX='${wl}-z,nodefs'
  10808. archive_cmds_need_lc_CXX=no
  10809. hardcode_shlibpath_var_CXX=no
  10810. hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  10811. hardcode_libdir_separator_CXX=':'
  10812. link_all_deplibs_CXX=yes
  10813. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  10814. runpath_var='LD_RUN_PATH'
  10815. case $cc_basename in
  10816. CC*)
  10817. archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10818. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10819. ;;
  10820. *)
  10821. archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10822. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10823. ;;
  10824. esac
  10825. ;;
  10826. tandem*)
  10827. case $cc_basename in
  10828. NCC*)
  10829. # NonStop-UX NCC 3.20
  10830. # FIXME: insert proper C++ library support
  10831. ld_shlibs_CXX=no
  10832. ;;
  10833. *)
  10834. # FIXME: insert proper C++ library support
  10835. ld_shlibs_CXX=no
  10836. ;;
  10837. esac
  10838. ;;
  10839. vxworks*)
  10840. # FIXME: insert proper C++ library support
  10841. ld_shlibs_CXX=no
  10842. ;;
  10843. *)
  10844. # FIXME: insert proper C++ library support
  10845. ld_shlibs_CXX=no
  10846. ;;
  10847. esac
  10848. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  10849. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  10850. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10851. GCC_CXX="$GXX"
  10852. LD_CXX="$LD"
  10853. cat > conftest.$ac_ext <<EOF
  10854. class Foo
  10855. {
  10856. public:
  10857. Foo (void) { a = 0; }
  10858. private:
  10859. int a;
  10860. };
  10861. EOF
  10862. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10863. (eval $ac_compile) 2>&5
  10864. ac_status=$?
  10865. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10866. (exit $ac_status); }; then
  10867. # Parse the compiler output and extract the necessary
  10868. # objects, libraries and library flags.
  10869. # Sentinel used to keep track of whether or not we are before
  10870. # the conftest object file.
  10871. pre_test_object_deps_done=no
  10872. # The `*' in the case matches for architectures that use `case' in
  10873. # $output_verbose_cmd can trigger glob expansion during the loop
  10874. # eval without this substitution.
  10875. output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  10876. for p in `eval $output_verbose_link_cmd`; do
  10877. case $p in
  10878. -L* | -R* | -l*)
  10879. # Some compilers place space between "-{L,R}" and the path.
  10880. # Remove the space.
  10881. if test $p = "-L" \
  10882. || test $p = "-R"; then
  10883. prev=$p
  10884. continue
  10885. else
  10886. prev=
  10887. fi
  10888. if test "$pre_test_object_deps_done" = no; then
  10889. case $p in
  10890. -L* | -R*)
  10891. # Internal compiler library paths should come after those
  10892. # provided the user. The postdeps already come after the
  10893. # user supplied libs so there is no need to process them.
  10894. if test -z "$compiler_lib_search_path_CXX"; then
  10895. compiler_lib_search_path_CXX="${prev}${p}"
  10896. else
  10897. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  10898. fi
  10899. ;;
  10900. # The "-l" case would never come before the object being
  10901. # linked, so don't bother handling this case.
  10902. esac
  10903. else
  10904. if test -z "$postdeps_CXX"; then
  10905. postdeps_CXX="${prev}${p}"
  10906. else
  10907. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  10908. fi
  10909. fi
  10910. ;;
  10911. *.$objext)
  10912. # This assumes that the test object file only shows up
  10913. # once in the compiler output.
  10914. if test "$p" = "conftest.$objext"; then
  10915. pre_test_object_deps_done=yes
  10916. continue
  10917. fi
  10918. if test "$pre_test_object_deps_done" = no; then
  10919. if test -z "$predep_objects_CXX"; then
  10920. predep_objects_CXX="$p"
  10921. else
  10922. predep_objects_CXX="$predep_objects_CXX $p"
  10923. fi
  10924. else
  10925. if test -z "$postdep_objects_CXX"; then
  10926. postdep_objects_CXX="$p"
  10927. else
  10928. postdep_objects_CXX="$postdep_objects_CXX $p"
  10929. fi
  10930. fi
  10931. ;;
  10932. *) ;; # Ignore the rest.
  10933. esac
  10934. done
  10935. # Clean up.
  10936. rm -f a.out a.exe
  10937. else
  10938. echo "libtool.m4: error: problem compiling CXX test program"
  10939. fi
  10940. $rm -f confest.$objext
  10941. # PORTME: override above test on systems where it is broken
  10942. case $host_os in
  10943. interix[3-9]*)
  10944. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  10945. # hack all around it, let's just trust "g++" to DTRT.
  10946. predep_objects_CXX=
  10947. postdep_objects_CXX=
  10948. postdeps_CXX=
  10949. ;;
  10950. linux*)
  10951. case `$CC -V 2>&1 | sed 5q` in
  10952. *Sun\ C*)
  10953. # Sun C++ 5.9
  10954. #
  10955. # The more standards-conforming stlport4 library is
  10956. # incompatible with the Cstd library. Avoid specifying
  10957. # it if it's in CXXFLAGS. Ignore libCrun as
  10958. # -library=stlport4 depends on it.
  10959. case " $CXX $CXXFLAGS " in
  10960. *" -library=stlport4 "*)
  10961. solaris_use_stlport4=yes
  10962. ;;
  10963. esac
  10964. if test "$solaris_use_stlport4" != yes; then
  10965. postdeps_CXX='-library=Cstd -library=Crun'
  10966. fi
  10967. ;;
  10968. esac
  10969. ;;
  10970. solaris*)
  10971. case $cc_basename in
  10972. CC*)
  10973. # The more standards-conforming stlport4 library is
  10974. # incompatible with the Cstd library. Avoid specifying
  10975. # it if it's in CXXFLAGS. Ignore libCrun as
  10976. # -library=stlport4 depends on it.
  10977. case " $CXX $CXXFLAGS " in
  10978. *" -library=stlport4 "*)
  10979. solaris_use_stlport4=yes
  10980. ;;
  10981. esac
  10982. # Adding this requires a known-good setup of shared libraries for
  10983. # Sun compiler versions before 5.6, else PIC objects from an old
  10984. # archive will be linked into the output, leading to subtle bugs.
  10985. if test "$solaris_use_stlport4" != yes; then
  10986. postdeps_CXX='-library=Cstd -library=Crun'
  10987. fi
  10988. ;;
  10989. esac
  10990. ;;
  10991. esac
  10992. case " $postdeps_CXX " in
  10993. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  10994. esac
  10995. lt_prog_compiler_wl_CXX=
  10996. lt_prog_compiler_pic_CXX=
  10997. lt_prog_compiler_static_CXX=
  10998. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  10999. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  11000. # C++ specific cases for pic, static, wl, etc.
  11001. if test "$GXX" = yes; then
  11002. lt_prog_compiler_wl_CXX='-Wl,'
  11003. lt_prog_compiler_static_CXX='-static'
  11004. case $host_os in
  11005. aix*)
  11006. # All AIX code is PIC.
  11007. if test "$host_cpu" = ia64; then
  11008. # AIX 5 now supports IA64 processor
  11009. lt_prog_compiler_static_CXX='-Bstatic'
  11010. fi
  11011. ;;
  11012. amigaos*)
  11013. # FIXME: we need at least 68020 code to build shared libraries, but
  11014. # adding the `-m68020' flag to GCC prevents building anything better,
  11015. # like `-m68040'.
  11016. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11017. ;;
  11018. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11019. # PIC is the default for these OSes.
  11020. ;;
  11021. mingw* | cygwin* | os2* | pw32*)
  11022. # This hack is so that the source file can tell whether it is being
  11023. # built for inclusion in a dll (and should export symbols for example).
  11024. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11025. # (--disable-auto-import) libraries
  11026. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11027. ;;
  11028. darwin* | rhapsody*)
  11029. # PIC is the default on this platform
  11030. # Common symbols not allowed in MH_DYLIB files
  11031. lt_prog_compiler_pic_CXX='-fno-common'
  11032. ;;
  11033. *djgpp*)
  11034. # DJGPP does not support shared libraries at all
  11035. lt_prog_compiler_pic_CXX=
  11036. ;;
  11037. interix[3-9]*)
  11038. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11039. # Instead, we relocate shared libraries at runtime.
  11040. ;;
  11041. sysv4*MP*)
  11042. if test -d /usr/nec; then
  11043. lt_prog_compiler_pic_CXX=-Kconform_pic
  11044. fi
  11045. ;;
  11046. hpux*)
  11047. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11048. # not for PA HP-UX.
  11049. case $host_cpu in
  11050. hppa*64*|ia64*)
  11051. ;;
  11052. *)
  11053. lt_prog_compiler_pic_CXX='-fPIC'
  11054. ;;
  11055. esac
  11056. ;;
  11057. *)
  11058. lt_prog_compiler_pic_CXX='-fPIC'
  11059. ;;
  11060. esac
  11061. else
  11062. case $host_os in
  11063. aix4* | aix5*)
  11064. # All AIX code is PIC.
  11065. if test "$host_cpu" = ia64; then
  11066. # AIX 5 now supports IA64 processor
  11067. lt_prog_compiler_static_CXX='-Bstatic'
  11068. else
  11069. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11070. fi
  11071. ;;
  11072. chorus*)
  11073. case $cc_basename in
  11074. cxch68*)
  11075. # Green Hills C++ Compiler
  11076. # _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"
  11077. ;;
  11078. esac
  11079. ;;
  11080. darwin*)
  11081. # PIC is the default on this platform
  11082. # Common symbols not allowed in MH_DYLIB files
  11083. case $cc_basename in
  11084. xlc*)
  11085. lt_prog_compiler_pic_CXX='-qnocommon'
  11086. lt_prog_compiler_wl_CXX='-Wl,'
  11087. ;;
  11088. esac
  11089. ;;
  11090. dgux*)
  11091. case $cc_basename in
  11092. ec++*)
  11093. lt_prog_compiler_pic_CXX='-KPIC'
  11094. ;;
  11095. ghcx*)
  11096. # Green Hills C++ Compiler
  11097. lt_prog_compiler_pic_CXX='-pic'
  11098. ;;
  11099. *)
  11100. ;;
  11101. esac
  11102. ;;
  11103. freebsd* | dragonfly*)
  11104. # FreeBSD uses GNU C++
  11105. ;;
  11106. hpux9* | hpux10* | hpux11*)
  11107. case $cc_basename in
  11108. CC*)
  11109. lt_prog_compiler_wl_CXX='-Wl,'
  11110. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11111. if test "$host_cpu" != ia64; then
  11112. lt_prog_compiler_pic_CXX='+Z'
  11113. fi
  11114. ;;
  11115. aCC*)
  11116. lt_prog_compiler_wl_CXX='-Wl,'
  11117. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11118. case $host_cpu in
  11119. hppa*64*|ia64*)
  11120. # +Z the default
  11121. ;;
  11122. *)
  11123. lt_prog_compiler_pic_CXX='+Z'
  11124. ;;
  11125. esac
  11126. ;;
  11127. *)
  11128. ;;
  11129. esac
  11130. ;;
  11131. interix*)
  11132. # This is c89, which is MS Visual C++ (no shared libs)
  11133. # Anyone wants to do a port?
  11134. ;;
  11135. irix5* | irix6* | nonstopux*)
  11136. case $cc_basename in
  11137. CC*)
  11138. lt_prog_compiler_wl_CXX='-Wl,'
  11139. lt_prog_compiler_static_CXX='-non_shared'
  11140. # CC pic flag -KPIC is the default.
  11141. ;;
  11142. *)
  11143. ;;
  11144. esac
  11145. ;;
  11146. linux* | k*bsd*-gnu)
  11147. case $cc_basename in
  11148. KCC*)
  11149. # KAI C++ Compiler
  11150. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11151. lt_prog_compiler_pic_CXX='-fPIC'
  11152. ;;
  11153. icpc* | ecpc*)
  11154. # Intel C++
  11155. lt_prog_compiler_wl_CXX='-Wl,'
  11156. lt_prog_compiler_pic_CXX='-KPIC'
  11157. lt_prog_compiler_static_CXX='-static'
  11158. ;;
  11159. pgCC*)
  11160. # Portland Group C++ compiler.
  11161. lt_prog_compiler_wl_CXX='-Wl,'
  11162. lt_prog_compiler_pic_CXX='-fpic'
  11163. lt_prog_compiler_static_CXX='-Bstatic'
  11164. ;;
  11165. cxx*)
  11166. # Compaq C++
  11167. # Make sure the PIC flag is empty. It appears that all Alpha
  11168. # Linux and Compaq Tru64 Unix objects are PIC.
  11169. lt_prog_compiler_pic_CXX=
  11170. lt_prog_compiler_static_CXX='-non_shared'
  11171. ;;
  11172. *)
  11173. case `$CC -V 2>&1 | sed 5q` in
  11174. *Sun\ C*)
  11175. # Sun C++ 5.9
  11176. lt_prog_compiler_pic_CXX='-KPIC'
  11177. lt_prog_compiler_static_CXX='-Bstatic'
  11178. lt_prog_compiler_wl_CXX='-Qoption ld '
  11179. ;;
  11180. esac
  11181. ;;
  11182. esac
  11183. ;;
  11184. lynxos*)
  11185. ;;
  11186. m88k*)
  11187. ;;
  11188. mvs*)
  11189. case $cc_basename in
  11190. cxx*)
  11191. lt_prog_compiler_pic_CXX='-W c,exportall'
  11192. ;;
  11193. *)
  11194. ;;
  11195. esac
  11196. ;;
  11197. netbsd*)
  11198. ;;
  11199. osf3* | osf4* | osf5*)
  11200. case $cc_basename in
  11201. KCC*)
  11202. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11203. ;;
  11204. RCC*)
  11205. # Rational C++ 2.4.1
  11206. lt_prog_compiler_pic_CXX='-pic'
  11207. ;;
  11208. cxx*)
  11209. # Digital/Compaq C++
  11210. lt_prog_compiler_wl_CXX='-Wl,'
  11211. # Make sure the PIC flag is empty. It appears that all Alpha
  11212. # Linux and Compaq Tru64 Unix objects are PIC.
  11213. lt_prog_compiler_pic_CXX=
  11214. lt_prog_compiler_static_CXX='-non_shared'
  11215. ;;
  11216. *)
  11217. ;;
  11218. esac
  11219. ;;
  11220. psos*)
  11221. ;;
  11222. solaris*)
  11223. case $cc_basename in
  11224. CC*)
  11225. # Sun C++ 4.2, 5.x and Centerline C++
  11226. lt_prog_compiler_pic_CXX='-KPIC'
  11227. lt_prog_compiler_static_CXX='-Bstatic'
  11228. lt_prog_compiler_wl_CXX='-Qoption ld '
  11229. ;;
  11230. gcx*)
  11231. # Green Hills C++ Compiler
  11232. lt_prog_compiler_pic_CXX='-PIC'
  11233. ;;
  11234. *)
  11235. ;;
  11236. esac
  11237. ;;
  11238. sunos4*)
  11239. case $cc_basename in
  11240. CC*)
  11241. # Sun C++ 4.x
  11242. lt_prog_compiler_pic_CXX='-pic'
  11243. lt_prog_compiler_static_CXX='-Bstatic'
  11244. ;;
  11245. lcc*)
  11246. # Lucid
  11247. lt_prog_compiler_pic_CXX='-pic'
  11248. ;;
  11249. *)
  11250. ;;
  11251. esac
  11252. ;;
  11253. tandem*)
  11254. case $cc_basename in
  11255. NCC*)
  11256. # NonStop-UX NCC 3.20
  11257. lt_prog_compiler_pic_CXX='-KPIC'
  11258. ;;
  11259. *)
  11260. ;;
  11261. esac
  11262. ;;
  11263. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11264. case $cc_basename in
  11265. CC*)
  11266. lt_prog_compiler_wl_CXX='-Wl,'
  11267. lt_prog_compiler_pic_CXX='-KPIC'
  11268. lt_prog_compiler_static_CXX='-Bstatic'
  11269. ;;
  11270. esac
  11271. ;;
  11272. vxworks*)
  11273. ;;
  11274. *)
  11275. lt_prog_compiler_can_build_shared_CXX=no
  11276. ;;
  11277. esac
  11278. fi
  11279. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  11280. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
  11281. #
  11282. # Check to make sure the PIC flag actually works.
  11283. #
  11284. if test -n "$lt_prog_compiler_pic_CXX"; then
  11285. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11286. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
  11287. if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  11288. echo $ECHO_N "(cached) $ECHO_C" >&6
  11289. else
  11290. lt_prog_compiler_pic_works_CXX=no
  11291. ac_outfile=conftest.$ac_objext
  11292. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11293. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11294. # Insert the option either (1) after the last *FLAGS variable, or
  11295. # (2) before a word containing "conftest.", or (3) at the end.
  11296. # Note that $ac_compile itself does not contain backslashes and begins
  11297. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11298. # The option is referenced via a variable to avoid confusing sed.
  11299. lt_compile=`echo "$ac_compile" | $SED \
  11300. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11301. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11302. -e 's:$: $lt_compiler_flag:'`
  11303. (eval echo "\"\$as_me:12587: $lt_compile\"" >&5)
  11304. (eval "$lt_compile" 2>conftest.err)
  11305. ac_status=$?
  11306. cat conftest.err >&5
  11307. echo "$as_me:12591: \$? = $ac_status" >&5
  11308. if (exit $ac_status) && test -s "$ac_outfile"; then
  11309. # The compiler can only warn and ignore the option if not recognized
  11310. # So say no if there are warnings other than the usual output.
  11311. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  11312. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11313. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11314. lt_prog_compiler_pic_works_CXX=yes
  11315. fi
  11316. fi
  11317. $rm conftest*
  11318. fi
  11319. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  11320. echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
  11321. if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  11322. case $lt_prog_compiler_pic_CXX in
  11323. "" | " "*) ;;
  11324. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11325. esac
  11326. else
  11327. lt_prog_compiler_pic_CXX=
  11328. lt_prog_compiler_can_build_shared_CXX=no
  11329. fi
  11330. fi
  11331. case $host_os in
  11332. # For platforms which do not support PIC, -DPIC is meaningless:
  11333. *djgpp*)
  11334. lt_prog_compiler_pic_CXX=
  11335. ;;
  11336. *)
  11337. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11338. ;;
  11339. esac
  11340. #
  11341. # Check to make sure the static flag actually works.
  11342. #
  11343. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11344. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11345. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  11346. if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
  11347. echo $ECHO_N "(cached) $ECHO_C" >&6
  11348. else
  11349. lt_prog_compiler_static_works_CXX=no
  11350. save_LDFLAGS="$LDFLAGS"
  11351. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11352. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11353. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11354. # The linker can only warn and ignore the option if not recognized
  11355. # So say no if there are warnings
  11356. if test -s conftest.err; then
  11357. # Append any errors to the config.log.
  11358. cat conftest.err 1>&5
  11359. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  11360. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11361. if diff conftest.exp conftest.er2 >/dev/null; then
  11362. lt_prog_compiler_static_works_CXX=yes
  11363. fi
  11364. else
  11365. lt_prog_compiler_static_works_CXX=yes
  11366. fi
  11367. fi
  11368. $rm conftest*
  11369. LDFLAGS="$save_LDFLAGS"
  11370. fi
  11371. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
  11372. echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
  11373. if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
  11374. :
  11375. else
  11376. lt_prog_compiler_static_CXX=
  11377. fi
  11378. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  11379. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  11380. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  11381. echo $ECHO_N "(cached) $ECHO_C" >&6
  11382. else
  11383. lt_cv_prog_compiler_c_o_CXX=no
  11384. $rm -r conftest 2>/dev/null
  11385. mkdir conftest
  11386. cd conftest
  11387. mkdir out
  11388. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11389. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11390. # Insert the option either (1) after the last *FLAGS variable, or
  11391. # (2) before a word containing "conftest.", or (3) at the end.
  11392. # Note that $ac_compile itself does not contain backslashes and begins
  11393. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11394. lt_compile=`echo "$ac_compile" | $SED \
  11395. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11396. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11397. -e 's:$: $lt_compiler_flag:'`
  11398. (eval echo "\"\$as_me:12691: $lt_compile\"" >&5)
  11399. (eval "$lt_compile" 2>out/conftest.err)
  11400. ac_status=$?
  11401. cat out/conftest.err >&5
  11402. echo "$as_me:12695: \$? = $ac_status" >&5
  11403. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11404. then
  11405. # The compiler can only warn and ignore the option if not recognized
  11406. # So say no if there are warnings
  11407. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11408. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11409. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11410. lt_cv_prog_compiler_c_o_CXX=yes
  11411. fi
  11412. fi
  11413. chmod u+w . 2>&5
  11414. $rm conftest*
  11415. # SGI C++ compiler will create directory out/ii_files/ for
  11416. # template instantiation
  11417. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  11418. $rm out/* && rmdir out
  11419. cd ..
  11420. rmdir conftest
  11421. $rm conftest*
  11422. fi
  11423. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11424. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11425. hard_links="nottested"
  11426. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11427. # do not overwrite the value of need_locks provided by the user
  11428. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  11429. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  11430. hard_links=yes
  11431. $rm conftest*
  11432. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11433. touch conftest.a
  11434. ln conftest.a conftest.b 2>&5 || hard_links=no
  11435. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11436. { echo "$as_me:$LINENO: result: $hard_links" >&5
  11437. echo "${ECHO_T}$hard_links" >&6; }
  11438. if test "$hard_links" = no; then
  11439. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11440. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11441. need_locks=warn
  11442. fi
  11443. else
  11444. need_locks=no
  11445. fi
  11446. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11447. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  11448. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11449. case $host_os in
  11450. aix4* | aix5*)
  11451. # If we're using GNU nm, then we don't want the "-C" option.
  11452. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11453. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  11454. 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'
  11455. else
  11456. 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'
  11457. fi
  11458. ;;
  11459. pw32*)
  11460. export_symbols_cmds_CXX="$ltdll_cmds"
  11461. ;;
  11462. cygwin* | mingw*)
  11463. 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'
  11464. ;;
  11465. *)
  11466. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11467. ;;
  11468. esac
  11469. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  11470. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  11471. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11472. #
  11473. # Do we need to explicitly link libc?
  11474. #
  11475. case "x$archive_cmds_need_lc_CXX" in
  11476. x|xyes)
  11477. # Assume -lc should be added
  11478. archive_cmds_need_lc_CXX=yes
  11479. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11480. case $archive_cmds_CXX in
  11481. *'~'*)
  11482. # FIXME: we may have to deal with multi-command sequences.
  11483. ;;
  11484. '$CC '*)
  11485. # Test whether the compiler implicitly links with -lc since on some
  11486. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11487. # to ld, don't add -lc before -lgcc.
  11488. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  11489. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  11490. $rm conftest*
  11491. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11492. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11493. (eval $ac_compile) 2>&5
  11494. ac_status=$?
  11495. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11496. (exit $ac_status); } 2>conftest.err; then
  11497. soname=conftest
  11498. lib=conftest
  11499. libobjs=conftest.$ac_objext
  11500. deplibs=
  11501. wl=$lt_prog_compiler_wl_CXX
  11502. pic_flag=$lt_prog_compiler_pic_CXX
  11503. compiler_flags=-v
  11504. linker_flags=-v
  11505. verstring=
  11506. output_objdir=.
  11507. libname=conftest
  11508. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11509. allow_undefined_flag_CXX=
  11510. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  11511. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11512. ac_status=$?
  11513. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11514. (exit $ac_status); }
  11515. then
  11516. archive_cmds_need_lc_CXX=no
  11517. else
  11518. archive_cmds_need_lc_CXX=yes
  11519. fi
  11520. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11521. else
  11522. cat conftest.err 1>&5
  11523. fi
  11524. $rm conftest*
  11525. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  11526. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
  11527. ;;
  11528. esac
  11529. fi
  11530. ;;
  11531. esac
  11532. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  11533. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  11534. library_names_spec=
  11535. libname_spec='lib$name'
  11536. soname_spec=
  11537. shrext_cmds=".so"
  11538. postinstall_cmds=
  11539. postuninstall_cmds=
  11540. finish_cmds=
  11541. finish_eval=
  11542. shlibpath_var=
  11543. shlibpath_overrides_runpath=unknown
  11544. version_type=none
  11545. dynamic_linker="$host_os ld.so"
  11546. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11547. need_lib_prefix=unknown
  11548. hardcode_into_libs=no
  11549. # when you set need_version to no, make sure it does not cause -set_version
  11550. # flags to be left without arguments
  11551. need_version=unknown
  11552. case $host_os in
  11553. aix3*)
  11554. version_type=linux
  11555. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11556. shlibpath_var=LIBPATH
  11557. # AIX 3 has no versioning support, so we append a major version to the name.
  11558. soname_spec='${libname}${release}${shared_ext}$major'
  11559. ;;
  11560. aix4* | aix5*)
  11561. version_type=linux
  11562. need_lib_prefix=no
  11563. need_version=no
  11564. hardcode_into_libs=yes
  11565. if test "$host_cpu" = ia64; then
  11566. # AIX 5 supports IA64
  11567. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11568. shlibpath_var=LD_LIBRARY_PATH
  11569. else
  11570. # With GCC up to 2.95.x, collect2 would create an import file
  11571. # for dependence libraries. The import file would start with
  11572. # the line `#! .'. This would cause the generated library to
  11573. # depend on `.', always an invalid library. This was fixed in
  11574. # development snapshots of GCC prior to 3.0.
  11575. case $host_os in
  11576. aix4 | aix4.[01] | aix4.[01].*)
  11577. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11578. echo ' yes '
  11579. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  11580. :
  11581. else
  11582. can_build_shared=no
  11583. fi
  11584. ;;
  11585. esac
  11586. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11587. # soname into executable. Probably we can add versioning support to
  11588. # collect2, so additional links can be useful in future.
  11589. if test "$aix_use_runtimelinking" = yes; then
  11590. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11591. # instead of lib<name>.a to let people know that these are not
  11592. # typical AIX shared libraries.
  11593. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11594. else
  11595. # We preserve .a as extension for shared libraries through AIX4.2
  11596. # and later when we are not doing run time linking.
  11597. library_names_spec='${libname}${release}.a $libname.a'
  11598. soname_spec='${libname}${release}${shared_ext}$major'
  11599. fi
  11600. shlibpath_var=LIBPATH
  11601. fi
  11602. ;;
  11603. amigaos*)
  11604. library_names_spec='$libname.ixlibrary $libname.a'
  11605. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11606. 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'
  11607. ;;
  11608. beos*)
  11609. library_names_spec='${libname}${shared_ext}'
  11610. dynamic_linker="$host_os ld.so"
  11611. shlibpath_var=LIBRARY_PATH
  11612. ;;
  11613. bsdi[45]*)
  11614. version_type=linux
  11615. need_version=no
  11616. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11617. soname_spec='${libname}${release}${shared_ext}$major'
  11618. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11619. shlibpath_var=LD_LIBRARY_PATH
  11620. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11621. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11622. # the default ld.so.conf also contains /usr/contrib/lib and
  11623. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11624. # libtool to hard-code these into programs
  11625. ;;
  11626. cygwin* | mingw* | pw32*)
  11627. version_type=windows
  11628. shrext_cmds=".dll"
  11629. need_version=no
  11630. need_lib_prefix=no
  11631. case $GCC,$host_os in
  11632. yes,cygwin* | yes,mingw* | yes,pw32*)
  11633. library_names_spec='$libname.dll.a'
  11634. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11635. postinstall_cmds='base_file=`basename \${file}`~
  11636. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  11637. dldir=$destdir/`dirname \$dlpath`~
  11638. test -d \$dldir || mkdir -p \$dldir~
  11639. $install_prog $dir/$dlname \$dldir/$dlname~
  11640. chmod a+x \$dldir/$dlname'
  11641. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11642. dlpath=$dir/\$dldll~
  11643. $rm \$dlpath'
  11644. shlibpath_overrides_runpath=yes
  11645. case $host_os in
  11646. cygwin*)
  11647. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11648. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11649. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  11650. ;;
  11651. mingw*)
  11652. # MinGW DLLs use traditional 'lib' prefix
  11653. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11654. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11655. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  11656. # It is most probably a Windows format PATH printed by
  11657. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  11658. # path with ; separators, and with drive letters. We can handle the
  11659. # drive letters (cygwin fileutils understands them), so leave them,
  11660. # especially as we might pass files found there to a mingw objdump,
  11661. # which wouldn't understand a cygwinified path. Ahh.
  11662. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11663. else
  11664. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11665. fi
  11666. ;;
  11667. pw32*)
  11668. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11669. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11670. ;;
  11671. esac
  11672. ;;
  11673. *)
  11674. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11675. ;;
  11676. esac
  11677. dynamic_linker='Win32 ld.exe'
  11678. # FIXME: first we should search . and the directory the executable is in
  11679. shlibpath_var=PATH
  11680. ;;
  11681. darwin* | rhapsody*)
  11682. dynamic_linker="$host_os dyld"
  11683. version_type=darwin
  11684. need_lib_prefix=no
  11685. need_version=no
  11686. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11687. soname_spec='${libname}${release}${major}$shared_ext'
  11688. shlibpath_overrides_runpath=yes
  11689. shlibpath_var=DYLD_LIBRARY_PATH
  11690. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11691. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11692. ;;
  11693. dgux*)
  11694. version_type=linux
  11695. need_lib_prefix=no
  11696. need_version=no
  11697. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11698. soname_spec='${libname}${release}${shared_ext}$major'
  11699. shlibpath_var=LD_LIBRARY_PATH
  11700. ;;
  11701. freebsd1*)
  11702. dynamic_linker=no
  11703. ;;
  11704. freebsd* | dragonfly*)
  11705. # DragonFly does not have aout. When/if they implement a new
  11706. # versioning mechanism, adjust this.
  11707. if test -x /usr/bin/objformat; then
  11708. objformat=`/usr/bin/objformat`
  11709. else
  11710. case $host_os in
  11711. freebsd[123]*) objformat=aout ;;
  11712. *) objformat=elf ;;
  11713. esac
  11714. fi
  11715. version_type=freebsd-$objformat
  11716. case $version_type in
  11717. freebsd-elf*)
  11718. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11719. need_version=no
  11720. need_lib_prefix=no
  11721. ;;
  11722. freebsd-*)
  11723. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11724. need_version=yes
  11725. ;;
  11726. esac
  11727. shlibpath_var=LD_LIBRARY_PATH
  11728. case $host_os in
  11729. freebsd2*)
  11730. shlibpath_overrides_runpath=yes
  11731. ;;
  11732. freebsd3.[01]* | freebsdelf3.[01]*)
  11733. shlibpath_overrides_runpath=yes
  11734. hardcode_into_libs=yes
  11735. ;;
  11736. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11737. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11738. shlibpath_overrides_runpath=no
  11739. hardcode_into_libs=yes
  11740. ;;
  11741. *) # from 4.6 on, and DragonFly
  11742. shlibpath_overrides_runpath=yes
  11743. hardcode_into_libs=yes
  11744. ;;
  11745. esac
  11746. ;;
  11747. gnu*)
  11748. version_type=linux
  11749. need_lib_prefix=no
  11750. need_version=no
  11751. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11752. soname_spec='${libname}${release}${shared_ext}$major'
  11753. shlibpath_var=LD_LIBRARY_PATH
  11754. hardcode_into_libs=yes
  11755. ;;
  11756. hpux9* | hpux10* | hpux11*)
  11757. # Give a soname corresponding to the major version so that dld.sl refuses to
  11758. # link against other versions.
  11759. version_type=sunos
  11760. need_lib_prefix=no
  11761. need_version=no
  11762. case $host_cpu in
  11763. ia64*)
  11764. shrext_cmds='.so'
  11765. hardcode_into_libs=yes
  11766. dynamic_linker="$host_os dld.so"
  11767. shlibpath_var=LD_LIBRARY_PATH
  11768. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11769. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11770. soname_spec='${libname}${release}${shared_ext}$major'
  11771. if test "X$HPUX_IA64_MODE" = X32; then
  11772. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11773. else
  11774. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11775. fi
  11776. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11777. ;;
  11778. hppa*64*)
  11779. shrext_cmds='.sl'
  11780. hardcode_into_libs=yes
  11781. dynamic_linker="$host_os dld.sl"
  11782. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11783. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11784. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11785. soname_spec='${libname}${release}${shared_ext}$major'
  11786. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11787. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11788. ;;
  11789. *)
  11790. shrext_cmds='.sl'
  11791. dynamic_linker="$host_os dld.sl"
  11792. shlibpath_var=SHLIB_PATH
  11793. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11794. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11795. soname_spec='${libname}${release}${shared_ext}$major'
  11796. ;;
  11797. esac
  11798. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  11799. postinstall_cmds='chmod 555 $lib'
  11800. ;;
  11801. interix[3-9]*)
  11802. version_type=linux
  11803. need_lib_prefix=no
  11804. need_version=no
  11805. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11806. soname_spec='${libname}${release}${shared_ext}$major'
  11807. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11808. shlibpath_var=LD_LIBRARY_PATH
  11809. shlibpath_overrides_runpath=no
  11810. hardcode_into_libs=yes
  11811. ;;
  11812. irix5* | irix6* | nonstopux*)
  11813. case $host_os in
  11814. nonstopux*) version_type=nonstopux ;;
  11815. *)
  11816. if test "$lt_cv_prog_gnu_ld" = yes; then
  11817. version_type=linux
  11818. else
  11819. version_type=irix
  11820. fi ;;
  11821. esac
  11822. need_lib_prefix=no
  11823. need_version=no
  11824. soname_spec='${libname}${release}${shared_ext}$major'
  11825. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  11826. case $host_os in
  11827. irix5* | nonstopux*)
  11828. libsuff= shlibsuff=
  11829. ;;
  11830. *)
  11831. case $LD in # libtool.m4 will add one of these switches to LD
  11832. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11833. libsuff= shlibsuff= libmagic=32-bit;;
  11834. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11835. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11836. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11837. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11838. *) libsuff= shlibsuff= libmagic=never-match;;
  11839. esac
  11840. ;;
  11841. esac
  11842. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11843. shlibpath_overrides_runpath=no
  11844. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  11845. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  11846. hardcode_into_libs=yes
  11847. ;;
  11848. # No shared lib support for Linux oldld, aout, or coff.
  11849. linux*oldld* | linux*aout* | linux*coff*)
  11850. dynamic_linker=no
  11851. ;;
  11852. # This must be Linux ELF.
  11853. linux* | k*bsd*-gnu)
  11854. version_type=linux
  11855. need_lib_prefix=no
  11856. need_version=no
  11857. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11858. soname_spec='${libname}${release}${shared_ext}$major'
  11859. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11860. shlibpath_var=LD_LIBRARY_PATH
  11861. shlibpath_overrides_runpath=no
  11862. # This implies no fast_install, which is unacceptable.
  11863. # Some rework will be needed to allow for fast_install
  11864. # before this can be enabled.
  11865. hardcode_into_libs=yes
  11866. # Append ld.so.conf contents to the search path
  11867. if test -f /etc/ld.so.conf; then
  11868. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  11869. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  11870. fi
  11871. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11872. # powerpc, because MkLinux only supported shared libraries with the
  11873. # GNU dynamic linker. Since this was broken with cross compilers,
  11874. # most powerpc-linux boxes support dynamic linking these days and
  11875. # people can always --disable-shared, the test was removed, and we
  11876. # assume the GNU/Linux dynamic linker is in use.
  11877. dynamic_linker='GNU/Linux ld.so'
  11878. ;;
  11879. netbsd*)
  11880. version_type=sunos
  11881. need_lib_prefix=no
  11882. need_version=no
  11883. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11884. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11885. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11886. dynamic_linker='NetBSD (a.out) ld.so'
  11887. else
  11888. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11889. soname_spec='${libname}${release}${shared_ext}$major'
  11890. dynamic_linker='NetBSD ld.elf_so'
  11891. fi
  11892. shlibpath_var=LD_LIBRARY_PATH
  11893. shlibpath_overrides_runpath=yes
  11894. hardcode_into_libs=yes
  11895. ;;
  11896. newsos6)
  11897. version_type=linux
  11898. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11899. shlibpath_var=LD_LIBRARY_PATH
  11900. shlibpath_overrides_runpath=yes
  11901. ;;
  11902. nto-qnx*)
  11903. version_type=linux
  11904. need_lib_prefix=no
  11905. need_version=no
  11906. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11907. soname_spec='${libname}${release}${shared_ext}$major'
  11908. shlibpath_var=LD_LIBRARY_PATH
  11909. shlibpath_overrides_runpath=yes
  11910. ;;
  11911. openbsd*)
  11912. version_type=sunos
  11913. sys_lib_dlsearch_path_spec="/usr/lib"
  11914. need_lib_prefix=no
  11915. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  11916. case $host_os in
  11917. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  11918. *) need_version=no ;;
  11919. esac
  11920. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11921. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11922. shlibpath_var=LD_LIBRARY_PATH
  11923. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11924. case $host_os in
  11925. openbsd2.[89] | openbsd2.[89].*)
  11926. shlibpath_overrides_runpath=no
  11927. ;;
  11928. *)
  11929. shlibpath_overrides_runpath=yes
  11930. ;;
  11931. esac
  11932. else
  11933. shlibpath_overrides_runpath=yes
  11934. fi
  11935. ;;
  11936. os2*)
  11937. libname_spec='$name'
  11938. shrext_cmds=".dll"
  11939. need_lib_prefix=no
  11940. library_names_spec='$libname${shared_ext} $libname.a'
  11941. dynamic_linker='OS/2 ld.exe'
  11942. shlibpath_var=LIBPATH
  11943. ;;
  11944. osf3* | osf4* | osf5*)
  11945. version_type=osf
  11946. need_lib_prefix=no
  11947. need_version=no
  11948. soname_spec='${libname}${release}${shared_ext}$major'
  11949. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11950. shlibpath_var=LD_LIBRARY_PATH
  11951. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11952. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  11953. ;;
  11954. rdos*)
  11955. dynamic_linker=no
  11956. ;;
  11957. solaris*)
  11958. version_type=linux
  11959. need_lib_prefix=no
  11960. need_version=no
  11961. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11962. soname_spec='${libname}${release}${shared_ext}$major'
  11963. shlibpath_var=LD_LIBRARY_PATH
  11964. shlibpath_overrides_runpath=yes
  11965. hardcode_into_libs=yes
  11966. # ldd complains unless libraries are executable
  11967. postinstall_cmds='chmod +x $lib'
  11968. ;;
  11969. sunos4*)
  11970. version_type=sunos
  11971. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11972. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11973. shlibpath_var=LD_LIBRARY_PATH
  11974. shlibpath_overrides_runpath=yes
  11975. if test "$with_gnu_ld" = yes; then
  11976. need_lib_prefix=no
  11977. fi
  11978. need_version=yes
  11979. ;;
  11980. sysv4 | sysv4.3*)
  11981. version_type=linux
  11982. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11983. soname_spec='${libname}${release}${shared_ext}$major'
  11984. shlibpath_var=LD_LIBRARY_PATH
  11985. case $host_vendor in
  11986. sni)
  11987. shlibpath_overrides_runpath=no
  11988. need_lib_prefix=no
  11989. export_dynamic_flag_spec='${wl}-Blargedynsym'
  11990. runpath_var=LD_RUN_PATH
  11991. ;;
  11992. siemens)
  11993. need_lib_prefix=no
  11994. ;;
  11995. motorola)
  11996. need_lib_prefix=no
  11997. need_version=no
  11998. shlibpath_overrides_runpath=no
  11999. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12000. ;;
  12001. esac
  12002. ;;
  12003. sysv4*MP*)
  12004. if test -d /usr/nec ;then
  12005. version_type=linux
  12006. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12007. soname_spec='$libname${shared_ext}.$major'
  12008. shlibpath_var=LD_LIBRARY_PATH
  12009. fi
  12010. ;;
  12011. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12012. version_type=freebsd-elf
  12013. need_lib_prefix=no
  12014. need_version=no
  12015. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12016. soname_spec='${libname}${release}${shared_ext}$major'
  12017. shlibpath_var=LD_LIBRARY_PATH
  12018. hardcode_into_libs=yes
  12019. if test "$with_gnu_ld" = yes; then
  12020. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12021. shlibpath_overrides_runpath=no
  12022. else
  12023. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12024. shlibpath_overrides_runpath=yes
  12025. case $host_os in
  12026. sco3.2v5*)
  12027. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12028. ;;
  12029. esac
  12030. fi
  12031. sys_lib_dlsearch_path_spec='/usr/lib'
  12032. ;;
  12033. uts4*)
  12034. version_type=linux
  12035. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12036. soname_spec='${libname}${release}${shared_ext}$major'
  12037. shlibpath_var=LD_LIBRARY_PATH
  12038. ;;
  12039. *)
  12040. dynamic_linker=no
  12041. ;;
  12042. esac
  12043. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  12044. echo "${ECHO_T}$dynamic_linker" >&6; }
  12045. test "$dynamic_linker" = no && can_build_shared=no
  12046. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12047. if test "$GCC" = yes; then
  12048. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12049. fi
  12050. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  12051. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  12052. hardcode_action_CXX=
  12053. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  12054. test -n "$runpath_var_CXX" || \
  12055. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12056. # We can hardcode non-existant directories.
  12057. if test "$hardcode_direct_CXX" != no &&
  12058. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12059. # have to relink, otherwise we might link with an installed library
  12060. # when we should be linking with a yet-to-be-installed one
  12061. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12062. test "$hardcode_minus_L_CXX" != no; then
  12063. # Linking always hardcodes the temporary library directory.
  12064. hardcode_action_CXX=relink
  12065. else
  12066. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12067. hardcode_action_CXX=immediate
  12068. fi
  12069. else
  12070. # We cannot hardcode anything, or else we can only hardcode existing
  12071. # directories.
  12072. hardcode_action_CXX=unsupported
  12073. fi
  12074. { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  12075. echo "${ECHO_T}$hardcode_action_CXX" >&6; }
  12076. if test "$hardcode_action_CXX" = relink; then
  12077. # Fast installation is not supported
  12078. enable_fast_install=no
  12079. elif test "$shlibpath_overrides_runpath" = yes ||
  12080. test "$enable_shared" = no; then
  12081. # Fast installation is not necessary
  12082. enable_fast_install=needless
  12083. fi
  12084. # The else clause should only fire when bootstrapping the
  12085. # libtool distribution, otherwise you forgot to ship ltmain.sh
  12086. # with your package, and you will get complaints that there are
  12087. # no rules to generate ltmain.sh.
  12088. if test -f "$ltmain"; then
  12089. # See if we are running on zsh, and set the options which allow our commands through
  12090. # without removal of \ escapes.
  12091. if test -n "${ZSH_VERSION+set}" ; then
  12092. setopt NO_GLOB_SUBST
  12093. fi
  12094. # Now quote all the things that may contain metacharacters while being
  12095. # careful not to overquote the AC_SUBSTed values. We take copies of the
  12096. # variables and quote the copies for generation of the libtool script.
  12097. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  12098. SED SHELL STRIP \
  12099. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  12100. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  12101. deplibs_check_method reload_flag reload_cmds need_locks \
  12102. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  12103. lt_cv_sys_global_symbol_to_c_name_address \
  12104. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  12105. old_postinstall_cmds old_postuninstall_cmds \
  12106. compiler_CXX \
  12107. CC_CXX \
  12108. LD_CXX \
  12109. lt_prog_compiler_wl_CXX \
  12110. lt_prog_compiler_pic_CXX \
  12111. lt_prog_compiler_static_CXX \
  12112. lt_prog_compiler_no_builtin_flag_CXX \
  12113. export_dynamic_flag_spec_CXX \
  12114. thread_safe_flag_spec_CXX \
  12115. whole_archive_flag_spec_CXX \
  12116. enable_shared_with_static_runtimes_CXX \
  12117. old_archive_cmds_CXX \
  12118. old_archive_from_new_cmds_CXX \
  12119. predep_objects_CXX \
  12120. postdep_objects_CXX \
  12121. predeps_CXX \
  12122. postdeps_CXX \
  12123. compiler_lib_search_path_CXX \
  12124. archive_cmds_CXX \
  12125. archive_expsym_cmds_CXX \
  12126. postinstall_cmds_CXX \
  12127. postuninstall_cmds_CXX \
  12128. old_archive_from_expsyms_cmds_CXX \
  12129. allow_undefined_flag_CXX \
  12130. no_undefined_flag_CXX \
  12131. export_symbols_cmds_CXX \
  12132. hardcode_libdir_flag_spec_CXX \
  12133. hardcode_libdir_flag_spec_ld_CXX \
  12134. hardcode_libdir_separator_CXX \
  12135. hardcode_automatic_CXX \
  12136. module_cmds_CXX \
  12137. module_expsym_cmds_CXX \
  12138. lt_cv_prog_compiler_c_o_CXX \
  12139. fix_srcfile_path_CXX \
  12140. exclude_expsyms_CXX \
  12141. include_expsyms_CXX; do
  12142. case $var in
  12143. old_archive_cmds_CXX | \
  12144. old_archive_from_new_cmds_CXX | \
  12145. archive_cmds_CXX | \
  12146. archive_expsym_cmds_CXX | \
  12147. module_cmds_CXX | \
  12148. module_expsym_cmds_CXX | \
  12149. old_archive_from_expsyms_cmds_CXX | \
  12150. export_symbols_cmds_CXX | \
  12151. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  12152. postinstall_cmds | postuninstall_cmds | \
  12153. old_postinstall_cmds | old_postuninstall_cmds | \
  12154. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  12155. # Double-quote double-evaled strings.
  12156. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  12157. ;;
  12158. *)
  12159. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  12160. ;;
  12161. esac
  12162. done
  12163. case $lt_echo in
  12164. *'\$0 --fallback-echo"')
  12165. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  12166. ;;
  12167. esac
  12168. cfgfile="$ofile"
  12169. cat <<__EOF__ >> "$cfgfile"
  12170. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  12171. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12172. # Shell to use when invoking shell scripts.
  12173. SHELL=$lt_SHELL
  12174. # Whether or not to build shared libraries.
  12175. build_libtool_libs=$enable_shared
  12176. # Whether or not to build static libraries.
  12177. build_old_libs=$enable_static
  12178. # Whether or not to add -lc for building shared libraries.
  12179. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  12180. # Whether or not to disallow shared libs when runtime libs are static
  12181. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  12182. # Whether or not to optimize for fast installation.
  12183. fast_install=$enable_fast_install
  12184. # The host system.
  12185. host_alias=$host_alias
  12186. host=$host
  12187. host_os=$host_os
  12188. # The build system.
  12189. build_alias=$build_alias
  12190. build=$build
  12191. build_os=$build_os
  12192. # An echo program that does not interpret backslashes.
  12193. echo=$lt_echo
  12194. # The archiver.
  12195. AR=$lt_AR
  12196. AR_FLAGS=$lt_AR_FLAGS
  12197. # A C compiler.
  12198. LTCC=$lt_LTCC
  12199. # LTCC compiler flags.
  12200. LTCFLAGS=$lt_LTCFLAGS
  12201. # A language-specific compiler.
  12202. CC=$lt_compiler_CXX
  12203. # Is the compiler the GNU C compiler?
  12204. with_gcc=$GCC_CXX
  12205. # An ERE matcher.
  12206. EGREP=$lt_EGREP
  12207. # The linker used to build libraries.
  12208. LD=$lt_LD_CXX
  12209. # Whether we need hard or soft links.
  12210. LN_S=$lt_LN_S
  12211. # A BSD-compatible nm program.
  12212. NM=$lt_NM
  12213. # A symbol stripping program
  12214. STRIP=$lt_STRIP
  12215. # Used to examine libraries when file_magic_cmd begins "file"
  12216. MAGIC_CMD=$MAGIC_CMD
  12217. # Used on cygwin: DLL creation program.
  12218. DLLTOOL="$DLLTOOL"
  12219. # Used on cygwin: object dumper.
  12220. OBJDUMP="$OBJDUMP"
  12221. # Used on cygwin: assembler.
  12222. AS="$AS"
  12223. # The name of the directory that contains temporary libtool files.
  12224. objdir=$objdir
  12225. # How to create reloadable object files.
  12226. reload_flag=$lt_reload_flag
  12227. reload_cmds=$lt_reload_cmds
  12228. # How to pass a linker flag through the compiler.
  12229. wl=$lt_lt_prog_compiler_wl_CXX
  12230. # Object file suffix (normally "o").
  12231. objext="$ac_objext"
  12232. # Old archive suffix (normally "a").
  12233. libext="$libext"
  12234. # Shared library suffix (normally ".so").
  12235. shrext_cmds='$shrext_cmds'
  12236. # Executable file suffix (normally "").
  12237. exeext="$exeext"
  12238. # Additional compiler flags for building library objects.
  12239. pic_flag=$lt_lt_prog_compiler_pic_CXX
  12240. pic_mode=$pic_mode
  12241. # What is the maximum length of a command?
  12242. max_cmd_len=$lt_cv_sys_max_cmd_len
  12243. # Does compiler simultaneously support -c and -o options?
  12244. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  12245. # Must we lock files when doing compilation?
  12246. need_locks=$lt_need_locks
  12247. # Do we need the lib prefix for modules?
  12248. need_lib_prefix=$need_lib_prefix
  12249. # Do we need a version for libraries?
  12250. need_version=$need_version
  12251. # Whether dlopen is supported.
  12252. dlopen_support=$enable_dlopen
  12253. # Whether dlopen of programs is supported.
  12254. dlopen_self=$enable_dlopen_self
  12255. # Whether dlopen of statically linked programs is supported.
  12256. dlopen_self_static=$enable_dlopen_self_static
  12257. # Compiler flag to prevent dynamic linking.
  12258. link_static_flag=$lt_lt_prog_compiler_static_CXX
  12259. # Compiler flag to turn off builtin functions.
  12260. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  12261. # Compiler flag to allow reflexive dlopens.
  12262. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  12263. # Compiler flag to generate shared objects directly from archives.
  12264. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  12265. # Compiler flag to generate thread-safe objects.
  12266. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  12267. # Library versioning type.
  12268. version_type=$version_type
  12269. # Format of library name prefix.
  12270. libname_spec=$lt_libname_spec
  12271. # List of archive names. First name is the real one, the rest are links.
  12272. # The last name is the one that the linker finds with -lNAME.
  12273. library_names_spec=$lt_library_names_spec
  12274. # The coded name of the library, if different from the real name.
  12275. soname_spec=$lt_soname_spec
  12276. # Commands used to build and install an old-style archive.
  12277. RANLIB=$lt_RANLIB
  12278. old_archive_cmds=$lt_old_archive_cmds_CXX
  12279. old_postinstall_cmds=$lt_old_postinstall_cmds
  12280. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12281. # Create an old-style archive from a shared archive.
  12282. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  12283. # Create a temporary old-style archive to link instead of a shared archive.
  12284. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  12285. # Commands used to build and install a shared archive.
  12286. archive_cmds=$lt_archive_cmds_CXX
  12287. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  12288. postinstall_cmds=$lt_postinstall_cmds
  12289. postuninstall_cmds=$lt_postuninstall_cmds
  12290. # Commands used to build a loadable module (assumed same as above if empty)
  12291. module_cmds=$lt_module_cmds_CXX
  12292. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  12293. # Commands to strip libraries.
  12294. old_striplib=$lt_old_striplib
  12295. striplib=$lt_striplib
  12296. # Dependencies to place before the objects being linked to create a
  12297. # shared library.
  12298. predep_objects=$lt_predep_objects_CXX
  12299. # Dependencies to place after the objects being linked to create a
  12300. # shared library.
  12301. postdep_objects=$lt_postdep_objects_CXX
  12302. # Dependencies to place before the objects being linked to create a
  12303. # shared library.
  12304. predeps=$lt_predeps_CXX
  12305. # Dependencies to place after the objects being linked to create a
  12306. # shared library.
  12307. postdeps=$lt_postdeps_CXX
  12308. # The library search path used internally by the compiler when linking
  12309. # a shared library.
  12310. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  12311. # Method to check whether dependent libraries are shared objects.
  12312. deplibs_check_method=$lt_deplibs_check_method
  12313. # Command to use when deplibs_check_method == file_magic.
  12314. file_magic_cmd=$lt_file_magic_cmd
  12315. # Flag that allows shared libraries with undefined symbols to be built.
  12316. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  12317. # Flag that forces no undefined symbols.
  12318. no_undefined_flag=$lt_no_undefined_flag_CXX
  12319. # Commands used to finish a libtool library installation in a directory.
  12320. finish_cmds=$lt_finish_cmds
  12321. # Same as above, but a single script fragment to be evaled but not shown.
  12322. finish_eval=$lt_finish_eval
  12323. # Take the output of nm and produce a listing of raw symbols and C names.
  12324. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12325. # Transform the output of nm in a proper C declaration
  12326. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12327. # Transform the output of nm in a C name address pair
  12328. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12329. # This is the shared library runtime path variable.
  12330. runpath_var=$runpath_var
  12331. # This is the shared library path variable.
  12332. shlibpath_var=$shlibpath_var
  12333. # Is shlibpath searched before the hard-coded library search path?
  12334. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12335. # How to hardcode a shared library path into an executable.
  12336. hardcode_action=$hardcode_action_CXX
  12337. # Whether we should hardcode library paths into libraries.
  12338. hardcode_into_libs=$hardcode_into_libs
  12339. # Flag to hardcode \$libdir into a binary during linking.
  12340. # This must work even if \$libdir does not exist.
  12341. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  12342. # If ld is used when linking, flag to hardcode \$libdir into
  12343. # a binary during linking. This must work even if \$libdir does
  12344. # not exist.
  12345. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  12346. # Whether we need a single -rpath flag with a separated argument.
  12347. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  12348. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  12349. # resulting binary.
  12350. hardcode_direct=$hardcode_direct_CXX
  12351. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  12352. # resulting binary.
  12353. hardcode_minus_L=$hardcode_minus_L_CXX
  12354. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  12355. # the resulting binary.
  12356. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  12357. # Set to yes if building a shared library automatically hardcodes DIR into the library
  12358. # and all subsequent libraries and executables linked against it.
  12359. hardcode_automatic=$hardcode_automatic_CXX
  12360. # Variables whose values should be saved in libtool wrapper scripts and
  12361. # restored at relink time.
  12362. variables_saved_for_relink="$variables_saved_for_relink"
  12363. # Whether libtool must link a program against all its dependency libraries.
  12364. link_all_deplibs=$link_all_deplibs_CXX
  12365. # Compile-time system search path for libraries
  12366. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12367. # Run-time system search path for libraries
  12368. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12369. # Fix the shell variable \$srcfile for the compiler.
  12370. fix_srcfile_path=$lt_fix_srcfile_path
  12371. # Set to yes if exported symbols are required.
  12372. always_export_symbols=$always_export_symbols_CXX
  12373. # The commands to list exported symbols.
  12374. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  12375. # The commands to extract the exported symbol list from a shared archive.
  12376. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12377. # Symbols that should not be listed in the preloaded symbols.
  12378. exclude_expsyms=$lt_exclude_expsyms_CXX
  12379. # Symbols that must always be exported.
  12380. include_expsyms=$lt_include_expsyms_CXX
  12381. # ### END LIBTOOL TAG CONFIG: $tagname
  12382. __EOF__
  12383. else
  12384. # If there is no Makefile yet, we rely on a make rule to execute
  12385. # `config.status --recheck' to rerun these tests and create the
  12386. # libtool script then.
  12387. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  12388. if test -f "$ltmain_in"; then
  12389. test -f Makefile && make "$ltmain"
  12390. fi
  12391. fi
  12392. ac_ext=c
  12393. ac_cpp='$CPP $CPPFLAGS'
  12394. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12395. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12396. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12397. CC=$lt_save_CC
  12398. LDCXX=$LD
  12399. LD=$lt_save_LD
  12400. GCC=$lt_save_GCC
  12401. with_gnu_ldcxx=$with_gnu_ld
  12402. with_gnu_ld=$lt_save_with_gnu_ld
  12403. lt_cv_path_LDCXX=$lt_cv_path_LD
  12404. lt_cv_path_LD=$lt_save_path_LD
  12405. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12406. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12407. else
  12408. tagname=""
  12409. fi
  12410. ;;
  12411. F77)
  12412. if test -n "$F77" && test "X$F77" != "Xno"; then
  12413. ac_ext=f
  12414. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  12415. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12416. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  12417. archive_cmds_need_lc_F77=no
  12418. allow_undefined_flag_F77=
  12419. always_export_symbols_F77=no
  12420. archive_expsym_cmds_F77=
  12421. export_dynamic_flag_spec_F77=
  12422. hardcode_direct_F77=no
  12423. hardcode_libdir_flag_spec_F77=
  12424. hardcode_libdir_flag_spec_ld_F77=
  12425. hardcode_libdir_separator_F77=
  12426. hardcode_minus_L_F77=no
  12427. hardcode_automatic_F77=no
  12428. module_cmds_F77=
  12429. module_expsym_cmds_F77=
  12430. link_all_deplibs_F77=unknown
  12431. old_archive_cmds_F77=$old_archive_cmds
  12432. no_undefined_flag_F77=
  12433. whole_archive_flag_spec_F77=
  12434. enable_shared_with_static_runtimes_F77=no
  12435. # Source file extension for f77 test sources.
  12436. ac_ext=f
  12437. # Object file extension for compiled f77 test sources.
  12438. objext=o
  12439. objext_F77=$objext
  12440. # Code to be used in simple compile tests
  12441. lt_simple_compile_test_code="\
  12442. subroutine t
  12443. return
  12444. end
  12445. "
  12446. # Code to be used in simple link tests
  12447. lt_simple_link_test_code="\
  12448. program t
  12449. end
  12450. "
  12451. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12452. # If no C compiler was specified, use CC.
  12453. LTCC=${LTCC-"$CC"}
  12454. # If no C compiler flags were specified, use CFLAGS.
  12455. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12456. # Allow CC to be a program name with arguments.
  12457. compiler=$CC
  12458. # save warnings/boilerplate of simple test code
  12459. ac_outfile=conftest.$ac_objext
  12460. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12461. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12462. _lt_compiler_boilerplate=`cat conftest.err`
  12463. $rm conftest*
  12464. ac_outfile=conftest.$ac_objext
  12465. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12466. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12467. _lt_linker_boilerplate=`cat conftest.err`
  12468. $rm conftest*
  12469. # Allow CC to be a program name with arguments.
  12470. lt_save_CC="$CC"
  12471. CC=${F77-"f77"}
  12472. compiler=$CC
  12473. compiler_F77=$CC
  12474. for cc_temp in $compiler""; do
  12475. case $cc_temp in
  12476. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12477. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12478. \-*) ;;
  12479. *) break;;
  12480. esac
  12481. done
  12482. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  12483. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  12484. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  12485. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  12486. echo "${ECHO_T}$can_build_shared" >&6; }
  12487. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  12488. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  12489. test "$can_build_shared" = "no" && enable_shared=no
  12490. # On AIX, shared libraries and static libraries use the same namespace, and
  12491. # are all built from PIC.
  12492. case $host_os in
  12493. aix3*)
  12494. test "$enable_shared" = yes && enable_static=no
  12495. if test -n "$RANLIB"; then
  12496. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  12497. postinstall_cmds='$RANLIB $lib'
  12498. fi
  12499. ;;
  12500. aix4* | aix5*)
  12501. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  12502. test "$enable_shared" = yes && enable_static=no
  12503. fi
  12504. ;;
  12505. esac
  12506. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  12507. echo "${ECHO_T}$enable_shared" >&6; }
  12508. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  12509. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  12510. # Make sure either enable_shared or enable_static is yes.
  12511. test "$enable_shared" = yes || enable_static=yes
  12512. { echo "$as_me:$LINENO: result: $enable_static" >&5
  12513. echo "${ECHO_T}$enable_static" >&6; }
  12514. GCC_F77="$G77"
  12515. LD_F77="$LD"
  12516. lt_prog_compiler_wl_F77=
  12517. lt_prog_compiler_pic_F77=
  12518. lt_prog_compiler_static_F77=
  12519. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  12520. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  12521. if test "$GCC" = yes; then
  12522. lt_prog_compiler_wl_F77='-Wl,'
  12523. lt_prog_compiler_static_F77='-static'
  12524. case $host_os in
  12525. aix*)
  12526. # All AIX code is PIC.
  12527. if test "$host_cpu" = ia64; then
  12528. # AIX 5 now supports IA64 processor
  12529. lt_prog_compiler_static_F77='-Bstatic'
  12530. fi
  12531. ;;
  12532. amigaos*)
  12533. # FIXME: we need at least 68020 code to build shared libraries, but
  12534. # adding the `-m68020' flag to GCC prevents building anything better,
  12535. # like `-m68040'.
  12536. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  12537. ;;
  12538. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12539. # PIC is the default for these OSes.
  12540. ;;
  12541. mingw* | cygwin* | pw32* | os2*)
  12542. # This hack is so that the source file can tell whether it is being
  12543. # built for inclusion in a dll (and should export symbols for example).
  12544. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12545. # (--disable-auto-import) libraries
  12546. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  12547. ;;
  12548. darwin* | rhapsody*)
  12549. # PIC is the default on this platform
  12550. # Common symbols not allowed in MH_DYLIB files
  12551. lt_prog_compiler_pic_F77='-fno-common'
  12552. ;;
  12553. interix[3-9]*)
  12554. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12555. # Instead, we relocate shared libraries at runtime.
  12556. ;;
  12557. msdosdjgpp*)
  12558. # Just because we use GCC doesn't mean we suddenly get shared libraries
  12559. # on systems that don't support them.
  12560. lt_prog_compiler_can_build_shared_F77=no
  12561. enable_shared=no
  12562. ;;
  12563. sysv4*MP*)
  12564. if test -d /usr/nec; then
  12565. lt_prog_compiler_pic_F77=-Kconform_pic
  12566. fi
  12567. ;;
  12568. hpux*)
  12569. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12570. # not for PA HP-UX.
  12571. case $host_cpu in
  12572. hppa*64*|ia64*)
  12573. # +Z the default
  12574. ;;
  12575. *)
  12576. lt_prog_compiler_pic_F77='-fPIC'
  12577. ;;
  12578. esac
  12579. ;;
  12580. *)
  12581. lt_prog_compiler_pic_F77='-fPIC'
  12582. ;;
  12583. esac
  12584. else
  12585. # PORTME Check for flag to pass linker flags through the system compiler.
  12586. case $host_os in
  12587. aix*)
  12588. lt_prog_compiler_wl_F77='-Wl,'
  12589. if test "$host_cpu" = ia64; then
  12590. # AIX 5 now supports IA64 processor
  12591. lt_prog_compiler_static_F77='-Bstatic'
  12592. else
  12593. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  12594. fi
  12595. ;;
  12596. darwin*)
  12597. # PIC is the default on this platform
  12598. # Common symbols not allowed in MH_DYLIB files
  12599. case $cc_basename in
  12600. xlc*)
  12601. lt_prog_compiler_pic_F77='-qnocommon'
  12602. lt_prog_compiler_wl_F77='-Wl,'
  12603. ;;
  12604. esac
  12605. ;;
  12606. mingw* | cygwin* | pw32* | os2*)
  12607. # This hack is so that the source file can tell whether it is being
  12608. # built for inclusion in a dll (and should export symbols for example).
  12609. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  12610. ;;
  12611. hpux9* | hpux10* | hpux11*)
  12612. lt_prog_compiler_wl_F77='-Wl,'
  12613. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12614. # not for PA HP-UX.
  12615. case $host_cpu in
  12616. hppa*64*|ia64*)
  12617. # +Z the default
  12618. ;;
  12619. *)
  12620. lt_prog_compiler_pic_F77='+Z'
  12621. ;;
  12622. esac
  12623. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  12624. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  12625. ;;
  12626. irix5* | irix6* | nonstopux*)
  12627. lt_prog_compiler_wl_F77='-Wl,'
  12628. # PIC (with -KPIC) is the default.
  12629. lt_prog_compiler_static_F77='-non_shared'
  12630. ;;
  12631. newsos6)
  12632. lt_prog_compiler_pic_F77='-KPIC'
  12633. lt_prog_compiler_static_F77='-Bstatic'
  12634. ;;
  12635. linux* | k*bsd*-gnu)
  12636. case $cc_basename in
  12637. icc* | ecc*)
  12638. lt_prog_compiler_wl_F77='-Wl,'
  12639. lt_prog_compiler_pic_F77='-KPIC'
  12640. lt_prog_compiler_static_F77='-static'
  12641. ;;
  12642. pgcc* | pgf77* | pgf90* | pgf95*)
  12643. # Portland Group compilers (*not* the Pentium gcc compiler,
  12644. # which looks to be a dead project)
  12645. lt_prog_compiler_wl_F77='-Wl,'
  12646. lt_prog_compiler_pic_F77='-fpic'
  12647. lt_prog_compiler_static_F77='-Bstatic'
  12648. ;;
  12649. ccc*)
  12650. lt_prog_compiler_wl_F77='-Wl,'
  12651. # All Alpha code is PIC.
  12652. lt_prog_compiler_static_F77='-non_shared'
  12653. ;;
  12654. *)
  12655. case `$CC -V 2>&1 | sed 5q` in
  12656. *Sun\ C*)
  12657. # Sun C 5.9
  12658. lt_prog_compiler_pic_F77='-KPIC'
  12659. lt_prog_compiler_static_F77='-Bstatic'
  12660. lt_prog_compiler_wl_F77='-Wl,'
  12661. ;;
  12662. *Sun\ F*)
  12663. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  12664. lt_prog_compiler_pic_F77='-KPIC'
  12665. lt_prog_compiler_static_F77='-Bstatic'
  12666. lt_prog_compiler_wl_F77=''
  12667. ;;
  12668. esac
  12669. ;;
  12670. esac
  12671. ;;
  12672. osf3* | osf4* | osf5*)
  12673. lt_prog_compiler_wl_F77='-Wl,'
  12674. # All OSF/1 code is PIC.
  12675. lt_prog_compiler_static_F77='-non_shared'
  12676. ;;
  12677. rdos*)
  12678. lt_prog_compiler_static_F77='-non_shared'
  12679. ;;
  12680. solaris*)
  12681. lt_prog_compiler_pic_F77='-KPIC'
  12682. lt_prog_compiler_static_F77='-Bstatic'
  12683. case $cc_basename in
  12684. f77* | f90* | f95*)
  12685. lt_prog_compiler_wl_F77='-Qoption ld ';;
  12686. *)
  12687. lt_prog_compiler_wl_F77='-Wl,';;
  12688. esac
  12689. ;;
  12690. sunos4*)
  12691. lt_prog_compiler_wl_F77='-Qoption ld '
  12692. lt_prog_compiler_pic_F77='-PIC'
  12693. lt_prog_compiler_static_F77='-Bstatic'
  12694. ;;
  12695. sysv4 | sysv4.2uw2* | sysv4.3*)
  12696. lt_prog_compiler_wl_F77='-Wl,'
  12697. lt_prog_compiler_pic_F77='-KPIC'
  12698. lt_prog_compiler_static_F77='-Bstatic'
  12699. ;;
  12700. sysv4*MP*)
  12701. if test -d /usr/nec ;then
  12702. lt_prog_compiler_pic_F77='-Kconform_pic'
  12703. lt_prog_compiler_static_F77='-Bstatic'
  12704. fi
  12705. ;;
  12706. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12707. lt_prog_compiler_wl_F77='-Wl,'
  12708. lt_prog_compiler_pic_F77='-KPIC'
  12709. lt_prog_compiler_static_F77='-Bstatic'
  12710. ;;
  12711. unicos*)
  12712. lt_prog_compiler_wl_F77='-Wl,'
  12713. lt_prog_compiler_can_build_shared_F77=no
  12714. ;;
  12715. uts4*)
  12716. lt_prog_compiler_pic_F77='-pic'
  12717. lt_prog_compiler_static_F77='-Bstatic'
  12718. ;;
  12719. *)
  12720. lt_prog_compiler_can_build_shared_F77=no
  12721. ;;
  12722. esac
  12723. fi
  12724. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  12725. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
  12726. #
  12727. # Check to make sure the PIC flag actually works.
  12728. #
  12729. if test -n "$lt_prog_compiler_pic_F77"; then
  12730. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  12731. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
  12732. if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  12733. echo $ECHO_N "(cached) $ECHO_C" >&6
  12734. else
  12735. lt_prog_compiler_pic_works_F77=no
  12736. ac_outfile=conftest.$ac_objext
  12737. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12738. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  12739. # Insert the option either (1) after the last *FLAGS variable, or
  12740. # (2) before a word containing "conftest.", or (3) at the end.
  12741. # Note that $ac_compile itself does not contain backslashes and begins
  12742. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12743. # The option is referenced via a variable to avoid confusing sed.
  12744. lt_compile=`echo "$ac_compile" | $SED \
  12745. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12746. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12747. -e 's:$: $lt_compiler_flag:'`
  12748. (eval echo "\"\$as_me:14253: $lt_compile\"" >&5)
  12749. (eval "$lt_compile" 2>conftest.err)
  12750. ac_status=$?
  12751. cat conftest.err >&5
  12752. echo "$as_me:14257: \$? = $ac_status" >&5
  12753. if (exit $ac_status) && test -s "$ac_outfile"; then
  12754. # The compiler can only warn and ignore the option if not recognized
  12755. # So say no if there are warnings other than the usual output.
  12756. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  12757. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12758. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12759. lt_prog_compiler_pic_works_F77=yes
  12760. fi
  12761. fi
  12762. $rm conftest*
  12763. fi
  12764. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  12765. echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
  12766. if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  12767. case $lt_prog_compiler_pic_F77 in
  12768. "" | " "*) ;;
  12769. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  12770. esac
  12771. else
  12772. lt_prog_compiler_pic_F77=
  12773. lt_prog_compiler_can_build_shared_F77=no
  12774. fi
  12775. fi
  12776. case $host_os in
  12777. # For platforms which do not support PIC, -DPIC is meaningless:
  12778. *djgpp*)
  12779. lt_prog_compiler_pic_F77=
  12780. ;;
  12781. *)
  12782. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  12783. ;;
  12784. esac
  12785. #
  12786. # Check to make sure the static flag actually works.
  12787. #
  12788. wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  12789. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12790. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  12791. if test "${lt_prog_compiler_static_works_F77+set}" = set; then
  12792. echo $ECHO_N "(cached) $ECHO_C" >&6
  12793. else
  12794. lt_prog_compiler_static_works_F77=no
  12795. save_LDFLAGS="$LDFLAGS"
  12796. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12797. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12798. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12799. # The linker can only warn and ignore the option if not recognized
  12800. # So say no if there are warnings
  12801. if test -s conftest.err; then
  12802. # Append any errors to the config.log.
  12803. cat conftest.err 1>&5
  12804. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  12805. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12806. if diff conftest.exp conftest.er2 >/dev/null; then
  12807. lt_prog_compiler_static_works_F77=yes
  12808. fi
  12809. else
  12810. lt_prog_compiler_static_works_F77=yes
  12811. fi
  12812. fi
  12813. $rm conftest*
  12814. LDFLAGS="$save_LDFLAGS"
  12815. fi
  12816. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
  12817. echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
  12818. if test x"$lt_prog_compiler_static_works_F77" = xyes; then
  12819. :
  12820. else
  12821. lt_prog_compiler_static_F77=
  12822. fi
  12823. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12824. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  12825. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  12826. echo $ECHO_N "(cached) $ECHO_C" >&6
  12827. else
  12828. lt_cv_prog_compiler_c_o_F77=no
  12829. $rm -r conftest 2>/dev/null
  12830. mkdir conftest
  12831. cd conftest
  12832. mkdir out
  12833. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12834. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12835. # Insert the option either (1) after the last *FLAGS variable, or
  12836. # (2) before a word containing "conftest.", or (3) at the end.
  12837. # Note that $ac_compile itself does not contain backslashes and begins
  12838. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12839. lt_compile=`echo "$ac_compile" | $SED \
  12840. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12841. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12842. -e 's:$: $lt_compiler_flag:'`
  12843. (eval echo "\"\$as_me:14357: $lt_compile\"" >&5)
  12844. (eval "$lt_compile" 2>out/conftest.err)
  12845. ac_status=$?
  12846. cat out/conftest.err >&5
  12847. echo "$as_me:14361: \$? = $ac_status" >&5
  12848. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12849. then
  12850. # The compiler can only warn and ignore the option if not recognized
  12851. # So say no if there are warnings
  12852. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12853. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12854. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12855. lt_cv_prog_compiler_c_o_F77=yes
  12856. fi
  12857. fi
  12858. chmod u+w . 2>&5
  12859. $rm conftest*
  12860. # SGI C++ compiler will create directory out/ii_files/ for
  12861. # template instantiation
  12862. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  12863. $rm out/* && rmdir out
  12864. cd ..
  12865. rmdir conftest
  12866. $rm conftest*
  12867. fi
  12868. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  12869. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
  12870. hard_links="nottested"
  12871. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  12872. # do not overwrite the value of need_locks provided by the user
  12873. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  12874. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  12875. hard_links=yes
  12876. $rm conftest*
  12877. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12878. touch conftest.a
  12879. ln conftest.a conftest.b 2>&5 || hard_links=no
  12880. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12881. { echo "$as_me:$LINENO: result: $hard_links" >&5
  12882. echo "${ECHO_T}$hard_links" >&6; }
  12883. if test "$hard_links" = no; then
  12884. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12885. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12886. need_locks=warn
  12887. fi
  12888. else
  12889. need_locks=no
  12890. fi
  12891. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12892. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  12893. runpath_var=
  12894. allow_undefined_flag_F77=
  12895. enable_shared_with_static_runtimes_F77=no
  12896. archive_cmds_F77=
  12897. archive_expsym_cmds_F77=
  12898. old_archive_From_new_cmds_F77=
  12899. old_archive_from_expsyms_cmds_F77=
  12900. export_dynamic_flag_spec_F77=
  12901. whole_archive_flag_spec_F77=
  12902. thread_safe_flag_spec_F77=
  12903. hardcode_libdir_flag_spec_F77=
  12904. hardcode_libdir_flag_spec_ld_F77=
  12905. hardcode_libdir_separator_F77=
  12906. hardcode_direct_F77=no
  12907. hardcode_minus_L_F77=no
  12908. hardcode_shlibpath_var_F77=unsupported
  12909. link_all_deplibs_F77=unknown
  12910. hardcode_automatic_F77=no
  12911. module_cmds_F77=
  12912. module_expsym_cmds_F77=
  12913. always_export_symbols_F77=no
  12914. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12915. # include_expsyms should be a list of space-separated symbols to be *always*
  12916. # included in the symbol list
  12917. include_expsyms_F77=
  12918. # exclude_expsyms can be an extended regexp of symbols to exclude
  12919. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  12920. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  12921. # as well as any symbol that contains `d'.
  12922. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  12923. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  12924. # platforms (ab)use it in PIC code, but their linkers get confused if
  12925. # the symbol is explicitly referenced. Since portable code cannot
  12926. # rely on this symbol name, it's probably fine to never include it in
  12927. # preloaded symbol tables.
  12928. extract_expsyms_cmds=
  12929. # Just being paranoid about ensuring that cc_basename is set.
  12930. for cc_temp in $compiler""; do
  12931. case $cc_temp in
  12932. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12933. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12934. \-*) ;;
  12935. *) break;;
  12936. esac
  12937. done
  12938. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  12939. case $host_os in
  12940. cygwin* | mingw* | pw32*)
  12941. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  12942. # When not using gcc, we currently assume that we are using
  12943. # Microsoft Visual C++.
  12944. if test "$GCC" != yes; then
  12945. with_gnu_ld=no
  12946. fi
  12947. ;;
  12948. interix*)
  12949. # we just hope/assume this is gcc and not c89 (= MSVC++)
  12950. with_gnu_ld=yes
  12951. ;;
  12952. openbsd*)
  12953. with_gnu_ld=no
  12954. ;;
  12955. esac
  12956. ld_shlibs_F77=yes
  12957. if test "$with_gnu_ld" = yes; then
  12958. # If archive_cmds runs LD, not CC, wlarc should be empty
  12959. wlarc='${wl}'
  12960. # Set some defaults for GNU ld with shared library support. These
  12961. # are reset later if shared libraries are not supported. Putting them
  12962. # here allows them to be overridden if necessary.
  12963. runpath_var=LD_RUN_PATH
  12964. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  12965. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  12966. # ancient GNU ld didn't support --whole-archive et. al.
  12967. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  12968. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12969. else
  12970. whole_archive_flag_spec_F77=
  12971. fi
  12972. supports_anon_versioning=no
  12973. case `$LD -v 2>/dev/null` in
  12974. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  12975. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  12976. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  12977. *\ 2.11.*) ;; # other 2.11 versions
  12978. *) supports_anon_versioning=yes ;;
  12979. esac
  12980. # See if GNU ld supports shared libraries.
  12981. case $host_os in
  12982. aix3* | aix4* | aix5*)
  12983. # On AIX/PPC, the GNU linker is very broken
  12984. if test "$host_cpu" != ia64; then
  12985. ld_shlibs_F77=no
  12986. cat <<EOF 1>&2
  12987. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  12988. *** to be unable to reliably create shared libraries on AIX.
  12989. *** Therefore, libtool is disabling shared libraries support. If you
  12990. *** really care for shared libraries, you may want to modify your PATH
  12991. *** so that a non-GNU linker is found, and then restart.
  12992. EOF
  12993. fi
  12994. ;;
  12995. amigaos*)
  12996. 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)'
  12997. hardcode_libdir_flag_spec_F77='-L$libdir'
  12998. hardcode_minus_L_F77=yes
  12999. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  13000. # that the semantics of dynamic libraries on AmigaOS, at least up
  13001. # to version 4, is to share data among multiple programs linked
  13002. # with the same dynamic library. Since this doesn't match the
  13003. # behavior of shared libraries on other platforms, we can't use
  13004. # them.
  13005. ld_shlibs_F77=no
  13006. ;;
  13007. beos*)
  13008. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13009. allow_undefined_flag_F77=unsupported
  13010. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  13011. # support --undefined. This deserves some investigation. FIXME
  13012. archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13013. else
  13014. ld_shlibs_F77=no
  13015. fi
  13016. ;;
  13017. cygwin* | mingw* | pw32*)
  13018. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  13019. # as there is no search path for DLLs.
  13020. hardcode_libdir_flag_spec_F77='-L$libdir'
  13021. allow_undefined_flag_F77=unsupported
  13022. always_export_symbols_F77=no
  13023. enable_shared_with_static_runtimes_F77=yes
  13024. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  13025. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  13026. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13027. # If the export-symbols file already is a .def file (1st line
  13028. # is EXPORTS), use it as is; otherwise, prepend...
  13029. archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  13030. cp $export_symbols $output_objdir/$soname.def;
  13031. else
  13032. echo EXPORTS > $output_objdir/$soname.def;
  13033. cat $export_symbols >> $output_objdir/$soname.def;
  13034. fi~
  13035. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13036. else
  13037. ld_shlibs_F77=no
  13038. fi
  13039. ;;
  13040. interix[3-9]*)
  13041. hardcode_direct_F77=no
  13042. hardcode_shlibpath_var_F77=no
  13043. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13044. export_dynamic_flag_spec_F77='${wl}-E'
  13045. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13046. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13047. # default) and relocated if they conflict, which is a slow very memory
  13048. # consuming and fragmenting process. To avoid this, we pick a random,
  13049. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13050. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13051. 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'
  13052. 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'
  13053. ;;
  13054. gnu* | linux* | k*bsd*-gnu)
  13055. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13056. tmp_addflag=
  13057. case $cc_basename,$host_cpu in
  13058. pgcc*) # Portland Group C compiler
  13059. 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'
  13060. tmp_addflag=' $pic_flag'
  13061. ;;
  13062. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  13063. 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'
  13064. tmp_addflag=' $pic_flag -Mnomain' ;;
  13065. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  13066. tmp_addflag=' -i_dynamic' ;;
  13067. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  13068. tmp_addflag=' -i_dynamic -nofor_main' ;;
  13069. ifc* | ifort*) # Intel Fortran compiler
  13070. tmp_addflag=' -nofor_main' ;;
  13071. esac
  13072. case `$CC -V 2>&1 | sed 5q` in
  13073. *Sun\ C*) # Sun C 5.9
  13074. whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  13075. tmp_sharedflag='-G' ;;
  13076. *Sun\ F*) # Sun Fortran 8.3
  13077. tmp_sharedflag='-G' ;;
  13078. *)
  13079. tmp_sharedflag='-shared' ;;
  13080. esac
  13081. archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13082. if test $supports_anon_versioning = yes; then
  13083. archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  13084. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13085. $echo "local: *; };" >> $output_objdir/$libname.ver~
  13086. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  13087. fi
  13088. else
  13089. ld_shlibs_F77=no
  13090. fi
  13091. ;;
  13092. netbsd*)
  13093. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13094. archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  13095. wlarc=
  13096. else
  13097. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13098. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13099. fi
  13100. ;;
  13101. solaris*)
  13102. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  13103. ld_shlibs_F77=no
  13104. cat <<EOF 1>&2
  13105. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  13106. *** create shared libraries on Solaris systems. Therefore, libtool
  13107. *** is disabling shared libraries support. We urge you to upgrade GNU
  13108. *** binutils to release 2.9.1 or newer. Another option is to modify
  13109. *** your PATH or compiler configuration so that the native linker is
  13110. *** used, and then restart.
  13111. EOF
  13112. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13113. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13114. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13115. else
  13116. ld_shlibs_F77=no
  13117. fi
  13118. ;;
  13119. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  13120. case `$LD -v 2>&1` in
  13121. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  13122. ld_shlibs_F77=no
  13123. cat <<_LT_EOF 1>&2
  13124. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  13125. *** reliably create shared libraries on SCO systems. Therefore, libtool
  13126. *** is disabling shared libraries support. We urge you to upgrade GNU
  13127. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  13128. *** your PATH or compiler configuration so that the native linker is
  13129. *** used, and then restart.
  13130. _LT_EOF
  13131. ;;
  13132. *)
  13133. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13134. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  13135. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  13136. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  13137. else
  13138. ld_shlibs_F77=no
  13139. fi
  13140. ;;
  13141. esac
  13142. ;;
  13143. sunos4*)
  13144. archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13145. wlarc=
  13146. hardcode_direct_F77=yes
  13147. hardcode_shlibpath_var_F77=no
  13148. ;;
  13149. *)
  13150. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13151. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13152. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13153. else
  13154. ld_shlibs_F77=no
  13155. fi
  13156. ;;
  13157. esac
  13158. if test "$ld_shlibs_F77" = no; then
  13159. runpath_var=
  13160. hardcode_libdir_flag_spec_F77=
  13161. export_dynamic_flag_spec_F77=
  13162. whole_archive_flag_spec_F77=
  13163. fi
  13164. else
  13165. # PORTME fill in a description of your system's linker (not GNU ld)
  13166. case $host_os in
  13167. aix3*)
  13168. allow_undefined_flag_F77=unsupported
  13169. always_export_symbols_F77=yes
  13170. 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'
  13171. # Note: this linker hardcodes the directories in LIBPATH if there
  13172. # are no directories specified by -L.
  13173. hardcode_minus_L_F77=yes
  13174. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  13175. # Neither direct hardcoding nor static linking is supported with a
  13176. # broken collect2.
  13177. hardcode_direct_F77=unsupported
  13178. fi
  13179. ;;
  13180. aix4* | aix5*)
  13181. if test "$host_cpu" = ia64; then
  13182. # On IA64, the linker does run time linking by default, so we don't
  13183. # have to do anything special.
  13184. aix_use_runtimelinking=no
  13185. exp_sym_flag='-Bexport'
  13186. no_entry_flag=""
  13187. else
  13188. # If we're using GNU nm, then we don't want the "-C" option.
  13189. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  13190. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  13191. 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'
  13192. else
  13193. 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'
  13194. fi
  13195. aix_use_runtimelinking=no
  13196. # Test if we are trying to use run time linking or normal
  13197. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  13198. # need to do runtime linking.
  13199. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  13200. for ld_flag in $LDFLAGS; do
  13201. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  13202. aix_use_runtimelinking=yes
  13203. break
  13204. fi
  13205. done
  13206. ;;
  13207. esac
  13208. exp_sym_flag='-bexport'
  13209. no_entry_flag='-bnoentry'
  13210. fi
  13211. # When large executables or shared objects are built, AIX ld can
  13212. # have problems creating the table of contents. If linking a library
  13213. # or program results in "error TOC overflow" add -mminimal-toc to
  13214. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  13215. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  13216. archive_cmds_F77=''
  13217. hardcode_direct_F77=yes
  13218. hardcode_libdir_separator_F77=':'
  13219. link_all_deplibs_F77=yes
  13220. if test "$GCC" = yes; then
  13221. case $host_os in aix4.[012]|aix4.[012].*)
  13222. # We only want to do this on AIX 4.2 and lower, the check
  13223. # below for broken collect2 doesn't work under 4.3+
  13224. collect2name=`${CC} -print-prog-name=collect2`
  13225. if test -f "$collect2name" && \
  13226. strings "$collect2name" | grep resolve_lib_name >/dev/null
  13227. then
  13228. # We have reworked collect2
  13229. :
  13230. else
  13231. # We have old collect2
  13232. hardcode_direct_F77=unsupported
  13233. # It fails to find uninstalled libraries when the uninstalled
  13234. # path is not listed in the libpath. Setting hardcode_minus_L
  13235. # to unsupported forces relinking
  13236. hardcode_minus_L_F77=yes
  13237. hardcode_libdir_flag_spec_F77='-L$libdir'
  13238. hardcode_libdir_separator_F77=
  13239. fi
  13240. ;;
  13241. esac
  13242. shared_flag='-shared'
  13243. if test "$aix_use_runtimelinking" = yes; then
  13244. shared_flag="$shared_flag "'${wl}-G'
  13245. fi
  13246. else
  13247. # not using gcc
  13248. if test "$host_cpu" = ia64; then
  13249. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  13250. # chokes on -Wl,-G. The following line is correct:
  13251. shared_flag='-G'
  13252. else
  13253. if test "$aix_use_runtimelinking" = yes; then
  13254. shared_flag='${wl}-G'
  13255. else
  13256. shared_flag='${wl}-bM:SRE'
  13257. fi
  13258. fi
  13259. fi
  13260. # It seems that -bexpall does not export symbols beginning with
  13261. # underscore (_), so it is better to generate a list of symbols to export.
  13262. always_export_symbols_F77=yes
  13263. if test "$aix_use_runtimelinking" = yes; then
  13264. # Warning - without using the other runtime loading flags (-brtl),
  13265. # -berok will link without error, but may produce a broken library.
  13266. allow_undefined_flag_F77='-berok'
  13267. # Determine the default libpath from the value encoded in an empty executable.
  13268. cat >conftest.$ac_ext <<_ACEOF
  13269. program main
  13270. end
  13271. _ACEOF
  13272. rm -f conftest.$ac_objext conftest$ac_exeext
  13273. if { (ac_try="$ac_link"
  13274. case "(($ac_try" in
  13275. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13276. *) ac_try_echo=$ac_try;;
  13277. esac
  13278. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13279. (eval "$ac_link") 2>conftest.er1
  13280. ac_status=$?
  13281. grep -v '^ *+' conftest.er1 >conftest.err
  13282. rm -f conftest.er1
  13283. cat conftest.err >&5
  13284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13285. (exit $ac_status); } && {
  13286. test -z "$ac_f77_werror_flag" ||
  13287. test ! -s conftest.err
  13288. } && test -s conftest$ac_exeext &&
  13289. $as_test_x conftest$ac_exeext; then
  13290. lt_aix_libpath_sed='
  13291. /Import File Strings/,/^$/ {
  13292. /^0/ {
  13293. s/^0 *\(.*\)$/\1/
  13294. p
  13295. }
  13296. }'
  13297. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13298. # Check for a 64-bit object if we didn't find anything.
  13299. if test -z "$aix_libpath"; then
  13300. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13301. fi
  13302. else
  13303. echo "$as_me: failed program was:" >&5
  13304. sed 's/^/| /' conftest.$ac_ext >&5
  13305. fi
  13306. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13307. conftest$ac_exeext conftest.$ac_ext
  13308. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13309. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  13310. 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"
  13311. else
  13312. if test "$host_cpu" = ia64; then
  13313. hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  13314. allow_undefined_flag_F77="-z nodefs"
  13315. 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"
  13316. else
  13317. # Determine the default libpath from the value encoded in an empty executable.
  13318. cat >conftest.$ac_ext <<_ACEOF
  13319. program main
  13320. end
  13321. _ACEOF
  13322. rm -f conftest.$ac_objext conftest$ac_exeext
  13323. if { (ac_try="$ac_link"
  13324. case "(($ac_try" in
  13325. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13326. *) ac_try_echo=$ac_try;;
  13327. esac
  13328. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13329. (eval "$ac_link") 2>conftest.er1
  13330. ac_status=$?
  13331. grep -v '^ *+' conftest.er1 >conftest.err
  13332. rm -f conftest.er1
  13333. cat conftest.err >&5
  13334. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13335. (exit $ac_status); } && {
  13336. test -z "$ac_f77_werror_flag" ||
  13337. test ! -s conftest.err
  13338. } && test -s conftest$ac_exeext &&
  13339. $as_test_x conftest$ac_exeext; then
  13340. lt_aix_libpath_sed='
  13341. /Import File Strings/,/^$/ {
  13342. /^0/ {
  13343. s/^0 *\(.*\)$/\1/
  13344. p
  13345. }
  13346. }'
  13347. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13348. # Check for a 64-bit object if we didn't find anything.
  13349. if test -z "$aix_libpath"; then
  13350. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13351. fi
  13352. else
  13353. echo "$as_me: failed program was:" >&5
  13354. sed 's/^/| /' conftest.$ac_ext >&5
  13355. fi
  13356. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13357. conftest$ac_exeext conftest.$ac_ext
  13358. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13359. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  13360. # Warning - without using the other run time loading flags,
  13361. # -berok will link without error, but may produce a broken library.
  13362. no_undefined_flag_F77=' ${wl}-bernotok'
  13363. allow_undefined_flag_F77=' ${wl}-berok'
  13364. # Exported symbols can be pulled into shared objects from archives
  13365. whole_archive_flag_spec_F77='$convenience'
  13366. archive_cmds_need_lc_F77=yes
  13367. # This is similar to how AIX traditionally builds its shared libraries.
  13368. 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'
  13369. fi
  13370. fi
  13371. ;;
  13372. amigaos*)
  13373. 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)'
  13374. hardcode_libdir_flag_spec_F77='-L$libdir'
  13375. hardcode_minus_L_F77=yes
  13376. # see comment about different semantics on the GNU ld section
  13377. ld_shlibs_F77=no
  13378. ;;
  13379. bsdi[45]*)
  13380. export_dynamic_flag_spec_F77=-rdynamic
  13381. ;;
  13382. cygwin* | mingw* | pw32*)
  13383. # When not using gcc, we currently assume that we are using
  13384. # Microsoft Visual C++.
  13385. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13386. # no search path for DLLs.
  13387. hardcode_libdir_flag_spec_F77=' '
  13388. allow_undefined_flag_F77=unsupported
  13389. # Tell ltmain to make .lib files, not .a files.
  13390. libext=lib
  13391. # Tell ltmain to make .dll files, not .so files.
  13392. shrext_cmds=".dll"
  13393. # FIXME: Setting linknames here is a bad hack.
  13394. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  13395. # The linker will automatically build a .lib file if we build a DLL.
  13396. old_archive_From_new_cmds_F77='true'
  13397. # FIXME: Should let the user specify the lib program.
  13398. old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
  13399. fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  13400. enable_shared_with_static_runtimes_F77=yes
  13401. ;;
  13402. darwin* | rhapsody*)
  13403. case $host_os in
  13404. rhapsody* | darwin1.[012])
  13405. allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  13406. ;;
  13407. *) # Darwin 1.3 on
  13408. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  13409. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  13410. else
  13411. case ${MACOSX_DEPLOYMENT_TARGET} in
  13412. 10.[012])
  13413. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  13414. ;;
  13415. 10.*)
  13416. allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  13417. ;;
  13418. esac
  13419. fi
  13420. ;;
  13421. esac
  13422. archive_cmds_need_lc_F77=no
  13423. hardcode_direct_F77=no
  13424. hardcode_automatic_F77=yes
  13425. hardcode_shlibpath_var_F77=unsupported
  13426. whole_archive_flag_spec_F77=''
  13427. link_all_deplibs_F77=yes
  13428. if test "$GCC" = yes ; then
  13429. output_verbose_link_cmd='echo'
  13430. archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  13431. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  13432. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  13433. 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}'
  13434. 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}'
  13435. else
  13436. case $cc_basename in
  13437. xlc*)
  13438. output_verbose_link_cmd='echo'
  13439. archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  13440. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  13441. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  13442. 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  13443. 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}'
  13444. ;;
  13445. *)
  13446. ld_shlibs_F77=no
  13447. ;;
  13448. esac
  13449. fi
  13450. ;;
  13451. dgux*)
  13452. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13453. hardcode_libdir_flag_spec_F77='-L$libdir'
  13454. hardcode_shlibpath_var_F77=no
  13455. ;;
  13456. freebsd1*)
  13457. ld_shlibs_F77=no
  13458. ;;
  13459. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  13460. # support. Future versions do this automatically, but an explicit c++rt0.o
  13461. # does not break anything, and helps significantly (at the cost of a little
  13462. # extra space).
  13463. freebsd2.2*)
  13464. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  13465. hardcode_libdir_flag_spec_F77='-R$libdir'
  13466. hardcode_direct_F77=yes
  13467. hardcode_shlibpath_var_F77=no
  13468. ;;
  13469. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  13470. freebsd2*)
  13471. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13472. hardcode_direct_F77=yes
  13473. hardcode_minus_L_F77=yes
  13474. hardcode_shlibpath_var_F77=no
  13475. ;;
  13476. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  13477. freebsd* | dragonfly*)
  13478. archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  13479. hardcode_libdir_flag_spec_F77='-R$libdir'
  13480. hardcode_direct_F77=yes
  13481. hardcode_shlibpath_var_F77=no
  13482. ;;
  13483. hpux9*)
  13484. if test "$GCC" = yes; then
  13485. 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'
  13486. else
  13487. 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'
  13488. fi
  13489. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13490. hardcode_libdir_separator_F77=:
  13491. hardcode_direct_F77=yes
  13492. # hardcode_minus_L: Not really in the search PATH,
  13493. # but as the default location of the library.
  13494. hardcode_minus_L_F77=yes
  13495. export_dynamic_flag_spec_F77='${wl}-E'
  13496. ;;
  13497. hpux10*)
  13498. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  13499. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13500. else
  13501. archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  13502. fi
  13503. if test "$with_gnu_ld" = no; then
  13504. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13505. hardcode_libdir_separator_F77=:
  13506. hardcode_direct_F77=yes
  13507. export_dynamic_flag_spec_F77='${wl}-E'
  13508. # hardcode_minus_L: Not really in the search PATH,
  13509. # but as the default location of the library.
  13510. hardcode_minus_L_F77=yes
  13511. fi
  13512. ;;
  13513. hpux11*)
  13514. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  13515. case $host_cpu in
  13516. hppa*64*)
  13517. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13518. ;;
  13519. ia64*)
  13520. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  13521. ;;
  13522. *)
  13523. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13524. ;;
  13525. esac
  13526. else
  13527. case $host_cpu in
  13528. hppa*64*)
  13529. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13530. ;;
  13531. ia64*)
  13532. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  13533. ;;
  13534. *)
  13535. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13536. ;;
  13537. esac
  13538. fi
  13539. if test "$with_gnu_ld" = no; then
  13540. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13541. hardcode_libdir_separator_F77=:
  13542. case $host_cpu in
  13543. hppa*64*|ia64*)
  13544. hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  13545. hardcode_direct_F77=no
  13546. hardcode_shlibpath_var_F77=no
  13547. ;;
  13548. *)
  13549. hardcode_direct_F77=yes
  13550. export_dynamic_flag_spec_F77='${wl}-E'
  13551. # hardcode_minus_L: Not really in the search PATH,
  13552. # but as the default location of the library.
  13553. hardcode_minus_L_F77=yes
  13554. ;;
  13555. esac
  13556. fi
  13557. ;;
  13558. irix5* | irix6* | nonstopux*)
  13559. if test "$GCC" = yes; then
  13560. 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'
  13561. else
  13562. 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'
  13563. hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  13564. fi
  13565. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13566. hardcode_libdir_separator_F77=:
  13567. link_all_deplibs_F77=yes
  13568. ;;
  13569. netbsd*)
  13570. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13571. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  13572. else
  13573. archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  13574. fi
  13575. hardcode_libdir_flag_spec_F77='-R$libdir'
  13576. hardcode_direct_F77=yes
  13577. hardcode_shlibpath_var_F77=no
  13578. ;;
  13579. newsos6)
  13580. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13581. hardcode_direct_F77=yes
  13582. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13583. hardcode_libdir_separator_F77=:
  13584. hardcode_shlibpath_var_F77=no
  13585. ;;
  13586. openbsd*)
  13587. if test -f /usr/libexec/ld.so; then
  13588. hardcode_direct_F77=yes
  13589. hardcode_shlibpath_var_F77=no
  13590. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13591. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13592. archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  13593. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13594. export_dynamic_flag_spec_F77='${wl}-E'
  13595. else
  13596. case $host_os in
  13597. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  13598. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13599. hardcode_libdir_flag_spec_F77='-R$libdir'
  13600. ;;
  13601. *)
  13602. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13603. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13604. ;;
  13605. esac
  13606. fi
  13607. else
  13608. ld_shlibs_F77=no
  13609. fi
  13610. ;;
  13611. os2*)
  13612. hardcode_libdir_flag_spec_F77='-L$libdir'
  13613. hardcode_minus_L_F77=yes
  13614. allow_undefined_flag_F77=unsupported
  13615. 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'
  13616. old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  13617. ;;
  13618. osf3*)
  13619. if test "$GCC" = yes; then
  13620. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  13621. 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'
  13622. else
  13623. allow_undefined_flag_F77=' -expect_unresolved \*'
  13624. 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'
  13625. fi
  13626. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13627. hardcode_libdir_separator_F77=:
  13628. ;;
  13629. osf4* | osf5*) # as osf3* with the addition of -msym flag
  13630. if test "$GCC" = yes; then
  13631. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  13632. 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'
  13633. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13634. else
  13635. allow_undefined_flag_F77=' -expect_unresolved \*'
  13636. 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'
  13637. 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~
  13638. $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'
  13639. # Both c and cxx compiler support -rpath directly
  13640. hardcode_libdir_flag_spec_F77='-rpath $libdir'
  13641. fi
  13642. hardcode_libdir_separator_F77=:
  13643. ;;
  13644. solaris*)
  13645. no_undefined_flag_F77=' -z text'
  13646. if test "$GCC" = yes; then
  13647. wlarc='${wl}'
  13648. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13649. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13650. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  13651. else
  13652. wlarc=''
  13653. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13654. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13655. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  13656. fi
  13657. hardcode_libdir_flag_spec_F77='-R$libdir'
  13658. hardcode_shlibpath_var_F77=no
  13659. case $host_os in
  13660. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13661. *)
  13662. # The compiler driver will combine and reorder linker options,
  13663. # but understands `-z linker_flag'. GCC discards it without `$wl',
  13664. # but is careful enough not to reorder.
  13665. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13666. if test "$GCC" = yes; then
  13667. whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  13668. else
  13669. whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
  13670. fi
  13671. ;;
  13672. esac
  13673. link_all_deplibs_F77=yes
  13674. ;;
  13675. sunos4*)
  13676. if test "x$host_vendor" = xsequent; then
  13677. # Use $CC to link under sequent, because it throws in some extra .o
  13678. # files that make .init and .fini sections work.
  13679. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  13680. else
  13681. archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  13682. fi
  13683. hardcode_libdir_flag_spec_F77='-L$libdir'
  13684. hardcode_direct_F77=yes
  13685. hardcode_minus_L_F77=yes
  13686. hardcode_shlibpath_var_F77=no
  13687. ;;
  13688. sysv4)
  13689. case $host_vendor in
  13690. sni)
  13691. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13692. hardcode_direct_F77=yes # is this really true???
  13693. ;;
  13694. siemens)
  13695. ## LD is ld it makes a PLAMLIB
  13696. ## CC just makes a GrossModule.
  13697. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  13698. reload_cmds_F77='$CC -r -o $output$reload_objs'
  13699. hardcode_direct_F77=no
  13700. ;;
  13701. motorola)
  13702. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13703. hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  13704. ;;
  13705. esac
  13706. runpath_var='LD_RUN_PATH'
  13707. hardcode_shlibpath_var_F77=no
  13708. ;;
  13709. sysv4.3*)
  13710. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13711. hardcode_shlibpath_var_F77=no
  13712. export_dynamic_flag_spec_F77='-Bexport'
  13713. ;;
  13714. sysv4*MP*)
  13715. if test -d /usr/nec; then
  13716. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13717. hardcode_shlibpath_var_F77=no
  13718. runpath_var=LD_RUN_PATH
  13719. hardcode_runpath_var=yes
  13720. ld_shlibs_F77=yes
  13721. fi
  13722. ;;
  13723. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13724. no_undefined_flag_F77='${wl}-z,text'
  13725. archive_cmds_need_lc_F77=no
  13726. hardcode_shlibpath_var_F77=no
  13727. runpath_var='LD_RUN_PATH'
  13728. if test "$GCC" = yes; then
  13729. archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13730. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13731. else
  13732. archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13733. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13734. fi
  13735. ;;
  13736. sysv5* | sco3.2v5* | sco5v6*)
  13737. # Note: We can NOT use -z defs as we might desire, because we do not
  13738. # link with -lc, and that would cause any symbols used from libc to
  13739. # always be unresolved, which means just about no library would
  13740. # ever link correctly. If we're not using GNU ld we use -z text
  13741. # though, which does catch some bad symbols but isn't as heavy-handed
  13742. # as -z defs.
  13743. no_undefined_flag_F77='${wl}-z,text'
  13744. allow_undefined_flag_F77='${wl}-z,nodefs'
  13745. archive_cmds_need_lc_F77=no
  13746. hardcode_shlibpath_var_F77=no
  13747. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  13748. hardcode_libdir_separator_F77=':'
  13749. link_all_deplibs_F77=yes
  13750. export_dynamic_flag_spec_F77='${wl}-Bexport'
  13751. runpath_var='LD_RUN_PATH'
  13752. if test "$GCC" = yes; then
  13753. archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13754. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13755. else
  13756. archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13757. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13758. fi
  13759. ;;
  13760. uts4*)
  13761. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13762. hardcode_libdir_flag_spec_F77='-L$libdir'
  13763. hardcode_shlibpath_var_F77=no
  13764. ;;
  13765. *)
  13766. ld_shlibs_F77=no
  13767. ;;
  13768. esac
  13769. fi
  13770. { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  13771. echo "${ECHO_T}$ld_shlibs_F77" >&6; }
  13772. test "$ld_shlibs_F77" = no && can_build_shared=no
  13773. #
  13774. # Do we need to explicitly link libc?
  13775. #
  13776. case "x$archive_cmds_need_lc_F77" in
  13777. x|xyes)
  13778. # Assume -lc should be added
  13779. archive_cmds_need_lc_F77=yes
  13780. if test "$enable_shared" = yes && test "$GCC" = yes; then
  13781. case $archive_cmds_F77 in
  13782. *'~'*)
  13783. # FIXME: we may have to deal with multi-command sequences.
  13784. ;;
  13785. '$CC '*)
  13786. # Test whether the compiler implicitly links with -lc since on some
  13787. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13788. # to ld, don't add -lc before -lgcc.
  13789. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  13790. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  13791. $rm conftest*
  13792. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13793. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13794. (eval $ac_compile) 2>&5
  13795. ac_status=$?
  13796. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13797. (exit $ac_status); } 2>conftest.err; then
  13798. soname=conftest
  13799. lib=conftest
  13800. libobjs=conftest.$ac_objext
  13801. deplibs=
  13802. wl=$lt_prog_compiler_wl_F77
  13803. pic_flag=$lt_prog_compiler_pic_F77
  13804. compiler_flags=-v
  13805. linker_flags=-v
  13806. verstring=
  13807. output_objdir=.
  13808. libname=conftest
  13809. lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  13810. allow_undefined_flag_F77=
  13811. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  13812. (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13813. ac_status=$?
  13814. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13815. (exit $ac_status); }
  13816. then
  13817. archive_cmds_need_lc_F77=no
  13818. else
  13819. archive_cmds_need_lc_F77=yes
  13820. fi
  13821. allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  13822. else
  13823. cat conftest.err 1>&5
  13824. fi
  13825. $rm conftest*
  13826. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  13827. echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
  13828. ;;
  13829. esac
  13830. fi
  13831. ;;
  13832. esac
  13833. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  13834. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  13835. library_names_spec=
  13836. libname_spec='lib$name'
  13837. soname_spec=
  13838. shrext_cmds=".so"
  13839. postinstall_cmds=
  13840. postuninstall_cmds=
  13841. finish_cmds=
  13842. finish_eval=
  13843. shlibpath_var=
  13844. shlibpath_overrides_runpath=unknown
  13845. version_type=none
  13846. dynamic_linker="$host_os ld.so"
  13847. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13848. need_lib_prefix=unknown
  13849. hardcode_into_libs=no
  13850. # when you set need_version to no, make sure it does not cause -set_version
  13851. # flags to be left without arguments
  13852. need_version=unknown
  13853. case $host_os in
  13854. aix3*)
  13855. version_type=linux
  13856. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  13857. shlibpath_var=LIBPATH
  13858. # AIX 3 has no versioning support, so we append a major version to the name.
  13859. soname_spec='${libname}${release}${shared_ext}$major'
  13860. ;;
  13861. aix4* | aix5*)
  13862. version_type=linux
  13863. need_lib_prefix=no
  13864. need_version=no
  13865. hardcode_into_libs=yes
  13866. if test "$host_cpu" = ia64; then
  13867. # AIX 5 supports IA64
  13868. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  13869. shlibpath_var=LD_LIBRARY_PATH
  13870. else
  13871. # With GCC up to 2.95.x, collect2 would create an import file
  13872. # for dependence libraries. The import file would start with
  13873. # the line `#! .'. This would cause the generated library to
  13874. # depend on `.', always an invalid library. This was fixed in
  13875. # development snapshots of GCC prior to 3.0.
  13876. case $host_os in
  13877. aix4 | aix4.[01] | aix4.[01].*)
  13878. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13879. echo ' yes '
  13880. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  13881. :
  13882. else
  13883. can_build_shared=no
  13884. fi
  13885. ;;
  13886. esac
  13887. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13888. # soname into executable. Probably we can add versioning support to
  13889. # collect2, so additional links can be useful in future.
  13890. if test "$aix_use_runtimelinking" = yes; then
  13891. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13892. # instead of lib<name>.a to let people know that these are not
  13893. # typical AIX shared libraries.
  13894. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13895. else
  13896. # We preserve .a as extension for shared libraries through AIX4.2
  13897. # and later when we are not doing run time linking.
  13898. library_names_spec='${libname}${release}.a $libname.a'
  13899. soname_spec='${libname}${release}${shared_ext}$major'
  13900. fi
  13901. shlibpath_var=LIBPATH
  13902. fi
  13903. ;;
  13904. amigaos*)
  13905. library_names_spec='$libname.ixlibrary $libname.a'
  13906. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13907. 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'
  13908. ;;
  13909. beos*)
  13910. library_names_spec='${libname}${shared_ext}'
  13911. dynamic_linker="$host_os ld.so"
  13912. shlibpath_var=LIBRARY_PATH
  13913. ;;
  13914. bsdi[45]*)
  13915. version_type=linux
  13916. need_version=no
  13917. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13918. soname_spec='${libname}${release}${shared_ext}$major'
  13919. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13920. shlibpath_var=LD_LIBRARY_PATH
  13921. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13922. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13923. # the default ld.so.conf also contains /usr/contrib/lib and
  13924. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13925. # libtool to hard-code these into programs
  13926. ;;
  13927. cygwin* | mingw* | pw32*)
  13928. version_type=windows
  13929. shrext_cmds=".dll"
  13930. need_version=no
  13931. need_lib_prefix=no
  13932. case $GCC,$host_os in
  13933. yes,cygwin* | yes,mingw* | yes,pw32*)
  13934. library_names_spec='$libname.dll.a'
  13935. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13936. postinstall_cmds='base_file=`basename \${file}`~
  13937. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  13938. dldir=$destdir/`dirname \$dlpath`~
  13939. test -d \$dldir || mkdir -p \$dldir~
  13940. $install_prog $dir/$dlname \$dldir/$dlname~
  13941. chmod a+x \$dldir/$dlname'
  13942. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13943. dlpath=$dir/\$dldll~
  13944. $rm \$dlpath'
  13945. shlibpath_overrides_runpath=yes
  13946. case $host_os in
  13947. cygwin*)
  13948. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13949. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13950. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  13951. ;;
  13952. mingw*)
  13953. # MinGW DLLs use traditional 'lib' prefix
  13954. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13955. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13956. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  13957. # It is most probably a Windows format PATH printed by
  13958. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  13959. # path with ; separators, and with drive letters. We can handle the
  13960. # drive letters (cygwin fileutils understands them), so leave them,
  13961. # especially as we might pass files found there to a mingw objdump,
  13962. # which wouldn't understand a cygwinified path. Ahh.
  13963. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13964. else
  13965. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13966. fi
  13967. ;;
  13968. pw32*)
  13969. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13970. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13971. ;;
  13972. esac
  13973. ;;
  13974. *)
  13975. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13976. ;;
  13977. esac
  13978. dynamic_linker='Win32 ld.exe'
  13979. # FIXME: first we should search . and the directory the executable is in
  13980. shlibpath_var=PATH
  13981. ;;
  13982. darwin* | rhapsody*)
  13983. dynamic_linker="$host_os dyld"
  13984. version_type=darwin
  13985. need_lib_prefix=no
  13986. need_version=no
  13987. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13988. soname_spec='${libname}${release}${major}$shared_ext'
  13989. shlibpath_overrides_runpath=yes
  13990. shlibpath_var=DYLD_LIBRARY_PATH
  13991. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13992. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13993. ;;
  13994. dgux*)
  13995. version_type=linux
  13996. need_lib_prefix=no
  13997. need_version=no
  13998. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13999. soname_spec='${libname}${release}${shared_ext}$major'
  14000. shlibpath_var=LD_LIBRARY_PATH
  14001. ;;
  14002. freebsd1*)
  14003. dynamic_linker=no
  14004. ;;
  14005. freebsd* | dragonfly*)
  14006. # DragonFly does not have aout. When/if they implement a new
  14007. # versioning mechanism, adjust this.
  14008. if test -x /usr/bin/objformat; then
  14009. objformat=`/usr/bin/objformat`
  14010. else
  14011. case $host_os in
  14012. freebsd[123]*) objformat=aout ;;
  14013. *) objformat=elf ;;
  14014. esac
  14015. fi
  14016. version_type=freebsd-$objformat
  14017. case $version_type in
  14018. freebsd-elf*)
  14019. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14020. need_version=no
  14021. need_lib_prefix=no
  14022. ;;
  14023. freebsd-*)
  14024. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  14025. need_version=yes
  14026. ;;
  14027. esac
  14028. shlibpath_var=LD_LIBRARY_PATH
  14029. case $host_os in
  14030. freebsd2*)
  14031. shlibpath_overrides_runpath=yes
  14032. ;;
  14033. freebsd3.[01]* | freebsdelf3.[01]*)
  14034. shlibpath_overrides_runpath=yes
  14035. hardcode_into_libs=yes
  14036. ;;
  14037. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14038. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14039. shlibpath_overrides_runpath=no
  14040. hardcode_into_libs=yes
  14041. ;;
  14042. *) # from 4.6 on, and DragonFly
  14043. shlibpath_overrides_runpath=yes
  14044. hardcode_into_libs=yes
  14045. ;;
  14046. esac
  14047. ;;
  14048. gnu*)
  14049. version_type=linux
  14050. need_lib_prefix=no
  14051. need_version=no
  14052. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  14053. soname_spec='${libname}${release}${shared_ext}$major'
  14054. shlibpath_var=LD_LIBRARY_PATH
  14055. hardcode_into_libs=yes
  14056. ;;
  14057. hpux9* | hpux10* | hpux11*)
  14058. # Give a soname corresponding to the major version so that dld.sl refuses to
  14059. # link against other versions.
  14060. version_type=sunos
  14061. need_lib_prefix=no
  14062. need_version=no
  14063. case $host_cpu in
  14064. ia64*)
  14065. shrext_cmds='.so'
  14066. hardcode_into_libs=yes
  14067. dynamic_linker="$host_os dld.so"
  14068. shlibpath_var=LD_LIBRARY_PATH
  14069. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14070. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14071. soname_spec='${libname}${release}${shared_ext}$major'
  14072. if test "X$HPUX_IA64_MODE" = X32; then
  14073. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14074. else
  14075. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14076. fi
  14077. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14078. ;;
  14079. hppa*64*)
  14080. shrext_cmds='.sl'
  14081. hardcode_into_libs=yes
  14082. dynamic_linker="$host_os dld.sl"
  14083. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14084. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14085. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14086. soname_spec='${libname}${release}${shared_ext}$major'
  14087. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14088. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14089. ;;
  14090. *)
  14091. shrext_cmds='.sl'
  14092. dynamic_linker="$host_os dld.sl"
  14093. shlibpath_var=SHLIB_PATH
  14094. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14095. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14096. soname_spec='${libname}${release}${shared_ext}$major'
  14097. ;;
  14098. esac
  14099. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  14100. postinstall_cmds='chmod 555 $lib'
  14101. ;;
  14102. interix[3-9]*)
  14103. version_type=linux
  14104. need_lib_prefix=no
  14105. need_version=no
  14106. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14107. soname_spec='${libname}${release}${shared_ext}$major'
  14108. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14109. shlibpath_var=LD_LIBRARY_PATH
  14110. shlibpath_overrides_runpath=no
  14111. hardcode_into_libs=yes
  14112. ;;
  14113. irix5* | irix6* | nonstopux*)
  14114. case $host_os in
  14115. nonstopux*) version_type=nonstopux ;;
  14116. *)
  14117. if test "$lt_cv_prog_gnu_ld" = yes; then
  14118. version_type=linux
  14119. else
  14120. version_type=irix
  14121. fi ;;
  14122. esac
  14123. need_lib_prefix=no
  14124. need_version=no
  14125. soname_spec='${libname}${release}${shared_ext}$major'
  14126. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  14127. case $host_os in
  14128. irix5* | nonstopux*)
  14129. libsuff= shlibsuff=
  14130. ;;
  14131. *)
  14132. case $LD in # libtool.m4 will add one of these switches to LD
  14133. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14134. libsuff= shlibsuff= libmagic=32-bit;;
  14135. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14136. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14137. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14138. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14139. *) libsuff= shlibsuff= libmagic=never-match;;
  14140. esac
  14141. ;;
  14142. esac
  14143. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14144. shlibpath_overrides_runpath=no
  14145. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  14146. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  14147. hardcode_into_libs=yes
  14148. ;;
  14149. # No shared lib support for Linux oldld, aout, or coff.
  14150. linux*oldld* | linux*aout* | linux*coff*)
  14151. dynamic_linker=no
  14152. ;;
  14153. # This must be Linux ELF.
  14154. linux* | k*bsd*-gnu)
  14155. version_type=linux
  14156. need_lib_prefix=no
  14157. need_version=no
  14158. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14159. soname_spec='${libname}${release}${shared_ext}$major'
  14160. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14161. shlibpath_var=LD_LIBRARY_PATH
  14162. shlibpath_overrides_runpath=no
  14163. # This implies no fast_install, which is unacceptable.
  14164. # Some rework will be needed to allow for fast_install
  14165. # before this can be enabled.
  14166. hardcode_into_libs=yes
  14167. # Append ld.so.conf contents to the search path
  14168. if test -f /etc/ld.so.conf; then
  14169. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  14170. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  14171. fi
  14172. # We used to test for /lib/ld.so.1 and disable shared libraries on
  14173. # powerpc, because MkLinux only supported shared libraries with the
  14174. # GNU dynamic linker. Since this was broken with cross compilers,
  14175. # most powerpc-linux boxes support dynamic linking these days and
  14176. # people can always --disable-shared, the test was removed, and we
  14177. # assume the GNU/Linux dynamic linker is in use.
  14178. dynamic_linker='GNU/Linux ld.so'
  14179. ;;
  14180. netbsd*)
  14181. version_type=sunos
  14182. need_lib_prefix=no
  14183. need_version=no
  14184. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14185. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14186. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14187. dynamic_linker='NetBSD (a.out) ld.so'
  14188. else
  14189. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14190. soname_spec='${libname}${release}${shared_ext}$major'
  14191. dynamic_linker='NetBSD ld.elf_so'
  14192. fi
  14193. shlibpath_var=LD_LIBRARY_PATH
  14194. shlibpath_overrides_runpath=yes
  14195. hardcode_into_libs=yes
  14196. ;;
  14197. newsos6)
  14198. version_type=linux
  14199. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14200. shlibpath_var=LD_LIBRARY_PATH
  14201. shlibpath_overrides_runpath=yes
  14202. ;;
  14203. nto-qnx*)
  14204. version_type=linux
  14205. need_lib_prefix=no
  14206. need_version=no
  14207. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14208. soname_spec='${libname}${release}${shared_ext}$major'
  14209. shlibpath_var=LD_LIBRARY_PATH
  14210. shlibpath_overrides_runpath=yes
  14211. ;;
  14212. openbsd*)
  14213. version_type=sunos
  14214. sys_lib_dlsearch_path_spec="/usr/lib"
  14215. need_lib_prefix=no
  14216. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  14217. case $host_os in
  14218. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  14219. *) need_version=no ;;
  14220. esac
  14221. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14222. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14223. shlibpath_var=LD_LIBRARY_PATH
  14224. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14225. case $host_os in
  14226. openbsd2.[89] | openbsd2.[89].*)
  14227. shlibpath_overrides_runpath=no
  14228. ;;
  14229. *)
  14230. shlibpath_overrides_runpath=yes
  14231. ;;
  14232. esac
  14233. else
  14234. shlibpath_overrides_runpath=yes
  14235. fi
  14236. ;;
  14237. os2*)
  14238. libname_spec='$name'
  14239. shrext_cmds=".dll"
  14240. need_lib_prefix=no
  14241. library_names_spec='$libname${shared_ext} $libname.a'
  14242. dynamic_linker='OS/2 ld.exe'
  14243. shlibpath_var=LIBPATH
  14244. ;;
  14245. osf3* | osf4* | osf5*)
  14246. version_type=osf
  14247. need_lib_prefix=no
  14248. need_version=no
  14249. soname_spec='${libname}${release}${shared_ext}$major'
  14250. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14251. shlibpath_var=LD_LIBRARY_PATH
  14252. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14253. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  14254. ;;
  14255. rdos*)
  14256. dynamic_linker=no
  14257. ;;
  14258. solaris*)
  14259. version_type=linux
  14260. need_lib_prefix=no
  14261. need_version=no
  14262. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14263. soname_spec='${libname}${release}${shared_ext}$major'
  14264. shlibpath_var=LD_LIBRARY_PATH
  14265. shlibpath_overrides_runpath=yes
  14266. hardcode_into_libs=yes
  14267. # ldd complains unless libraries are executable
  14268. postinstall_cmds='chmod +x $lib'
  14269. ;;
  14270. sunos4*)
  14271. version_type=sunos
  14272. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14273. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14274. shlibpath_var=LD_LIBRARY_PATH
  14275. shlibpath_overrides_runpath=yes
  14276. if test "$with_gnu_ld" = yes; then
  14277. need_lib_prefix=no
  14278. fi
  14279. need_version=yes
  14280. ;;
  14281. sysv4 | sysv4.3*)
  14282. version_type=linux
  14283. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14284. soname_spec='${libname}${release}${shared_ext}$major'
  14285. shlibpath_var=LD_LIBRARY_PATH
  14286. case $host_vendor in
  14287. sni)
  14288. shlibpath_overrides_runpath=no
  14289. need_lib_prefix=no
  14290. export_dynamic_flag_spec='${wl}-Blargedynsym'
  14291. runpath_var=LD_RUN_PATH
  14292. ;;
  14293. siemens)
  14294. need_lib_prefix=no
  14295. ;;
  14296. motorola)
  14297. need_lib_prefix=no
  14298. need_version=no
  14299. shlibpath_overrides_runpath=no
  14300. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14301. ;;
  14302. esac
  14303. ;;
  14304. sysv4*MP*)
  14305. if test -d /usr/nec ;then
  14306. version_type=linux
  14307. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  14308. soname_spec='$libname${shared_ext}.$major'
  14309. shlibpath_var=LD_LIBRARY_PATH
  14310. fi
  14311. ;;
  14312. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14313. version_type=freebsd-elf
  14314. need_lib_prefix=no
  14315. need_version=no
  14316. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14317. soname_spec='${libname}${release}${shared_ext}$major'
  14318. shlibpath_var=LD_LIBRARY_PATH
  14319. hardcode_into_libs=yes
  14320. if test "$with_gnu_ld" = yes; then
  14321. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14322. shlibpath_overrides_runpath=no
  14323. else
  14324. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14325. shlibpath_overrides_runpath=yes
  14326. case $host_os in
  14327. sco3.2v5*)
  14328. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14329. ;;
  14330. esac
  14331. fi
  14332. sys_lib_dlsearch_path_spec='/usr/lib'
  14333. ;;
  14334. uts4*)
  14335. version_type=linux
  14336. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14337. soname_spec='${libname}${release}${shared_ext}$major'
  14338. shlibpath_var=LD_LIBRARY_PATH
  14339. ;;
  14340. *)
  14341. dynamic_linker=no
  14342. ;;
  14343. esac
  14344. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  14345. echo "${ECHO_T}$dynamic_linker" >&6; }
  14346. test "$dynamic_linker" = no && can_build_shared=no
  14347. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14348. if test "$GCC" = yes; then
  14349. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14350. fi
  14351. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  14352. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  14353. hardcode_action_F77=
  14354. if test -n "$hardcode_libdir_flag_spec_F77" || \
  14355. test -n "$runpath_var_F77" || \
  14356. test "X$hardcode_automatic_F77" = "Xyes" ; then
  14357. # We can hardcode non-existant directories.
  14358. if test "$hardcode_direct_F77" != no &&
  14359. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14360. # have to relink, otherwise we might link with an installed library
  14361. # when we should be linking with a yet-to-be-installed one
  14362. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  14363. test "$hardcode_minus_L_F77" != no; then
  14364. # Linking always hardcodes the temporary library directory.
  14365. hardcode_action_F77=relink
  14366. else
  14367. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14368. hardcode_action_F77=immediate
  14369. fi
  14370. else
  14371. # We cannot hardcode anything, or else we can only hardcode existing
  14372. # directories.
  14373. hardcode_action_F77=unsupported
  14374. fi
  14375. { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  14376. echo "${ECHO_T}$hardcode_action_F77" >&6; }
  14377. if test "$hardcode_action_F77" = relink; then
  14378. # Fast installation is not supported
  14379. enable_fast_install=no
  14380. elif test "$shlibpath_overrides_runpath" = yes ||
  14381. test "$enable_shared" = no; then
  14382. # Fast installation is not necessary
  14383. enable_fast_install=needless
  14384. fi
  14385. # The else clause should only fire when bootstrapping the
  14386. # libtool distribution, otherwise you forgot to ship ltmain.sh
  14387. # with your package, and you will get complaints that there are
  14388. # no rules to generate ltmain.sh.
  14389. if test -f "$ltmain"; then
  14390. # See if we are running on zsh, and set the options which allow our commands through
  14391. # without removal of \ escapes.
  14392. if test -n "${ZSH_VERSION+set}" ; then
  14393. setopt NO_GLOB_SUBST
  14394. fi
  14395. # Now quote all the things that may contain metacharacters while being
  14396. # careful not to overquote the AC_SUBSTed values. We take copies of the
  14397. # variables and quote the copies for generation of the libtool script.
  14398. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  14399. SED SHELL STRIP \
  14400. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  14401. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  14402. deplibs_check_method reload_flag reload_cmds need_locks \
  14403. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  14404. lt_cv_sys_global_symbol_to_c_name_address \
  14405. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  14406. old_postinstall_cmds old_postuninstall_cmds \
  14407. compiler_F77 \
  14408. CC_F77 \
  14409. LD_F77 \
  14410. lt_prog_compiler_wl_F77 \
  14411. lt_prog_compiler_pic_F77 \
  14412. lt_prog_compiler_static_F77 \
  14413. lt_prog_compiler_no_builtin_flag_F77 \
  14414. export_dynamic_flag_spec_F77 \
  14415. thread_safe_flag_spec_F77 \
  14416. whole_archive_flag_spec_F77 \
  14417. enable_shared_with_static_runtimes_F77 \
  14418. old_archive_cmds_F77 \
  14419. old_archive_from_new_cmds_F77 \
  14420. predep_objects_F77 \
  14421. postdep_objects_F77 \
  14422. predeps_F77 \
  14423. postdeps_F77 \
  14424. compiler_lib_search_path_F77 \
  14425. archive_cmds_F77 \
  14426. archive_expsym_cmds_F77 \
  14427. postinstall_cmds_F77 \
  14428. postuninstall_cmds_F77 \
  14429. old_archive_from_expsyms_cmds_F77 \
  14430. allow_undefined_flag_F77 \
  14431. no_undefined_flag_F77 \
  14432. export_symbols_cmds_F77 \
  14433. hardcode_libdir_flag_spec_F77 \
  14434. hardcode_libdir_flag_spec_ld_F77 \
  14435. hardcode_libdir_separator_F77 \
  14436. hardcode_automatic_F77 \
  14437. module_cmds_F77 \
  14438. module_expsym_cmds_F77 \
  14439. lt_cv_prog_compiler_c_o_F77 \
  14440. fix_srcfile_path_F77 \
  14441. exclude_expsyms_F77 \
  14442. include_expsyms_F77; do
  14443. case $var in
  14444. old_archive_cmds_F77 | \
  14445. old_archive_from_new_cmds_F77 | \
  14446. archive_cmds_F77 | \
  14447. archive_expsym_cmds_F77 | \
  14448. module_cmds_F77 | \
  14449. module_expsym_cmds_F77 | \
  14450. old_archive_from_expsyms_cmds_F77 | \
  14451. export_symbols_cmds_F77 | \
  14452. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  14453. postinstall_cmds | postuninstall_cmds | \
  14454. old_postinstall_cmds | old_postuninstall_cmds | \
  14455. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  14456. # Double-quote double-evaled strings.
  14457. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  14458. ;;
  14459. *)
  14460. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  14461. ;;
  14462. esac
  14463. done
  14464. case $lt_echo in
  14465. *'\$0 --fallback-echo"')
  14466. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  14467. ;;
  14468. esac
  14469. cfgfile="$ofile"
  14470. cat <<__EOF__ >> "$cfgfile"
  14471. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  14472. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14473. # Shell to use when invoking shell scripts.
  14474. SHELL=$lt_SHELL
  14475. # Whether or not to build shared libraries.
  14476. build_libtool_libs=$enable_shared
  14477. # Whether or not to build static libraries.
  14478. build_old_libs=$enable_static
  14479. # Whether or not to add -lc for building shared libraries.
  14480. build_libtool_need_lc=$archive_cmds_need_lc_F77
  14481. # Whether or not to disallow shared libs when runtime libs are static
  14482. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  14483. # Whether or not to optimize for fast installation.
  14484. fast_install=$enable_fast_install
  14485. # The host system.
  14486. host_alias=$host_alias
  14487. host=$host
  14488. host_os=$host_os
  14489. # The build system.
  14490. build_alias=$build_alias
  14491. build=$build
  14492. build_os=$build_os
  14493. # An echo program that does not interpret backslashes.
  14494. echo=$lt_echo
  14495. # The archiver.
  14496. AR=$lt_AR
  14497. AR_FLAGS=$lt_AR_FLAGS
  14498. # A C compiler.
  14499. LTCC=$lt_LTCC
  14500. # LTCC compiler flags.
  14501. LTCFLAGS=$lt_LTCFLAGS
  14502. # A language-specific compiler.
  14503. CC=$lt_compiler_F77
  14504. # Is the compiler the GNU C compiler?
  14505. with_gcc=$GCC_F77
  14506. # An ERE matcher.
  14507. EGREP=$lt_EGREP
  14508. # The linker used to build libraries.
  14509. LD=$lt_LD_F77
  14510. # Whether we need hard or soft links.
  14511. LN_S=$lt_LN_S
  14512. # A BSD-compatible nm program.
  14513. NM=$lt_NM
  14514. # A symbol stripping program
  14515. STRIP=$lt_STRIP
  14516. # Used to examine libraries when file_magic_cmd begins "file"
  14517. MAGIC_CMD=$MAGIC_CMD
  14518. # Used on cygwin: DLL creation program.
  14519. DLLTOOL="$DLLTOOL"
  14520. # Used on cygwin: object dumper.
  14521. OBJDUMP="$OBJDUMP"
  14522. # Used on cygwin: assembler.
  14523. AS="$AS"
  14524. # The name of the directory that contains temporary libtool files.
  14525. objdir=$objdir
  14526. # How to create reloadable object files.
  14527. reload_flag=$lt_reload_flag
  14528. reload_cmds=$lt_reload_cmds
  14529. # How to pass a linker flag through the compiler.
  14530. wl=$lt_lt_prog_compiler_wl_F77
  14531. # Object file suffix (normally "o").
  14532. objext="$ac_objext"
  14533. # Old archive suffix (normally "a").
  14534. libext="$libext"
  14535. # Shared library suffix (normally ".so").
  14536. shrext_cmds='$shrext_cmds'
  14537. # Executable file suffix (normally "").
  14538. exeext="$exeext"
  14539. # Additional compiler flags for building library objects.
  14540. pic_flag=$lt_lt_prog_compiler_pic_F77
  14541. pic_mode=$pic_mode
  14542. # What is the maximum length of a command?
  14543. max_cmd_len=$lt_cv_sys_max_cmd_len
  14544. # Does compiler simultaneously support -c and -o options?
  14545. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  14546. # Must we lock files when doing compilation?
  14547. need_locks=$lt_need_locks
  14548. # Do we need the lib prefix for modules?
  14549. need_lib_prefix=$need_lib_prefix
  14550. # Do we need a version for libraries?
  14551. need_version=$need_version
  14552. # Whether dlopen is supported.
  14553. dlopen_support=$enable_dlopen
  14554. # Whether dlopen of programs is supported.
  14555. dlopen_self=$enable_dlopen_self
  14556. # Whether dlopen of statically linked programs is supported.
  14557. dlopen_self_static=$enable_dlopen_self_static
  14558. # Compiler flag to prevent dynamic linking.
  14559. link_static_flag=$lt_lt_prog_compiler_static_F77
  14560. # Compiler flag to turn off builtin functions.
  14561. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  14562. # Compiler flag to allow reflexive dlopens.
  14563. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  14564. # Compiler flag to generate shared objects directly from archives.
  14565. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  14566. # Compiler flag to generate thread-safe objects.
  14567. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  14568. # Library versioning type.
  14569. version_type=$version_type
  14570. # Format of library name prefix.
  14571. libname_spec=$lt_libname_spec
  14572. # List of archive names. First name is the real one, the rest are links.
  14573. # The last name is the one that the linker finds with -lNAME.
  14574. library_names_spec=$lt_library_names_spec
  14575. # The coded name of the library, if different from the real name.
  14576. soname_spec=$lt_soname_spec
  14577. # Commands used to build and install an old-style archive.
  14578. RANLIB=$lt_RANLIB
  14579. old_archive_cmds=$lt_old_archive_cmds_F77
  14580. old_postinstall_cmds=$lt_old_postinstall_cmds
  14581. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14582. # Create an old-style archive from a shared archive.
  14583. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  14584. # Create a temporary old-style archive to link instead of a shared archive.
  14585. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  14586. # Commands used to build and install a shared archive.
  14587. archive_cmds=$lt_archive_cmds_F77
  14588. archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  14589. postinstall_cmds=$lt_postinstall_cmds
  14590. postuninstall_cmds=$lt_postuninstall_cmds
  14591. # Commands used to build a loadable module (assumed same as above if empty)
  14592. module_cmds=$lt_module_cmds_F77
  14593. module_expsym_cmds=$lt_module_expsym_cmds_F77
  14594. # Commands to strip libraries.
  14595. old_striplib=$lt_old_striplib
  14596. striplib=$lt_striplib
  14597. # Dependencies to place before the objects being linked to create a
  14598. # shared library.
  14599. predep_objects=$lt_predep_objects_F77
  14600. # Dependencies to place after the objects being linked to create a
  14601. # shared library.
  14602. postdep_objects=$lt_postdep_objects_F77
  14603. # Dependencies to place before the objects being linked to create a
  14604. # shared library.
  14605. predeps=$lt_predeps_F77
  14606. # Dependencies to place after the objects being linked to create a
  14607. # shared library.
  14608. postdeps=$lt_postdeps_F77
  14609. # The library search path used internally by the compiler when linking
  14610. # a shared library.
  14611. compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  14612. # Method to check whether dependent libraries are shared objects.
  14613. deplibs_check_method=$lt_deplibs_check_method
  14614. # Command to use when deplibs_check_method == file_magic.
  14615. file_magic_cmd=$lt_file_magic_cmd
  14616. # Flag that allows shared libraries with undefined symbols to be built.
  14617. allow_undefined_flag=$lt_allow_undefined_flag_F77
  14618. # Flag that forces no undefined symbols.
  14619. no_undefined_flag=$lt_no_undefined_flag_F77
  14620. # Commands used to finish a libtool library installation in a directory.
  14621. finish_cmds=$lt_finish_cmds
  14622. # Same as above, but a single script fragment to be evaled but not shown.
  14623. finish_eval=$lt_finish_eval
  14624. # Take the output of nm and produce a listing of raw symbols and C names.
  14625. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14626. # Transform the output of nm in a proper C declaration
  14627. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14628. # Transform the output of nm in a C name address pair
  14629. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14630. # This is the shared library runtime path variable.
  14631. runpath_var=$runpath_var
  14632. # This is the shared library path variable.
  14633. shlibpath_var=$shlibpath_var
  14634. # Is shlibpath searched before the hard-coded library search path?
  14635. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14636. # How to hardcode a shared library path into an executable.
  14637. hardcode_action=$hardcode_action_F77
  14638. # Whether we should hardcode library paths into libraries.
  14639. hardcode_into_libs=$hardcode_into_libs
  14640. # Flag to hardcode \$libdir into a binary during linking.
  14641. # This must work even if \$libdir does not exist.
  14642. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  14643. # If ld is used when linking, flag to hardcode \$libdir into
  14644. # a binary during linking. This must work even if \$libdir does
  14645. # not exist.
  14646. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  14647. # Whether we need a single -rpath flag with a separated argument.
  14648. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  14649. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  14650. # resulting binary.
  14651. hardcode_direct=$hardcode_direct_F77
  14652. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  14653. # resulting binary.
  14654. hardcode_minus_L=$hardcode_minus_L_F77
  14655. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  14656. # the resulting binary.
  14657. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  14658. # Set to yes if building a shared library automatically hardcodes DIR into the library
  14659. # and all subsequent libraries and executables linked against it.
  14660. hardcode_automatic=$hardcode_automatic_F77
  14661. # Variables whose values should be saved in libtool wrapper scripts and
  14662. # restored at relink time.
  14663. variables_saved_for_relink="$variables_saved_for_relink"
  14664. # Whether libtool must link a program against all its dependency libraries.
  14665. link_all_deplibs=$link_all_deplibs_F77
  14666. # Compile-time system search path for libraries
  14667. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14668. # Run-time system search path for libraries
  14669. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14670. # Fix the shell variable \$srcfile for the compiler.
  14671. fix_srcfile_path=$lt_fix_srcfile_path
  14672. # Set to yes if exported symbols are required.
  14673. always_export_symbols=$always_export_symbols_F77
  14674. # The commands to list exported symbols.
  14675. export_symbols_cmds=$lt_export_symbols_cmds_F77
  14676. # The commands to extract the exported symbol list from a shared archive.
  14677. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14678. # Symbols that should not be listed in the preloaded symbols.
  14679. exclude_expsyms=$lt_exclude_expsyms_F77
  14680. # Symbols that must always be exported.
  14681. include_expsyms=$lt_include_expsyms_F77
  14682. # ### END LIBTOOL TAG CONFIG: $tagname
  14683. __EOF__
  14684. else
  14685. # If there is no Makefile yet, we rely on a make rule to execute
  14686. # `config.status --recheck' to rerun these tests and create the
  14687. # libtool script then.
  14688. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  14689. if test -f "$ltmain_in"; then
  14690. test -f Makefile && make "$ltmain"
  14691. fi
  14692. fi
  14693. ac_ext=c
  14694. ac_cpp='$CPP $CPPFLAGS'
  14695. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14696. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14697. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14698. CC="$lt_save_CC"
  14699. else
  14700. tagname=""
  14701. fi
  14702. ;;
  14703. GCJ)
  14704. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  14705. # Source file extension for Java test sources.
  14706. ac_ext=java
  14707. # Object file extension for compiled Java test sources.
  14708. objext=o
  14709. objext_GCJ=$objext
  14710. # Code to be used in simple compile tests
  14711. lt_simple_compile_test_code="class foo {}"
  14712. # Code to be used in simple link tests
  14713. lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
  14714. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  14715. # If no C compiler was specified, use CC.
  14716. LTCC=${LTCC-"$CC"}
  14717. # If no C compiler flags were specified, use CFLAGS.
  14718. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  14719. # Allow CC to be a program name with arguments.
  14720. compiler=$CC
  14721. # save warnings/boilerplate of simple test code
  14722. ac_outfile=conftest.$ac_objext
  14723. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  14724. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14725. _lt_compiler_boilerplate=`cat conftest.err`
  14726. $rm conftest*
  14727. ac_outfile=conftest.$ac_objext
  14728. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  14729. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14730. _lt_linker_boilerplate=`cat conftest.err`
  14731. $rm conftest*
  14732. # Allow CC to be a program name with arguments.
  14733. lt_save_CC="$CC"
  14734. CC=${GCJ-"gcj"}
  14735. compiler=$CC
  14736. compiler_GCJ=$CC
  14737. for cc_temp in $compiler""; do
  14738. case $cc_temp in
  14739. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14740. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14741. \-*) ;;
  14742. *) break;;
  14743. esac
  14744. done
  14745. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14746. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  14747. archive_cmds_need_lc_GCJ=no
  14748. old_archive_cmds_GCJ=$old_archive_cmds
  14749. lt_prog_compiler_no_builtin_flag_GCJ=
  14750. if test "$GCC" = yes; then
  14751. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  14752. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  14753. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  14754. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  14755. echo $ECHO_N "(cached) $ECHO_C" >&6
  14756. else
  14757. lt_cv_prog_compiler_rtti_exceptions=no
  14758. ac_outfile=conftest.$ac_objext
  14759. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14760. lt_compiler_flag="-fno-rtti -fno-exceptions"
  14761. # Insert the option either (1) after the last *FLAGS variable, or
  14762. # (2) before a word containing "conftest.", or (3) at the end.
  14763. # Note that $ac_compile itself does not contain backslashes and begins
  14764. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14765. # The option is referenced via a variable to avoid confusing sed.
  14766. lt_compile=`echo "$ac_compile" | $SED \
  14767. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14768. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14769. -e 's:$: $lt_compiler_flag:'`
  14770. (eval echo "\"\$as_me:16544: $lt_compile\"" >&5)
  14771. (eval "$lt_compile" 2>conftest.err)
  14772. ac_status=$?
  14773. cat conftest.err >&5
  14774. echo "$as_me:16548: \$? = $ac_status" >&5
  14775. if (exit $ac_status) && test -s "$ac_outfile"; then
  14776. # The compiler can only warn and ignore the option if not recognized
  14777. # So say no if there are warnings other than the usual output.
  14778. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  14779. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14780. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14781. lt_cv_prog_compiler_rtti_exceptions=yes
  14782. fi
  14783. fi
  14784. $rm conftest*
  14785. fi
  14786. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  14787. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  14788. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  14789. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  14790. else
  14791. :
  14792. fi
  14793. fi
  14794. lt_prog_compiler_wl_GCJ=
  14795. lt_prog_compiler_pic_GCJ=
  14796. lt_prog_compiler_static_GCJ=
  14797. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  14798. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  14799. if test "$GCC" = yes; then
  14800. lt_prog_compiler_wl_GCJ='-Wl,'
  14801. lt_prog_compiler_static_GCJ='-static'
  14802. case $host_os in
  14803. aix*)
  14804. # All AIX code is PIC.
  14805. if test "$host_cpu" = ia64; then
  14806. # AIX 5 now supports IA64 processor
  14807. lt_prog_compiler_static_GCJ='-Bstatic'
  14808. fi
  14809. ;;
  14810. amigaos*)
  14811. # FIXME: we need at least 68020 code to build shared libraries, but
  14812. # adding the `-m68020' flag to GCC prevents building anything better,
  14813. # like `-m68040'.
  14814. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  14815. ;;
  14816. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  14817. # PIC is the default for these OSes.
  14818. ;;
  14819. mingw* | cygwin* | pw32* | os2*)
  14820. # This hack is so that the source file can tell whether it is being
  14821. # built for inclusion in a dll (and should export symbols for example).
  14822. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  14823. # (--disable-auto-import) libraries
  14824. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  14825. ;;
  14826. darwin* | rhapsody*)
  14827. # PIC is the default on this platform
  14828. # Common symbols not allowed in MH_DYLIB files
  14829. lt_prog_compiler_pic_GCJ='-fno-common'
  14830. ;;
  14831. interix[3-9]*)
  14832. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  14833. # Instead, we relocate shared libraries at runtime.
  14834. ;;
  14835. msdosdjgpp*)
  14836. # Just because we use GCC doesn't mean we suddenly get shared libraries
  14837. # on systems that don't support them.
  14838. lt_prog_compiler_can_build_shared_GCJ=no
  14839. enable_shared=no
  14840. ;;
  14841. sysv4*MP*)
  14842. if test -d /usr/nec; then
  14843. lt_prog_compiler_pic_GCJ=-Kconform_pic
  14844. fi
  14845. ;;
  14846. hpux*)
  14847. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14848. # not for PA HP-UX.
  14849. case $host_cpu in
  14850. hppa*64*|ia64*)
  14851. # +Z the default
  14852. ;;
  14853. *)
  14854. lt_prog_compiler_pic_GCJ='-fPIC'
  14855. ;;
  14856. esac
  14857. ;;
  14858. *)
  14859. lt_prog_compiler_pic_GCJ='-fPIC'
  14860. ;;
  14861. esac
  14862. else
  14863. # PORTME Check for flag to pass linker flags through the system compiler.
  14864. case $host_os in
  14865. aix*)
  14866. lt_prog_compiler_wl_GCJ='-Wl,'
  14867. if test "$host_cpu" = ia64; then
  14868. # AIX 5 now supports IA64 processor
  14869. lt_prog_compiler_static_GCJ='-Bstatic'
  14870. else
  14871. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  14872. fi
  14873. ;;
  14874. darwin*)
  14875. # PIC is the default on this platform
  14876. # Common symbols not allowed in MH_DYLIB files
  14877. case $cc_basename in
  14878. xlc*)
  14879. lt_prog_compiler_pic_GCJ='-qnocommon'
  14880. lt_prog_compiler_wl_GCJ='-Wl,'
  14881. ;;
  14882. esac
  14883. ;;
  14884. mingw* | cygwin* | pw32* | os2*)
  14885. # This hack is so that the source file can tell whether it is being
  14886. # built for inclusion in a dll (and should export symbols for example).
  14887. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  14888. ;;
  14889. hpux9* | hpux10* | hpux11*)
  14890. lt_prog_compiler_wl_GCJ='-Wl,'
  14891. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14892. # not for PA HP-UX.
  14893. case $host_cpu in
  14894. hppa*64*|ia64*)
  14895. # +Z the default
  14896. ;;
  14897. *)
  14898. lt_prog_compiler_pic_GCJ='+Z'
  14899. ;;
  14900. esac
  14901. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  14902. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  14903. ;;
  14904. irix5* | irix6* | nonstopux*)
  14905. lt_prog_compiler_wl_GCJ='-Wl,'
  14906. # PIC (with -KPIC) is the default.
  14907. lt_prog_compiler_static_GCJ='-non_shared'
  14908. ;;
  14909. newsos6)
  14910. lt_prog_compiler_pic_GCJ='-KPIC'
  14911. lt_prog_compiler_static_GCJ='-Bstatic'
  14912. ;;
  14913. linux* | k*bsd*-gnu)
  14914. case $cc_basename in
  14915. icc* | ecc*)
  14916. lt_prog_compiler_wl_GCJ='-Wl,'
  14917. lt_prog_compiler_pic_GCJ='-KPIC'
  14918. lt_prog_compiler_static_GCJ='-static'
  14919. ;;
  14920. pgcc* | pgf77* | pgf90* | pgf95*)
  14921. # Portland Group compilers (*not* the Pentium gcc compiler,
  14922. # which looks to be a dead project)
  14923. lt_prog_compiler_wl_GCJ='-Wl,'
  14924. lt_prog_compiler_pic_GCJ='-fpic'
  14925. lt_prog_compiler_static_GCJ='-Bstatic'
  14926. ;;
  14927. ccc*)
  14928. lt_prog_compiler_wl_GCJ='-Wl,'
  14929. # All Alpha code is PIC.
  14930. lt_prog_compiler_static_GCJ='-non_shared'
  14931. ;;
  14932. *)
  14933. case `$CC -V 2>&1 | sed 5q` in
  14934. *Sun\ C*)
  14935. # Sun C 5.9
  14936. lt_prog_compiler_pic_GCJ='-KPIC'
  14937. lt_prog_compiler_static_GCJ='-Bstatic'
  14938. lt_prog_compiler_wl_GCJ='-Wl,'
  14939. ;;
  14940. *Sun\ F*)
  14941. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  14942. lt_prog_compiler_pic_GCJ='-KPIC'
  14943. lt_prog_compiler_static_GCJ='-Bstatic'
  14944. lt_prog_compiler_wl_GCJ=''
  14945. ;;
  14946. esac
  14947. ;;
  14948. esac
  14949. ;;
  14950. osf3* | osf4* | osf5*)
  14951. lt_prog_compiler_wl_GCJ='-Wl,'
  14952. # All OSF/1 code is PIC.
  14953. lt_prog_compiler_static_GCJ='-non_shared'
  14954. ;;
  14955. rdos*)
  14956. lt_prog_compiler_static_GCJ='-non_shared'
  14957. ;;
  14958. solaris*)
  14959. lt_prog_compiler_pic_GCJ='-KPIC'
  14960. lt_prog_compiler_static_GCJ='-Bstatic'
  14961. case $cc_basename in
  14962. f77* | f90* | f95*)
  14963. lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  14964. *)
  14965. lt_prog_compiler_wl_GCJ='-Wl,';;
  14966. esac
  14967. ;;
  14968. sunos4*)
  14969. lt_prog_compiler_wl_GCJ='-Qoption ld '
  14970. lt_prog_compiler_pic_GCJ='-PIC'
  14971. lt_prog_compiler_static_GCJ='-Bstatic'
  14972. ;;
  14973. sysv4 | sysv4.2uw2* | sysv4.3*)
  14974. lt_prog_compiler_wl_GCJ='-Wl,'
  14975. lt_prog_compiler_pic_GCJ='-KPIC'
  14976. lt_prog_compiler_static_GCJ='-Bstatic'
  14977. ;;
  14978. sysv4*MP*)
  14979. if test -d /usr/nec ;then
  14980. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  14981. lt_prog_compiler_static_GCJ='-Bstatic'
  14982. fi
  14983. ;;
  14984. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14985. lt_prog_compiler_wl_GCJ='-Wl,'
  14986. lt_prog_compiler_pic_GCJ='-KPIC'
  14987. lt_prog_compiler_static_GCJ='-Bstatic'
  14988. ;;
  14989. unicos*)
  14990. lt_prog_compiler_wl_GCJ='-Wl,'
  14991. lt_prog_compiler_can_build_shared_GCJ=no
  14992. ;;
  14993. uts4*)
  14994. lt_prog_compiler_pic_GCJ='-pic'
  14995. lt_prog_compiler_static_GCJ='-Bstatic'
  14996. ;;
  14997. *)
  14998. lt_prog_compiler_can_build_shared_GCJ=no
  14999. ;;
  15000. esac
  15001. fi
  15002. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  15003. echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
  15004. #
  15005. # Check to make sure the PIC flag actually works.
  15006. #
  15007. if test -n "$lt_prog_compiler_pic_GCJ"; then
  15008. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  15009. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
  15010. if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  15011. echo $ECHO_N "(cached) $ECHO_C" >&6
  15012. else
  15013. lt_prog_compiler_pic_works_GCJ=no
  15014. ac_outfile=conftest.$ac_objext
  15015. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15016. lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  15017. # Insert the option either (1) after the last *FLAGS variable, or
  15018. # (2) before a word containing "conftest.", or (3) at the end.
  15019. # Note that $ac_compile itself does not contain backslashes and begins
  15020. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15021. # The option is referenced via a variable to avoid confusing sed.
  15022. lt_compile=`echo "$ac_compile" | $SED \
  15023. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15024. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15025. -e 's:$: $lt_compiler_flag:'`
  15026. (eval echo "\"\$as_me:16834: $lt_compile\"" >&5)
  15027. (eval "$lt_compile" 2>conftest.err)
  15028. ac_status=$?
  15029. cat conftest.err >&5
  15030. echo "$as_me:16838: \$? = $ac_status" >&5
  15031. if (exit $ac_status) && test -s "$ac_outfile"; then
  15032. # The compiler can only warn and ignore the option if not recognized
  15033. # So say no if there are warnings other than the usual output.
  15034. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  15035. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15036. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  15037. lt_prog_compiler_pic_works_GCJ=yes
  15038. fi
  15039. fi
  15040. $rm conftest*
  15041. fi
  15042. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  15043. echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
  15044. if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  15045. case $lt_prog_compiler_pic_GCJ in
  15046. "" | " "*) ;;
  15047. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  15048. esac
  15049. else
  15050. lt_prog_compiler_pic_GCJ=
  15051. lt_prog_compiler_can_build_shared_GCJ=no
  15052. fi
  15053. fi
  15054. case $host_os in
  15055. # For platforms which do not support PIC, -DPIC is meaningless:
  15056. *djgpp*)
  15057. lt_prog_compiler_pic_GCJ=
  15058. ;;
  15059. *)
  15060. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  15061. ;;
  15062. esac
  15063. #
  15064. # Check to make sure the static flag actually works.
  15065. #
  15066. wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  15067. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  15068. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  15069. if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
  15070. echo $ECHO_N "(cached) $ECHO_C" >&6
  15071. else
  15072. lt_prog_compiler_static_works_GCJ=no
  15073. save_LDFLAGS="$LDFLAGS"
  15074. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  15075. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  15076. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  15077. # The linker can only warn and ignore the option if not recognized
  15078. # So say no if there are warnings
  15079. if test -s conftest.err; then
  15080. # Append any errors to the config.log.
  15081. cat conftest.err 1>&5
  15082. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  15083. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15084. if diff conftest.exp conftest.er2 >/dev/null; then
  15085. lt_prog_compiler_static_works_GCJ=yes
  15086. fi
  15087. else
  15088. lt_prog_compiler_static_works_GCJ=yes
  15089. fi
  15090. fi
  15091. $rm conftest*
  15092. LDFLAGS="$save_LDFLAGS"
  15093. fi
  15094. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
  15095. echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
  15096. if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
  15097. :
  15098. else
  15099. lt_prog_compiler_static_GCJ=
  15100. fi
  15101. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  15102. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  15103. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  15104. echo $ECHO_N "(cached) $ECHO_C" >&6
  15105. else
  15106. lt_cv_prog_compiler_c_o_GCJ=no
  15107. $rm -r conftest 2>/dev/null
  15108. mkdir conftest
  15109. cd conftest
  15110. mkdir out
  15111. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15112. lt_compiler_flag="-o out/conftest2.$ac_objext"
  15113. # Insert the option either (1) after the last *FLAGS variable, or
  15114. # (2) before a word containing "conftest.", or (3) at the end.
  15115. # Note that $ac_compile itself does not contain backslashes and begins
  15116. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15117. lt_compile=`echo "$ac_compile" | $SED \
  15118. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15119. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15120. -e 's:$: $lt_compiler_flag:'`
  15121. (eval echo "\"\$as_me:16938: $lt_compile\"" >&5)
  15122. (eval "$lt_compile" 2>out/conftest.err)
  15123. ac_status=$?
  15124. cat out/conftest.err >&5
  15125. echo "$as_me:16942: \$? = $ac_status" >&5
  15126. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  15127. then
  15128. # The compiler can only warn and ignore the option if not recognized
  15129. # So say no if there are warnings
  15130. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  15131. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  15132. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  15133. lt_cv_prog_compiler_c_o_GCJ=yes
  15134. fi
  15135. fi
  15136. chmod u+w . 2>&5
  15137. $rm conftest*
  15138. # SGI C++ compiler will create directory out/ii_files/ for
  15139. # template instantiation
  15140. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  15141. $rm out/* && rmdir out
  15142. cd ..
  15143. rmdir conftest
  15144. $rm conftest*
  15145. fi
  15146. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  15147. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  15148. hard_links="nottested"
  15149. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  15150. # do not overwrite the value of need_locks provided by the user
  15151. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  15152. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  15153. hard_links=yes
  15154. $rm conftest*
  15155. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15156. touch conftest.a
  15157. ln conftest.a conftest.b 2>&5 || hard_links=no
  15158. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15159. { echo "$as_me:$LINENO: result: $hard_links" >&5
  15160. echo "${ECHO_T}$hard_links" >&6; }
  15161. if test "$hard_links" = no; then
  15162. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  15163. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  15164. need_locks=warn
  15165. fi
  15166. else
  15167. need_locks=no
  15168. fi
  15169. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  15170. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  15171. runpath_var=
  15172. allow_undefined_flag_GCJ=
  15173. enable_shared_with_static_runtimes_GCJ=no
  15174. archive_cmds_GCJ=
  15175. archive_expsym_cmds_GCJ=
  15176. old_archive_From_new_cmds_GCJ=
  15177. old_archive_from_expsyms_cmds_GCJ=
  15178. export_dynamic_flag_spec_GCJ=
  15179. whole_archive_flag_spec_GCJ=
  15180. thread_safe_flag_spec_GCJ=
  15181. hardcode_libdir_flag_spec_GCJ=
  15182. hardcode_libdir_flag_spec_ld_GCJ=
  15183. hardcode_libdir_separator_GCJ=
  15184. hardcode_direct_GCJ=no
  15185. hardcode_minus_L_GCJ=no
  15186. hardcode_shlibpath_var_GCJ=unsupported
  15187. link_all_deplibs_GCJ=unknown
  15188. hardcode_automatic_GCJ=no
  15189. module_cmds_GCJ=
  15190. module_expsym_cmds_GCJ=
  15191. always_export_symbols_GCJ=no
  15192. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  15193. # include_expsyms should be a list of space-separated symbols to be *always*
  15194. # included in the symbol list
  15195. include_expsyms_GCJ=
  15196. # exclude_expsyms can be an extended regexp of symbols to exclude
  15197. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  15198. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  15199. # as well as any symbol that contains `d'.
  15200. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  15201. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  15202. # platforms (ab)use it in PIC code, but their linkers get confused if
  15203. # the symbol is explicitly referenced. Since portable code cannot
  15204. # rely on this symbol name, it's probably fine to never include it in
  15205. # preloaded symbol tables.
  15206. extract_expsyms_cmds=
  15207. # Just being paranoid about ensuring that cc_basename is set.
  15208. for cc_temp in $compiler""; do
  15209. case $cc_temp in
  15210. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  15211. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  15212. \-*) ;;
  15213. *) break;;
  15214. esac
  15215. done
  15216. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  15217. case $host_os in
  15218. cygwin* | mingw* | pw32*)
  15219. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  15220. # When not using gcc, we currently assume that we are using
  15221. # Microsoft Visual C++.
  15222. if test "$GCC" != yes; then
  15223. with_gnu_ld=no
  15224. fi
  15225. ;;
  15226. interix*)
  15227. # we just hope/assume this is gcc and not c89 (= MSVC++)
  15228. with_gnu_ld=yes
  15229. ;;
  15230. openbsd*)
  15231. with_gnu_ld=no
  15232. ;;
  15233. esac
  15234. ld_shlibs_GCJ=yes
  15235. if test "$with_gnu_ld" = yes; then
  15236. # If archive_cmds runs LD, not CC, wlarc should be empty
  15237. wlarc='${wl}'
  15238. # Set some defaults for GNU ld with shared library support. These
  15239. # are reset later if shared libraries are not supported. Putting them
  15240. # here allows them to be overridden if necessary.
  15241. runpath_var=LD_RUN_PATH
  15242. hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  15243. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  15244. # ancient GNU ld didn't support --whole-archive et. al.
  15245. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  15246. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  15247. else
  15248. whole_archive_flag_spec_GCJ=
  15249. fi
  15250. supports_anon_versioning=no
  15251. case `$LD -v 2>/dev/null` in
  15252. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  15253. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  15254. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  15255. *\ 2.11.*) ;; # other 2.11 versions
  15256. *) supports_anon_versioning=yes ;;
  15257. esac
  15258. # See if GNU ld supports shared libraries.
  15259. case $host_os in
  15260. aix3* | aix4* | aix5*)
  15261. # On AIX/PPC, the GNU linker is very broken
  15262. if test "$host_cpu" != ia64; then
  15263. ld_shlibs_GCJ=no
  15264. cat <<EOF 1>&2
  15265. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  15266. *** to be unable to reliably create shared libraries on AIX.
  15267. *** Therefore, libtool is disabling shared libraries support. If you
  15268. *** really care for shared libraries, you may want to modify your PATH
  15269. *** so that a non-GNU linker is found, and then restart.
  15270. EOF
  15271. fi
  15272. ;;
  15273. amigaos*)
  15274. 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)'
  15275. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15276. hardcode_minus_L_GCJ=yes
  15277. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  15278. # that the semantics of dynamic libraries on AmigaOS, at least up
  15279. # to version 4, is to share data among multiple programs linked
  15280. # with the same dynamic library. Since this doesn't match the
  15281. # behavior of shared libraries on other platforms, we can't use
  15282. # them.
  15283. ld_shlibs_GCJ=no
  15284. ;;
  15285. beos*)
  15286. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15287. allow_undefined_flag_GCJ=unsupported
  15288. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  15289. # support --undefined. This deserves some investigation. FIXME
  15290. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15291. else
  15292. ld_shlibs_GCJ=no
  15293. fi
  15294. ;;
  15295. cygwin* | mingw* | pw32*)
  15296. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  15297. # as there is no search path for DLLs.
  15298. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15299. allow_undefined_flag_GCJ=unsupported
  15300. always_export_symbols_GCJ=no
  15301. enable_shared_with_static_runtimes_GCJ=yes
  15302. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  15303. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  15304. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  15305. # If the export-symbols file already is a .def file (1st line
  15306. # is EXPORTS), use it as is; otherwise, prepend...
  15307. archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  15308. cp $export_symbols $output_objdir/$soname.def;
  15309. else
  15310. echo EXPORTS > $output_objdir/$soname.def;
  15311. cat $export_symbols >> $output_objdir/$soname.def;
  15312. fi~
  15313. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  15314. else
  15315. ld_shlibs_GCJ=no
  15316. fi
  15317. ;;
  15318. interix[3-9]*)
  15319. hardcode_direct_GCJ=no
  15320. hardcode_shlibpath_var_GCJ=no
  15321. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15322. export_dynamic_flag_spec_GCJ='${wl}-E'
  15323. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  15324. # Instead, shared libraries are loaded at an image base (0x10000000 by
  15325. # default) and relocated if they conflict, which is a slow very memory
  15326. # consuming and fragmenting process. To avoid this, we pick a random,
  15327. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  15328. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  15329. 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'
  15330. 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'
  15331. ;;
  15332. gnu* | linux* | k*bsd*-gnu)
  15333. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15334. tmp_addflag=
  15335. case $cc_basename,$host_cpu in
  15336. pgcc*) # Portland Group C compiler
  15337. 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'
  15338. tmp_addflag=' $pic_flag'
  15339. ;;
  15340. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  15341. 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'
  15342. tmp_addflag=' $pic_flag -Mnomain' ;;
  15343. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  15344. tmp_addflag=' -i_dynamic' ;;
  15345. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  15346. tmp_addflag=' -i_dynamic -nofor_main' ;;
  15347. ifc* | ifort*) # Intel Fortran compiler
  15348. tmp_addflag=' -nofor_main' ;;
  15349. esac
  15350. case `$CC -V 2>&1 | sed 5q` in
  15351. *Sun\ C*) # Sun C 5.9
  15352. whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  15353. tmp_sharedflag='-G' ;;
  15354. *Sun\ F*) # Sun Fortran 8.3
  15355. tmp_sharedflag='-G' ;;
  15356. *)
  15357. tmp_sharedflag='-shared' ;;
  15358. esac
  15359. archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15360. if test $supports_anon_versioning = yes; then
  15361. archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  15362. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  15363. $echo "local: *; };" >> $output_objdir/$libname.ver~
  15364. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  15365. fi
  15366. else
  15367. ld_shlibs_GCJ=no
  15368. fi
  15369. ;;
  15370. netbsd*)
  15371. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15372. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  15373. wlarc=
  15374. else
  15375. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15376. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15377. fi
  15378. ;;
  15379. solaris*)
  15380. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  15381. ld_shlibs_GCJ=no
  15382. cat <<EOF 1>&2
  15383. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  15384. *** create shared libraries on Solaris systems. Therefore, libtool
  15385. *** is disabling shared libraries support. We urge you to upgrade GNU
  15386. *** binutils to release 2.9.1 or newer. Another option is to modify
  15387. *** your PATH or compiler configuration so that the native linker is
  15388. *** used, and then restart.
  15389. EOF
  15390. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15391. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15392. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15393. else
  15394. ld_shlibs_GCJ=no
  15395. fi
  15396. ;;
  15397. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  15398. case `$LD -v 2>&1` in
  15399. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  15400. ld_shlibs_GCJ=no
  15401. cat <<_LT_EOF 1>&2
  15402. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  15403. *** reliably create shared libraries on SCO systems. Therefore, libtool
  15404. *** is disabling shared libraries support. We urge you to upgrade GNU
  15405. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  15406. *** your PATH or compiler configuration so that the native linker is
  15407. *** used, and then restart.
  15408. _LT_EOF
  15409. ;;
  15410. *)
  15411. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15412. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  15413. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  15414. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  15415. else
  15416. ld_shlibs_GCJ=no
  15417. fi
  15418. ;;
  15419. esac
  15420. ;;
  15421. sunos4*)
  15422. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15423. wlarc=
  15424. hardcode_direct_GCJ=yes
  15425. hardcode_shlibpath_var_GCJ=no
  15426. ;;
  15427. *)
  15428. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15429. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15430. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15431. else
  15432. ld_shlibs_GCJ=no
  15433. fi
  15434. ;;
  15435. esac
  15436. if test "$ld_shlibs_GCJ" = no; then
  15437. runpath_var=
  15438. hardcode_libdir_flag_spec_GCJ=
  15439. export_dynamic_flag_spec_GCJ=
  15440. whole_archive_flag_spec_GCJ=
  15441. fi
  15442. else
  15443. # PORTME fill in a description of your system's linker (not GNU ld)
  15444. case $host_os in
  15445. aix3*)
  15446. allow_undefined_flag_GCJ=unsupported
  15447. always_export_symbols_GCJ=yes
  15448. 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'
  15449. # Note: this linker hardcodes the directories in LIBPATH if there
  15450. # are no directories specified by -L.
  15451. hardcode_minus_L_GCJ=yes
  15452. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  15453. # Neither direct hardcoding nor static linking is supported with a
  15454. # broken collect2.
  15455. hardcode_direct_GCJ=unsupported
  15456. fi
  15457. ;;
  15458. aix4* | aix5*)
  15459. if test "$host_cpu" = ia64; then
  15460. # On IA64, the linker does run time linking by default, so we don't
  15461. # have to do anything special.
  15462. aix_use_runtimelinking=no
  15463. exp_sym_flag='-Bexport'
  15464. no_entry_flag=""
  15465. else
  15466. # If we're using GNU nm, then we don't want the "-C" option.
  15467. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  15468. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  15469. 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'
  15470. else
  15471. 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'
  15472. fi
  15473. aix_use_runtimelinking=no
  15474. # Test if we are trying to use run time linking or normal
  15475. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  15476. # need to do runtime linking.
  15477. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  15478. for ld_flag in $LDFLAGS; do
  15479. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  15480. aix_use_runtimelinking=yes
  15481. break
  15482. fi
  15483. done
  15484. ;;
  15485. esac
  15486. exp_sym_flag='-bexport'
  15487. no_entry_flag='-bnoentry'
  15488. fi
  15489. # When large executables or shared objects are built, AIX ld can
  15490. # have problems creating the table of contents. If linking a library
  15491. # or program results in "error TOC overflow" add -mminimal-toc to
  15492. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  15493. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  15494. archive_cmds_GCJ=''
  15495. hardcode_direct_GCJ=yes
  15496. hardcode_libdir_separator_GCJ=':'
  15497. link_all_deplibs_GCJ=yes
  15498. if test "$GCC" = yes; then
  15499. case $host_os in aix4.[012]|aix4.[012].*)
  15500. # We only want to do this on AIX 4.2 and lower, the check
  15501. # below for broken collect2 doesn't work under 4.3+
  15502. collect2name=`${CC} -print-prog-name=collect2`
  15503. if test -f "$collect2name" && \
  15504. strings "$collect2name" | grep resolve_lib_name >/dev/null
  15505. then
  15506. # We have reworked collect2
  15507. :
  15508. else
  15509. # We have old collect2
  15510. hardcode_direct_GCJ=unsupported
  15511. # It fails to find uninstalled libraries when the uninstalled
  15512. # path is not listed in the libpath. Setting hardcode_minus_L
  15513. # to unsupported forces relinking
  15514. hardcode_minus_L_GCJ=yes
  15515. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15516. hardcode_libdir_separator_GCJ=
  15517. fi
  15518. ;;
  15519. esac
  15520. shared_flag='-shared'
  15521. if test "$aix_use_runtimelinking" = yes; then
  15522. shared_flag="$shared_flag "'${wl}-G'
  15523. fi
  15524. else
  15525. # not using gcc
  15526. if test "$host_cpu" = ia64; then
  15527. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  15528. # chokes on -Wl,-G. The following line is correct:
  15529. shared_flag='-G'
  15530. else
  15531. if test "$aix_use_runtimelinking" = yes; then
  15532. shared_flag='${wl}-G'
  15533. else
  15534. shared_flag='${wl}-bM:SRE'
  15535. fi
  15536. fi
  15537. fi
  15538. # It seems that -bexpall does not export symbols beginning with
  15539. # underscore (_), so it is better to generate a list of symbols to export.
  15540. always_export_symbols_GCJ=yes
  15541. if test "$aix_use_runtimelinking" = yes; then
  15542. # Warning - without using the other runtime loading flags (-brtl),
  15543. # -berok will link without error, but may produce a broken library.
  15544. allow_undefined_flag_GCJ='-berok'
  15545. # Determine the default libpath from the value encoded in an empty executable.
  15546. cat >conftest.$ac_ext <<_ACEOF
  15547. /* confdefs.h. */
  15548. _ACEOF
  15549. cat confdefs.h >>conftest.$ac_ext
  15550. cat >>conftest.$ac_ext <<_ACEOF
  15551. /* end confdefs.h. */
  15552. int
  15553. main ()
  15554. {
  15555. ;
  15556. return 0;
  15557. }
  15558. _ACEOF
  15559. rm -f conftest.$ac_objext conftest$ac_exeext
  15560. if { (ac_try="$ac_link"
  15561. case "(($ac_try" in
  15562. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15563. *) ac_try_echo=$ac_try;;
  15564. esac
  15565. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15566. (eval "$ac_link") 2>conftest.er1
  15567. ac_status=$?
  15568. grep -v '^ *+' conftest.er1 >conftest.err
  15569. rm -f conftest.er1
  15570. cat conftest.err >&5
  15571. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15572. (exit $ac_status); } && {
  15573. test -z "$ac_c_werror_flag" ||
  15574. test ! -s conftest.err
  15575. } && test -s conftest$ac_exeext &&
  15576. $as_test_x conftest$ac_exeext; then
  15577. lt_aix_libpath_sed='
  15578. /Import File Strings/,/^$/ {
  15579. /^0/ {
  15580. s/^0 *\(.*\)$/\1/
  15581. p
  15582. }
  15583. }'
  15584. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15585. # Check for a 64-bit object if we didn't find anything.
  15586. if test -z "$aix_libpath"; then
  15587. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15588. fi
  15589. else
  15590. echo "$as_me: failed program was:" >&5
  15591. sed 's/^/| /' conftest.$ac_ext >&5
  15592. fi
  15593. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15594. conftest$ac_exeext conftest.$ac_ext
  15595. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  15596. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  15597. 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"
  15598. else
  15599. if test "$host_cpu" = ia64; then
  15600. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  15601. allow_undefined_flag_GCJ="-z nodefs"
  15602. 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"
  15603. else
  15604. # Determine the default libpath from the value encoded in an empty executable.
  15605. cat >conftest.$ac_ext <<_ACEOF
  15606. /* confdefs.h. */
  15607. _ACEOF
  15608. cat confdefs.h >>conftest.$ac_ext
  15609. cat >>conftest.$ac_ext <<_ACEOF
  15610. /* end confdefs.h. */
  15611. int
  15612. main ()
  15613. {
  15614. ;
  15615. return 0;
  15616. }
  15617. _ACEOF
  15618. rm -f conftest.$ac_objext conftest$ac_exeext
  15619. if { (ac_try="$ac_link"
  15620. case "(($ac_try" in
  15621. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15622. *) ac_try_echo=$ac_try;;
  15623. esac
  15624. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15625. (eval "$ac_link") 2>conftest.er1
  15626. ac_status=$?
  15627. grep -v '^ *+' conftest.er1 >conftest.err
  15628. rm -f conftest.er1
  15629. cat conftest.err >&5
  15630. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15631. (exit $ac_status); } && {
  15632. test -z "$ac_c_werror_flag" ||
  15633. test ! -s conftest.err
  15634. } && test -s conftest$ac_exeext &&
  15635. $as_test_x conftest$ac_exeext; then
  15636. lt_aix_libpath_sed='
  15637. /Import File Strings/,/^$/ {
  15638. /^0/ {
  15639. s/^0 *\(.*\)$/\1/
  15640. p
  15641. }
  15642. }'
  15643. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15644. # Check for a 64-bit object if we didn't find anything.
  15645. if test -z "$aix_libpath"; then
  15646. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15647. fi
  15648. else
  15649. echo "$as_me: failed program was:" >&5
  15650. sed 's/^/| /' conftest.$ac_ext >&5
  15651. fi
  15652. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15653. conftest$ac_exeext conftest.$ac_ext
  15654. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  15655. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  15656. # Warning - without using the other run time loading flags,
  15657. # -berok will link without error, but may produce a broken library.
  15658. no_undefined_flag_GCJ=' ${wl}-bernotok'
  15659. allow_undefined_flag_GCJ=' ${wl}-berok'
  15660. # Exported symbols can be pulled into shared objects from archives
  15661. whole_archive_flag_spec_GCJ='$convenience'
  15662. archive_cmds_need_lc_GCJ=yes
  15663. # This is similar to how AIX traditionally builds its shared libraries.
  15664. 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'
  15665. fi
  15666. fi
  15667. ;;
  15668. amigaos*)
  15669. 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)'
  15670. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15671. hardcode_minus_L_GCJ=yes
  15672. # see comment about different semantics on the GNU ld section
  15673. ld_shlibs_GCJ=no
  15674. ;;
  15675. bsdi[45]*)
  15676. export_dynamic_flag_spec_GCJ=-rdynamic
  15677. ;;
  15678. cygwin* | mingw* | pw32*)
  15679. # When not using gcc, we currently assume that we are using
  15680. # Microsoft Visual C++.
  15681. # hardcode_libdir_flag_spec is actually meaningless, as there is
  15682. # no search path for DLLs.
  15683. hardcode_libdir_flag_spec_GCJ=' '
  15684. allow_undefined_flag_GCJ=unsupported
  15685. # Tell ltmain to make .lib files, not .a files.
  15686. libext=lib
  15687. # Tell ltmain to make .dll files, not .so files.
  15688. shrext_cmds=".dll"
  15689. # FIXME: Setting linknames here is a bad hack.
  15690. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  15691. # The linker will automatically build a .lib file if we build a DLL.
  15692. old_archive_From_new_cmds_GCJ='true'
  15693. # FIXME: Should let the user specify the lib program.
  15694. old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
  15695. fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  15696. enable_shared_with_static_runtimes_GCJ=yes
  15697. ;;
  15698. darwin* | rhapsody*)
  15699. case $host_os in
  15700. rhapsody* | darwin1.[012])
  15701. allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  15702. ;;
  15703. *) # Darwin 1.3 on
  15704. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  15705. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15706. else
  15707. case ${MACOSX_DEPLOYMENT_TARGET} in
  15708. 10.[012])
  15709. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15710. ;;
  15711. 10.*)
  15712. allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  15713. ;;
  15714. esac
  15715. fi
  15716. ;;
  15717. esac
  15718. archive_cmds_need_lc_GCJ=no
  15719. hardcode_direct_GCJ=no
  15720. hardcode_automatic_GCJ=yes
  15721. hardcode_shlibpath_var_GCJ=unsupported
  15722. whole_archive_flag_spec_GCJ=''
  15723. link_all_deplibs_GCJ=yes
  15724. if test "$GCC" = yes ; then
  15725. output_verbose_link_cmd='echo'
  15726. archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  15727. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15728. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  15729. 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}'
  15730. 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}'
  15731. else
  15732. case $cc_basename in
  15733. xlc*)
  15734. output_verbose_link_cmd='echo'
  15735. archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  15736. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15737. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  15738. 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  15739. 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}'
  15740. ;;
  15741. *)
  15742. ld_shlibs_GCJ=no
  15743. ;;
  15744. esac
  15745. fi
  15746. ;;
  15747. dgux*)
  15748. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15749. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15750. hardcode_shlibpath_var_GCJ=no
  15751. ;;
  15752. freebsd1*)
  15753. ld_shlibs_GCJ=no
  15754. ;;
  15755. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  15756. # support. Future versions do this automatically, but an explicit c++rt0.o
  15757. # does not break anything, and helps significantly (at the cost of a little
  15758. # extra space).
  15759. freebsd2.2*)
  15760. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  15761. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15762. hardcode_direct_GCJ=yes
  15763. hardcode_shlibpath_var_GCJ=no
  15764. ;;
  15765. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  15766. freebsd2*)
  15767. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15768. hardcode_direct_GCJ=yes
  15769. hardcode_minus_L_GCJ=yes
  15770. hardcode_shlibpath_var_GCJ=no
  15771. ;;
  15772. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  15773. freebsd* | dragonfly*)
  15774. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  15775. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15776. hardcode_direct_GCJ=yes
  15777. hardcode_shlibpath_var_GCJ=no
  15778. ;;
  15779. hpux9*)
  15780. if test "$GCC" = yes; then
  15781. 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'
  15782. else
  15783. 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'
  15784. fi
  15785. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15786. hardcode_libdir_separator_GCJ=:
  15787. hardcode_direct_GCJ=yes
  15788. # hardcode_minus_L: Not really in the search PATH,
  15789. # but as the default location of the library.
  15790. hardcode_minus_L_GCJ=yes
  15791. export_dynamic_flag_spec_GCJ='${wl}-E'
  15792. ;;
  15793. hpux10*)
  15794. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15795. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15796. else
  15797. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  15798. fi
  15799. if test "$with_gnu_ld" = no; then
  15800. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15801. hardcode_libdir_separator_GCJ=:
  15802. hardcode_direct_GCJ=yes
  15803. export_dynamic_flag_spec_GCJ='${wl}-E'
  15804. # hardcode_minus_L: Not really in the search PATH,
  15805. # but as the default location of the library.
  15806. hardcode_minus_L_GCJ=yes
  15807. fi
  15808. ;;
  15809. hpux11*)
  15810. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15811. case $host_cpu in
  15812. hppa*64*)
  15813. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15814. ;;
  15815. ia64*)
  15816. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  15817. ;;
  15818. *)
  15819. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15820. ;;
  15821. esac
  15822. else
  15823. case $host_cpu in
  15824. hppa*64*)
  15825. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15826. ;;
  15827. ia64*)
  15828. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  15829. ;;
  15830. *)
  15831. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15832. ;;
  15833. esac
  15834. fi
  15835. if test "$with_gnu_ld" = no; then
  15836. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15837. hardcode_libdir_separator_GCJ=:
  15838. case $host_cpu in
  15839. hppa*64*|ia64*)
  15840. hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  15841. hardcode_direct_GCJ=no
  15842. hardcode_shlibpath_var_GCJ=no
  15843. ;;
  15844. *)
  15845. hardcode_direct_GCJ=yes
  15846. export_dynamic_flag_spec_GCJ='${wl}-E'
  15847. # hardcode_minus_L: Not really in the search PATH,
  15848. # but as the default location of the library.
  15849. hardcode_minus_L_GCJ=yes
  15850. ;;
  15851. esac
  15852. fi
  15853. ;;
  15854. irix5* | irix6* | nonstopux*)
  15855. if test "$GCC" = yes; then
  15856. 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'
  15857. else
  15858. 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'
  15859. hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  15860. fi
  15861. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15862. hardcode_libdir_separator_GCJ=:
  15863. link_all_deplibs_GCJ=yes
  15864. ;;
  15865. netbsd*)
  15866. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15867. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  15868. else
  15869. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  15870. fi
  15871. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15872. hardcode_direct_GCJ=yes
  15873. hardcode_shlibpath_var_GCJ=no
  15874. ;;
  15875. newsos6)
  15876. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15877. hardcode_direct_GCJ=yes
  15878. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15879. hardcode_libdir_separator_GCJ=:
  15880. hardcode_shlibpath_var_GCJ=no
  15881. ;;
  15882. openbsd*)
  15883. if test -f /usr/libexec/ld.so; then
  15884. hardcode_direct_GCJ=yes
  15885. hardcode_shlibpath_var_GCJ=no
  15886. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15887. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15888. archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  15889. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15890. export_dynamic_flag_spec_GCJ='${wl}-E'
  15891. else
  15892. case $host_os in
  15893. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  15894. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15895. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15896. ;;
  15897. *)
  15898. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15899. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15900. ;;
  15901. esac
  15902. fi
  15903. else
  15904. ld_shlibs_GCJ=no
  15905. fi
  15906. ;;
  15907. os2*)
  15908. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15909. hardcode_minus_L_GCJ=yes
  15910. allow_undefined_flag_GCJ=unsupported
  15911. 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'
  15912. old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  15913. ;;
  15914. osf3*)
  15915. if test "$GCC" = yes; then
  15916. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  15917. 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'
  15918. else
  15919. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  15920. 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'
  15921. fi
  15922. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15923. hardcode_libdir_separator_GCJ=:
  15924. ;;
  15925. osf4* | osf5*) # as osf3* with the addition of -msym flag
  15926. if test "$GCC" = yes; then
  15927. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  15928. 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'
  15929. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15930. else
  15931. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  15932. 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'
  15933. 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~
  15934. $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'
  15935. # Both c and cxx compiler support -rpath directly
  15936. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  15937. fi
  15938. hardcode_libdir_separator_GCJ=:
  15939. ;;
  15940. solaris*)
  15941. no_undefined_flag_GCJ=' -z text'
  15942. if test "$GCC" = yes; then
  15943. wlarc='${wl}'
  15944. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15945. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15946. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  15947. else
  15948. wlarc=''
  15949. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15950. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15951. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  15952. fi
  15953. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15954. hardcode_shlibpath_var_GCJ=no
  15955. case $host_os in
  15956. solaris2.[0-5] | solaris2.[0-5].*) ;;
  15957. *)
  15958. # The compiler driver will combine and reorder linker options,
  15959. # but understands `-z linker_flag'. GCC discards it without `$wl',
  15960. # but is careful enough not to reorder.
  15961. # Supported since Solaris 2.6 (maybe 2.5.1?)
  15962. if test "$GCC" = yes; then
  15963. whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  15964. else
  15965. whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
  15966. fi
  15967. ;;
  15968. esac
  15969. link_all_deplibs_GCJ=yes
  15970. ;;
  15971. sunos4*)
  15972. if test "x$host_vendor" = xsequent; then
  15973. # Use $CC to link under sequent, because it throws in some extra .o
  15974. # files that make .init and .fini sections work.
  15975. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  15976. else
  15977. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  15978. fi
  15979. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15980. hardcode_direct_GCJ=yes
  15981. hardcode_minus_L_GCJ=yes
  15982. hardcode_shlibpath_var_GCJ=no
  15983. ;;
  15984. sysv4)
  15985. case $host_vendor in
  15986. sni)
  15987. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15988. hardcode_direct_GCJ=yes # is this really true???
  15989. ;;
  15990. siemens)
  15991. ## LD is ld it makes a PLAMLIB
  15992. ## CC just makes a GrossModule.
  15993. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  15994. reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  15995. hardcode_direct_GCJ=no
  15996. ;;
  15997. motorola)
  15998. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15999. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  16000. ;;
  16001. esac
  16002. runpath_var='LD_RUN_PATH'
  16003. hardcode_shlibpath_var_GCJ=no
  16004. ;;
  16005. sysv4.3*)
  16006. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16007. hardcode_shlibpath_var_GCJ=no
  16008. export_dynamic_flag_spec_GCJ='-Bexport'
  16009. ;;
  16010. sysv4*MP*)
  16011. if test -d /usr/nec; then
  16012. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16013. hardcode_shlibpath_var_GCJ=no
  16014. runpath_var=LD_RUN_PATH
  16015. hardcode_runpath_var=yes
  16016. ld_shlibs_GCJ=yes
  16017. fi
  16018. ;;
  16019. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  16020. no_undefined_flag_GCJ='${wl}-z,text'
  16021. archive_cmds_need_lc_GCJ=no
  16022. hardcode_shlibpath_var_GCJ=no
  16023. runpath_var='LD_RUN_PATH'
  16024. if test "$GCC" = yes; then
  16025. archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16026. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16027. else
  16028. archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16029. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16030. fi
  16031. ;;
  16032. sysv5* | sco3.2v5* | sco5v6*)
  16033. # Note: We can NOT use -z defs as we might desire, because we do not
  16034. # link with -lc, and that would cause any symbols used from libc to
  16035. # always be unresolved, which means just about no library would
  16036. # ever link correctly. If we're not using GNU ld we use -z text
  16037. # though, which does catch some bad symbols but isn't as heavy-handed
  16038. # as -z defs.
  16039. no_undefined_flag_GCJ='${wl}-z,text'
  16040. allow_undefined_flag_GCJ='${wl}-z,nodefs'
  16041. archive_cmds_need_lc_GCJ=no
  16042. hardcode_shlibpath_var_GCJ=no
  16043. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  16044. hardcode_libdir_separator_GCJ=':'
  16045. link_all_deplibs_GCJ=yes
  16046. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  16047. runpath_var='LD_RUN_PATH'
  16048. if test "$GCC" = yes; then
  16049. archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16050. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16051. else
  16052. archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16053. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16054. fi
  16055. ;;
  16056. uts4*)
  16057. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16058. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16059. hardcode_shlibpath_var_GCJ=no
  16060. ;;
  16061. *)
  16062. ld_shlibs_GCJ=no
  16063. ;;
  16064. esac
  16065. fi
  16066. { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  16067. echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
  16068. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  16069. #
  16070. # Do we need to explicitly link libc?
  16071. #
  16072. case "x$archive_cmds_need_lc_GCJ" in
  16073. x|xyes)
  16074. # Assume -lc should be added
  16075. archive_cmds_need_lc_GCJ=yes
  16076. if test "$enable_shared" = yes && test "$GCC" = yes; then
  16077. case $archive_cmds_GCJ in
  16078. *'~'*)
  16079. # FIXME: we may have to deal with multi-command sequences.
  16080. ;;
  16081. '$CC '*)
  16082. # Test whether the compiler implicitly links with -lc since on some
  16083. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  16084. # to ld, don't add -lc before -lgcc.
  16085. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  16086. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  16087. $rm conftest*
  16088. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  16089. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16090. (eval $ac_compile) 2>&5
  16091. ac_status=$?
  16092. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16093. (exit $ac_status); } 2>conftest.err; then
  16094. soname=conftest
  16095. lib=conftest
  16096. libobjs=conftest.$ac_objext
  16097. deplibs=
  16098. wl=$lt_prog_compiler_wl_GCJ
  16099. pic_flag=$lt_prog_compiler_pic_GCJ
  16100. compiler_flags=-v
  16101. linker_flags=-v
  16102. verstring=
  16103. output_objdir=.
  16104. libname=conftest
  16105. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  16106. allow_undefined_flag_GCJ=
  16107. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  16108. (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  16109. ac_status=$?
  16110. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16111. (exit $ac_status); }
  16112. then
  16113. archive_cmds_need_lc_GCJ=no
  16114. else
  16115. archive_cmds_need_lc_GCJ=yes
  16116. fi
  16117. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  16118. else
  16119. cat conftest.err 1>&5
  16120. fi
  16121. $rm conftest*
  16122. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  16123. echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
  16124. ;;
  16125. esac
  16126. fi
  16127. ;;
  16128. esac
  16129. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  16130. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  16131. library_names_spec=
  16132. libname_spec='lib$name'
  16133. soname_spec=
  16134. shrext_cmds=".so"
  16135. postinstall_cmds=
  16136. postuninstall_cmds=
  16137. finish_cmds=
  16138. finish_eval=
  16139. shlibpath_var=
  16140. shlibpath_overrides_runpath=unknown
  16141. version_type=none
  16142. dynamic_linker="$host_os ld.so"
  16143. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  16144. need_lib_prefix=unknown
  16145. hardcode_into_libs=no
  16146. # when you set need_version to no, make sure it does not cause -set_version
  16147. # flags to be left without arguments
  16148. need_version=unknown
  16149. case $host_os in
  16150. aix3*)
  16151. version_type=linux
  16152. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  16153. shlibpath_var=LIBPATH
  16154. # AIX 3 has no versioning support, so we append a major version to the name.
  16155. soname_spec='${libname}${release}${shared_ext}$major'
  16156. ;;
  16157. aix4* | aix5*)
  16158. version_type=linux
  16159. need_lib_prefix=no
  16160. need_version=no
  16161. hardcode_into_libs=yes
  16162. if test "$host_cpu" = ia64; then
  16163. # AIX 5 supports IA64
  16164. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  16165. shlibpath_var=LD_LIBRARY_PATH
  16166. else
  16167. # With GCC up to 2.95.x, collect2 would create an import file
  16168. # for dependence libraries. The import file would start with
  16169. # the line `#! .'. This would cause the generated library to
  16170. # depend on `.', always an invalid library. This was fixed in
  16171. # development snapshots of GCC prior to 3.0.
  16172. case $host_os in
  16173. aix4 | aix4.[01] | aix4.[01].*)
  16174. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  16175. echo ' yes '
  16176. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  16177. :
  16178. else
  16179. can_build_shared=no
  16180. fi
  16181. ;;
  16182. esac
  16183. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  16184. # soname into executable. Probably we can add versioning support to
  16185. # collect2, so additional links can be useful in future.
  16186. if test "$aix_use_runtimelinking" = yes; then
  16187. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  16188. # instead of lib<name>.a to let people know that these are not
  16189. # typical AIX shared libraries.
  16190. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16191. else
  16192. # We preserve .a as extension for shared libraries through AIX4.2
  16193. # and later when we are not doing run time linking.
  16194. library_names_spec='${libname}${release}.a $libname.a'
  16195. soname_spec='${libname}${release}${shared_ext}$major'
  16196. fi
  16197. shlibpath_var=LIBPATH
  16198. fi
  16199. ;;
  16200. amigaos*)
  16201. library_names_spec='$libname.ixlibrary $libname.a'
  16202. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  16203. 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'
  16204. ;;
  16205. beos*)
  16206. library_names_spec='${libname}${shared_ext}'
  16207. dynamic_linker="$host_os ld.so"
  16208. shlibpath_var=LIBRARY_PATH
  16209. ;;
  16210. bsdi[45]*)
  16211. version_type=linux
  16212. need_version=no
  16213. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16214. soname_spec='${libname}${release}${shared_ext}$major'
  16215. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  16216. shlibpath_var=LD_LIBRARY_PATH
  16217. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  16218. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  16219. # the default ld.so.conf also contains /usr/contrib/lib and
  16220. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  16221. # libtool to hard-code these into programs
  16222. ;;
  16223. cygwin* | mingw* | pw32*)
  16224. version_type=windows
  16225. shrext_cmds=".dll"
  16226. need_version=no
  16227. need_lib_prefix=no
  16228. case $GCC,$host_os in
  16229. yes,cygwin* | yes,mingw* | yes,pw32*)
  16230. library_names_spec='$libname.dll.a'
  16231. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  16232. postinstall_cmds='base_file=`basename \${file}`~
  16233. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  16234. dldir=$destdir/`dirname \$dlpath`~
  16235. test -d \$dldir || mkdir -p \$dldir~
  16236. $install_prog $dir/$dlname \$dldir/$dlname~
  16237. chmod a+x \$dldir/$dlname'
  16238. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  16239. dlpath=$dir/\$dldll~
  16240. $rm \$dlpath'
  16241. shlibpath_overrides_runpath=yes
  16242. case $host_os in
  16243. cygwin*)
  16244. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  16245. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16246. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  16247. ;;
  16248. mingw*)
  16249. # MinGW DLLs use traditional 'lib' prefix
  16250. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16251. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  16252. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  16253. # It is most probably a Windows format PATH printed by
  16254. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  16255. # path with ; separators, and with drive letters. We can handle the
  16256. # drive letters (cygwin fileutils understands them), so leave them,
  16257. # especially as we might pass files found there to a mingw objdump,
  16258. # which wouldn't understand a cygwinified path. Ahh.
  16259. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  16260. else
  16261. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  16262. fi
  16263. ;;
  16264. pw32*)
  16265. # pw32 DLLs use 'pw' prefix rather than 'lib'
  16266. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16267. ;;
  16268. esac
  16269. ;;
  16270. *)
  16271. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  16272. ;;
  16273. esac
  16274. dynamic_linker='Win32 ld.exe'
  16275. # FIXME: first we should search . and the directory the executable is in
  16276. shlibpath_var=PATH
  16277. ;;
  16278. darwin* | rhapsody*)
  16279. dynamic_linker="$host_os dyld"
  16280. version_type=darwin
  16281. need_lib_prefix=no
  16282. need_version=no
  16283. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  16284. soname_spec='${libname}${release}${major}$shared_ext'
  16285. shlibpath_overrides_runpath=yes
  16286. shlibpath_var=DYLD_LIBRARY_PATH
  16287. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  16288. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  16289. ;;
  16290. dgux*)
  16291. version_type=linux
  16292. need_lib_prefix=no
  16293. need_version=no
  16294. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  16295. soname_spec='${libname}${release}${shared_ext}$major'
  16296. shlibpath_var=LD_LIBRARY_PATH
  16297. ;;
  16298. freebsd1*)
  16299. dynamic_linker=no
  16300. ;;
  16301. freebsd* | dragonfly*)
  16302. # DragonFly does not have aout. When/if they implement a new
  16303. # versioning mechanism, adjust this.
  16304. if test -x /usr/bin/objformat; then
  16305. objformat=`/usr/bin/objformat`
  16306. else
  16307. case $host_os in
  16308. freebsd[123]*) objformat=aout ;;
  16309. *) objformat=elf ;;
  16310. esac
  16311. fi
  16312. version_type=freebsd-$objformat
  16313. case $version_type in
  16314. freebsd-elf*)
  16315. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  16316. need_version=no
  16317. need_lib_prefix=no
  16318. ;;
  16319. freebsd-*)
  16320. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  16321. need_version=yes
  16322. ;;
  16323. esac
  16324. shlibpath_var=LD_LIBRARY_PATH
  16325. case $host_os in
  16326. freebsd2*)
  16327. shlibpath_overrides_runpath=yes
  16328. ;;
  16329. freebsd3.[01]* | freebsdelf3.[01]*)
  16330. shlibpath_overrides_runpath=yes
  16331. hardcode_into_libs=yes
  16332. ;;
  16333. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  16334. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  16335. shlibpath_overrides_runpath=no
  16336. hardcode_into_libs=yes
  16337. ;;
  16338. *) # from 4.6 on, and DragonFly
  16339. shlibpath_overrides_runpath=yes
  16340. hardcode_into_libs=yes
  16341. ;;
  16342. esac
  16343. ;;
  16344. gnu*)
  16345. version_type=linux
  16346. need_lib_prefix=no
  16347. need_version=no
  16348. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  16349. soname_spec='${libname}${release}${shared_ext}$major'
  16350. shlibpath_var=LD_LIBRARY_PATH
  16351. hardcode_into_libs=yes
  16352. ;;
  16353. hpux9* | hpux10* | hpux11*)
  16354. # Give a soname corresponding to the major version so that dld.sl refuses to
  16355. # link against other versions.
  16356. version_type=sunos
  16357. need_lib_prefix=no
  16358. need_version=no
  16359. case $host_cpu in
  16360. ia64*)
  16361. shrext_cmds='.so'
  16362. hardcode_into_libs=yes
  16363. dynamic_linker="$host_os dld.so"
  16364. shlibpath_var=LD_LIBRARY_PATH
  16365. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16366. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16367. soname_spec='${libname}${release}${shared_ext}$major'
  16368. if test "X$HPUX_IA64_MODE" = X32; then
  16369. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  16370. else
  16371. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  16372. fi
  16373. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16374. ;;
  16375. hppa*64*)
  16376. shrext_cmds='.sl'
  16377. hardcode_into_libs=yes
  16378. dynamic_linker="$host_os dld.sl"
  16379. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  16380. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16381. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16382. soname_spec='${libname}${release}${shared_ext}$major'
  16383. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  16384. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16385. ;;
  16386. *)
  16387. shrext_cmds='.sl'
  16388. dynamic_linker="$host_os dld.sl"
  16389. shlibpath_var=SHLIB_PATH
  16390. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  16391. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16392. soname_spec='${libname}${release}${shared_ext}$major'
  16393. ;;
  16394. esac
  16395. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  16396. postinstall_cmds='chmod 555 $lib'
  16397. ;;
  16398. interix[3-9]*)
  16399. version_type=linux
  16400. need_lib_prefix=no
  16401. need_version=no
  16402. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16403. soname_spec='${libname}${release}${shared_ext}$major'
  16404. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  16405. shlibpath_var=LD_LIBRARY_PATH
  16406. shlibpath_overrides_runpath=no
  16407. hardcode_into_libs=yes
  16408. ;;
  16409. irix5* | irix6* | nonstopux*)
  16410. case $host_os in
  16411. nonstopux*) version_type=nonstopux ;;
  16412. *)
  16413. if test "$lt_cv_prog_gnu_ld" = yes; then
  16414. version_type=linux
  16415. else
  16416. version_type=irix
  16417. fi ;;
  16418. esac
  16419. need_lib_prefix=no
  16420. need_version=no
  16421. soname_spec='${libname}${release}${shared_ext}$major'
  16422. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  16423. case $host_os in
  16424. irix5* | nonstopux*)
  16425. libsuff= shlibsuff=
  16426. ;;
  16427. *)
  16428. case $LD in # libtool.m4 will add one of these switches to LD
  16429. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  16430. libsuff= shlibsuff= libmagic=32-bit;;
  16431. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  16432. libsuff=32 shlibsuff=N32 libmagic=N32;;
  16433. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  16434. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  16435. *) libsuff= shlibsuff= libmagic=never-match;;
  16436. esac
  16437. ;;
  16438. esac
  16439. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  16440. shlibpath_overrides_runpath=no
  16441. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  16442. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  16443. hardcode_into_libs=yes
  16444. ;;
  16445. # No shared lib support for Linux oldld, aout, or coff.
  16446. linux*oldld* | linux*aout* | linux*coff*)
  16447. dynamic_linker=no
  16448. ;;
  16449. # This must be Linux ELF.
  16450. linux* | k*bsd*-gnu)
  16451. version_type=linux
  16452. need_lib_prefix=no
  16453. need_version=no
  16454. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16455. soname_spec='${libname}${release}${shared_ext}$major'
  16456. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  16457. shlibpath_var=LD_LIBRARY_PATH
  16458. shlibpath_overrides_runpath=no
  16459. # This implies no fast_install, which is unacceptable.
  16460. # Some rework will be needed to allow for fast_install
  16461. # before this can be enabled.
  16462. hardcode_into_libs=yes
  16463. # Append ld.so.conf contents to the search path
  16464. if test -f /etc/ld.so.conf; then
  16465. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  16466. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  16467. fi
  16468. # We used to test for /lib/ld.so.1 and disable shared libraries on
  16469. # powerpc, because MkLinux only supported shared libraries with the
  16470. # GNU dynamic linker. Since this was broken with cross compilers,
  16471. # most powerpc-linux boxes support dynamic linking these days and
  16472. # people can always --disable-shared, the test was removed, and we
  16473. # assume the GNU/Linux dynamic linker is in use.
  16474. dynamic_linker='GNU/Linux ld.so'
  16475. ;;
  16476. netbsd*)
  16477. version_type=sunos
  16478. need_lib_prefix=no
  16479. need_version=no
  16480. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  16481. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16482. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16483. dynamic_linker='NetBSD (a.out) ld.so'
  16484. else
  16485. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16486. soname_spec='${libname}${release}${shared_ext}$major'
  16487. dynamic_linker='NetBSD ld.elf_so'
  16488. fi
  16489. shlibpath_var=LD_LIBRARY_PATH
  16490. shlibpath_overrides_runpath=yes
  16491. hardcode_into_libs=yes
  16492. ;;
  16493. newsos6)
  16494. version_type=linux
  16495. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16496. shlibpath_var=LD_LIBRARY_PATH
  16497. shlibpath_overrides_runpath=yes
  16498. ;;
  16499. nto-qnx*)
  16500. version_type=linux
  16501. need_lib_prefix=no
  16502. need_version=no
  16503. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16504. soname_spec='${libname}${release}${shared_ext}$major'
  16505. shlibpath_var=LD_LIBRARY_PATH
  16506. shlibpath_overrides_runpath=yes
  16507. ;;
  16508. openbsd*)
  16509. version_type=sunos
  16510. sys_lib_dlsearch_path_spec="/usr/lib"
  16511. need_lib_prefix=no
  16512. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  16513. case $host_os in
  16514. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  16515. *) need_version=no ;;
  16516. esac
  16517. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16518. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16519. shlibpath_var=LD_LIBRARY_PATH
  16520. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  16521. case $host_os in
  16522. openbsd2.[89] | openbsd2.[89].*)
  16523. shlibpath_overrides_runpath=no
  16524. ;;
  16525. *)
  16526. shlibpath_overrides_runpath=yes
  16527. ;;
  16528. esac
  16529. else
  16530. shlibpath_overrides_runpath=yes
  16531. fi
  16532. ;;
  16533. os2*)
  16534. libname_spec='$name'
  16535. shrext_cmds=".dll"
  16536. need_lib_prefix=no
  16537. library_names_spec='$libname${shared_ext} $libname.a'
  16538. dynamic_linker='OS/2 ld.exe'
  16539. shlibpath_var=LIBPATH
  16540. ;;
  16541. osf3* | osf4* | osf5*)
  16542. version_type=osf
  16543. need_lib_prefix=no
  16544. need_version=no
  16545. soname_spec='${libname}${release}${shared_ext}$major'
  16546. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16547. shlibpath_var=LD_LIBRARY_PATH
  16548. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  16549. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  16550. ;;
  16551. rdos*)
  16552. dynamic_linker=no
  16553. ;;
  16554. solaris*)
  16555. version_type=linux
  16556. need_lib_prefix=no
  16557. need_version=no
  16558. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16559. soname_spec='${libname}${release}${shared_ext}$major'
  16560. shlibpath_var=LD_LIBRARY_PATH
  16561. shlibpath_overrides_runpath=yes
  16562. hardcode_into_libs=yes
  16563. # ldd complains unless libraries are executable
  16564. postinstall_cmds='chmod +x $lib'
  16565. ;;
  16566. sunos4*)
  16567. version_type=sunos
  16568. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16569. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  16570. shlibpath_var=LD_LIBRARY_PATH
  16571. shlibpath_overrides_runpath=yes
  16572. if test "$with_gnu_ld" = yes; then
  16573. need_lib_prefix=no
  16574. fi
  16575. need_version=yes
  16576. ;;
  16577. sysv4 | sysv4.3*)
  16578. version_type=linux
  16579. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16580. soname_spec='${libname}${release}${shared_ext}$major'
  16581. shlibpath_var=LD_LIBRARY_PATH
  16582. case $host_vendor in
  16583. sni)
  16584. shlibpath_overrides_runpath=no
  16585. need_lib_prefix=no
  16586. export_dynamic_flag_spec='${wl}-Blargedynsym'
  16587. runpath_var=LD_RUN_PATH
  16588. ;;
  16589. siemens)
  16590. need_lib_prefix=no
  16591. ;;
  16592. motorola)
  16593. need_lib_prefix=no
  16594. need_version=no
  16595. shlibpath_overrides_runpath=no
  16596. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  16597. ;;
  16598. esac
  16599. ;;
  16600. sysv4*MP*)
  16601. if test -d /usr/nec ;then
  16602. version_type=linux
  16603. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  16604. soname_spec='$libname${shared_ext}.$major'
  16605. shlibpath_var=LD_LIBRARY_PATH
  16606. fi
  16607. ;;
  16608. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  16609. version_type=freebsd-elf
  16610. need_lib_prefix=no
  16611. need_version=no
  16612. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  16613. soname_spec='${libname}${release}${shared_ext}$major'
  16614. shlibpath_var=LD_LIBRARY_PATH
  16615. hardcode_into_libs=yes
  16616. if test "$with_gnu_ld" = yes; then
  16617. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  16618. shlibpath_overrides_runpath=no
  16619. else
  16620. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  16621. shlibpath_overrides_runpath=yes
  16622. case $host_os in
  16623. sco3.2v5*)
  16624. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  16625. ;;
  16626. esac
  16627. fi
  16628. sys_lib_dlsearch_path_spec='/usr/lib'
  16629. ;;
  16630. uts4*)
  16631. version_type=linux
  16632. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16633. soname_spec='${libname}${release}${shared_ext}$major'
  16634. shlibpath_var=LD_LIBRARY_PATH
  16635. ;;
  16636. *)
  16637. dynamic_linker=no
  16638. ;;
  16639. esac
  16640. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  16641. echo "${ECHO_T}$dynamic_linker" >&6; }
  16642. test "$dynamic_linker" = no && can_build_shared=no
  16643. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  16644. if test "$GCC" = yes; then
  16645. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  16646. fi
  16647. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  16648. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  16649. hardcode_action_GCJ=
  16650. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  16651. test -n "$runpath_var_GCJ" || \
  16652. test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  16653. # We can hardcode non-existant directories.
  16654. if test "$hardcode_direct_GCJ" != no &&
  16655. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  16656. # have to relink, otherwise we might link with an installed library
  16657. # when we should be linking with a yet-to-be-installed one
  16658. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  16659. test "$hardcode_minus_L_GCJ" != no; then
  16660. # Linking always hardcodes the temporary library directory.
  16661. hardcode_action_GCJ=relink
  16662. else
  16663. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  16664. hardcode_action_GCJ=immediate
  16665. fi
  16666. else
  16667. # We cannot hardcode anything, or else we can only hardcode existing
  16668. # directories.
  16669. hardcode_action_GCJ=unsupported
  16670. fi
  16671. { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  16672. echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
  16673. if test "$hardcode_action_GCJ" = relink; then
  16674. # Fast installation is not supported
  16675. enable_fast_install=no
  16676. elif test "$shlibpath_overrides_runpath" = yes ||
  16677. test "$enable_shared" = no; then
  16678. # Fast installation is not necessary
  16679. enable_fast_install=needless
  16680. fi
  16681. # The else clause should only fire when bootstrapping the
  16682. # libtool distribution, otherwise you forgot to ship ltmain.sh
  16683. # with your package, and you will get complaints that there are
  16684. # no rules to generate ltmain.sh.
  16685. if test -f "$ltmain"; then
  16686. # See if we are running on zsh, and set the options which allow our commands through
  16687. # without removal of \ escapes.
  16688. if test -n "${ZSH_VERSION+set}" ; then
  16689. setopt NO_GLOB_SUBST
  16690. fi
  16691. # Now quote all the things that may contain metacharacters while being
  16692. # careful not to overquote the AC_SUBSTed values. We take copies of the
  16693. # variables and quote the copies for generation of the libtool script.
  16694. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  16695. SED SHELL STRIP \
  16696. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  16697. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  16698. deplibs_check_method reload_flag reload_cmds need_locks \
  16699. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  16700. lt_cv_sys_global_symbol_to_c_name_address \
  16701. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  16702. old_postinstall_cmds old_postuninstall_cmds \
  16703. compiler_GCJ \
  16704. CC_GCJ \
  16705. LD_GCJ \
  16706. lt_prog_compiler_wl_GCJ \
  16707. lt_prog_compiler_pic_GCJ \
  16708. lt_prog_compiler_static_GCJ \
  16709. lt_prog_compiler_no_builtin_flag_GCJ \
  16710. export_dynamic_flag_spec_GCJ \
  16711. thread_safe_flag_spec_GCJ \
  16712. whole_archive_flag_spec_GCJ \
  16713. enable_shared_with_static_runtimes_GCJ \
  16714. old_archive_cmds_GCJ \
  16715. old_archive_from_new_cmds_GCJ \
  16716. predep_objects_GCJ \
  16717. postdep_objects_GCJ \
  16718. predeps_GCJ \
  16719. postdeps_GCJ \
  16720. compiler_lib_search_path_GCJ \
  16721. archive_cmds_GCJ \
  16722. archive_expsym_cmds_GCJ \
  16723. postinstall_cmds_GCJ \
  16724. postuninstall_cmds_GCJ \
  16725. old_archive_from_expsyms_cmds_GCJ \
  16726. allow_undefined_flag_GCJ \
  16727. no_undefined_flag_GCJ \
  16728. export_symbols_cmds_GCJ \
  16729. hardcode_libdir_flag_spec_GCJ \
  16730. hardcode_libdir_flag_spec_ld_GCJ \
  16731. hardcode_libdir_separator_GCJ \
  16732. hardcode_automatic_GCJ \
  16733. module_cmds_GCJ \
  16734. module_expsym_cmds_GCJ \
  16735. lt_cv_prog_compiler_c_o_GCJ \
  16736. fix_srcfile_path_GCJ \
  16737. exclude_expsyms_GCJ \
  16738. include_expsyms_GCJ; do
  16739. case $var in
  16740. old_archive_cmds_GCJ | \
  16741. old_archive_from_new_cmds_GCJ | \
  16742. archive_cmds_GCJ | \
  16743. archive_expsym_cmds_GCJ | \
  16744. module_cmds_GCJ | \
  16745. module_expsym_cmds_GCJ | \
  16746. old_archive_from_expsyms_cmds_GCJ | \
  16747. export_symbols_cmds_GCJ | \
  16748. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16749. postinstall_cmds | postuninstall_cmds | \
  16750. old_postinstall_cmds | old_postuninstall_cmds | \
  16751. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16752. # Double-quote double-evaled strings.
  16753. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16754. ;;
  16755. *)
  16756. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16757. ;;
  16758. esac
  16759. done
  16760. case $lt_echo in
  16761. *'\$0 --fallback-echo"')
  16762. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  16763. ;;
  16764. esac
  16765. cfgfile="$ofile"
  16766. cat <<__EOF__ >> "$cfgfile"
  16767. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  16768. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16769. # Shell to use when invoking shell scripts.
  16770. SHELL=$lt_SHELL
  16771. # Whether or not to build shared libraries.
  16772. build_libtool_libs=$enable_shared
  16773. # Whether or not to build static libraries.
  16774. build_old_libs=$enable_static
  16775. # Whether or not to add -lc for building shared libraries.
  16776. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  16777. # Whether or not to disallow shared libs when runtime libs are static
  16778. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  16779. # Whether or not to optimize for fast installation.
  16780. fast_install=$enable_fast_install
  16781. # The host system.
  16782. host_alias=$host_alias
  16783. host=$host
  16784. host_os=$host_os
  16785. # The build system.
  16786. build_alias=$build_alias
  16787. build=$build
  16788. build_os=$build_os
  16789. # An echo program that does not interpret backslashes.
  16790. echo=$lt_echo
  16791. # The archiver.
  16792. AR=$lt_AR
  16793. AR_FLAGS=$lt_AR_FLAGS
  16794. # A C compiler.
  16795. LTCC=$lt_LTCC
  16796. # LTCC compiler flags.
  16797. LTCFLAGS=$lt_LTCFLAGS
  16798. # A language-specific compiler.
  16799. CC=$lt_compiler_GCJ
  16800. # Is the compiler the GNU C compiler?
  16801. with_gcc=$GCC_GCJ
  16802. # An ERE matcher.
  16803. EGREP=$lt_EGREP
  16804. # The linker used to build libraries.
  16805. LD=$lt_LD_GCJ
  16806. # Whether we need hard or soft links.
  16807. LN_S=$lt_LN_S
  16808. # A BSD-compatible nm program.
  16809. NM=$lt_NM
  16810. # A symbol stripping program
  16811. STRIP=$lt_STRIP
  16812. # Used to examine libraries when file_magic_cmd begins "file"
  16813. MAGIC_CMD=$MAGIC_CMD
  16814. # Used on cygwin: DLL creation program.
  16815. DLLTOOL="$DLLTOOL"
  16816. # Used on cygwin: object dumper.
  16817. OBJDUMP="$OBJDUMP"
  16818. # Used on cygwin: assembler.
  16819. AS="$AS"
  16820. # The name of the directory that contains temporary libtool files.
  16821. objdir=$objdir
  16822. # How to create reloadable object files.
  16823. reload_flag=$lt_reload_flag
  16824. reload_cmds=$lt_reload_cmds
  16825. # How to pass a linker flag through the compiler.
  16826. wl=$lt_lt_prog_compiler_wl_GCJ
  16827. # Object file suffix (normally "o").
  16828. objext="$ac_objext"
  16829. # Old archive suffix (normally "a").
  16830. libext="$libext"
  16831. # Shared library suffix (normally ".so").
  16832. shrext_cmds='$shrext_cmds'
  16833. # Executable file suffix (normally "").
  16834. exeext="$exeext"
  16835. # Additional compiler flags for building library objects.
  16836. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  16837. pic_mode=$pic_mode
  16838. # What is the maximum length of a command?
  16839. max_cmd_len=$lt_cv_sys_max_cmd_len
  16840. # Does compiler simultaneously support -c and -o options?
  16841. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  16842. # Must we lock files when doing compilation?
  16843. need_locks=$lt_need_locks
  16844. # Do we need the lib prefix for modules?
  16845. need_lib_prefix=$need_lib_prefix
  16846. # Do we need a version for libraries?
  16847. need_version=$need_version
  16848. # Whether dlopen is supported.
  16849. dlopen_support=$enable_dlopen
  16850. # Whether dlopen of programs is supported.
  16851. dlopen_self=$enable_dlopen_self
  16852. # Whether dlopen of statically linked programs is supported.
  16853. dlopen_self_static=$enable_dlopen_self_static
  16854. # Compiler flag to prevent dynamic linking.
  16855. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  16856. # Compiler flag to turn off builtin functions.
  16857. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  16858. # Compiler flag to allow reflexive dlopens.
  16859. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  16860. # Compiler flag to generate shared objects directly from archives.
  16861. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  16862. # Compiler flag to generate thread-safe objects.
  16863. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  16864. # Library versioning type.
  16865. version_type=$version_type
  16866. # Format of library name prefix.
  16867. libname_spec=$lt_libname_spec
  16868. # List of archive names. First name is the real one, the rest are links.
  16869. # The last name is the one that the linker finds with -lNAME.
  16870. library_names_spec=$lt_library_names_spec
  16871. # The coded name of the library, if different from the real name.
  16872. soname_spec=$lt_soname_spec
  16873. # Commands used to build and install an old-style archive.
  16874. RANLIB=$lt_RANLIB
  16875. old_archive_cmds=$lt_old_archive_cmds_GCJ
  16876. old_postinstall_cmds=$lt_old_postinstall_cmds
  16877. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16878. # Create an old-style archive from a shared archive.
  16879. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  16880. # Create a temporary old-style archive to link instead of a shared archive.
  16881. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  16882. # Commands used to build and install a shared archive.
  16883. archive_cmds=$lt_archive_cmds_GCJ
  16884. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  16885. postinstall_cmds=$lt_postinstall_cmds
  16886. postuninstall_cmds=$lt_postuninstall_cmds
  16887. # Commands used to build a loadable module (assumed same as above if empty)
  16888. module_cmds=$lt_module_cmds_GCJ
  16889. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  16890. # Commands to strip libraries.
  16891. old_striplib=$lt_old_striplib
  16892. striplib=$lt_striplib
  16893. # Dependencies to place before the objects being linked to create a
  16894. # shared library.
  16895. predep_objects=$lt_predep_objects_GCJ
  16896. # Dependencies to place after the objects being linked to create a
  16897. # shared library.
  16898. postdep_objects=$lt_postdep_objects_GCJ
  16899. # Dependencies to place before the objects being linked to create a
  16900. # shared library.
  16901. predeps=$lt_predeps_GCJ
  16902. # Dependencies to place after the objects being linked to create a
  16903. # shared library.
  16904. postdeps=$lt_postdeps_GCJ
  16905. # The library search path used internally by the compiler when linking
  16906. # a shared library.
  16907. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  16908. # Method to check whether dependent libraries are shared objects.
  16909. deplibs_check_method=$lt_deplibs_check_method
  16910. # Command to use when deplibs_check_method == file_magic.
  16911. file_magic_cmd=$lt_file_magic_cmd
  16912. # Flag that allows shared libraries with undefined symbols to be built.
  16913. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  16914. # Flag that forces no undefined symbols.
  16915. no_undefined_flag=$lt_no_undefined_flag_GCJ
  16916. # Commands used to finish a libtool library installation in a directory.
  16917. finish_cmds=$lt_finish_cmds
  16918. # Same as above, but a single script fragment to be evaled but not shown.
  16919. finish_eval=$lt_finish_eval
  16920. # Take the output of nm and produce a listing of raw symbols and C names.
  16921. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16922. # Transform the output of nm in a proper C declaration
  16923. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16924. # Transform the output of nm in a C name address pair
  16925. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16926. # This is the shared library runtime path variable.
  16927. runpath_var=$runpath_var
  16928. # This is the shared library path variable.
  16929. shlibpath_var=$shlibpath_var
  16930. # Is shlibpath searched before the hard-coded library search path?
  16931. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16932. # How to hardcode a shared library path into an executable.
  16933. hardcode_action=$hardcode_action_GCJ
  16934. # Whether we should hardcode library paths into libraries.
  16935. hardcode_into_libs=$hardcode_into_libs
  16936. # Flag to hardcode \$libdir into a binary during linking.
  16937. # This must work even if \$libdir does not exist.
  16938. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  16939. # If ld is used when linking, flag to hardcode \$libdir into
  16940. # a binary during linking. This must work even if \$libdir does
  16941. # not exist.
  16942. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  16943. # Whether we need a single -rpath flag with a separated argument.
  16944. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  16945. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  16946. # resulting binary.
  16947. hardcode_direct=$hardcode_direct_GCJ
  16948. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  16949. # resulting binary.
  16950. hardcode_minus_L=$hardcode_minus_L_GCJ
  16951. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  16952. # the resulting binary.
  16953. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  16954. # Set to yes if building a shared library automatically hardcodes DIR into the library
  16955. # and all subsequent libraries and executables linked against it.
  16956. hardcode_automatic=$hardcode_automatic_GCJ
  16957. # Variables whose values should be saved in libtool wrapper scripts and
  16958. # restored at relink time.
  16959. variables_saved_for_relink="$variables_saved_for_relink"
  16960. # Whether libtool must link a program against all its dependency libraries.
  16961. link_all_deplibs=$link_all_deplibs_GCJ
  16962. # Compile-time system search path for libraries
  16963. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16964. # Run-time system search path for libraries
  16965. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16966. # Fix the shell variable \$srcfile for the compiler.
  16967. fix_srcfile_path=$lt_fix_srcfile_path
  16968. # Set to yes if exported symbols are required.
  16969. always_export_symbols=$always_export_symbols_GCJ
  16970. # The commands to list exported symbols.
  16971. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  16972. # The commands to extract the exported symbol list from a shared archive.
  16973. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16974. # Symbols that should not be listed in the preloaded symbols.
  16975. exclude_expsyms=$lt_exclude_expsyms_GCJ
  16976. # Symbols that must always be exported.
  16977. include_expsyms=$lt_include_expsyms_GCJ
  16978. # ### END LIBTOOL TAG CONFIG: $tagname
  16979. __EOF__
  16980. else
  16981. # If there is no Makefile yet, we rely on a make rule to execute
  16982. # `config.status --recheck' to rerun these tests and create the
  16983. # libtool script then.
  16984. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  16985. if test -f "$ltmain_in"; then
  16986. test -f Makefile && make "$ltmain"
  16987. fi
  16988. fi
  16989. ac_ext=c
  16990. ac_cpp='$CPP $CPPFLAGS'
  16991. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16992. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16993. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16994. CC="$lt_save_CC"
  16995. else
  16996. tagname=""
  16997. fi
  16998. ;;
  16999. RC)
  17000. # Source file extension for RC test sources.
  17001. ac_ext=rc
  17002. # Object file extension for compiled RC test sources.
  17003. objext=o
  17004. objext_RC=$objext
  17005. # Code to be used in simple compile tests
  17006. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  17007. # Code to be used in simple link tests
  17008. lt_simple_link_test_code="$lt_simple_compile_test_code"
  17009. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  17010. # If no C compiler was specified, use CC.
  17011. LTCC=${LTCC-"$CC"}
  17012. # If no C compiler flags were specified, use CFLAGS.
  17013. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  17014. # Allow CC to be a program name with arguments.
  17015. compiler=$CC
  17016. # save warnings/boilerplate of simple test code
  17017. ac_outfile=conftest.$ac_objext
  17018. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  17019. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  17020. _lt_compiler_boilerplate=`cat conftest.err`
  17021. $rm conftest*
  17022. ac_outfile=conftest.$ac_objext
  17023. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  17024. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  17025. _lt_linker_boilerplate=`cat conftest.err`
  17026. $rm conftest*
  17027. # Allow CC to be a program name with arguments.
  17028. lt_save_CC="$CC"
  17029. CC=${RC-"windres"}
  17030. compiler=$CC
  17031. compiler_RC=$CC
  17032. for cc_temp in $compiler""; do
  17033. case $cc_temp in
  17034. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  17035. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  17036. \-*) ;;
  17037. *) break;;
  17038. esac
  17039. done
  17040. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  17041. lt_cv_prog_compiler_c_o_RC=yes
  17042. # The else clause should only fire when bootstrapping the
  17043. # libtool distribution, otherwise you forgot to ship ltmain.sh
  17044. # with your package, and you will get complaints that there are
  17045. # no rules to generate ltmain.sh.
  17046. if test -f "$ltmain"; then
  17047. # See if we are running on zsh, and set the options which allow our commands through
  17048. # without removal of \ escapes.
  17049. if test -n "${ZSH_VERSION+set}" ; then
  17050. setopt NO_GLOB_SUBST
  17051. fi
  17052. # Now quote all the things that may contain metacharacters while being
  17053. # careful not to overquote the AC_SUBSTed values. We take copies of the
  17054. # variables and quote the copies for generation of the libtool script.
  17055. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  17056. SED SHELL STRIP \
  17057. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  17058. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  17059. deplibs_check_method reload_flag reload_cmds need_locks \
  17060. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  17061. lt_cv_sys_global_symbol_to_c_name_address \
  17062. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  17063. old_postinstall_cmds old_postuninstall_cmds \
  17064. compiler_RC \
  17065. CC_RC \
  17066. LD_RC \
  17067. lt_prog_compiler_wl_RC \
  17068. lt_prog_compiler_pic_RC \
  17069. lt_prog_compiler_static_RC \
  17070. lt_prog_compiler_no_builtin_flag_RC \
  17071. export_dynamic_flag_spec_RC \
  17072. thread_safe_flag_spec_RC \
  17073. whole_archive_flag_spec_RC \
  17074. enable_shared_with_static_runtimes_RC \
  17075. old_archive_cmds_RC \
  17076. old_archive_from_new_cmds_RC \
  17077. predep_objects_RC \
  17078. postdep_objects_RC \
  17079. predeps_RC \
  17080. postdeps_RC \
  17081. compiler_lib_search_path_RC \
  17082. archive_cmds_RC \
  17083. archive_expsym_cmds_RC \
  17084. postinstall_cmds_RC \
  17085. postuninstall_cmds_RC \
  17086. old_archive_from_expsyms_cmds_RC \
  17087. allow_undefined_flag_RC \
  17088. no_undefined_flag_RC \
  17089. export_symbols_cmds_RC \
  17090. hardcode_libdir_flag_spec_RC \
  17091. hardcode_libdir_flag_spec_ld_RC \
  17092. hardcode_libdir_separator_RC \
  17093. hardcode_automatic_RC \
  17094. module_cmds_RC \
  17095. module_expsym_cmds_RC \
  17096. lt_cv_prog_compiler_c_o_RC \
  17097. fix_srcfile_path_RC \
  17098. exclude_expsyms_RC \
  17099. include_expsyms_RC; do
  17100. case $var in
  17101. old_archive_cmds_RC | \
  17102. old_archive_from_new_cmds_RC | \
  17103. archive_cmds_RC | \
  17104. archive_expsym_cmds_RC | \
  17105. module_cmds_RC | \
  17106. module_expsym_cmds_RC | \
  17107. old_archive_from_expsyms_cmds_RC | \
  17108. export_symbols_cmds_RC | \
  17109. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  17110. postinstall_cmds | postuninstall_cmds | \
  17111. old_postinstall_cmds | old_postuninstall_cmds | \
  17112. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  17113. # Double-quote double-evaled strings.
  17114. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  17115. ;;
  17116. *)
  17117. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  17118. ;;
  17119. esac
  17120. done
  17121. case $lt_echo in
  17122. *'\$0 --fallback-echo"')
  17123. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  17124. ;;
  17125. esac
  17126. cfgfile="$ofile"
  17127. cat <<__EOF__ >> "$cfgfile"
  17128. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  17129. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  17130. # Shell to use when invoking shell scripts.
  17131. SHELL=$lt_SHELL
  17132. # Whether or not to build shared libraries.
  17133. build_libtool_libs=$enable_shared
  17134. # Whether or not to build static libraries.
  17135. build_old_libs=$enable_static
  17136. # Whether or not to add -lc for building shared libraries.
  17137. build_libtool_need_lc=$archive_cmds_need_lc_RC
  17138. # Whether or not to disallow shared libs when runtime libs are static
  17139. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  17140. # Whether or not to optimize for fast installation.
  17141. fast_install=$enable_fast_install
  17142. # The host system.
  17143. host_alias=$host_alias
  17144. host=$host
  17145. host_os=$host_os
  17146. # The build system.
  17147. build_alias=$build_alias
  17148. build=$build
  17149. build_os=$build_os
  17150. # An echo program that does not interpret backslashes.
  17151. echo=$lt_echo
  17152. # The archiver.
  17153. AR=$lt_AR
  17154. AR_FLAGS=$lt_AR_FLAGS
  17155. # A C compiler.
  17156. LTCC=$lt_LTCC
  17157. # LTCC compiler flags.
  17158. LTCFLAGS=$lt_LTCFLAGS
  17159. # A language-specific compiler.
  17160. CC=$lt_compiler_RC
  17161. # Is the compiler the GNU C compiler?
  17162. with_gcc=$GCC_RC
  17163. # An ERE matcher.
  17164. EGREP=$lt_EGREP
  17165. # The linker used to build libraries.
  17166. LD=$lt_LD_RC
  17167. # Whether we need hard or soft links.
  17168. LN_S=$lt_LN_S
  17169. # A BSD-compatible nm program.
  17170. NM=$lt_NM
  17171. # A symbol stripping program
  17172. STRIP=$lt_STRIP
  17173. # Used to examine libraries when file_magic_cmd begins "file"
  17174. MAGIC_CMD=$MAGIC_CMD
  17175. # Used on cygwin: DLL creation program.
  17176. DLLTOOL="$DLLTOOL"
  17177. # Used on cygwin: object dumper.
  17178. OBJDUMP="$OBJDUMP"
  17179. # Used on cygwin: assembler.
  17180. AS="$AS"
  17181. # The name of the directory that contains temporary libtool files.
  17182. objdir=$objdir
  17183. # How to create reloadable object files.
  17184. reload_flag=$lt_reload_flag
  17185. reload_cmds=$lt_reload_cmds
  17186. # How to pass a linker flag through the compiler.
  17187. wl=$lt_lt_prog_compiler_wl_RC
  17188. # Object file suffix (normally "o").
  17189. objext="$ac_objext"
  17190. # Old archive suffix (normally "a").
  17191. libext="$libext"
  17192. # Shared library suffix (normally ".so").
  17193. shrext_cmds='$shrext_cmds'
  17194. # Executable file suffix (normally "").
  17195. exeext="$exeext"
  17196. # Additional compiler flags for building library objects.
  17197. pic_flag=$lt_lt_prog_compiler_pic_RC
  17198. pic_mode=$pic_mode
  17199. # What is the maximum length of a command?
  17200. max_cmd_len=$lt_cv_sys_max_cmd_len
  17201. # Does compiler simultaneously support -c and -o options?
  17202. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  17203. # Must we lock files when doing compilation?
  17204. need_locks=$lt_need_locks
  17205. # Do we need the lib prefix for modules?
  17206. need_lib_prefix=$need_lib_prefix
  17207. # Do we need a version for libraries?
  17208. need_version=$need_version
  17209. # Whether dlopen is supported.
  17210. dlopen_support=$enable_dlopen
  17211. # Whether dlopen of programs is supported.
  17212. dlopen_self=$enable_dlopen_self
  17213. # Whether dlopen of statically linked programs is supported.
  17214. dlopen_self_static=$enable_dlopen_self_static
  17215. # Compiler flag to prevent dynamic linking.
  17216. link_static_flag=$lt_lt_prog_compiler_static_RC
  17217. # Compiler flag to turn off builtin functions.
  17218. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  17219. # Compiler flag to allow reflexive dlopens.
  17220. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  17221. # Compiler flag to generate shared objects directly from archives.
  17222. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  17223. # Compiler flag to generate thread-safe objects.
  17224. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  17225. # Library versioning type.
  17226. version_type=$version_type
  17227. # Format of library name prefix.
  17228. libname_spec=$lt_libname_spec
  17229. # List of archive names. First name is the real one, the rest are links.
  17230. # The last name is the one that the linker finds with -lNAME.
  17231. library_names_spec=$lt_library_names_spec
  17232. # The coded name of the library, if different from the real name.
  17233. soname_spec=$lt_soname_spec
  17234. # Commands used to build and install an old-style archive.
  17235. RANLIB=$lt_RANLIB
  17236. old_archive_cmds=$lt_old_archive_cmds_RC
  17237. old_postinstall_cmds=$lt_old_postinstall_cmds
  17238. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17239. # Create an old-style archive from a shared archive.
  17240. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  17241. # Create a temporary old-style archive to link instead of a shared archive.
  17242. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  17243. # Commands used to build and install a shared archive.
  17244. archive_cmds=$lt_archive_cmds_RC
  17245. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  17246. postinstall_cmds=$lt_postinstall_cmds
  17247. postuninstall_cmds=$lt_postuninstall_cmds
  17248. # Commands used to build a loadable module (assumed same as above if empty)
  17249. module_cmds=$lt_module_cmds_RC
  17250. module_expsym_cmds=$lt_module_expsym_cmds_RC
  17251. # Commands to strip libraries.
  17252. old_striplib=$lt_old_striplib
  17253. striplib=$lt_striplib
  17254. # Dependencies to place before the objects being linked to create a
  17255. # shared library.
  17256. predep_objects=$lt_predep_objects_RC
  17257. # Dependencies to place after the objects being linked to create a
  17258. # shared library.
  17259. postdep_objects=$lt_postdep_objects_RC
  17260. # Dependencies to place before the objects being linked to create a
  17261. # shared library.
  17262. predeps=$lt_predeps_RC
  17263. # Dependencies to place after the objects being linked to create a
  17264. # shared library.
  17265. postdeps=$lt_postdeps_RC
  17266. # The library search path used internally by the compiler when linking
  17267. # a shared library.
  17268. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  17269. # Method to check whether dependent libraries are shared objects.
  17270. deplibs_check_method=$lt_deplibs_check_method
  17271. # Command to use when deplibs_check_method == file_magic.
  17272. file_magic_cmd=$lt_file_magic_cmd
  17273. # Flag that allows shared libraries with undefined symbols to be built.
  17274. allow_undefined_flag=$lt_allow_undefined_flag_RC
  17275. # Flag that forces no undefined symbols.
  17276. no_undefined_flag=$lt_no_undefined_flag_RC
  17277. # Commands used to finish a libtool library installation in a directory.
  17278. finish_cmds=$lt_finish_cmds
  17279. # Same as above, but a single script fragment to be evaled but not shown.
  17280. finish_eval=$lt_finish_eval
  17281. # Take the output of nm and produce a listing of raw symbols and C names.
  17282. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17283. # Transform the output of nm in a proper C declaration
  17284. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17285. # Transform the output of nm in a C name address pair
  17286. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17287. # This is the shared library runtime path variable.
  17288. runpath_var=$runpath_var
  17289. # This is the shared library path variable.
  17290. shlibpath_var=$shlibpath_var
  17291. # Is shlibpath searched before the hard-coded library search path?
  17292. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17293. # How to hardcode a shared library path into an executable.
  17294. hardcode_action=$hardcode_action_RC
  17295. # Whether we should hardcode library paths into libraries.
  17296. hardcode_into_libs=$hardcode_into_libs
  17297. # Flag to hardcode \$libdir into a binary during linking.
  17298. # This must work even if \$libdir does not exist.
  17299. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  17300. # If ld is used when linking, flag to hardcode \$libdir into
  17301. # a binary during linking. This must work even if \$libdir does
  17302. # not exist.
  17303. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  17304. # Whether we need a single -rpath flag with a separated argument.
  17305. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  17306. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  17307. # resulting binary.
  17308. hardcode_direct=$hardcode_direct_RC
  17309. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  17310. # resulting binary.
  17311. hardcode_minus_L=$hardcode_minus_L_RC
  17312. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  17313. # the resulting binary.
  17314. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  17315. # Set to yes if building a shared library automatically hardcodes DIR into the library
  17316. # and all subsequent libraries and executables linked against it.
  17317. hardcode_automatic=$hardcode_automatic_RC
  17318. # Variables whose values should be saved in libtool wrapper scripts and
  17319. # restored at relink time.
  17320. variables_saved_for_relink="$variables_saved_for_relink"
  17321. # Whether libtool must link a program against all its dependency libraries.
  17322. link_all_deplibs=$link_all_deplibs_RC
  17323. # Compile-time system search path for libraries
  17324. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17325. # Run-time system search path for libraries
  17326. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  17327. # Fix the shell variable \$srcfile for the compiler.
  17328. fix_srcfile_path=$lt_fix_srcfile_path
  17329. # Set to yes if exported symbols are required.
  17330. always_export_symbols=$always_export_symbols_RC
  17331. # The commands to list exported symbols.
  17332. export_symbols_cmds=$lt_export_symbols_cmds_RC
  17333. # The commands to extract the exported symbol list from a shared archive.
  17334. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17335. # Symbols that should not be listed in the preloaded symbols.
  17336. exclude_expsyms=$lt_exclude_expsyms_RC
  17337. # Symbols that must always be exported.
  17338. include_expsyms=$lt_include_expsyms_RC
  17339. # ### END LIBTOOL TAG CONFIG: $tagname
  17340. __EOF__
  17341. else
  17342. # If there is no Makefile yet, we rely on a make rule to execute
  17343. # `config.status --recheck' to rerun these tests and create the
  17344. # libtool script then.
  17345. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  17346. if test -f "$ltmain_in"; then
  17347. test -f Makefile && make "$ltmain"
  17348. fi
  17349. fi
  17350. ac_ext=c
  17351. ac_cpp='$CPP $CPPFLAGS'
  17352. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17353. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17354. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17355. CC="$lt_save_CC"
  17356. ;;
  17357. *)
  17358. { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  17359. echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  17360. { (exit 1); exit 1; }; }
  17361. ;;
  17362. esac
  17363. # Append the new tag name to the list of available tags.
  17364. if test -n "$tagname" ; then
  17365. available_tags="$available_tags $tagname"
  17366. fi
  17367. fi
  17368. done
  17369. IFS="$lt_save_ifs"
  17370. # Now substitute the updated list of available tags.
  17371. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  17372. mv "${ofile}T" "$ofile"
  17373. chmod +x "$ofile"
  17374. else
  17375. rm -f "${ofile}T"
  17376. { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  17377. echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  17378. { (exit 1); exit 1; }; }
  17379. fi
  17380. fi
  17381. # This can be used to rebuild libtool when needed
  17382. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  17383. # Always use our own libtool.
  17384. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  17385. # Prevent multiple expansion
  17386. ac_ext=c
  17387. ac_cpp='$CPP $CPPFLAGS'
  17388. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17389. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17390. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17391. if test -n "$ac_tool_prefix"; then
  17392. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  17393. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  17394. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  17395. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17396. if test "${ac_cv_prog_CC+set}" = set; then
  17397. echo $ECHO_N "(cached) $ECHO_C" >&6
  17398. else
  17399. if test -n "$CC"; then
  17400. ac_cv_prog_CC="$CC" # Let the user override the test.
  17401. else
  17402. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17403. for as_dir in $PATH
  17404. do
  17405. IFS=$as_save_IFS
  17406. test -z "$as_dir" && as_dir=.
  17407. for ac_exec_ext in '' $ac_executable_extensions; do
  17408. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17409. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  17410. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17411. break 2
  17412. fi
  17413. done
  17414. done
  17415. IFS=$as_save_IFS
  17416. fi
  17417. fi
  17418. CC=$ac_cv_prog_CC
  17419. if test -n "$CC"; then
  17420. { echo "$as_me:$LINENO: result: $CC" >&5
  17421. echo "${ECHO_T}$CC" >&6; }
  17422. else
  17423. { echo "$as_me:$LINENO: result: no" >&5
  17424. echo "${ECHO_T}no" >&6; }
  17425. fi
  17426. fi
  17427. if test -z "$ac_cv_prog_CC"; then
  17428. ac_ct_CC=$CC
  17429. # Extract the first word of "gcc", so it can be a program name with args.
  17430. set dummy gcc; ac_word=$2
  17431. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  17432. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17433. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  17434. echo $ECHO_N "(cached) $ECHO_C" >&6
  17435. else
  17436. if test -n "$ac_ct_CC"; then
  17437. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  17438. else
  17439. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17440. for as_dir in $PATH
  17441. do
  17442. IFS=$as_save_IFS
  17443. test -z "$as_dir" && as_dir=.
  17444. for ac_exec_ext in '' $ac_executable_extensions; do
  17445. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17446. ac_cv_prog_ac_ct_CC="gcc"
  17447. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17448. break 2
  17449. fi
  17450. done
  17451. done
  17452. IFS=$as_save_IFS
  17453. fi
  17454. fi
  17455. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  17456. if test -n "$ac_ct_CC"; then
  17457. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  17458. echo "${ECHO_T}$ac_ct_CC" >&6; }
  17459. else
  17460. { echo "$as_me:$LINENO: result: no" >&5
  17461. echo "${ECHO_T}no" >&6; }
  17462. fi
  17463. if test "x$ac_ct_CC" = x; then
  17464. CC=""
  17465. else
  17466. case $cross_compiling:$ac_tool_warned in
  17467. yes:)
  17468. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  17469. whose name does not start with the host triplet. If you think this
  17470. configuration is useful to you, please write to autoconf@gnu.org." >&5
  17471. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  17472. whose name does not start with the host triplet. If you think this
  17473. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  17474. ac_tool_warned=yes ;;
  17475. esac
  17476. CC=$ac_ct_CC
  17477. fi
  17478. else
  17479. CC="$ac_cv_prog_CC"
  17480. fi
  17481. if test -z "$CC"; then
  17482. if test -n "$ac_tool_prefix"; then
  17483. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  17484. set dummy ${ac_tool_prefix}cc; ac_word=$2
  17485. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  17486. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17487. if test "${ac_cv_prog_CC+set}" = set; then
  17488. echo $ECHO_N "(cached) $ECHO_C" >&6
  17489. else
  17490. if test -n "$CC"; then
  17491. ac_cv_prog_CC="$CC" # Let the user override the test.
  17492. else
  17493. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17494. for as_dir in $PATH
  17495. do
  17496. IFS=$as_save_IFS
  17497. test -z "$as_dir" && as_dir=.
  17498. for ac_exec_ext in '' $ac_executable_extensions; do
  17499. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17500. ac_cv_prog_CC="${ac_tool_prefix}cc"
  17501. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17502. break 2
  17503. fi
  17504. done
  17505. done
  17506. IFS=$as_save_IFS
  17507. fi
  17508. fi
  17509. CC=$ac_cv_prog_CC
  17510. if test -n "$CC"; then
  17511. { echo "$as_me:$LINENO: result: $CC" >&5
  17512. echo "${ECHO_T}$CC" >&6; }
  17513. else
  17514. { echo "$as_me:$LINENO: result: no" >&5
  17515. echo "${ECHO_T}no" >&6; }
  17516. fi
  17517. fi
  17518. fi
  17519. if test -z "$CC"; then
  17520. # Extract the first word of "cc", so it can be a program name with args.
  17521. set dummy cc; ac_word=$2
  17522. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  17523. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17524. if test "${ac_cv_prog_CC+set}" = set; then
  17525. echo $ECHO_N "(cached) $ECHO_C" >&6
  17526. else
  17527. if test -n "$CC"; then
  17528. ac_cv_prog_CC="$CC" # Let the user override the test.
  17529. else
  17530. ac_prog_rejected=no
  17531. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17532. for as_dir in $PATH
  17533. do
  17534. IFS=$as_save_IFS
  17535. test -z "$as_dir" && as_dir=.
  17536. for ac_exec_ext in '' $ac_executable_extensions; do
  17537. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17538. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  17539. ac_prog_rejected=yes
  17540. continue
  17541. fi
  17542. ac_cv_prog_CC="cc"
  17543. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17544. break 2
  17545. fi
  17546. done
  17547. done
  17548. IFS=$as_save_IFS
  17549. if test $ac_prog_rejected = yes; then
  17550. # We found a bogon in the path, so make sure we never use it.
  17551. set dummy $ac_cv_prog_CC
  17552. shift
  17553. if test $# != 0; then
  17554. # We chose a different compiler from the bogus one.
  17555. # However, it has the same basename, so the bogon will be chosen
  17556. # first if we set CC to just the basename; use the full file name.
  17557. shift
  17558. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  17559. fi
  17560. fi
  17561. fi
  17562. fi
  17563. CC=$ac_cv_prog_CC
  17564. if test -n "$CC"; then
  17565. { echo "$as_me:$LINENO: result: $CC" >&5
  17566. echo "${ECHO_T}$CC" >&6; }
  17567. else
  17568. { echo "$as_me:$LINENO: result: no" >&5
  17569. echo "${ECHO_T}no" >&6; }
  17570. fi
  17571. fi
  17572. if test -z "$CC"; then
  17573. if test -n "$ac_tool_prefix"; then
  17574. for ac_prog in cl.exe
  17575. do
  17576. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  17577. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  17578. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  17579. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17580. if test "${ac_cv_prog_CC+set}" = set; then
  17581. echo $ECHO_N "(cached) $ECHO_C" >&6
  17582. else
  17583. if test -n "$CC"; then
  17584. ac_cv_prog_CC="$CC" # Let the user override the test.
  17585. else
  17586. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17587. for as_dir in $PATH
  17588. do
  17589. IFS=$as_save_IFS
  17590. test -z "$as_dir" && as_dir=.
  17591. for ac_exec_ext in '' $ac_executable_extensions; do
  17592. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17593. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  17594. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17595. break 2
  17596. fi
  17597. done
  17598. done
  17599. IFS=$as_save_IFS
  17600. fi
  17601. fi
  17602. CC=$ac_cv_prog_CC
  17603. if test -n "$CC"; then
  17604. { echo "$as_me:$LINENO: result: $CC" >&5
  17605. echo "${ECHO_T}$CC" >&6; }
  17606. else
  17607. { echo "$as_me:$LINENO: result: no" >&5
  17608. echo "${ECHO_T}no" >&6; }
  17609. fi
  17610. test -n "$CC" && break
  17611. done
  17612. fi
  17613. if test -z "$CC"; then
  17614. ac_ct_CC=$CC
  17615. for ac_prog in cl.exe
  17616. do
  17617. # Extract the first word of "$ac_prog", so it can be a program name with args.
  17618. set dummy $ac_prog; ac_word=$2
  17619. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  17620. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17621. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  17622. echo $ECHO_N "(cached) $ECHO_C" >&6
  17623. else
  17624. if test -n "$ac_ct_CC"; then
  17625. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  17626. else
  17627. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17628. for as_dir in $PATH
  17629. do
  17630. IFS=$as_save_IFS
  17631. test -z "$as_dir" && as_dir=.
  17632. for ac_exec_ext in '' $ac_executable_extensions; do
  17633. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17634. ac_cv_prog_ac_ct_CC="$ac_prog"
  17635. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17636. break 2
  17637. fi
  17638. done
  17639. done
  17640. IFS=$as_save_IFS
  17641. fi
  17642. fi
  17643. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  17644. if test -n "$ac_ct_CC"; then
  17645. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  17646. echo "${ECHO_T}$ac_ct_CC" >&6; }
  17647. else
  17648. { echo "$as_me:$LINENO: result: no" >&5
  17649. echo "${ECHO_T}no" >&6; }
  17650. fi
  17651. test -n "$ac_ct_CC" && break
  17652. done
  17653. if test "x$ac_ct_CC" = x; then
  17654. CC=""
  17655. else
  17656. case $cross_compiling:$ac_tool_warned in
  17657. yes:)
  17658. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  17659. whose name does not start with the host triplet. If you think this
  17660. configuration is useful to you, please write to autoconf@gnu.org." >&5
  17661. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  17662. whose name does not start with the host triplet. If you think this
  17663. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  17664. ac_tool_warned=yes ;;
  17665. esac
  17666. CC=$ac_ct_CC
  17667. fi
  17668. fi
  17669. fi
  17670. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  17671. See \`config.log' for more details." >&5
  17672. echo "$as_me: error: no acceptable C compiler found in \$PATH
  17673. See \`config.log' for more details." >&2;}
  17674. { (exit 1); exit 1; }; }
  17675. # Provide some information about the compiler.
  17676. echo "$as_me:$LINENO: checking for C compiler version" >&5
  17677. ac_compiler=`set X $ac_compile; echo $2`
  17678. { (ac_try="$ac_compiler --version >&5"
  17679. case "(($ac_try" in
  17680. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17681. *) ac_try_echo=$ac_try;;
  17682. esac
  17683. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17684. (eval "$ac_compiler --version >&5") 2>&5
  17685. ac_status=$?
  17686. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17687. (exit $ac_status); }
  17688. { (ac_try="$ac_compiler -v >&5"
  17689. case "(($ac_try" in
  17690. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17691. *) ac_try_echo=$ac_try;;
  17692. esac
  17693. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17694. (eval "$ac_compiler -v >&5") 2>&5
  17695. ac_status=$?
  17696. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17697. (exit $ac_status); }
  17698. { (ac_try="$ac_compiler -V >&5"
  17699. case "(($ac_try" in
  17700. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17701. *) ac_try_echo=$ac_try;;
  17702. esac
  17703. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17704. (eval "$ac_compiler -V >&5") 2>&5
  17705. ac_status=$?
  17706. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17707. (exit $ac_status); }
  17708. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  17709. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  17710. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  17711. echo $ECHO_N "(cached) $ECHO_C" >&6
  17712. else
  17713. cat >conftest.$ac_ext <<_ACEOF
  17714. /* confdefs.h. */
  17715. _ACEOF
  17716. cat confdefs.h >>conftest.$ac_ext
  17717. cat >>conftest.$ac_ext <<_ACEOF
  17718. /* end confdefs.h. */
  17719. int
  17720. main ()
  17721. {
  17722. #ifndef __GNUC__
  17723. choke me
  17724. #endif
  17725. ;
  17726. return 0;
  17727. }
  17728. _ACEOF
  17729. rm -f conftest.$ac_objext
  17730. if { (ac_try="$ac_compile"
  17731. case "(($ac_try" in
  17732. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17733. *) ac_try_echo=$ac_try;;
  17734. esac
  17735. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17736. (eval "$ac_compile") 2>conftest.er1
  17737. ac_status=$?
  17738. grep -v '^ *+' conftest.er1 >conftest.err
  17739. rm -f conftest.er1
  17740. cat conftest.err >&5
  17741. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17742. (exit $ac_status); } && {
  17743. test -z "$ac_c_werror_flag" ||
  17744. test ! -s conftest.err
  17745. } && test -s conftest.$ac_objext; then
  17746. ac_compiler_gnu=yes
  17747. else
  17748. echo "$as_me: failed program was:" >&5
  17749. sed 's/^/| /' conftest.$ac_ext >&5
  17750. ac_compiler_gnu=no
  17751. fi
  17752. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17753. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  17754. fi
  17755. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  17756. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  17757. GCC=`test $ac_compiler_gnu = yes && echo yes`
  17758. ac_test_CFLAGS=${CFLAGS+set}
  17759. ac_save_CFLAGS=$CFLAGS
  17760. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  17761. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  17762. if test "${ac_cv_prog_cc_g+set}" = set; then
  17763. echo $ECHO_N "(cached) $ECHO_C" >&6
  17764. else
  17765. ac_save_c_werror_flag=$ac_c_werror_flag
  17766. ac_c_werror_flag=yes
  17767. ac_cv_prog_cc_g=no
  17768. CFLAGS="-g"
  17769. cat >conftest.$ac_ext <<_ACEOF
  17770. /* confdefs.h. */
  17771. _ACEOF
  17772. cat confdefs.h >>conftest.$ac_ext
  17773. cat >>conftest.$ac_ext <<_ACEOF
  17774. /* end confdefs.h. */
  17775. int
  17776. main ()
  17777. {
  17778. ;
  17779. return 0;
  17780. }
  17781. _ACEOF
  17782. rm -f conftest.$ac_objext
  17783. if { (ac_try="$ac_compile"
  17784. case "(($ac_try" in
  17785. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17786. *) ac_try_echo=$ac_try;;
  17787. esac
  17788. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17789. (eval "$ac_compile") 2>conftest.er1
  17790. ac_status=$?
  17791. grep -v '^ *+' conftest.er1 >conftest.err
  17792. rm -f conftest.er1
  17793. cat conftest.err >&5
  17794. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17795. (exit $ac_status); } && {
  17796. test -z "$ac_c_werror_flag" ||
  17797. test ! -s conftest.err
  17798. } && test -s conftest.$ac_objext; then
  17799. ac_cv_prog_cc_g=yes
  17800. else
  17801. echo "$as_me: failed program was:" >&5
  17802. sed 's/^/| /' conftest.$ac_ext >&5
  17803. CFLAGS=""
  17804. cat >conftest.$ac_ext <<_ACEOF
  17805. /* confdefs.h. */
  17806. _ACEOF
  17807. cat confdefs.h >>conftest.$ac_ext
  17808. cat >>conftest.$ac_ext <<_ACEOF
  17809. /* end confdefs.h. */
  17810. int
  17811. main ()
  17812. {
  17813. ;
  17814. return 0;
  17815. }
  17816. _ACEOF
  17817. rm -f conftest.$ac_objext
  17818. if { (ac_try="$ac_compile"
  17819. case "(($ac_try" in
  17820. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17821. *) ac_try_echo=$ac_try;;
  17822. esac
  17823. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17824. (eval "$ac_compile") 2>conftest.er1
  17825. ac_status=$?
  17826. grep -v '^ *+' conftest.er1 >conftest.err
  17827. rm -f conftest.er1
  17828. cat conftest.err >&5
  17829. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17830. (exit $ac_status); } && {
  17831. test -z "$ac_c_werror_flag" ||
  17832. test ! -s conftest.err
  17833. } && test -s conftest.$ac_objext; then
  17834. :
  17835. else
  17836. echo "$as_me: failed program was:" >&5
  17837. sed 's/^/| /' conftest.$ac_ext >&5
  17838. ac_c_werror_flag=$ac_save_c_werror_flag
  17839. CFLAGS="-g"
  17840. cat >conftest.$ac_ext <<_ACEOF
  17841. /* confdefs.h. */
  17842. _ACEOF
  17843. cat confdefs.h >>conftest.$ac_ext
  17844. cat >>conftest.$ac_ext <<_ACEOF
  17845. /* end confdefs.h. */
  17846. int
  17847. main ()
  17848. {
  17849. ;
  17850. return 0;
  17851. }
  17852. _ACEOF
  17853. rm -f conftest.$ac_objext
  17854. if { (ac_try="$ac_compile"
  17855. case "(($ac_try" in
  17856. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17857. *) ac_try_echo=$ac_try;;
  17858. esac
  17859. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17860. (eval "$ac_compile") 2>conftest.er1
  17861. ac_status=$?
  17862. grep -v '^ *+' conftest.er1 >conftest.err
  17863. rm -f conftest.er1
  17864. cat conftest.err >&5
  17865. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17866. (exit $ac_status); } && {
  17867. test -z "$ac_c_werror_flag" ||
  17868. test ! -s conftest.err
  17869. } && test -s conftest.$ac_objext; then
  17870. ac_cv_prog_cc_g=yes
  17871. else
  17872. echo "$as_me: failed program was:" >&5
  17873. sed 's/^/| /' conftest.$ac_ext >&5
  17874. fi
  17875. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17876. fi
  17877. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17878. fi
  17879. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17880. ac_c_werror_flag=$ac_save_c_werror_flag
  17881. fi
  17882. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  17883. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  17884. if test "$ac_test_CFLAGS" = set; then
  17885. CFLAGS=$ac_save_CFLAGS
  17886. elif test $ac_cv_prog_cc_g = yes; then
  17887. if test "$GCC" = yes; then
  17888. CFLAGS="-g -O2"
  17889. else
  17890. CFLAGS="-g"
  17891. fi
  17892. else
  17893. if test "$GCC" = yes; then
  17894. CFLAGS="-O2"
  17895. else
  17896. CFLAGS=
  17897. fi
  17898. fi
  17899. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  17900. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  17901. if test "${ac_cv_prog_cc_c89+set}" = set; then
  17902. echo $ECHO_N "(cached) $ECHO_C" >&6
  17903. else
  17904. ac_cv_prog_cc_c89=no
  17905. ac_save_CC=$CC
  17906. cat >conftest.$ac_ext <<_ACEOF
  17907. /* confdefs.h. */
  17908. _ACEOF
  17909. cat confdefs.h >>conftest.$ac_ext
  17910. cat >>conftest.$ac_ext <<_ACEOF
  17911. /* end confdefs.h. */
  17912. #include <stdarg.h>
  17913. #include <stdio.h>
  17914. #include <sys/types.h>
  17915. #include <sys/stat.h>
  17916. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  17917. struct buf { int x; };
  17918. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  17919. static char *e (p, i)
  17920. char **p;
  17921. int i;
  17922. {
  17923. return p[i];
  17924. }
  17925. static char *f (char * (*g) (char **, int), char **p, ...)
  17926. {
  17927. char *s;
  17928. va_list v;
  17929. va_start (v,p);
  17930. s = g (p, va_arg (v,int));
  17931. va_end (v);
  17932. return s;
  17933. }
  17934. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  17935. function prototypes and stuff, but not '\xHH' hex character constants.
  17936. These don't provoke an error unfortunately, instead are silently treated
  17937. as 'x'. The following induces an error, until -std is added to get
  17938. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  17939. array size at least. It's necessary to write '\x00'==0 to get something
  17940. that's true only with -std. */
  17941. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  17942. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  17943. inside strings and character constants. */
  17944. #define FOO(x) 'x'
  17945. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  17946. int test (int i, double x);
  17947. struct s1 {int (*f) (int a);};
  17948. struct s2 {int (*f) (double a);};
  17949. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  17950. int argc;
  17951. char **argv;
  17952. int
  17953. main ()
  17954. {
  17955. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  17956. ;
  17957. return 0;
  17958. }
  17959. _ACEOF
  17960. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  17961. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  17962. do
  17963. CC="$ac_save_CC $ac_arg"
  17964. rm -f conftest.$ac_objext
  17965. if { (ac_try="$ac_compile"
  17966. case "(($ac_try" in
  17967. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17968. *) ac_try_echo=$ac_try;;
  17969. esac
  17970. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17971. (eval "$ac_compile") 2>conftest.er1
  17972. ac_status=$?
  17973. grep -v '^ *+' conftest.er1 >conftest.err
  17974. rm -f conftest.er1
  17975. cat conftest.err >&5
  17976. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17977. (exit $ac_status); } && {
  17978. test -z "$ac_c_werror_flag" ||
  17979. test ! -s conftest.err
  17980. } && test -s conftest.$ac_objext; then
  17981. ac_cv_prog_cc_c89=$ac_arg
  17982. else
  17983. echo "$as_me: failed program was:" >&5
  17984. sed 's/^/| /' conftest.$ac_ext >&5
  17985. fi
  17986. rm -f core conftest.err conftest.$ac_objext
  17987. test "x$ac_cv_prog_cc_c89" != "xno" && break
  17988. done
  17989. rm -f conftest.$ac_ext
  17990. CC=$ac_save_CC
  17991. fi
  17992. # AC_CACHE_VAL
  17993. case "x$ac_cv_prog_cc_c89" in
  17994. x)
  17995. { echo "$as_me:$LINENO: result: none needed" >&5
  17996. echo "${ECHO_T}none needed" >&6; } ;;
  17997. xno)
  17998. { echo "$as_me:$LINENO: result: unsupported" >&5
  17999. echo "${ECHO_T}unsupported" >&6; } ;;
  18000. *)
  18001. CC="$CC $ac_cv_prog_cc_c89"
  18002. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  18003. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  18004. esac
  18005. ac_ext=c
  18006. ac_cpp='$CPP $CPPFLAGS'
  18007. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18008. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18009. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18010. depcc="$CC" am_compiler_list=
  18011. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  18012. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  18013. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  18014. echo $ECHO_N "(cached) $ECHO_C" >&6
  18015. else
  18016. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  18017. # We make a subdir and do the tests there. Otherwise we can end up
  18018. # making bogus files that we don't know about and never remove. For
  18019. # instance it was reported that on HP-UX the gcc test will end up
  18020. # making a dummy file named `D' -- because `-MD' means `put the output
  18021. # in D'.
  18022. mkdir conftest.dir
  18023. # Copy depcomp to subdir because otherwise we won't find it if we're
  18024. # using a relative directory.
  18025. cp "$am_depcomp" conftest.dir
  18026. cd conftest.dir
  18027. # We will build objects and dependencies in a subdirectory because
  18028. # it helps to detect inapplicable dependency modes. For instance
  18029. # both Tru64's cc and ICC support -MD to output dependencies as a
  18030. # side effect of compilation, but ICC will put the dependencies in
  18031. # the current directory while Tru64 will put them in the object
  18032. # directory.
  18033. mkdir sub
  18034. am_cv_CC_dependencies_compiler_type=none
  18035. if test "$am_compiler_list" = ""; then
  18036. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  18037. fi
  18038. for depmode in $am_compiler_list; do
  18039. # Setup a source with many dependencies, because some compilers
  18040. # like to wrap large dependency lists on column 80 (with \), and
  18041. # we should not choose a depcomp mode which is confused by this.
  18042. #
  18043. # We need to recreate these files for each test, as the compiler may
  18044. # overwrite some of them when testing with obscure command lines.
  18045. # This happens at least with the AIX C compiler.
  18046. : > sub/conftest.c
  18047. for i in 1 2 3 4 5 6; do
  18048. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  18049. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  18050. # Solaris 8's {/usr,}/bin/sh.
  18051. touch sub/conftst$i.h
  18052. done
  18053. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  18054. case $depmode in
  18055. nosideeffect)
  18056. # after this tag, mechanisms are not by side-effect, so they'll
  18057. # only be used when explicitly requested
  18058. if test "x$enable_dependency_tracking" = xyes; then
  18059. continue
  18060. else
  18061. break
  18062. fi
  18063. ;;
  18064. none) break ;;
  18065. esac
  18066. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  18067. # mode. It turns out that the SunPro C++ compiler does not properly
  18068. # handle `-M -o', and we need to detect this.
  18069. if depmode=$depmode \
  18070. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  18071. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  18072. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  18073. >/dev/null 2>conftest.err &&
  18074. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  18075. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  18076. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  18077. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  18078. # icc doesn't choke on unknown options, it will just issue warnings
  18079. # or remarks (even with -Werror). So we grep stderr for any message
  18080. # that says an option was ignored or not supported.
  18081. # When given -MP, icc 7.0 and 7.1 complain thusly:
  18082. # icc: Command line warning: ignoring option '-M'; no argument required
  18083. # The diagnosis changed in icc 8.0:
  18084. # icc: Command line remark: option '-MP' not supported
  18085. if (grep 'ignoring option' conftest.err ||
  18086. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  18087. am_cv_CC_dependencies_compiler_type=$depmode
  18088. break
  18089. fi
  18090. fi
  18091. done
  18092. cd ..
  18093. rm -rf conftest.dir
  18094. else
  18095. am_cv_CC_dependencies_compiler_type=none
  18096. fi
  18097. fi
  18098. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  18099. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  18100. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  18101. if
  18102. test "x$enable_dependency_tracking" != xno \
  18103. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  18104. am__fastdepCC_TRUE=
  18105. am__fastdepCC_FALSE='#'
  18106. else
  18107. am__fastdepCC_TRUE='#'
  18108. am__fastdepCC_FALSE=
  18109. fi
  18110. case $ac_cv_prog_cc_stdc in
  18111. no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
  18112. *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
  18113. echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
  18114. if test "${ac_cv_prog_cc_c99+set}" = set; then
  18115. echo $ECHO_N "(cached) $ECHO_C" >&6
  18116. else
  18117. ac_cv_prog_cc_c99=no
  18118. ac_save_CC=$CC
  18119. cat >conftest.$ac_ext <<_ACEOF
  18120. /* confdefs.h. */
  18121. _ACEOF
  18122. cat confdefs.h >>conftest.$ac_ext
  18123. cat >>conftest.$ac_ext <<_ACEOF
  18124. /* end confdefs.h. */
  18125. #include <stdarg.h>
  18126. #include <stdbool.h>
  18127. #include <stdlib.h>
  18128. #include <wchar.h>
  18129. #include <stdio.h>
  18130. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  18131. #define debug(...) fprintf (stderr, __VA_ARGS__)
  18132. #define showlist(...) puts (#__VA_ARGS__)
  18133. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  18134. static void
  18135. test_varargs_macros (void)
  18136. {
  18137. int x = 1234;
  18138. int y = 5678;
  18139. debug ("Flag");
  18140. debug ("X = %d\n", x);
  18141. showlist (The first, second, and third items.);
  18142. report (x>y, "x is %d but y is %d", x, y);
  18143. }
  18144. // Check long long types.
  18145. #define BIG64 18446744073709551615ull
  18146. #define BIG32 4294967295ul
  18147. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  18148. #if !BIG_OK
  18149. your preprocessor is broken;
  18150. #endif
  18151. #if BIG_OK
  18152. #else
  18153. your preprocessor is broken;
  18154. #endif
  18155. static long long int bignum = -9223372036854775807LL;
  18156. static unsigned long long int ubignum = BIG64;
  18157. struct incomplete_array
  18158. {
  18159. int datasize;
  18160. double data[];
  18161. };
  18162. struct named_init {
  18163. int number;
  18164. const wchar_t *name;
  18165. double average;
  18166. };
  18167. typedef const char *ccp;
  18168. static inline int
  18169. test_restrict (ccp restrict text)
  18170. {
  18171. // See if C++-style comments work.
  18172. // Iterate through items via the restricted pointer.
  18173. // Also check for declarations in for loops.
  18174. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  18175. continue;
  18176. return 0;
  18177. }
  18178. // Check varargs and va_copy.
  18179. static void
  18180. test_varargs (const char *format, ...)
  18181. {
  18182. va_list args;
  18183. va_start (args, format);
  18184. va_list args_copy;
  18185. va_copy (args_copy, args);
  18186. const char *str;
  18187. int number;
  18188. float fnumber;
  18189. while (*format)
  18190. {
  18191. switch (*format++)
  18192. {
  18193. case 's': // string
  18194. str = va_arg (args_copy, const char *);
  18195. break;
  18196. case 'd': // int
  18197. number = va_arg (args_copy, int);
  18198. break;
  18199. case 'f': // float
  18200. fnumber = va_arg (args_copy, double);
  18201. break;
  18202. default:
  18203. break;
  18204. }
  18205. }
  18206. va_end (args_copy);
  18207. va_end (args);
  18208. }
  18209. int
  18210. main ()
  18211. {
  18212. // Check bool.
  18213. _Bool success = false;
  18214. // Check restrict.
  18215. if (test_restrict ("String literal") == 0)
  18216. success = true;
  18217. char *restrict newvar = "Another string";
  18218. // Check varargs.
  18219. test_varargs ("s, d' f .", "string", 65, 34.234);
  18220. test_varargs_macros ();
  18221. // Check flexible array members.
  18222. struct incomplete_array *ia =
  18223. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  18224. ia->datasize = 10;
  18225. for (int i = 0; i < ia->datasize; ++i)
  18226. ia->data[i] = i * 1.234;
  18227. // Check named initializers.
  18228. struct named_init ni = {
  18229. .number = 34,
  18230. .name = L"Test wide string",
  18231. .average = 543.34343,
  18232. };
  18233. ni.number = 58;
  18234. int dynamic_array[ni.number];
  18235. dynamic_array[ni.number - 1] = 543;
  18236. // work around unused variable warnings
  18237. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  18238. || dynamic_array[ni.number - 1] != 543);
  18239. ;
  18240. return 0;
  18241. }
  18242. _ACEOF
  18243. for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
  18244. do
  18245. CC="$ac_save_CC $ac_arg"
  18246. rm -f conftest.$ac_objext
  18247. if { (ac_try="$ac_compile"
  18248. case "(($ac_try" in
  18249. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18250. *) ac_try_echo=$ac_try;;
  18251. esac
  18252. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18253. (eval "$ac_compile") 2>conftest.er1
  18254. ac_status=$?
  18255. grep -v '^ *+' conftest.er1 >conftest.err
  18256. rm -f conftest.er1
  18257. cat conftest.err >&5
  18258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18259. (exit $ac_status); } && {
  18260. test -z "$ac_c_werror_flag" ||
  18261. test ! -s conftest.err
  18262. } && test -s conftest.$ac_objext; then
  18263. ac_cv_prog_cc_c99=$ac_arg
  18264. else
  18265. echo "$as_me: failed program was:" >&5
  18266. sed 's/^/| /' conftest.$ac_ext >&5
  18267. fi
  18268. rm -f core conftest.err conftest.$ac_objext
  18269. test "x$ac_cv_prog_cc_c99" != "xno" && break
  18270. done
  18271. rm -f conftest.$ac_ext
  18272. CC=$ac_save_CC
  18273. fi
  18274. # AC_CACHE_VAL
  18275. case "x$ac_cv_prog_cc_c99" in
  18276. x)
  18277. { echo "$as_me:$LINENO: result: none needed" >&5
  18278. echo "${ECHO_T}none needed" >&6; } ;;
  18279. xno)
  18280. { echo "$as_me:$LINENO: result: unsupported" >&5
  18281. echo "${ECHO_T}unsupported" >&6; } ;;
  18282. *)
  18283. CC="$CC $ac_cv_prog_cc_c99"
  18284. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
  18285. echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
  18286. esac
  18287. if test "x$ac_cv_prog_cc_c99" != xno; then
  18288. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  18289. else
  18290. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  18291. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  18292. if test "${ac_cv_prog_cc_c89+set}" = set; then
  18293. echo $ECHO_N "(cached) $ECHO_C" >&6
  18294. else
  18295. ac_cv_prog_cc_c89=no
  18296. ac_save_CC=$CC
  18297. cat >conftest.$ac_ext <<_ACEOF
  18298. /* confdefs.h. */
  18299. _ACEOF
  18300. cat confdefs.h >>conftest.$ac_ext
  18301. cat >>conftest.$ac_ext <<_ACEOF
  18302. /* end confdefs.h. */
  18303. #include <stdarg.h>
  18304. #include <stdio.h>
  18305. #include <sys/types.h>
  18306. #include <sys/stat.h>
  18307. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  18308. struct buf { int x; };
  18309. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  18310. static char *e (p, i)
  18311. char **p;
  18312. int i;
  18313. {
  18314. return p[i];
  18315. }
  18316. static char *f (char * (*g) (char **, int), char **p, ...)
  18317. {
  18318. char *s;
  18319. va_list v;
  18320. va_start (v,p);
  18321. s = g (p, va_arg (v,int));
  18322. va_end (v);
  18323. return s;
  18324. }
  18325. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  18326. function prototypes and stuff, but not '\xHH' hex character constants.
  18327. These don't provoke an error unfortunately, instead are silently treated
  18328. as 'x'. The following induces an error, until -std is added to get
  18329. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  18330. array size at least. It's necessary to write '\x00'==0 to get something
  18331. that's true only with -std. */
  18332. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  18333. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  18334. inside strings and character constants. */
  18335. #define FOO(x) 'x'
  18336. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  18337. int test (int i, double x);
  18338. struct s1 {int (*f) (int a);};
  18339. struct s2 {int (*f) (double a);};
  18340. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  18341. int argc;
  18342. char **argv;
  18343. int
  18344. main ()
  18345. {
  18346. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  18347. ;
  18348. return 0;
  18349. }
  18350. _ACEOF
  18351. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  18352. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  18353. do
  18354. CC="$ac_save_CC $ac_arg"
  18355. rm -f conftest.$ac_objext
  18356. if { (ac_try="$ac_compile"
  18357. case "(($ac_try" in
  18358. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18359. *) ac_try_echo=$ac_try;;
  18360. esac
  18361. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18362. (eval "$ac_compile") 2>conftest.er1
  18363. ac_status=$?
  18364. grep -v '^ *+' conftest.er1 >conftest.err
  18365. rm -f conftest.er1
  18366. cat conftest.err >&5
  18367. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18368. (exit $ac_status); } && {
  18369. test -z "$ac_c_werror_flag" ||
  18370. test ! -s conftest.err
  18371. } && test -s conftest.$ac_objext; then
  18372. ac_cv_prog_cc_c89=$ac_arg
  18373. else
  18374. echo "$as_me: failed program was:" >&5
  18375. sed 's/^/| /' conftest.$ac_ext >&5
  18376. fi
  18377. rm -f core conftest.err conftest.$ac_objext
  18378. test "x$ac_cv_prog_cc_c89" != "xno" && break
  18379. done
  18380. rm -f conftest.$ac_ext
  18381. CC=$ac_save_CC
  18382. fi
  18383. # AC_CACHE_VAL
  18384. case "x$ac_cv_prog_cc_c89" in
  18385. x)
  18386. { echo "$as_me:$LINENO: result: none needed" >&5
  18387. echo "${ECHO_T}none needed" >&6; } ;;
  18388. xno)
  18389. { echo "$as_me:$LINENO: result: unsupported" >&5
  18390. echo "${ECHO_T}unsupported" >&6; } ;;
  18391. *)
  18392. CC="$CC $ac_cv_prog_cc_c89"
  18393. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  18394. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  18395. esac
  18396. if test "x$ac_cv_prog_cc_c89" != xno; then
  18397. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  18398. else
  18399. ac_cv_prog_cc_stdc=no
  18400. fi
  18401. fi
  18402. ;;
  18403. esac
  18404. { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
  18405. echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
  18406. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  18407. echo $ECHO_N "(cached) $ECHO_C" >&6
  18408. fi
  18409. case $ac_cv_prog_cc_stdc in
  18410. no) { echo "$as_me:$LINENO: result: unsupported" >&5
  18411. echo "${ECHO_T}unsupported" >&6; } ;;
  18412. '') { echo "$as_me:$LINENO: result: none needed" >&5
  18413. echo "${ECHO_T}none needed" >&6; } ;;
  18414. *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  18415. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
  18416. esac
  18417. ac_ext=cpp
  18418. ac_cpp='$CXXCPP $CPPFLAGS'
  18419. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18420. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18421. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  18422. if test -z "$CXX"; then
  18423. if test -n "$CCC"; then
  18424. CXX=$CCC
  18425. else
  18426. if test -n "$ac_tool_prefix"; then
  18427. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  18428. do
  18429. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  18430. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  18431. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  18432. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  18433. if test "${ac_cv_prog_CXX+set}" = set; then
  18434. echo $ECHO_N "(cached) $ECHO_C" >&6
  18435. else
  18436. if test -n "$CXX"; then
  18437. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  18438. else
  18439. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18440. for as_dir in $PATH
  18441. do
  18442. IFS=$as_save_IFS
  18443. test -z "$as_dir" && as_dir=.
  18444. for ac_exec_ext in '' $ac_executable_extensions; do
  18445. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18446. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  18447. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18448. break 2
  18449. fi
  18450. done
  18451. done
  18452. IFS=$as_save_IFS
  18453. fi
  18454. fi
  18455. CXX=$ac_cv_prog_CXX
  18456. if test -n "$CXX"; then
  18457. { echo "$as_me:$LINENO: result: $CXX" >&5
  18458. echo "${ECHO_T}$CXX" >&6; }
  18459. else
  18460. { echo "$as_me:$LINENO: result: no" >&5
  18461. echo "${ECHO_T}no" >&6; }
  18462. fi
  18463. test -n "$CXX" && break
  18464. done
  18465. fi
  18466. if test -z "$CXX"; then
  18467. ac_ct_CXX=$CXX
  18468. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  18469. do
  18470. # Extract the first word of "$ac_prog", so it can be a program name with args.
  18471. set dummy $ac_prog; ac_word=$2
  18472. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  18473. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  18474. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  18475. echo $ECHO_N "(cached) $ECHO_C" >&6
  18476. else
  18477. if test -n "$ac_ct_CXX"; then
  18478. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  18479. else
  18480. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18481. for as_dir in $PATH
  18482. do
  18483. IFS=$as_save_IFS
  18484. test -z "$as_dir" && as_dir=.
  18485. for ac_exec_ext in '' $ac_executable_extensions; do
  18486. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18487. ac_cv_prog_ac_ct_CXX="$ac_prog"
  18488. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18489. break 2
  18490. fi
  18491. done
  18492. done
  18493. IFS=$as_save_IFS
  18494. fi
  18495. fi
  18496. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  18497. if test -n "$ac_ct_CXX"; then
  18498. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  18499. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  18500. else
  18501. { echo "$as_me:$LINENO: result: no" >&5
  18502. echo "${ECHO_T}no" >&6; }
  18503. fi
  18504. test -n "$ac_ct_CXX" && break
  18505. done
  18506. if test "x$ac_ct_CXX" = x; then
  18507. CXX="g++"
  18508. else
  18509. case $cross_compiling:$ac_tool_warned in
  18510. yes:)
  18511. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  18512. whose name does not start with the host triplet. If you think this
  18513. configuration is useful to you, please write to autoconf@gnu.org." >&5
  18514. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  18515. whose name does not start with the host triplet. If you think this
  18516. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  18517. ac_tool_warned=yes ;;
  18518. esac
  18519. CXX=$ac_ct_CXX
  18520. fi
  18521. fi
  18522. fi
  18523. fi
  18524. # Provide some information about the compiler.
  18525. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  18526. ac_compiler=`set X $ac_compile; echo $2`
  18527. { (ac_try="$ac_compiler --version >&5"
  18528. case "(($ac_try" in
  18529. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18530. *) ac_try_echo=$ac_try;;
  18531. esac
  18532. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18533. (eval "$ac_compiler --version >&5") 2>&5
  18534. ac_status=$?
  18535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18536. (exit $ac_status); }
  18537. { (ac_try="$ac_compiler -v >&5"
  18538. case "(($ac_try" in
  18539. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18540. *) ac_try_echo=$ac_try;;
  18541. esac
  18542. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18543. (eval "$ac_compiler -v >&5") 2>&5
  18544. ac_status=$?
  18545. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18546. (exit $ac_status); }
  18547. { (ac_try="$ac_compiler -V >&5"
  18548. case "(($ac_try" in
  18549. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18550. *) ac_try_echo=$ac_try;;
  18551. esac
  18552. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18553. (eval "$ac_compiler -V >&5") 2>&5
  18554. ac_status=$?
  18555. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18556. (exit $ac_status); }
  18557. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  18558. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  18559. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  18560. echo $ECHO_N "(cached) $ECHO_C" >&6
  18561. else
  18562. cat >conftest.$ac_ext <<_ACEOF
  18563. /* confdefs.h. */
  18564. _ACEOF
  18565. cat confdefs.h >>conftest.$ac_ext
  18566. cat >>conftest.$ac_ext <<_ACEOF
  18567. /* end confdefs.h. */
  18568. int
  18569. main ()
  18570. {
  18571. #ifndef __GNUC__
  18572. choke me
  18573. #endif
  18574. ;
  18575. return 0;
  18576. }
  18577. _ACEOF
  18578. rm -f conftest.$ac_objext
  18579. if { (ac_try="$ac_compile"
  18580. case "(($ac_try" in
  18581. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18582. *) ac_try_echo=$ac_try;;
  18583. esac
  18584. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18585. (eval "$ac_compile") 2>conftest.er1
  18586. ac_status=$?
  18587. grep -v '^ *+' conftest.er1 >conftest.err
  18588. rm -f conftest.er1
  18589. cat conftest.err >&5
  18590. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18591. (exit $ac_status); } && {
  18592. test -z "$ac_cxx_werror_flag" ||
  18593. test ! -s conftest.err
  18594. } && test -s conftest.$ac_objext; then
  18595. ac_compiler_gnu=yes
  18596. else
  18597. echo "$as_me: failed program was:" >&5
  18598. sed 's/^/| /' conftest.$ac_ext >&5
  18599. ac_compiler_gnu=no
  18600. fi
  18601. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18602. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  18603. fi
  18604. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  18605. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  18606. GXX=`test $ac_compiler_gnu = yes && echo yes`
  18607. ac_test_CXXFLAGS=${CXXFLAGS+set}
  18608. ac_save_CXXFLAGS=$CXXFLAGS
  18609. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  18610. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  18611. if test "${ac_cv_prog_cxx_g+set}" = set; then
  18612. echo $ECHO_N "(cached) $ECHO_C" >&6
  18613. else
  18614. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  18615. ac_cxx_werror_flag=yes
  18616. ac_cv_prog_cxx_g=no
  18617. CXXFLAGS="-g"
  18618. cat >conftest.$ac_ext <<_ACEOF
  18619. /* confdefs.h. */
  18620. _ACEOF
  18621. cat confdefs.h >>conftest.$ac_ext
  18622. cat >>conftest.$ac_ext <<_ACEOF
  18623. /* end confdefs.h. */
  18624. int
  18625. main ()
  18626. {
  18627. ;
  18628. return 0;
  18629. }
  18630. _ACEOF
  18631. rm -f conftest.$ac_objext
  18632. if { (ac_try="$ac_compile"
  18633. case "(($ac_try" in
  18634. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18635. *) ac_try_echo=$ac_try;;
  18636. esac
  18637. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18638. (eval "$ac_compile") 2>conftest.er1
  18639. ac_status=$?
  18640. grep -v '^ *+' conftest.er1 >conftest.err
  18641. rm -f conftest.er1
  18642. cat conftest.err >&5
  18643. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18644. (exit $ac_status); } && {
  18645. test -z "$ac_cxx_werror_flag" ||
  18646. test ! -s conftest.err
  18647. } && test -s conftest.$ac_objext; then
  18648. ac_cv_prog_cxx_g=yes
  18649. else
  18650. echo "$as_me: failed program was:" >&5
  18651. sed 's/^/| /' conftest.$ac_ext >&5
  18652. CXXFLAGS=""
  18653. cat >conftest.$ac_ext <<_ACEOF
  18654. /* confdefs.h. */
  18655. _ACEOF
  18656. cat confdefs.h >>conftest.$ac_ext
  18657. cat >>conftest.$ac_ext <<_ACEOF
  18658. /* end confdefs.h. */
  18659. int
  18660. main ()
  18661. {
  18662. ;
  18663. return 0;
  18664. }
  18665. _ACEOF
  18666. rm -f conftest.$ac_objext
  18667. if { (ac_try="$ac_compile"
  18668. case "(($ac_try" in
  18669. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18670. *) ac_try_echo=$ac_try;;
  18671. esac
  18672. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18673. (eval "$ac_compile") 2>conftest.er1
  18674. ac_status=$?
  18675. grep -v '^ *+' conftest.er1 >conftest.err
  18676. rm -f conftest.er1
  18677. cat conftest.err >&5
  18678. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18679. (exit $ac_status); } && {
  18680. test -z "$ac_cxx_werror_flag" ||
  18681. test ! -s conftest.err
  18682. } && test -s conftest.$ac_objext; then
  18683. :
  18684. else
  18685. echo "$as_me: failed program was:" >&5
  18686. sed 's/^/| /' conftest.$ac_ext >&5
  18687. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  18688. CXXFLAGS="-g"
  18689. cat >conftest.$ac_ext <<_ACEOF
  18690. /* confdefs.h. */
  18691. _ACEOF
  18692. cat confdefs.h >>conftest.$ac_ext
  18693. cat >>conftest.$ac_ext <<_ACEOF
  18694. /* end confdefs.h. */
  18695. int
  18696. main ()
  18697. {
  18698. ;
  18699. return 0;
  18700. }
  18701. _ACEOF
  18702. rm -f conftest.$ac_objext
  18703. if { (ac_try="$ac_compile"
  18704. case "(($ac_try" in
  18705. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18706. *) ac_try_echo=$ac_try;;
  18707. esac
  18708. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18709. (eval "$ac_compile") 2>conftest.er1
  18710. ac_status=$?
  18711. grep -v '^ *+' conftest.er1 >conftest.err
  18712. rm -f conftest.er1
  18713. cat conftest.err >&5
  18714. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18715. (exit $ac_status); } && {
  18716. test -z "$ac_cxx_werror_flag" ||
  18717. test ! -s conftest.err
  18718. } && test -s conftest.$ac_objext; then
  18719. ac_cv_prog_cxx_g=yes
  18720. else
  18721. echo "$as_me: failed program was:" >&5
  18722. sed 's/^/| /' conftest.$ac_ext >&5
  18723. fi
  18724. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18725. fi
  18726. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18727. fi
  18728. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18729. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  18730. fi
  18731. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  18732. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  18733. if test "$ac_test_CXXFLAGS" = set; then
  18734. CXXFLAGS=$ac_save_CXXFLAGS
  18735. elif test $ac_cv_prog_cxx_g = yes; then
  18736. if test "$GXX" = yes; then
  18737. CXXFLAGS="-g -O2"
  18738. else
  18739. CXXFLAGS="-g"
  18740. fi
  18741. else
  18742. if test "$GXX" = yes; then
  18743. CXXFLAGS="-O2"
  18744. else
  18745. CXXFLAGS=
  18746. fi
  18747. fi
  18748. ac_ext=c
  18749. ac_cpp='$CPP $CPPFLAGS'
  18750. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18751. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18752. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18753. depcc="$CXX" am_compiler_list=
  18754. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  18755. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  18756. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  18757. echo $ECHO_N "(cached) $ECHO_C" >&6
  18758. else
  18759. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  18760. # We make a subdir and do the tests there. Otherwise we can end up
  18761. # making bogus files that we don't know about and never remove. For
  18762. # instance it was reported that on HP-UX the gcc test will end up
  18763. # making a dummy file named `D' -- because `-MD' means `put the output
  18764. # in D'.
  18765. mkdir conftest.dir
  18766. # Copy depcomp to subdir because otherwise we won't find it if we're
  18767. # using a relative directory.
  18768. cp "$am_depcomp" conftest.dir
  18769. cd conftest.dir
  18770. # We will build objects and dependencies in a subdirectory because
  18771. # it helps to detect inapplicable dependency modes. For instance
  18772. # both Tru64's cc and ICC support -MD to output dependencies as a
  18773. # side effect of compilation, but ICC will put the dependencies in
  18774. # the current directory while Tru64 will put them in the object
  18775. # directory.
  18776. mkdir sub
  18777. am_cv_CXX_dependencies_compiler_type=none
  18778. if test "$am_compiler_list" = ""; then
  18779. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  18780. fi
  18781. for depmode in $am_compiler_list; do
  18782. # Setup a source with many dependencies, because some compilers
  18783. # like to wrap large dependency lists on column 80 (with \), and
  18784. # we should not choose a depcomp mode which is confused by this.
  18785. #
  18786. # We need to recreate these files for each test, as the compiler may
  18787. # overwrite some of them when testing with obscure command lines.
  18788. # This happens at least with the AIX C compiler.
  18789. : > sub/conftest.c
  18790. for i in 1 2 3 4 5 6; do
  18791. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  18792. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  18793. # Solaris 8's {/usr,}/bin/sh.
  18794. touch sub/conftst$i.h
  18795. done
  18796. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  18797. case $depmode in
  18798. nosideeffect)
  18799. # after this tag, mechanisms are not by side-effect, so they'll
  18800. # only be used when explicitly requested
  18801. if test "x$enable_dependency_tracking" = xyes; then
  18802. continue
  18803. else
  18804. break
  18805. fi
  18806. ;;
  18807. none) break ;;
  18808. esac
  18809. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  18810. # mode. It turns out that the SunPro C++ compiler does not properly
  18811. # handle `-M -o', and we need to detect this.
  18812. if depmode=$depmode \
  18813. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  18814. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  18815. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  18816. >/dev/null 2>conftest.err &&
  18817. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  18818. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  18819. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  18820. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  18821. # icc doesn't choke on unknown options, it will just issue warnings
  18822. # or remarks (even with -Werror). So we grep stderr for any message
  18823. # that says an option was ignored or not supported.
  18824. # When given -MP, icc 7.0 and 7.1 complain thusly:
  18825. # icc: Command line warning: ignoring option '-M'; no argument required
  18826. # The diagnosis changed in icc 8.0:
  18827. # icc: Command line remark: option '-MP' not supported
  18828. if (grep 'ignoring option' conftest.err ||
  18829. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  18830. am_cv_CXX_dependencies_compiler_type=$depmode
  18831. break
  18832. fi
  18833. fi
  18834. done
  18835. cd ..
  18836. rm -rf conftest.dir
  18837. else
  18838. am_cv_CXX_dependencies_compiler_type=none
  18839. fi
  18840. fi
  18841. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  18842. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  18843. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  18844. if
  18845. test "x$enable_dependency_tracking" != xno \
  18846. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  18847. am__fastdepCXX_TRUE=
  18848. am__fastdepCXX_FALSE='#'
  18849. else
  18850. am__fastdepCXX_TRUE='#'
  18851. am__fastdepCXX_FALSE=
  18852. fi
  18853. ac_ext=c
  18854. ac_cpp='$CPP $CPPFLAGS'
  18855. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18856. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18857. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18858. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  18859. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  18860. # On Suns, sometimes $CPP names a directory.
  18861. if test -n "$CPP" && test -d "$CPP"; then
  18862. CPP=
  18863. fi
  18864. if test -z "$CPP"; then
  18865. if test "${ac_cv_prog_CPP+set}" = set; then
  18866. echo $ECHO_N "(cached) $ECHO_C" >&6
  18867. else
  18868. # Double quotes because CPP needs to be expanded
  18869. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  18870. do
  18871. ac_preproc_ok=false
  18872. for ac_c_preproc_warn_flag in '' yes
  18873. do
  18874. # Use a header file that comes with gcc, so configuring glibc
  18875. # with a fresh cross-compiler works.
  18876. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18877. # <limits.h> exists even on freestanding compilers.
  18878. # On the NeXT, cc -E runs the code through the compiler's parser,
  18879. # not just through cpp. "Syntax error" is here to catch this case.
  18880. cat >conftest.$ac_ext <<_ACEOF
  18881. /* confdefs.h. */
  18882. _ACEOF
  18883. cat confdefs.h >>conftest.$ac_ext
  18884. cat >>conftest.$ac_ext <<_ACEOF
  18885. /* end confdefs.h. */
  18886. #ifdef __STDC__
  18887. # include <limits.h>
  18888. #else
  18889. # include <assert.h>
  18890. #endif
  18891. Syntax error
  18892. _ACEOF
  18893. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18894. case "(($ac_try" in
  18895. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18896. *) ac_try_echo=$ac_try;;
  18897. esac
  18898. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18899. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18900. ac_status=$?
  18901. grep -v '^ *+' conftest.er1 >conftest.err
  18902. rm -f conftest.er1
  18903. cat conftest.err >&5
  18904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18905. (exit $ac_status); } >/dev/null && {
  18906. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18907. test ! -s conftest.err
  18908. }; then
  18909. :
  18910. else
  18911. echo "$as_me: failed program was:" >&5
  18912. sed 's/^/| /' conftest.$ac_ext >&5
  18913. # Broken: fails on valid input.
  18914. continue
  18915. fi
  18916. rm -f conftest.err conftest.$ac_ext
  18917. # OK, works on sane cases. Now check whether nonexistent headers
  18918. # can be detected and how.
  18919. cat >conftest.$ac_ext <<_ACEOF
  18920. /* confdefs.h. */
  18921. _ACEOF
  18922. cat confdefs.h >>conftest.$ac_ext
  18923. cat >>conftest.$ac_ext <<_ACEOF
  18924. /* end confdefs.h. */
  18925. #include <ac_nonexistent.h>
  18926. _ACEOF
  18927. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18928. case "(($ac_try" in
  18929. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18930. *) ac_try_echo=$ac_try;;
  18931. esac
  18932. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18933. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18934. ac_status=$?
  18935. grep -v '^ *+' conftest.er1 >conftest.err
  18936. rm -f conftest.er1
  18937. cat conftest.err >&5
  18938. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18939. (exit $ac_status); } >/dev/null && {
  18940. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18941. test ! -s conftest.err
  18942. }; then
  18943. # Broken: success on invalid input.
  18944. continue
  18945. else
  18946. echo "$as_me: failed program was:" >&5
  18947. sed 's/^/| /' conftest.$ac_ext >&5
  18948. # Passes both tests.
  18949. ac_preproc_ok=:
  18950. break
  18951. fi
  18952. rm -f conftest.err conftest.$ac_ext
  18953. done
  18954. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  18955. rm -f conftest.err conftest.$ac_ext
  18956. if $ac_preproc_ok; then
  18957. break
  18958. fi
  18959. done
  18960. ac_cv_prog_CPP=$CPP
  18961. fi
  18962. CPP=$ac_cv_prog_CPP
  18963. else
  18964. ac_cv_prog_CPP=$CPP
  18965. fi
  18966. { echo "$as_me:$LINENO: result: $CPP" >&5
  18967. echo "${ECHO_T}$CPP" >&6; }
  18968. ac_preproc_ok=false
  18969. for ac_c_preproc_warn_flag in '' yes
  18970. do
  18971. # Use a header file that comes with gcc, so configuring glibc
  18972. # with a fresh cross-compiler works.
  18973. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18974. # <limits.h> exists even on freestanding compilers.
  18975. # On the NeXT, cc -E runs the code through the compiler's parser,
  18976. # not just through cpp. "Syntax error" is here to catch this case.
  18977. cat >conftest.$ac_ext <<_ACEOF
  18978. /* confdefs.h. */
  18979. _ACEOF
  18980. cat confdefs.h >>conftest.$ac_ext
  18981. cat >>conftest.$ac_ext <<_ACEOF
  18982. /* end confdefs.h. */
  18983. #ifdef __STDC__
  18984. # include <limits.h>
  18985. #else
  18986. # include <assert.h>
  18987. #endif
  18988. Syntax error
  18989. _ACEOF
  18990. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18991. case "(($ac_try" in
  18992. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18993. *) ac_try_echo=$ac_try;;
  18994. esac
  18995. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18996. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18997. ac_status=$?
  18998. grep -v '^ *+' conftest.er1 >conftest.err
  18999. rm -f conftest.er1
  19000. cat conftest.err >&5
  19001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19002. (exit $ac_status); } >/dev/null && {
  19003. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19004. test ! -s conftest.err
  19005. }; then
  19006. :
  19007. else
  19008. echo "$as_me: failed program was:" >&5
  19009. sed 's/^/| /' conftest.$ac_ext >&5
  19010. # Broken: fails on valid input.
  19011. continue
  19012. fi
  19013. rm -f conftest.err conftest.$ac_ext
  19014. # OK, works on sane cases. Now check whether nonexistent headers
  19015. # can be detected and how.
  19016. cat >conftest.$ac_ext <<_ACEOF
  19017. /* confdefs.h. */
  19018. _ACEOF
  19019. cat confdefs.h >>conftest.$ac_ext
  19020. cat >>conftest.$ac_ext <<_ACEOF
  19021. /* end confdefs.h. */
  19022. #include <ac_nonexistent.h>
  19023. _ACEOF
  19024. if { (ac_try="$ac_cpp conftest.$ac_ext"
  19025. case "(($ac_try" in
  19026. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19027. *) ac_try_echo=$ac_try;;
  19028. esac
  19029. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19030. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19031. ac_status=$?
  19032. grep -v '^ *+' conftest.er1 >conftest.err
  19033. rm -f conftest.er1
  19034. cat conftest.err >&5
  19035. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19036. (exit $ac_status); } >/dev/null && {
  19037. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19038. test ! -s conftest.err
  19039. }; then
  19040. # Broken: success on invalid input.
  19041. continue
  19042. else
  19043. echo "$as_me: failed program was:" >&5
  19044. sed 's/^/| /' conftest.$ac_ext >&5
  19045. # Passes both tests.
  19046. ac_preproc_ok=:
  19047. break
  19048. fi
  19049. rm -f conftest.err conftest.$ac_ext
  19050. done
  19051. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  19052. rm -f conftest.err conftest.$ac_ext
  19053. if $ac_preproc_ok; then
  19054. :
  19055. else
  19056. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  19057. See \`config.log' for more details." >&5
  19058. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  19059. See \`config.log' for more details." >&2;}
  19060. { (exit 1); exit 1; }; }
  19061. fi
  19062. ac_ext=c
  19063. ac_cpp='$CPP $CPPFLAGS'
  19064. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19065. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19066. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19067. { echo "$as_me:$LINENO: checking whether ln -s works" >&5
  19068. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  19069. LN_S=$as_ln_s
  19070. if test "$LN_S" = "ln -s"; then
  19071. { echo "$as_me:$LINENO: result: yes" >&5
  19072. echo "${ECHO_T}yes" >&6; }
  19073. else
  19074. { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  19075. echo "${ECHO_T}no, using $LN_S" >&6; }
  19076. fi
  19077. if test -n "$ac_tool_prefix"; then
  19078. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  19079. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  19080. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  19081. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19082. if test "${ac_cv_prog_RANLIB+set}" = set; then
  19083. echo $ECHO_N "(cached) $ECHO_C" >&6
  19084. else
  19085. if test -n "$RANLIB"; then
  19086. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  19087. else
  19088. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19089. for as_dir in $PATH
  19090. do
  19091. IFS=$as_save_IFS
  19092. test -z "$as_dir" && as_dir=.
  19093. for ac_exec_ext in '' $ac_executable_extensions; do
  19094. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19095. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  19096. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19097. break 2
  19098. fi
  19099. done
  19100. done
  19101. IFS=$as_save_IFS
  19102. fi
  19103. fi
  19104. RANLIB=$ac_cv_prog_RANLIB
  19105. if test -n "$RANLIB"; then
  19106. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  19107. echo "${ECHO_T}$RANLIB" >&6; }
  19108. else
  19109. { echo "$as_me:$LINENO: result: no" >&5
  19110. echo "${ECHO_T}no" >&6; }
  19111. fi
  19112. fi
  19113. if test -z "$ac_cv_prog_RANLIB"; then
  19114. ac_ct_RANLIB=$RANLIB
  19115. # Extract the first word of "ranlib", so it can be a program name with args.
  19116. set dummy ranlib; ac_word=$2
  19117. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  19118. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19119. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  19120. echo $ECHO_N "(cached) $ECHO_C" >&6
  19121. else
  19122. if test -n "$ac_ct_RANLIB"; then
  19123. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  19124. else
  19125. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19126. for as_dir in $PATH
  19127. do
  19128. IFS=$as_save_IFS
  19129. test -z "$as_dir" && as_dir=.
  19130. for ac_exec_ext in '' $ac_executable_extensions; do
  19131. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19132. ac_cv_prog_ac_ct_RANLIB="ranlib"
  19133. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19134. break 2
  19135. fi
  19136. done
  19137. done
  19138. IFS=$as_save_IFS
  19139. fi
  19140. fi
  19141. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  19142. if test -n "$ac_ct_RANLIB"; then
  19143. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  19144. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  19145. else
  19146. { echo "$as_me:$LINENO: result: no" >&5
  19147. echo "${ECHO_T}no" >&6; }
  19148. fi
  19149. if test "x$ac_ct_RANLIB" = x; then
  19150. RANLIB=":"
  19151. else
  19152. case $cross_compiling:$ac_tool_warned in
  19153. yes:)
  19154. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  19155. whose name does not start with the host triplet. If you think this
  19156. configuration is useful to you, please write to autoconf@gnu.org." >&5
  19157. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  19158. whose name does not start with the host triplet. If you think this
  19159. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  19160. ac_tool_warned=yes ;;
  19161. esac
  19162. RANLIB=$ac_ct_RANLIB
  19163. fi
  19164. else
  19165. RANLIB="$ac_cv_prog_RANLIB"
  19166. fi
  19167. for ac_prog in gawk mawk nawk awk
  19168. do
  19169. # Extract the first word of "$ac_prog", so it can be a program name with args.
  19170. set dummy $ac_prog; ac_word=$2
  19171. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  19172. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19173. if test "${ac_cv_prog_AWK+set}" = set; then
  19174. echo $ECHO_N "(cached) $ECHO_C" >&6
  19175. else
  19176. if test -n "$AWK"; then
  19177. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  19178. else
  19179. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19180. for as_dir in $PATH
  19181. do
  19182. IFS=$as_save_IFS
  19183. test -z "$as_dir" && as_dir=.
  19184. for ac_exec_ext in '' $ac_executable_extensions; do
  19185. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19186. ac_cv_prog_AWK="$ac_prog"
  19187. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19188. break 2
  19189. fi
  19190. done
  19191. done
  19192. IFS=$as_save_IFS
  19193. fi
  19194. fi
  19195. AWK=$ac_cv_prog_AWK
  19196. if test -n "$AWK"; then
  19197. { echo "$as_me:$LINENO: result: $AWK" >&5
  19198. echo "${ECHO_T}$AWK" >&6; }
  19199. else
  19200. { echo "$as_me:$LINENO: result: no" >&5
  19201. echo "${ECHO_T}no" >&6; }
  19202. fi
  19203. test -n "$AWK" && break
  19204. done
  19205. { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  19206. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  19207. if test "${ac_cv_path_SED+set}" = set; then
  19208. echo $ECHO_N "(cached) $ECHO_C" >&6
  19209. else
  19210. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  19211. for ac_i in 1 2 3 4 5 6 7; do
  19212. ac_script="$ac_script$as_nl$ac_script"
  19213. done
  19214. echo "$ac_script" | sed 99q >conftest.sed
  19215. $as_unset ac_script || ac_script=
  19216. # Extract the first word of "sed gsed" to use in msg output
  19217. if test -z "$SED"; then
  19218. set dummy sed gsed; ac_prog_name=$2
  19219. if test "${ac_cv_path_SED+set}" = set; then
  19220. echo $ECHO_N "(cached) $ECHO_C" >&6
  19221. else
  19222. ac_path_SED_found=false
  19223. # Loop through the user's path and test for each of PROGNAME-LIST
  19224. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19225. for as_dir in $PATH
  19226. do
  19227. IFS=$as_save_IFS
  19228. test -z "$as_dir" && as_dir=.
  19229. for ac_prog in sed gsed; do
  19230. for ac_exec_ext in '' $ac_executable_extensions; do
  19231. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  19232. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  19233. # Check for GNU ac_path_SED and select it if it is found.
  19234. # Check for GNU $ac_path_SED
  19235. case `"$ac_path_SED" --version 2>&1` in
  19236. *GNU*)
  19237. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  19238. *)
  19239. ac_count=0
  19240. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  19241. while :
  19242. do
  19243. cat "conftest.in" "conftest.in" >"conftest.tmp"
  19244. mv "conftest.tmp" "conftest.in"
  19245. cp "conftest.in" "conftest.nl"
  19246. echo '' >> "conftest.nl"
  19247. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  19248. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  19249. ac_count=`expr $ac_count + 1`
  19250. if test $ac_count -gt ${ac_path_SED_max-0}; then
  19251. # Best one so far, save it but keep looking for a better one
  19252. ac_cv_path_SED="$ac_path_SED"
  19253. ac_path_SED_max=$ac_count
  19254. fi
  19255. # 10*(2^10) chars as input seems more than enough
  19256. test $ac_count -gt 10 && break
  19257. done
  19258. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  19259. esac
  19260. $ac_path_SED_found && break 3
  19261. done
  19262. done
  19263. done
  19264. IFS=$as_save_IFS
  19265. fi
  19266. SED="$ac_cv_path_SED"
  19267. if test -z "$SED"; then
  19268. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
  19269. echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
  19270. { (exit 1); exit 1; }; }
  19271. fi
  19272. else
  19273. ac_cv_path_SED=$SED
  19274. fi
  19275. fi
  19276. { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  19277. echo "${ECHO_T}$ac_cv_path_SED" >&6; }
  19278. SED="$ac_cv_path_SED"
  19279. rm -f conftest.sed
  19280. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  19281. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  19282. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  19283. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  19284. echo $ECHO_N "(cached) $ECHO_C" >&6
  19285. else
  19286. cat >conftest.make <<\_ACEOF
  19287. SHELL = /bin/sh
  19288. all:
  19289. @echo '@@@%%%=$(MAKE)=@@@%%%'
  19290. _ACEOF
  19291. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  19292. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  19293. *@@@%%%=?*=@@@%%%*)
  19294. eval ac_cv_prog_make_${ac_make}_set=yes;;
  19295. *)
  19296. eval ac_cv_prog_make_${ac_make}_set=no;;
  19297. esac
  19298. rm -f conftest.make
  19299. fi
  19300. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  19301. { echo "$as_me:$LINENO: result: yes" >&5
  19302. echo "${ECHO_T}yes" >&6; }
  19303. SET_MAKE=
  19304. else
  19305. { echo "$as_me:$LINENO: result: no" >&5
  19306. echo "${ECHO_T}no" >&6; }
  19307. SET_MAKE="MAKE=${MAKE-make}"
  19308. fi
  19309. # Extract the first word of "printf", so it can be a program name with args.
  19310. set dummy printf; ac_word=$2
  19311. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  19312. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19313. if test "${ac_cv_path_PRINTF+set}" = set; then
  19314. echo $ECHO_N "(cached) $ECHO_C" >&6
  19315. else
  19316. case $PRINTF in
  19317. [\\/]* | ?:[\\/]*)
  19318. ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
  19319. ;;
  19320. *)
  19321. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19322. for as_dir in $PATH
  19323. do
  19324. IFS=$as_save_IFS
  19325. test -z "$as_dir" && as_dir=.
  19326. for ac_exec_ext in '' $ac_executable_extensions; do
  19327. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19328. ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
  19329. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19330. break 2
  19331. fi
  19332. done
  19333. done
  19334. IFS=$as_save_IFS
  19335. ;;
  19336. esac
  19337. fi
  19338. PRINTF=$ac_cv_path_PRINTF
  19339. if test -n "$PRINTF"; then
  19340. { echo "$as_me:$LINENO: result: $PRINTF" >&5
  19341. echo "${ECHO_T}$PRINTF" >&6; }
  19342. else
  19343. { echo "$as_me:$LINENO: result: no" >&5
  19344. echo "${ECHO_T}no" >&6; }
  19345. fi
  19346. # Extract the first word of "autogen", so it can be a program name with args.
  19347. set dummy autogen; ac_word=$2
  19348. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  19349. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19350. if test "${ac_cv_path_AUTOGEN+set}" = set; then
  19351. echo $ECHO_N "(cached) $ECHO_C" >&6
  19352. else
  19353. case $AUTOGEN in
  19354. [\\/]* | ?:[\\/]*)
  19355. ac_cv_path_AUTOGEN="$AUTOGEN" # Let the user override the test with a path.
  19356. ;;
  19357. *)
  19358. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19359. for as_dir in $PATH
  19360. do
  19361. IFS=$as_save_IFS
  19362. test -z "$as_dir" && as_dir=.
  19363. for ac_exec_ext in '' $ac_executable_extensions; do
  19364. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19365. ac_cv_path_AUTOGEN="$as_dir/$ac_word$ac_exec_ext"
  19366. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19367. break 2
  19368. fi
  19369. done
  19370. done
  19371. IFS=$as_save_IFS
  19372. ;;
  19373. esac
  19374. fi
  19375. AUTOGEN=$ac_cv_path_AUTOGEN
  19376. if test -n "$AUTOGEN"; then
  19377. { echo "$as_me:$LINENO: result: $AUTOGEN" >&5
  19378. echo "${ECHO_T}$AUTOGEN" >&6; }
  19379. else
  19380. { echo "$as_me:$LINENO: result: no" >&5
  19381. echo "${ECHO_T}no" >&6; }
  19382. fi
  19383. if test -n "${AUTOGEN}" ; then
  19384. { echo "$as_me:$LINENO: checking for autogen version >= 5.9" >&5
  19385. echo $ECHO_N "checking for autogen version >= 5.9... $ECHO_C" >&6; }
  19386. AUTOGEN_VERSION=`${AUTOGEN} -v | ${SED} 's|.*\([0-9\.]\{3,\}\)$|\1|'`
  19387. AUTOGEN_MAJOR=`echo ${AUTOGEN_VERSION} | ${SED} 's|^\([0-9]\)\.[0-9]|\1|'`
  19388. AUTOGEN_MINOR=`echo ${AUTOGEN_VERSION} | ${SED} 's|^\([0-9]\)\.\([0-9]\)|\2|'`
  19389. if test ${AUTOGEN_MAJOR} -le 5 && test ${AUTOGEN_MINOR} -lt 9 || test ${AUTOGEN_MAJOR} -lt 5 ; then
  19390. { echo "$as_me:$LINENO: result: no" >&5
  19391. echo "${ECHO_T}no" >&6; }
  19392. { echo "$as_me:$LINENO: WARNING: ${AUTOGEN} is too old (${AUTOGEN_VERSION}) for building from SVN. Please upgrade to 5.9)" >&5
  19393. echo "$as_me: WARNING: ${AUTOGEN} is too old (${AUTOGEN_VERSION}) for building from SVN. Please upgrade to 5.9)" >&2;}
  19394. else
  19395. { echo "$as_me:$LINENO: result: yes" >&5
  19396. echo "${ECHO_T}yes" >&6; }
  19397. fi
  19398. else
  19399. { echo "$as_me:$LINENO: WARNING: Please install autogen >= 5.9 if you are building from SVN" >&5
  19400. echo "$as_me: WARNING: Please install autogen >= 5.9 if you are building from SVN" >&2;}
  19401. fi
  19402. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  19403. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  19404. if test "${ac_cv_header_stdc+set}" = set; then
  19405. echo $ECHO_N "(cached) $ECHO_C" >&6
  19406. else
  19407. cat >conftest.$ac_ext <<_ACEOF
  19408. /* confdefs.h. */
  19409. _ACEOF
  19410. cat confdefs.h >>conftest.$ac_ext
  19411. cat >>conftest.$ac_ext <<_ACEOF
  19412. /* end confdefs.h. */
  19413. #include <stdlib.h>
  19414. #include <stdarg.h>
  19415. #include <string.h>
  19416. #include <float.h>
  19417. int
  19418. main ()
  19419. {
  19420. ;
  19421. return 0;
  19422. }
  19423. _ACEOF
  19424. rm -f conftest.$ac_objext
  19425. if { (ac_try="$ac_compile"
  19426. case "(($ac_try" in
  19427. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19428. *) ac_try_echo=$ac_try;;
  19429. esac
  19430. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19431. (eval "$ac_compile") 2>conftest.er1
  19432. ac_status=$?
  19433. grep -v '^ *+' conftest.er1 >conftest.err
  19434. rm -f conftest.er1
  19435. cat conftest.err >&5
  19436. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19437. (exit $ac_status); } && {
  19438. test -z "$ac_c_werror_flag" ||
  19439. test ! -s conftest.err
  19440. } && test -s conftest.$ac_objext; then
  19441. ac_cv_header_stdc=yes
  19442. else
  19443. echo "$as_me: failed program was:" >&5
  19444. sed 's/^/| /' conftest.$ac_ext >&5
  19445. ac_cv_header_stdc=no
  19446. fi
  19447. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19448. if test $ac_cv_header_stdc = yes; then
  19449. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  19450. cat >conftest.$ac_ext <<_ACEOF
  19451. /* confdefs.h. */
  19452. _ACEOF
  19453. cat confdefs.h >>conftest.$ac_ext
  19454. cat >>conftest.$ac_ext <<_ACEOF
  19455. /* end confdefs.h. */
  19456. #include <string.h>
  19457. _ACEOF
  19458. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19459. $EGREP "memchr" >/dev/null 2>&1; then
  19460. :
  19461. else
  19462. ac_cv_header_stdc=no
  19463. fi
  19464. rm -f conftest*
  19465. fi
  19466. if test $ac_cv_header_stdc = yes; then
  19467. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  19468. cat >conftest.$ac_ext <<_ACEOF
  19469. /* confdefs.h. */
  19470. _ACEOF
  19471. cat confdefs.h >>conftest.$ac_ext
  19472. cat >>conftest.$ac_ext <<_ACEOF
  19473. /* end confdefs.h. */
  19474. #include <stdlib.h>
  19475. _ACEOF
  19476. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19477. $EGREP "free" >/dev/null 2>&1; then
  19478. :
  19479. else
  19480. ac_cv_header_stdc=no
  19481. fi
  19482. rm -f conftest*
  19483. fi
  19484. if test $ac_cv_header_stdc = yes; then
  19485. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  19486. if test "$cross_compiling" = yes; then
  19487. :
  19488. else
  19489. cat >conftest.$ac_ext <<_ACEOF
  19490. /* confdefs.h. */
  19491. _ACEOF
  19492. cat confdefs.h >>conftest.$ac_ext
  19493. cat >>conftest.$ac_ext <<_ACEOF
  19494. /* end confdefs.h. */
  19495. #include <ctype.h>
  19496. #include <stdlib.h>
  19497. #if ((' ' & 0x0FF) == 0x020)
  19498. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  19499. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  19500. #else
  19501. # define ISLOWER(c) \
  19502. (('a' <= (c) && (c) <= 'i') \
  19503. || ('j' <= (c) && (c) <= 'r') \
  19504. || ('s' <= (c) && (c) <= 'z'))
  19505. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  19506. #endif
  19507. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  19508. int
  19509. main ()
  19510. {
  19511. int i;
  19512. for (i = 0; i < 256; i++)
  19513. if (XOR (islower (i), ISLOWER (i))
  19514. || toupper (i) != TOUPPER (i))
  19515. return 2;
  19516. return 0;
  19517. }
  19518. _ACEOF
  19519. rm -f conftest$ac_exeext
  19520. if { (ac_try="$ac_link"
  19521. case "(($ac_try" in
  19522. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19523. *) ac_try_echo=$ac_try;;
  19524. esac
  19525. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19526. (eval "$ac_link") 2>&5
  19527. ac_status=$?
  19528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19529. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19530. { (case "(($ac_try" in
  19531. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19532. *) ac_try_echo=$ac_try;;
  19533. esac
  19534. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19535. (eval "$ac_try") 2>&5
  19536. ac_status=$?
  19537. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19538. (exit $ac_status); }; }; then
  19539. :
  19540. else
  19541. echo "$as_me: program exited with status $ac_status" >&5
  19542. echo "$as_me: failed program was:" >&5
  19543. sed 's/^/| /' conftest.$ac_ext >&5
  19544. ( exit $ac_status )
  19545. ac_cv_header_stdc=no
  19546. fi
  19547. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19548. fi
  19549. fi
  19550. fi
  19551. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  19552. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  19553. if test $ac_cv_header_stdc = yes; then
  19554. cat >>confdefs.h <<\_ACEOF
  19555. #define STDC_HEADERS 1
  19556. _ACEOF
  19557. fi
  19558. { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
  19559. echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
  19560. if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
  19561. echo $ECHO_N "(cached) $ECHO_C" >&6
  19562. else
  19563. cat >conftest.$ac_ext <<_ACEOF
  19564. /* confdefs.h. */
  19565. _ACEOF
  19566. cat confdefs.h >>conftest.$ac_ext
  19567. cat >>conftest.$ac_ext <<_ACEOF
  19568. /* end confdefs.h. */
  19569. #include <sys/types.h>
  19570. int
  19571. main ()
  19572. {
  19573. return makedev(0, 0);
  19574. ;
  19575. return 0;
  19576. }
  19577. _ACEOF
  19578. rm -f conftest.$ac_objext conftest$ac_exeext
  19579. if { (ac_try="$ac_link"
  19580. case "(($ac_try" in
  19581. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19582. *) ac_try_echo=$ac_try;;
  19583. esac
  19584. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19585. (eval "$ac_link") 2>conftest.er1
  19586. ac_status=$?
  19587. grep -v '^ *+' conftest.er1 >conftest.err
  19588. rm -f conftest.er1
  19589. cat conftest.err >&5
  19590. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19591. (exit $ac_status); } && {
  19592. test -z "$ac_c_werror_flag" ||
  19593. test ! -s conftest.err
  19594. } && test -s conftest$ac_exeext &&
  19595. $as_test_x conftest$ac_exeext; then
  19596. ac_cv_header_sys_types_h_makedev=yes
  19597. else
  19598. echo "$as_me: failed program was:" >&5
  19599. sed 's/^/| /' conftest.$ac_ext >&5
  19600. ac_cv_header_sys_types_h_makedev=no
  19601. fi
  19602. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19603. conftest$ac_exeext conftest.$ac_ext
  19604. fi
  19605. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
  19606. echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
  19607. if test $ac_cv_header_sys_types_h_makedev = no; then
  19608. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  19609. { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
  19610. echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
  19611. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  19612. echo $ECHO_N "(cached) $ECHO_C" >&6
  19613. fi
  19614. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
  19615. echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
  19616. else
  19617. # Is the header compilable?
  19618. { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
  19619. echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
  19620. cat >conftest.$ac_ext <<_ACEOF
  19621. /* confdefs.h. */
  19622. _ACEOF
  19623. cat confdefs.h >>conftest.$ac_ext
  19624. cat >>conftest.$ac_ext <<_ACEOF
  19625. /* end confdefs.h. */
  19626. $ac_includes_default
  19627. #include <sys/mkdev.h>
  19628. _ACEOF
  19629. rm -f conftest.$ac_objext
  19630. if { (ac_try="$ac_compile"
  19631. case "(($ac_try" in
  19632. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19633. *) ac_try_echo=$ac_try;;
  19634. esac
  19635. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19636. (eval "$ac_compile") 2>conftest.er1
  19637. ac_status=$?
  19638. grep -v '^ *+' conftest.er1 >conftest.err
  19639. rm -f conftest.er1
  19640. cat conftest.err >&5
  19641. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19642. (exit $ac_status); } && {
  19643. test -z "$ac_c_werror_flag" ||
  19644. test ! -s conftest.err
  19645. } && test -s conftest.$ac_objext; then
  19646. ac_header_compiler=yes
  19647. else
  19648. echo "$as_me: failed program was:" >&5
  19649. sed 's/^/| /' conftest.$ac_ext >&5
  19650. ac_header_compiler=no
  19651. fi
  19652. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19653. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19654. echo "${ECHO_T}$ac_header_compiler" >&6; }
  19655. # Is the header present?
  19656. { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
  19657. echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
  19658. cat >conftest.$ac_ext <<_ACEOF
  19659. /* confdefs.h. */
  19660. _ACEOF
  19661. cat confdefs.h >>conftest.$ac_ext
  19662. cat >>conftest.$ac_ext <<_ACEOF
  19663. /* end confdefs.h. */
  19664. #include <sys/mkdev.h>
  19665. _ACEOF
  19666. if { (ac_try="$ac_cpp conftest.$ac_ext"
  19667. case "(($ac_try" in
  19668. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19669. *) ac_try_echo=$ac_try;;
  19670. esac
  19671. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19672. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19673. ac_status=$?
  19674. grep -v '^ *+' conftest.er1 >conftest.err
  19675. rm -f conftest.er1
  19676. cat conftest.err >&5
  19677. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19678. (exit $ac_status); } >/dev/null && {
  19679. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19680. test ! -s conftest.err
  19681. }; then
  19682. ac_header_preproc=yes
  19683. else
  19684. echo "$as_me: failed program was:" >&5
  19685. sed 's/^/| /' conftest.$ac_ext >&5
  19686. ac_header_preproc=no
  19687. fi
  19688. rm -f conftest.err conftest.$ac_ext
  19689. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19690. echo "${ECHO_T}$ac_header_preproc" >&6; }
  19691. # So? What about this header?
  19692. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19693. yes:no: )
  19694. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
  19695. echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19696. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
  19697. echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
  19698. ac_header_preproc=yes
  19699. ;;
  19700. no:yes:* )
  19701. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
  19702. echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
  19703. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
  19704. echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
  19705. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
  19706. echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
  19707. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
  19708. echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
  19709. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
  19710. echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
  19711. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
  19712. echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
  19713. ;;
  19714. esac
  19715. { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
  19716. echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
  19717. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  19718. echo $ECHO_N "(cached) $ECHO_C" >&6
  19719. else
  19720. ac_cv_header_sys_mkdev_h=$ac_header_preproc
  19721. fi
  19722. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
  19723. echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
  19724. fi
  19725. if test $ac_cv_header_sys_mkdev_h = yes; then
  19726. cat >>confdefs.h <<\_ACEOF
  19727. #define MAJOR_IN_MKDEV 1
  19728. _ACEOF
  19729. fi
  19730. if test $ac_cv_header_sys_mkdev_h = no; then
  19731. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  19732. { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
  19733. echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
  19734. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  19735. echo $ECHO_N "(cached) $ECHO_C" >&6
  19736. fi
  19737. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
  19738. echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
  19739. else
  19740. # Is the header compilable?
  19741. { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
  19742. echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
  19743. cat >conftest.$ac_ext <<_ACEOF
  19744. /* confdefs.h. */
  19745. _ACEOF
  19746. cat confdefs.h >>conftest.$ac_ext
  19747. cat >>conftest.$ac_ext <<_ACEOF
  19748. /* end confdefs.h. */
  19749. $ac_includes_default
  19750. #include <sys/sysmacros.h>
  19751. _ACEOF
  19752. rm -f conftest.$ac_objext
  19753. if { (ac_try="$ac_compile"
  19754. case "(($ac_try" in
  19755. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19756. *) ac_try_echo=$ac_try;;
  19757. esac
  19758. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19759. (eval "$ac_compile") 2>conftest.er1
  19760. ac_status=$?
  19761. grep -v '^ *+' conftest.er1 >conftest.err
  19762. rm -f conftest.er1
  19763. cat conftest.err >&5
  19764. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19765. (exit $ac_status); } && {
  19766. test -z "$ac_c_werror_flag" ||
  19767. test ! -s conftest.err
  19768. } && test -s conftest.$ac_objext; then
  19769. ac_header_compiler=yes
  19770. else
  19771. echo "$as_me: failed program was:" >&5
  19772. sed 's/^/| /' conftest.$ac_ext >&5
  19773. ac_header_compiler=no
  19774. fi
  19775. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19776. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19777. echo "${ECHO_T}$ac_header_compiler" >&6; }
  19778. # Is the header present?
  19779. { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
  19780. echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
  19781. cat >conftest.$ac_ext <<_ACEOF
  19782. /* confdefs.h. */
  19783. _ACEOF
  19784. cat confdefs.h >>conftest.$ac_ext
  19785. cat >>conftest.$ac_ext <<_ACEOF
  19786. /* end confdefs.h. */
  19787. #include <sys/sysmacros.h>
  19788. _ACEOF
  19789. if { (ac_try="$ac_cpp conftest.$ac_ext"
  19790. case "(($ac_try" in
  19791. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19792. *) ac_try_echo=$ac_try;;
  19793. esac
  19794. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19795. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19796. ac_status=$?
  19797. grep -v '^ *+' conftest.er1 >conftest.err
  19798. rm -f conftest.er1
  19799. cat conftest.err >&5
  19800. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19801. (exit $ac_status); } >/dev/null && {
  19802. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19803. test ! -s conftest.err
  19804. }; then
  19805. ac_header_preproc=yes
  19806. else
  19807. echo "$as_me: failed program was:" >&5
  19808. sed 's/^/| /' conftest.$ac_ext >&5
  19809. ac_header_preproc=no
  19810. fi
  19811. rm -f conftest.err conftest.$ac_ext
  19812. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19813. echo "${ECHO_T}$ac_header_preproc" >&6; }
  19814. # So? What about this header?
  19815. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19816. yes:no: )
  19817. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
  19818. echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19819. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
  19820. echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
  19821. ac_header_preproc=yes
  19822. ;;
  19823. no:yes:* )
  19824. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
  19825. echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
  19826. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
  19827. echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
  19828. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
  19829. echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
  19830. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
  19831. echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
  19832. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
  19833. echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
  19834. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
  19835. echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
  19836. ;;
  19837. esac
  19838. { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
  19839. echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
  19840. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  19841. echo $ECHO_N "(cached) $ECHO_C" >&6
  19842. else
  19843. ac_cv_header_sys_sysmacros_h=$ac_header_preproc
  19844. fi
  19845. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
  19846. echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
  19847. fi
  19848. if test $ac_cv_header_sys_sysmacros_h = yes; then
  19849. cat >>confdefs.h <<\_ACEOF
  19850. #define MAJOR_IN_SYSMACROS 1
  19851. _ACEOF
  19852. fi
  19853. fi
  19854. fi
  19855. { echo "$as_me:$LINENO: checking for size_t" >&5
  19856. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  19857. if test "${ac_cv_type_size_t+set}" = set; then
  19858. echo $ECHO_N "(cached) $ECHO_C" >&6
  19859. else
  19860. cat >conftest.$ac_ext <<_ACEOF
  19861. /* confdefs.h. */
  19862. _ACEOF
  19863. cat confdefs.h >>conftest.$ac_ext
  19864. cat >>conftest.$ac_ext <<_ACEOF
  19865. /* end confdefs.h. */
  19866. $ac_includes_default
  19867. typedef size_t ac__type_new_;
  19868. int
  19869. main ()
  19870. {
  19871. if ((ac__type_new_ *) 0)
  19872. return 0;
  19873. if (sizeof (ac__type_new_))
  19874. return 0;
  19875. ;
  19876. return 0;
  19877. }
  19878. _ACEOF
  19879. rm -f conftest.$ac_objext
  19880. if { (ac_try="$ac_compile"
  19881. case "(($ac_try" in
  19882. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19883. *) ac_try_echo=$ac_try;;
  19884. esac
  19885. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19886. (eval "$ac_compile") 2>conftest.er1
  19887. ac_status=$?
  19888. grep -v '^ *+' conftest.er1 >conftest.err
  19889. rm -f conftest.er1
  19890. cat conftest.err >&5
  19891. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19892. (exit $ac_status); } && {
  19893. test -z "$ac_c_werror_flag" ||
  19894. test ! -s conftest.err
  19895. } && test -s conftest.$ac_objext; then
  19896. ac_cv_type_size_t=yes
  19897. else
  19898. echo "$as_me: failed program was:" >&5
  19899. sed 's/^/| /' conftest.$ac_ext >&5
  19900. ac_cv_type_size_t=no
  19901. fi
  19902. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19903. fi
  19904. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  19905. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  19906. if test $ac_cv_type_size_t = yes; then
  19907. :
  19908. else
  19909. cat >>confdefs.h <<_ACEOF
  19910. #define size_t unsigned int
  19911. _ACEOF
  19912. fi
  19913. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  19914. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  19915. if test "${ac_cv_header_time+set}" = set; then
  19916. echo $ECHO_N "(cached) $ECHO_C" >&6
  19917. else
  19918. cat >conftest.$ac_ext <<_ACEOF
  19919. /* confdefs.h. */
  19920. _ACEOF
  19921. cat confdefs.h >>conftest.$ac_ext
  19922. cat >>conftest.$ac_ext <<_ACEOF
  19923. /* end confdefs.h. */
  19924. #include <sys/types.h>
  19925. #include <sys/time.h>
  19926. #include <time.h>
  19927. int
  19928. main ()
  19929. {
  19930. if ((struct tm *) 0)
  19931. return 0;
  19932. ;
  19933. return 0;
  19934. }
  19935. _ACEOF
  19936. rm -f conftest.$ac_objext
  19937. if { (ac_try="$ac_compile"
  19938. case "(($ac_try" in
  19939. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19940. *) ac_try_echo=$ac_try;;
  19941. esac
  19942. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19943. (eval "$ac_compile") 2>conftest.er1
  19944. ac_status=$?
  19945. grep -v '^ *+' conftest.er1 >conftest.err
  19946. rm -f conftest.er1
  19947. cat conftest.err >&5
  19948. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19949. (exit $ac_status); } && {
  19950. test -z "$ac_c_werror_flag" ||
  19951. test ! -s conftest.err
  19952. } && test -s conftest.$ac_objext; then
  19953. ac_cv_header_time=yes
  19954. else
  19955. echo "$as_me: failed program was:" >&5
  19956. sed 's/^/| /' conftest.$ac_ext >&5
  19957. ac_cv_header_time=no
  19958. fi
  19959. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19960. fi
  19961. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  19962. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  19963. if test $ac_cv_header_time = yes; then
  19964. cat >>confdefs.h <<\_ACEOF
  19965. #define TIME_WITH_SYS_TIME 1
  19966. _ACEOF
  19967. fi
  19968. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  19969. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  19970. if test "${ac_cv_c_const+set}" = set; then
  19971. echo $ECHO_N "(cached) $ECHO_C" >&6
  19972. else
  19973. cat >conftest.$ac_ext <<_ACEOF
  19974. /* confdefs.h. */
  19975. _ACEOF
  19976. cat confdefs.h >>conftest.$ac_ext
  19977. cat >>conftest.$ac_ext <<_ACEOF
  19978. /* end confdefs.h. */
  19979. int
  19980. main ()
  19981. {
  19982. /* FIXME: Include the comments suggested by Paul. */
  19983. #ifndef __cplusplus
  19984. /* Ultrix mips cc rejects this. */
  19985. typedef int charset[2];
  19986. const charset cs;
  19987. /* SunOS 4.1.1 cc rejects this. */
  19988. char const *const *pcpcc;
  19989. char **ppc;
  19990. /* NEC SVR4.0.2 mips cc rejects this. */
  19991. struct point {int x, y;};
  19992. static struct point const zero = {0,0};
  19993. /* AIX XL C 1.02.0.0 rejects this.
  19994. It does not let you subtract one const X* pointer from another in
  19995. an arm of an if-expression whose if-part is not a constant
  19996. expression */
  19997. const char *g = "string";
  19998. pcpcc = &g + (g ? g-g : 0);
  19999. /* HPUX 7.0 cc rejects these. */
  20000. ++pcpcc;
  20001. ppc = (char**) pcpcc;
  20002. pcpcc = (char const *const *) ppc;
  20003. { /* SCO 3.2v4 cc rejects this. */
  20004. char *t;
  20005. char const *s = 0 ? (char *) 0 : (char const *) 0;
  20006. *t++ = 0;
  20007. if (s) return 0;
  20008. }
  20009. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  20010. int x[] = {25, 17};
  20011. const int *foo = &x[0];
  20012. ++foo;
  20013. }
  20014. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  20015. typedef const int *iptr;
  20016. iptr p = 0;
  20017. ++p;
  20018. }
  20019. { /* AIX XL C 1.02.0.0 rejects this saying
  20020. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  20021. struct s { int j; const int *ap[3]; };
  20022. struct s *b; b->j = 5;
  20023. }
  20024. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  20025. const int foo = 10;
  20026. if (!foo) return 0;
  20027. }
  20028. return !cs[0] && !zero.x;
  20029. #endif
  20030. ;
  20031. return 0;
  20032. }
  20033. _ACEOF
  20034. rm -f conftest.$ac_objext
  20035. if { (ac_try="$ac_compile"
  20036. case "(($ac_try" in
  20037. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20038. *) ac_try_echo=$ac_try;;
  20039. esac
  20040. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20041. (eval "$ac_compile") 2>conftest.er1
  20042. ac_status=$?
  20043. grep -v '^ *+' conftest.er1 >conftest.err
  20044. rm -f conftest.er1
  20045. cat conftest.err >&5
  20046. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20047. (exit $ac_status); } && {
  20048. test -z "$ac_c_werror_flag" ||
  20049. test ! -s conftest.err
  20050. } && test -s conftest.$ac_objext; then
  20051. ac_cv_c_const=yes
  20052. else
  20053. echo "$as_me: failed program was:" >&5
  20054. sed 's/^/| /' conftest.$ac_ext >&5
  20055. ac_cv_c_const=no
  20056. fi
  20057. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20058. fi
  20059. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  20060. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  20061. if test $ac_cv_c_const = no; then
  20062. cat >>confdefs.h <<\_ACEOF
  20063. #define const
  20064. _ACEOF
  20065. fi
  20066. { echo "$as_me:$LINENO: checking for inline" >&5
  20067. echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
  20068. if test "${ac_cv_c_inline+set}" = set; then
  20069. echo $ECHO_N "(cached) $ECHO_C" >&6
  20070. else
  20071. ac_cv_c_inline=no
  20072. for ac_kw in inline __inline__ __inline; do
  20073. cat >conftest.$ac_ext <<_ACEOF
  20074. /* confdefs.h. */
  20075. _ACEOF
  20076. cat confdefs.h >>conftest.$ac_ext
  20077. cat >>conftest.$ac_ext <<_ACEOF
  20078. /* end confdefs.h. */
  20079. #ifndef __cplusplus
  20080. typedef int foo_t;
  20081. static $ac_kw foo_t static_foo () {return 0; }
  20082. $ac_kw foo_t foo () {return 0; }
  20083. #endif
  20084. _ACEOF
  20085. rm -f conftest.$ac_objext
  20086. if { (ac_try="$ac_compile"
  20087. case "(($ac_try" in
  20088. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20089. *) ac_try_echo=$ac_try;;
  20090. esac
  20091. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20092. (eval "$ac_compile") 2>conftest.er1
  20093. ac_status=$?
  20094. grep -v '^ *+' conftest.er1 >conftest.err
  20095. rm -f conftest.er1
  20096. cat conftest.err >&5
  20097. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20098. (exit $ac_status); } && {
  20099. test -z "$ac_c_werror_flag" ||
  20100. test ! -s conftest.err
  20101. } && test -s conftest.$ac_objext; then
  20102. ac_cv_c_inline=$ac_kw
  20103. else
  20104. echo "$as_me: failed program was:" >&5
  20105. sed 's/^/| /' conftest.$ac_ext >&5
  20106. fi
  20107. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20108. test "$ac_cv_c_inline" != no && break
  20109. done
  20110. fi
  20111. { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  20112. echo "${ECHO_T}$ac_cv_c_inline" >&6; }
  20113. case $ac_cv_c_inline in
  20114. inline | yes) ;;
  20115. *)
  20116. case $ac_cv_c_inline in
  20117. no) ac_val=;;
  20118. *) ac_val=$ac_cv_c_inline;;
  20119. esac
  20120. cat >>confdefs.h <<_ACEOF
  20121. #ifndef __cplusplus
  20122. #define inline $ac_val
  20123. #endif
  20124. _ACEOF
  20125. ;;
  20126. esac
  20127. # Check whether --enable-largefile was given.
  20128. if test "${enable_largefile+set}" = set; then
  20129. enableval=$enable_largefile;
  20130. fi
  20131. if test "$enable_largefile" != no; then
  20132. { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  20133. echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
  20134. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  20135. echo $ECHO_N "(cached) $ECHO_C" >&6
  20136. else
  20137. ac_cv_sys_largefile_CC=no
  20138. if test "$GCC" != yes; then
  20139. ac_save_CC=$CC
  20140. while :; do
  20141. # IRIX 6.2 and later do not support large files by default,
  20142. # so use the C compiler's -n32 option if that helps.
  20143. cat >conftest.$ac_ext <<_ACEOF
  20144. /* confdefs.h. */
  20145. _ACEOF
  20146. cat confdefs.h >>conftest.$ac_ext
  20147. cat >>conftest.$ac_ext <<_ACEOF
  20148. /* end confdefs.h. */
  20149. #include <sys/types.h>
  20150. /* Check that off_t can represent 2**63 - 1 correctly.
  20151. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20152. since some C++ compilers masquerading as C compilers
  20153. incorrectly reject 9223372036854775807. */
  20154. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20155. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20156. && LARGE_OFF_T % 2147483647 == 1)
  20157. ? 1 : -1];
  20158. int
  20159. main ()
  20160. {
  20161. ;
  20162. return 0;
  20163. }
  20164. _ACEOF
  20165. rm -f conftest.$ac_objext
  20166. if { (ac_try="$ac_compile"
  20167. case "(($ac_try" in
  20168. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20169. *) ac_try_echo=$ac_try;;
  20170. esac
  20171. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20172. (eval "$ac_compile") 2>conftest.er1
  20173. ac_status=$?
  20174. grep -v '^ *+' conftest.er1 >conftest.err
  20175. rm -f conftest.er1
  20176. cat conftest.err >&5
  20177. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20178. (exit $ac_status); } && {
  20179. test -z "$ac_c_werror_flag" ||
  20180. test ! -s conftest.err
  20181. } && test -s conftest.$ac_objext; then
  20182. break
  20183. else
  20184. echo "$as_me: failed program was:" >&5
  20185. sed 's/^/| /' conftest.$ac_ext >&5
  20186. fi
  20187. rm -f core conftest.err conftest.$ac_objext
  20188. CC="$CC -n32"
  20189. rm -f conftest.$ac_objext
  20190. if { (ac_try="$ac_compile"
  20191. case "(($ac_try" in
  20192. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20193. *) ac_try_echo=$ac_try;;
  20194. esac
  20195. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20196. (eval "$ac_compile") 2>conftest.er1
  20197. ac_status=$?
  20198. grep -v '^ *+' conftest.er1 >conftest.err
  20199. rm -f conftest.er1
  20200. cat conftest.err >&5
  20201. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20202. (exit $ac_status); } && {
  20203. test -z "$ac_c_werror_flag" ||
  20204. test ! -s conftest.err
  20205. } && test -s conftest.$ac_objext; then
  20206. ac_cv_sys_largefile_CC=' -n32'; break
  20207. else
  20208. echo "$as_me: failed program was:" >&5
  20209. sed 's/^/| /' conftest.$ac_ext >&5
  20210. fi
  20211. rm -f core conftest.err conftest.$ac_objext
  20212. break
  20213. done
  20214. CC=$ac_save_CC
  20215. rm -f conftest.$ac_ext
  20216. fi
  20217. fi
  20218. { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  20219. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
  20220. if test "$ac_cv_sys_largefile_CC" != no; then
  20221. CC=$CC$ac_cv_sys_largefile_CC
  20222. fi
  20223. { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  20224. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
  20225. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  20226. echo $ECHO_N "(cached) $ECHO_C" >&6
  20227. else
  20228. while :; do
  20229. cat >conftest.$ac_ext <<_ACEOF
  20230. /* confdefs.h. */
  20231. _ACEOF
  20232. cat confdefs.h >>conftest.$ac_ext
  20233. cat >>conftest.$ac_ext <<_ACEOF
  20234. /* end confdefs.h. */
  20235. #include <sys/types.h>
  20236. /* Check that off_t can represent 2**63 - 1 correctly.
  20237. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20238. since some C++ compilers masquerading as C compilers
  20239. incorrectly reject 9223372036854775807. */
  20240. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20241. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20242. && LARGE_OFF_T % 2147483647 == 1)
  20243. ? 1 : -1];
  20244. int
  20245. main ()
  20246. {
  20247. ;
  20248. return 0;
  20249. }
  20250. _ACEOF
  20251. rm -f conftest.$ac_objext
  20252. if { (ac_try="$ac_compile"
  20253. case "(($ac_try" in
  20254. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20255. *) ac_try_echo=$ac_try;;
  20256. esac
  20257. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20258. (eval "$ac_compile") 2>conftest.er1
  20259. ac_status=$?
  20260. grep -v '^ *+' conftest.er1 >conftest.err
  20261. rm -f conftest.er1
  20262. cat conftest.err >&5
  20263. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20264. (exit $ac_status); } && {
  20265. test -z "$ac_c_werror_flag" ||
  20266. test ! -s conftest.err
  20267. } && test -s conftest.$ac_objext; then
  20268. ac_cv_sys_file_offset_bits=no; break
  20269. else
  20270. echo "$as_me: failed program was:" >&5
  20271. sed 's/^/| /' conftest.$ac_ext >&5
  20272. fi
  20273. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20274. cat >conftest.$ac_ext <<_ACEOF
  20275. /* confdefs.h. */
  20276. _ACEOF
  20277. cat confdefs.h >>conftest.$ac_ext
  20278. cat >>conftest.$ac_ext <<_ACEOF
  20279. /* end confdefs.h. */
  20280. #define _FILE_OFFSET_BITS 64
  20281. #include <sys/types.h>
  20282. /* Check that off_t can represent 2**63 - 1 correctly.
  20283. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20284. since some C++ compilers masquerading as C compilers
  20285. incorrectly reject 9223372036854775807. */
  20286. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20287. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20288. && LARGE_OFF_T % 2147483647 == 1)
  20289. ? 1 : -1];
  20290. int
  20291. main ()
  20292. {
  20293. ;
  20294. return 0;
  20295. }
  20296. _ACEOF
  20297. rm -f conftest.$ac_objext
  20298. if { (ac_try="$ac_compile"
  20299. case "(($ac_try" in
  20300. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20301. *) ac_try_echo=$ac_try;;
  20302. esac
  20303. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20304. (eval "$ac_compile") 2>conftest.er1
  20305. ac_status=$?
  20306. grep -v '^ *+' conftest.er1 >conftest.err
  20307. rm -f conftest.er1
  20308. cat conftest.err >&5
  20309. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20310. (exit $ac_status); } && {
  20311. test -z "$ac_c_werror_flag" ||
  20312. test ! -s conftest.err
  20313. } && test -s conftest.$ac_objext; then
  20314. ac_cv_sys_file_offset_bits=64; break
  20315. else
  20316. echo "$as_me: failed program was:" >&5
  20317. sed 's/^/| /' conftest.$ac_ext >&5
  20318. fi
  20319. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20320. ac_cv_sys_file_offset_bits=unknown
  20321. break
  20322. done
  20323. fi
  20324. { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  20325. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
  20326. case $ac_cv_sys_file_offset_bits in #(
  20327. no | unknown) ;;
  20328. *)
  20329. cat >>confdefs.h <<_ACEOF
  20330. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  20331. _ACEOF
  20332. ;;
  20333. esac
  20334. rm -f conftest*
  20335. if test $ac_cv_sys_file_offset_bits = unknown; then
  20336. { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  20337. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
  20338. if test "${ac_cv_sys_large_files+set}" = set; then
  20339. echo $ECHO_N "(cached) $ECHO_C" >&6
  20340. else
  20341. while :; do
  20342. cat >conftest.$ac_ext <<_ACEOF
  20343. /* confdefs.h. */
  20344. _ACEOF
  20345. cat confdefs.h >>conftest.$ac_ext
  20346. cat >>conftest.$ac_ext <<_ACEOF
  20347. /* end confdefs.h. */
  20348. #include <sys/types.h>
  20349. /* Check that off_t can represent 2**63 - 1 correctly.
  20350. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20351. since some C++ compilers masquerading as C compilers
  20352. incorrectly reject 9223372036854775807. */
  20353. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20354. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20355. && LARGE_OFF_T % 2147483647 == 1)
  20356. ? 1 : -1];
  20357. int
  20358. main ()
  20359. {
  20360. ;
  20361. return 0;
  20362. }
  20363. _ACEOF
  20364. rm -f conftest.$ac_objext
  20365. if { (ac_try="$ac_compile"
  20366. case "(($ac_try" in
  20367. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20368. *) ac_try_echo=$ac_try;;
  20369. esac
  20370. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20371. (eval "$ac_compile") 2>conftest.er1
  20372. ac_status=$?
  20373. grep -v '^ *+' conftest.er1 >conftest.err
  20374. rm -f conftest.er1
  20375. cat conftest.err >&5
  20376. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20377. (exit $ac_status); } && {
  20378. test -z "$ac_c_werror_flag" ||
  20379. test ! -s conftest.err
  20380. } && test -s conftest.$ac_objext; then
  20381. ac_cv_sys_large_files=no; break
  20382. else
  20383. echo "$as_me: failed program was:" >&5
  20384. sed 's/^/| /' conftest.$ac_ext >&5
  20385. fi
  20386. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20387. cat >conftest.$ac_ext <<_ACEOF
  20388. /* confdefs.h. */
  20389. _ACEOF
  20390. cat confdefs.h >>conftest.$ac_ext
  20391. cat >>conftest.$ac_ext <<_ACEOF
  20392. /* end confdefs.h. */
  20393. #define _LARGE_FILES 1
  20394. #include <sys/types.h>
  20395. /* Check that off_t can represent 2**63 - 1 correctly.
  20396. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20397. since some C++ compilers masquerading as C compilers
  20398. incorrectly reject 9223372036854775807. */
  20399. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20400. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20401. && LARGE_OFF_T % 2147483647 == 1)
  20402. ? 1 : -1];
  20403. int
  20404. main ()
  20405. {
  20406. ;
  20407. return 0;
  20408. }
  20409. _ACEOF
  20410. rm -f conftest.$ac_objext
  20411. if { (ac_try="$ac_compile"
  20412. case "(($ac_try" in
  20413. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20414. *) ac_try_echo=$ac_try;;
  20415. esac
  20416. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20417. (eval "$ac_compile") 2>conftest.er1
  20418. ac_status=$?
  20419. grep -v '^ *+' conftest.er1 >conftest.err
  20420. rm -f conftest.er1
  20421. cat conftest.err >&5
  20422. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20423. (exit $ac_status); } && {
  20424. test -z "$ac_c_werror_flag" ||
  20425. test ! -s conftest.err
  20426. } && test -s conftest.$ac_objext; then
  20427. ac_cv_sys_large_files=1; break
  20428. else
  20429. echo "$as_me: failed program was:" >&5
  20430. sed 's/^/| /' conftest.$ac_ext >&5
  20431. fi
  20432. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20433. ac_cv_sys_large_files=unknown
  20434. break
  20435. done
  20436. fi
  20437. { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  20438. echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
  20439. case $ac_cv_sys_large_files in #(
  20440. no | unknown) ;;
  20441. *)
  20442. cat >>confdefs.h <<_ACEOF
  20443. #define _LARGE_FILES $ac_cv_sys_large_files
  20444. _ACEOF
  20445. ;;
  20446. esac
  20447. rm -f conftest*
  20448. fi
  20449. fi
  20450. { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  20451. echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
  20452. if test "${ac_cv_sys_largefile_source+set}" = set; then
  20453. echo $ECHO_N "(cached) $ECHO_C" >&6
  20454. else
  20455. while :; do
  20456. cat >conftest.$ac_ext <<_ACEOF
  20457. /* confdefs.h. */
  20458. _ACEOF
  20459. cat confdefs.h >>conftest.$ac_ext
  20460. cat >>conftest.$ac_ext <<_ACEOF
  20461. /* end confdefs.h. */
  20462. #include <stdio.h>
  20463. int
  20464. main ()
  20465. {
  20466. return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
  20467. ;
  20468. return 0;
  20469. }
  20470. _ACEOF
  20471. rm -f conftest.$ac_objext conftest$ac_exeext
  20472. if { (ac_try="$ac_link"
  20473. case "(($ac_try" in
  20474. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20475. *) ac_try_echo=$ac_try;;
  20476. esac
  20477. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20478. (eval "$ac_link") 2>conftest.er1
  20479. ac_status=$?
  20480. grep -v '^ *+' conftest.er1 >conftest.err
  20481. rm -f conftest.er1
  20482. cat conftest.err >&5
  20483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20484. (exit $ac_status); } && {
  20485. test -z "$ac_c_werror_flag" ||
  20486. test ! -s conftest.err
  20487. } && test -s conftest$ac_exeext &&
  20488. $as_test_x conftest$ac_exeext; then
  20489. ac_cv_sys_largefile_source=no; break
  20490. else
  20491. echo "$as_me: failed program was:" >&5
  20492. sed 's/^/| /' conftest.$ac_ext >&5
  20493. fi
  20494. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20495. conftest$ac_exeext conftest.$ac_ext
  20496. cat >conftest.$ac_ext <<_ACEOF
  20497. /* confdefs.h. */
  20498. _ACEOF
  20499. cat confdefs.h >>conftest.$ac_ext
  20500. cat >>conftest.$ac_ext <<_ACEOF
  20501. /* end confdefs.h. */
  20502. #define _LARGEFILE_SOURCE 1
  20503. #include <stdio.h>
  20504. int
  20505. main ()
  20506. {
  20507. return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
  20508. ;
  20509. return 0;
  20510. }
  20511. _ACEOF
  20512. rm -f conftest.$ac_objext conftest$ac_exeext
  20513. if { (ac_try="$ac_link"
  20514. case "(($ac_try" in
  20515. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20516. *) ac_try_echo=$ac_try;;
  20517. esac
  20518. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20519. (eval "$ac_link") 2>conftest.er1
  20520. ac_status=$?
  20521. grep -v '^ *+' conftest.er1 >conftest.err
  20522. rm -f conftest.er1
  20523. cat conftest.err >&5
  20524. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20525. (exit $ac_status); } && {
  20526. test -z "$ac_c_werror_flag" ||
  20527. test ! -s conftest.err
  20528. } && test -s conftest$ac_exeext &&
  20529. $as_test_x conftest$ac_exeext; then
  20530. ac_cv_sys_largefile_source=1; break
  20531. else
  20532. echo "$as_me: failed program was:" >&5
  20533. sed 's/^/| /' conftest.$ac_ext >&5
  20534. fi
  20535. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20536. conftest$ac_exeext conftest.$ac_ext
  20537. ac_cv_sys_largefile_source=unknown
  20538. break
  20539. done
  20540. fi
  20541. { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
  20542. echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
  20543. case $ac_cv_sys_largefile_source in #(
  20544. no | unknown) ;;
  20545. *)
  20546. cat >>confdefs.h <<_ACEOF
  20547. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  20548. _ACEOF
  20549. ;;
  20550. esac
  20551. rm -f conftest*
  20552. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  20553. # in glibc 2.1.3, but that breaks too many other things.
  20554. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  20555. if test $ac_cv_sys_largefile_source != unknown; then
  20556. cat >>confdefs.h <<\_ACEOF
  20557. #define HAVE_FSEEKO 1
  20558. _ACEOF
  20559. fi
  20560. { echo "$as_me:$LINENO: checking for u_int8_t" >&5
  20561. echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
  20562. if test "${ac_cv_type_u_int8_t+set}" = set; then
  20563. echo $ECHO_N "(cached) $ECHO_C" >&6
  20564. else
  20565. cat >conftest.$ac_ext <<_ACEOF
  20566. /* confdefs.h. */
  20567. _ACEOF
  20568. cat confdefs.h >>conftest.$ac_ext
  20569. cat >>conftest.$ac_ext <<_ACEOF
  20570. /* end confdefs.h. */
  20571. $ac_includes_default
  20572. typedef u_int8_t ac__type_new_;
  20573. int
  20574. main ()
  20575. {
  20576. if ((ac__type_new_ *) 0)
  20577. return 0;
  20578. if (sizeof (ac__type_new_))
  20579. return 0;
  20580. ;
  20581. return 0;
  20582. }
  20583. _ACEOF
  20584. rm -f conftest.$ac_objext
  20585. if { (ac_try="$ac_compile"
  20586. case "(($ac_try" in
  20587. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20588. *) ac_try_echo=$ac_try;;
  20589. esac
  20590. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20591. (eval "$ac_compile") 2>conftest.er1
  20592. ac_status=$?
  20593. grep -v '^ *+' conftest.er1 >conftest.err
  20594. rm -f conftest.er1
  20595. cat conftest.err >&5
  20596. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20597. (exit $ac_status); } && {
  20598. test -z "$ac_c_werror_flag" ||
  20599. test ! -s conftest.err
  20600. } && test -s conftest.$ac_objext; then
  20601. ac_cv_type_u_int8_t=yes
  20602. else
  20603. echo "$as_me: failed program was:" >&5
  20604. sed 's/^/| /' conftest.$ac_ext >&5
  20605. ac_cv_type_u_int8_t=no
  20606. fi
  20607. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20608. fi
  20609. { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
  20610. echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
  20611. if test $ac_cv_type_u_int8_t = yes; then
  20612. :
  20613. else
  20614. cat >>confdefs.h <<_ACEOF
  20615. #define u_int8_t uint8_t
  20616. _ACEOF
  20617. fi
  20618. { echo "$as_me:$LINENO: checking for u_int16_t" >&5
  20619. echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
  20620. if test "${ac_cv_type_u_int16_t+set}" = set; then
  20621. echo $ECHO_N "(cached) $ECHO_C" >&6
  20622. else
  20623. cat >conftest.$ac_ext <<_ACEOF
  20624. /* confdefs.h. */
  20625. _ACEOF
  20626. cat confdefs.h >>conftest.$ac_ext
  20627. cat >>conftest.$ac_ext <<_ACEOF
  20628. /* end confdefs.h. */
  20629. $ac_includes_default
  20630. typedef u_int16_t ac__type_new_;
  20631. int
  20632. main ()
  20633. {
  20634. if ((ac__type_new_ *) 0)
  20635. return 0;
  20636. if (sizeof (ac__type_new_))
  20637. return 0;
  20638. ;
  20639. return 0;
  20640. }
  20641. _ACEOF
  20642. rm -f conftest.$ac_objext
  20643. if { (ac_try="$ac_compile"
  20644. case "(($ac_try" in
  20645. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20646. *) ac_try_echo=$ac_try;;
  20647. esac
  20648. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20649. (eval "$ac_compile") 2>conftest.er1
  20650. ac_status=$?
  20651. grep -v '^ *+' conftest.er1 >conftest.err
  20652. rm -f conftest.er1
  20653. cat conftest.err >&5
  20654. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20655. (exit $ac_status); } && {
  20656. test -z "$ac_c_werror_flag" ||
  20657. test ! -s conftest.err
  20658. } && test -s conftest.$ac_objext; then
  20659. ac_cv_type_u_int16_t=yes
  20660. else
  20661. echo "$as_me: failed program was:" >&5
  20662. sed 's/^/| /' conftest.$ac_ext >&5
  20663. ac_cv_type_u_int16_t=no
  20664. fi
  20665. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20666. fi
  20667. { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
  20668. echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
  20669. if test $ac_cv_type_u_int16_t = yes; then
  20670. :
  20671. else
  20672. cat >>confdefs.h <<_ACEOF
  20673. #define u_int16_t uint16_t
  20674. _ACEOF
  20675. fi
  20676. { echo "$as_me:$LINENO: checking for u_int32_t" >&5
  20677. echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
  20678. if test "${ac_cv_type_u_int32_t+set}" = set; then
  20679. echo $ECHO_N "(cached) $ECHO_C" >&6
  20680. else
  20681. cat >conftest.$ac_ext <<_ACEOF
  20682. /* confdefs.h. */
  20683. _ACEOF
  20684. cat confdefs.h >>conftest.$ac_ext
  20685. cat >>conftest.$ac_ext <<_ACEOF
  20686. /* end confdefs.h. */
  20687. $ac_includes_default
  20688. typedef u_int32_t ac__type_new_;
  20689. int
  20690. main ()
  20691. {
  20692. if ((ac__type_new_ *) 0)
  20693. return 0;
  20694. if (sizeof (ac__type_new_))
  20695. return 0;
  20696. ;
  20697. return 0;
  20698. }
  20699. _ACEOF
  20700. rm -f conftest.$ac_objext
  20701. if { (ac_try="$ac_compile"
  20702. case "(($ac_try" in
  20703. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20704. *) ac_try_echo=$ac_try;;
  20705. esac
  20706. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20707. (eval "$ac_compile") 2>conftest.er1
  20708. ac_status=$?
  20709. grep -v '^ *+' conftest.er1 >conftest.err
  20710. rm -f conftest.er1
  20711. cat conftest.err >&5
  20712. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20713. (exit $ac_status); } && {
  20714. test -z "$ac_c_werror_flag" ||
  20715. test ! -s conftest.err
  20716. } && test -s conftest.$ac_objext; then
  20717. ac_cv_type_u_int32_t=yes
  20718. else
  20719. echo "$as_me: failed program was:" >&5
  20720. sed 's/^/| /' conftest.$ac_ext >&5
  20721. ac_cv_type_u_int32_t=no
  20722. fi
  20723. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20724. fi
  20725. { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
  20726. echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
  20727. if test $ac_cv_type_u_int32_t = yes; then
  20728. :
  20729. else
  20730. cat >>confdefs.h <<_ACEOF
  20731. #define u_int32_t uint32_t
  20732. _ACEOF
  20733. fi
  20734. { echo "$as_me:$LINENO: checking for u_int64_t" >&5
  20735. echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
  20736. if test "${ac_cv_type_u_int64_t+set}" = set; then
  20737. echo $ECHO_N "(cached) $ECHO_C" >&6
  20738. else
  20739. cat >conftest.$ac_ext <<_ACEOF
  20740. /* confdefs.h. */
  20741. _ACEOF
  20742. cat confdefs.h >>conftest.$ac_ext
  20743. cat >>conftest.$ac_ext <<_ACEOF
  20744. /* end confdefs.h. */
  20745. $ac_includes_default
  20746. typedef u_int64_t ac__type_new_;
  20747. int
  20748. main ()
  20749. {
  20750. if ((ac__type_new_ *) 0)
  20751. return 0;
  20752. if (sizeof (ac__type_new_))
  20753. return 0;
  20754. ;
  20755. return 0;
  20756. }
  20757. _ACEOF
  20758. rm -f conftest.$ac_objext
  20759. if { (ac_try="$ac_compile"
  20760. case "(($ac_try" in
  20761. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20762. *) ac_try_echo=$ac_try;;
  20763. esac
  20764. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20765. (eval "$ac_compile") 2>conftest.er1
  20766. ac_status=$?
  20767. grep -v '^ *+' conftest.er1 >conftest.err
  20768. rm -f conftest.er1
  20769. cat conftest.err >&5
  20770. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20771. (exit $ac_status); } && {
  20772. test -z "$ac_c_werror_flag" ||
  20773. test ! -s conftest.err
  20774. } && test -s conftest.$ac_objext; then
  20775. ac_cv_type_u_int64_t=yes
  20776. else
  20777. echo "$as_me: failed program was:" >&5
  20778. sed 's/^/| /' conftest.$ac_ext >&5
  20779. ac_cv_type_u_int64_t=no
  20780. fi
  20781. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20782. fi
  20783. { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
  20784. echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
  20785. if test $ac_cv_type_u_int64_t = yes; then
  20786. :
  20787. else
  20788. cat >>confdefs.h <<_ACEOF
  20789. #define u_int64_t uint64_t
  20790. _ACEOF
  20791. fi
  20792. { echo "$as_me:$LINENO: checking for $CC -Wextra support" >&5
  20793. echo $ECHO_N "checking for $CC -Wextra support... $ECHO_C" >&6; }
  20794. OLD_CFLAGS=$CFLAGS
  20795. CFLAGS="$CFLAGS -Wextra"
  20796. wextra=""
  20797. cat >conftest.$ac_ext <<_ACEOF
  20798. #include <stdlib.h>
  20799. int main(int argc, char *argv) { return(0); }
  20800. _ACEOF
  20801. rm -f conftest.$ac_objext
  20802. if { (ac_try="$ac_compile"
  20803. case "(($ac_try" in
  20804. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20805. *) ac_try_echo=$ac_try;;
  20806. esac
  20807. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20808. (eval "$ac_compile") 2>conftest.er1
  20809. ac_status=$?
  20810. grep -v '^ *+' conftest.er1 >conftest.err
  20811. rm -f conftest.er1
  20812. cat conftest.err >&5
  20813. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20814. (exit $ac_status); } && {
  20815. test -z "$ac_c_werror_flag" ||
  20816. test ! -s conftest.err
  20817. } && test -s conftest.$ac_objext; then
  20818. { echo "$as_me:$LINENO: result: yes" >&5
  20819. echo "${ECHO_T}yes" >&6; }
  20820. wextra="-Wextra"
  20821. else
  20822. echo "$as_me: failed program was:" >&5
  20823. sed 's/^/| /' conftest.$ac_ext >&5
  20824. { echo "$as_me:$LINENO: result: no" >&5
  20825. echo "${ECHO_T}no" >&6; }
  20826. fi
  20827. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20828. CFLAGS="$OLD_CFLAGS $wextra"
  20829. { echo "$as_me:$LINENO: checking for $CC -Wno-variadic-macros support" >&5
  20830. echo $ECHO_N "checking for $CC -Wno-variadic-macros support... $ECHO_C" >&6; }
  20831. OLD_CFLAGS=$CFLAGS
  20832. CFLAGS="$CFLAGS -Wno-variadic-macros"
  20833. wno_variadic_macros=""
  20834. cat >conftest.$ac_ext <<_ACEOF
  20835. #include <stdlib.h>
  20836. int main(int argc, char *argv) { return(0); }
  20837. _ACEOF
  20838. rm -f conftest.$ac_objext
  20839. if { (ac_try="$ac_compile"
  20840. case "(($ac_try" in
  20841. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20842. *) ac_try_echo=$ac_try;;
  20843. esac
  20844. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20845. (eval "$ac_compile") 2>conftest.er1
  20846. ac_status=$?
  20847. grep -v '^ *+' conftest.er1 >conftest.err
  20848. rm -f conftest.er1
  20849. cat conftest.err >&5
  20850. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20851. (exit $ac_status); } && {
  20852. test -z "$ac_c_werror_flag" ||
  20853. test ! -s conftest.err
  20854. } && test -s conftest.$ac_objext; then
  20855. { echo "$as_me:$LINENO: result: yes" >&5
  20856. echo "${ECHO_T}yes" >&6; }
  20857. wno_variadic_macros="-Wno-variadic-macros"
  20858. else
  20859. echo "$as_me: failed program was:" >&5
  20860. sed 's/^/| /' conftest.$ac_ext >&5
  20861. { echo "$as_me:$LINENO: result: no" >&5
  20862. echo "${ECHO_T}no" >&6; }
  20863. fi
  20864. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20865. CFLAGS="$OLD_CFLAGS $wno_variadic_macros"
  20866. { echo "$as_me:$LINENO: checking for $CC -Wfatal-errors support" >&5
  20867. echo $ECHO_N "checking for $CC -Wfatal-errors support... $ECHO_C" >&6; }
  20868. OLD_CFLAGS=$CFLAGS
  20869. CFLAGS="$CFLAGS -Wfatal-errors"
  20870. wfatal_errors=""
  20871. cat >conftest.$ac_ext <<_ACEOF
  20872. #include <stdlib.h>
  20873. int main(int argc, char *argv) { return(0); }
  20874. _ACEOF
  20875. rm -f conftest.$ac_objext
  20876. if { (ac_try="$ac_compile"
  20877. case "(($ac_try" in
  20878. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20879. *) ac_try_echo=$ac_try;;
  20880. esac
  20881. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20882. (eval "$ac_compile") 2>conftest.er1
  20883. ac_status=$?
  20884. grep -v '^ *+' conftest.er1 >conftest.err
  20885. rm -f conftest.er1
  20886. cat conftest.err >&5
  20887. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20888. (exit $ac_status); } && {
  20889. test -z "$ac_c_werror_flag" ||
  20890. test ! -s conftest.err
  20891. } && test -s conftest.$ac_objext; then
  20892. { echo "$as_me:$LINENO: result: yes" >&5
  20893. echo "${ECHO_T}yes" >&6; }
  20894. wfatal_errors="-Wfatal-errors"
  20895. else
  20896. echo "$as_me: failed program was:" >&5
  20897. sed 's/^/| /' conftest.$ac_ext >&5
  20898. { echo "$as_me:$LINENO: result: no" >&5
  20899. echo "${ECHO_T}no" >&6; }
  20900. fi
  20901. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20902. CFLAGS="$OLD_CFLAGS $wfatal_errors"
  20903. 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 sys/param.h
  20904. do
  20905. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20906. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20907. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  20908. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  20909. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20910. echo $ECHO_N "(cached) $ECHO_C" >&6
  20911. fi
  20912. ac_res=`eval echo '${'$as_ac_Header'}'`
  20913. { echo "$as_me:$LINENO: result: $ac_res" >&5
  20914. echo "${ECHO_T}$ac_res" >&6; }
  20915. else
  20916. # Is the header compilable?
  20917. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  20918. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  20919. cat >conftest.$ac_ext <<_ACEOF
  20920. /* confdefs.h. */
  20921. _ACEOF
  20922. cat confdefs.h >>conftest.$ac_ext
  20923. cat >>conftest.$ac_ext <<_ACEOF
  20924. /* end confdefs.h. */
  20925. $ac_includes_default
  20926. #include <$ac_header>
  20927. _ACEOF
  20928. rm -f conftest.$ac_objext
  20929. if { (ac_try="$ac_compile"
  20930. case "(($ac_try" in
  20931. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20932. *) ac_try_echo=$ac_try;;
  20933. esac
  20934. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20935. (eval "$ac_compile") 2>conftest.er1
  20936. ac_status=$?
  20937. grep -v '^ *+' conftest.er1 >conftest.err
  20938. rm -f conftest.er1
  20939. cat conftest.err >&5
  20940. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20941. (exit $ac_status); } && {
  20942. test -z "$ac_c_werror_flag" ||
  20943. test ! -s conftest.err
  20944. } && test -s conftest.$ac_objext; then
  20945. ac_header_compiler=yes
  20946. else
  20947. echo "$as_me: failed program was:" >&5
  20948. sed 's/^/| /' conftest.$ac_ext >&5
  20949. ac_header_compiler=no
  20950. fi
  20951. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20952. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  20953. echo "${ECHO_T}$ac_header_compiler" >&6; }
  20954. # Is the header present?
  20955. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  20956. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  20957. cat >conftest.$ac_ext <<_ACEOF
  20958. /* confdefs.h. */
  20959. _ACEOF
  20960. cat confdefs.h >>conftest.$ac_ext
  20961. cat >>conftest.$ac_ext <<_ACEOF
  20962. /* end confdefs.h. */
  20963. #include <$ac_header>
  20964. _ACEOF
  20965. if { (ac_try="$ac_cpp conftest.$ac_ext"
  20966. case "(($ac_try" in
  20967. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20968. *) ac_try_echo=$ac_try;;
  20969. esac
  20970. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20971. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  20972. ac_status=$?
  20973. grep -v '^ *+' conftest.er1 >conftest.err
  20974. rm -f conftest.er1
  20975. cat conftest.err >&5
  20976. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20977. (exit $ac_status); } >/dev/null && {
  20978. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  20979. test ! -s conftest.err
  20980. }; then
  20981. ac_header_preproc=yes
  20982. else
  20983. echo "$as_me: failed program was:" >&5
  20984. sed 's/^/| /' conftest.$ac_ext >&5
  20985. ac_header_preproc=no
  20986. fi
  20987. rm -f conftest.err conftest.$ac_ext
  20988. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  20989. echo "${ECHO_T}$ac_header_preproc" >&6; }
  20990. # So? What about this header?
  20991. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  20992. yes:no: )
  20993. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  20994. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  20995. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  20996. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  20997. ac_header_preproc=yes
  20998. ;;
  20999. no:yes:* )
  21000. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  21001. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  21002. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  21003. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  21004. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  21005. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  21006. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  21007. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  21008. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  21009. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  21010. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  21011. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  21012. ;;
  21013. esac
  21014. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  21015. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  21016. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21017. echo $ECHO_N "(cached) $ECHO_C" >&6
  21018. else
  21019. eval "$as_ac_Header=\$ac_header_preproc"
  21020. fi
  21021. ac_res=`eval echo '${'$as_ac_Header'}'`
  21022. { echo "$as_me:$LINENO: result: $ac_res" >&5
  21023. echo "${ECHO_T}$ac_res" >&6; }
  21024. fi
  21025. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  21026. cat >>confdefs.h <<_ACEOF
  21027. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  21028. _ACEOF
  21029. fi
  21030. done
  21031. for ac_header in sys/sysctl.h net/route.h
  21032. do
  21033. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  21034. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  21035. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  21036. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21037. echo $ECHO_N "(cached) $ECHO_C" >&6
  21038. else
  21039. cat >conftest.$ac_ext <<_ACEOF
  21040. /* confdefs.h. */
  21041. _ACEOF
  21042. cat confdefs.h >>conftest.$ac_ext
  21043. cat >>conftest.$ac_ext <<_ACEOF
  21044. /* end confdefs.h. */
  21045. #if HAVE_SYS_PARAM_H
  21046. #include <sys/param.h>
  21047. #endif
  21048. #if HAVE_SYS_TYPES_H
  21049. #include <sys/types.h>
  21050. #endif
  21051. #if HAVE_SYS_SOCKET_H
  21052. #include <sys/socket.h>
  21053. #endif
  21054. #include <$ac_header>
  21055. _ACEOF
  21056. rm -f conftest.$ac_objext
  21057. if { (ac_try="$ac_compile"
  21058. case "(($ac_try" in
  21059. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21060. *) ac_try_echo=$ac_try;;
  21061. esac
  21062. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21063. (eval "$ac_compile") 2>conftest.er1
  21064. ac_status=$?
  21065. grep -v '^ *+' conftest.er1 >conftest.err
  21066. rm -f conftest.er1
  21067. cat conftest.err >&5
  21068. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21069. (exit $ac_status); } && {
  21070. test -z "$ac_c_werror_flag" ||
  21071. test ! -s conftest.err
  21072. } && test -s conftest.$ac_objext; then
  21073. eval "$as_ac_Header=yes"
  21074. else
  21075. echo "$as_me: failed program was:" >&5
  21076. sed 's/^/| /' conftest.$ac_ext >&5
  21077. eval "$as_ac_Header=no"
  21078. fi
  21079. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21080. fi
  21081. ac_res=`eval echo '${'$as_ac_Header'}'`
  21082. { echo "$as_me:$LINENO: result: $ac_res" >&5
  21083. echo "${ECHO_T}$ac_res" >&6; }
  21084. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  21085. cat >>confdefs.h <<_ACEOF
  21086. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  21087. _ACEOF
  21088. fi
  21089. done
  21090. { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  21091. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
  21092. if test "${ac_cv_lib_socket_socket+set}" = set; then
  21093. echo $ECHO_N "(cached) $ECHO_C" >&6
  21094. else
  21095. ac_check_lib_save_LIBS=$LIBS
  21096. LIBS="-lsocket $LIBS"
  21097. cat >conftest.$ac_ext <<_ACEOF
  21098. /* confdefs.h. */
  21099. _ACEOF
  21100. cat confdefs.h >>conftest.$ac_ext
  21101. cat >>conftest.$ac_ext <<_ACEOF
  21102. /* end confdefs.h. */
  21103. /* Override any GCC internal prototype to avoid an error.
  21104. Use char because int might match the return type of a GCC
  21105. builtin and then its argument prototype would still apply. */
  21106. #ifdef __cplusplus
  21107. extern "C"
  21108. #endif
  21109. char socket ();
  21110. int
  21111. main ()
  21112. {
  21113. return socket ();
  21114. ;
  21115. return 0;
  21116. }
  21117. _ACEOF
  21118. rm -f conftest.$ac_objext conftest$ac_exeext
  21119. if { (ac_try="$ac_link"
  21120. case "(($ac_try" in
  21121. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21122. *) ac_try_echo=$ac_try;;
  21123. esac
  21124. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21125. (eval "$ac_link") 2>conftest.er1
  21126. ac_status=$?
  21127. grep -v '^ *+' conftest.er1 >conftest.err
  21128. rm -f conftest.er1
  21129. cat conftest.err >&5
  21130. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21131. (exit $ac_status); } && {
  21132. test -z "$ac_c_werror_flag" ||
  21133. test ! -s conftest.err
  21134. } && test -s conftest$ac_exeext &&
  21135. $as_test_x conftest$ac_exeext; then
  21136. ac_cv_lib_socket_socket=yes
  21137. else
  21138. echo "$as_me: failed program was:" >&5
  21139. sed 's/^/| /' conftest.$ac_ext >&5
  21140. ac_cv_lib_socket_socket=no
  21141. fi
  21142. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21143. conftest$ac_exeext conftest.$ac_ext
  21144. LIBS=$ac_check_lib_save_LIBS
  21145. fi
  21146. { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  21147. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
  21148. if test $ac_cv_lib_socket_socket = yes; then
  21149. cat >>confdefs.h <<_ACEOF
  21150. #define HAVE_LIBSOCKET 1
  21151. _ACEOF
  21152. LIBS="-lsocket $LIBS"
  21153. fi
  21154. { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
  21155. echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
  21156. if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  21157. echo $ECHO_N "(cached) $ECHO_C" >&6
  21158. else
  21159. ac_check_lib_save_LIBS=$LIBS
  21160. LIBS="-lnsl $LIBS"
  21161. cat >conftest.$ac_ext <<_ACEOF
  21162. /* confdefs.h. */
  21163. _ACEOF
  21164. cat confdefs.h >>conftest.$ac_ext
  21165. cat >>conftest.$ac_ext <<_ACEOF
  21166. /* end confdefs.h. */
  21167. /* Override any GCC internal prototype to avoid an error.
  21168. Use char because int might match the return type of a GCC
  21169. builtin and then its argument prototype would still apply. */
  21170. #ifdef __cplusplus
  21171. extern "C"
  21172. #endif
  21173. char gethostbyname ();
  21174. int
  21175. main ()
  21176. {
  21177. return gethostbyname ();
  21178. ;
  21179. return 0;
  21180. }
  21181. _ACEOF
  21182. rm -f conftest.$ac_objext conftest$ac_exeext
  21183. if { (ac_try="$ac_link"
  21184. case "(($ac_try" in
  21185. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21186. *) ac_try_echo=$ac_try;;
  21187. esac
  21188. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21189. (eval "$ac_link") 2>conftest.er1
  21190. ac_status=$?
  21191. grep -v '^ *+' conftest.er1 >conftest.err
  21192. rm -f conftest.er1
  21193. cat conftest.err >&5
  21194. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21195. (exit $ac_status); } && {
  21196. test -z "$ac_c_werror_flag" ||
  21197. test ! -s conftest.err
  21198. } && test -s conftest$ac_exeext &&
  21199. $as_test_x conftest$ac_exeext; then
  21200. ac_cv_lib_nsl_gethostbyname=yes
  21201. else
  21202. echo "$as_me: failed program was:" >&5
  21203. sed 's/^/| /' conftest.$ac_ext >&5
  21204. ac_cv_lib_nsl_gethostbyname=no
  21205. fi
  21206. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21207. conftest$ac_exeext conftest.$ac_ext
  21208. LIBS=$ac_check_lib_save_LIBS
  21209. fi
  21210. { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
  21211. echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
  21212. if test $ac_cv_lib_nsl_gethostbyname = yes; then
  21213. cat >>confdefs.h <<_ACEOF
  21214. #define HAVE_LIBNSL 1
  21215. _ACEOF
  21216. LIBS="-lnsl $LIBS"
  21217. fi
  21218. { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
  21219. echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; }
  21220. if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
  21221. echo $ECHO_N "(cached) $ECHO_C" >&6
  21222. else
  21223. ac_check_lib_save_LIBS=$LIBS
  21224. LIBS="-lrt $LIBS"
  21225. cat >conftest.$ac_ext <<_ACEOF
  21226. /* confdefs.h. */
  21227. _ACEOF
  21228. cat confdefs.h >>conftest.$ac_ext
  21229. cat >>conftest.$ac_ext <<_ACEOF
  21230. /* end confdefs.h. */
  21231. /* Override any GCC internal prototype to avoid an error.
  21232. Use char because int might match the return type of a GCC
  21233. builtin and then its argument prototype would still apply. */
  21234. #ifdef __cplusplus
  21235. extern "C"
  21236. #endif
  21237. char nanosleep ();
  21238. int
  21239. main ()
  21240. {
  21241. return nanosleep ();
  21242. ;
  21243. return 0;
  21244. }
  21245. _ACEOF
  21246. rm -f conftest.$ac_objext conftest$ac_exeext
  21247. if { (ac_try="$ac_link"
  21248. case "(($ac_try" in
  21249. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21250. *) ac_try_echo=$ac_try;;
  21251. esac
  21252. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21253. (eval "$ac_link") 2>conftest.er1
  21254. ac_status=$?
  21255. grep -v '^ *+' conftest.er1 >conftest.err
  21256. rm -f conftest.er1
  21257. cat conftest.err >&5
  21258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21259. (exit $ac_status); } && {
  21260. test -z "$ac_c_werror_flag" ||
  21261. test ! -s conftest.err
  21262. } && test -s conftest$ac_exeext &&
  21263. $as_test_x conftest$ac_exeext; then
  21264. ac_cv_lib_rt_nanosleep=yes
  21265. else
  21266. echo "$as_me: failed program was:" >&5
  21267. sed 's/^/| /' conftest.$ac_ext >&5
  21268. ac_cv_lib_rt_nanosleep=no
  21269. fi
  21270. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21271. conftest$ac_exeext conftest.$ac_ext
  21272. LIBS=$ac_check_lib_save_LIBS
  21273. fi
  21274. { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
  21275. echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; }
  21276. if test $ac_cv_lib_rt_nanosleep = yes; then
  21277. cat >>confdefs.h <<_ACEOF
  21278. #define HAVE_LIBRT 1
  21279. _ACEOF
  21280. LIBS="-lrt $LIBS"
  21281. fi
  21282. { echo "$as_me:$LINENO: checking for resolv in -lresolv" >&5
  21283. echo $ECHO_N "checking for resolv in -lresolv... $ECHO_C" >&6; }
  21284. if test "${ac_cv_lib_resolv_resolv+set}" = set; then
  21285. echo $ECHO_N "(cached) $ECHO_C" >&6
  21286. else
  21287. ac_check_lib_save_LIBS=$LIBS
  21288. LIBS="-lresolv $LIBS"
  21289. cat >conftest.$ac_ext <<_ACEOF
  21290. /* confdefs.h. */
  21291. _ACEOF
  21292. cat confdefs.h >>conftest.$ac_ext
  21293. cat >>conftest.$ac_ext <<_ACEOF
  21294. /* end confdefs.h. */
  21295. /* Override any GCC internal prototype to avoid an error.
  21296. Use char because int might match the return type of a GCC
  21297. builtin and then its argument prototype would still apply. */
  21298. #ifdef __cplusplus
  21299. extern "C"
  21300. #endif
  21301. char resolv ();
  21302. int
  21303. main ()
  21304. {
  21305. return resolv ();
  21306. ;
  21307. return 0;
  21308. }
  21309. _ACEOF
  21310. rm -f conftest.$ac_objext conftest$ac_exeext
  21311. if { (ac_try="$ac_link"
  21312. case "(($ac_try" in
  21313. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21314. *) ac_try_echo=$ac_try;;
  21315. esac
  21316. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21317. (eval "$ac_link") 2>conftest.er1
  21318. ac_status=$?
  21319. grep -v '^ *+' conftest.er1 >conftest.err
  21320. rm -f conftest.er1
  21321. cat conftest.err >&5
  21322. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21323. (exit $ac_status); } && {
  21324. test -z "$ac_c_werror_flag" ||
  21325. test ! -s conftest.err
  21326. } && test -s conftest$ac_exeext &&
  21327. $as_test_x conftest$ac_exeext; then
  21328. ac_cv_lib_resolv_resolv=yes
  21329. else
  21330. echo "$as_me: failed program was:" >&5
  21331. sed 's/^/| /' conftest.$ac_ext >&5
  21332. ac_cv_lib_resolv_resolv=no
  21333. fi
  21334. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21335. conftest$ac_exeext conftest.$ac_ext
  21336. LIBS=$ac_check_lib_save_LIBS
  21337. fi
  21338. { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_resolv" >&5
  21339. echo "${ECHO_T}$ac_cv_lib_resolv_resolv" >&6; }
  21340. if test $ac_cv_lib_resolv_resolv = yes; then
  21341. cat >>confdefs.h <<_ACEOF
  21342. #define HAVE_LIBRESOLV 1
  21343. _ACEOF
  21344. LIBS="-lresolv $LIBS"
  21345. fi
  21346. for ac_header in stdlib.h
  21347. do
  21348. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  21349. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21350. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  21351. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  21352. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21353. echo $ECHO_N "(cached) $ECHO_C" >&6
  21354. fi
  21355. ac_res=`eval echo '${'$as_ac_Header'}'`
  21356. { echo "$as_me:$LINENO: result: $ac_res" >&5
  21357. echo "${ECHO_T}$ac_res" >&6; }
  21358. else
  21359. # Is the header compilable?
  21360. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  21361. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  21362. cat >conftest.$ac_ext <<_ACEOF
  21363. /* confdefs.h. */
  21364. _ACEOF
  21365. cat confdefs.h >>conftest.$ac_ext
  21366. cat >>conftest.$ac_ext <<_ACEOF
  21367. /* end confdefs.h. */
  21368. $ac_includes_default
  21369. #include <$ac_header>
  21370. _ACEOF
  21371. rm -f conftest.$ac_objext
  21372. if { (ac_try="$ac_compile"
  21373. case "(($ac_try" in
  21374. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21375. *) ac_try_echo=$ac_try;;
  21376. esac
  21377. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21378. (eval "$ac_compile") 2>conftest.er1
  21379. ac_status=$?
  21380. grep -v '^ *+' conftest.er1 >conftest.err
  21381. rm -f conftest.er1
  21382. cat conftest.err >&5
  21383. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21384. (exit $ac_status); } && {
  21385. test -z "$ac_c_werror_flag" ||
  21386. test ! -s conftest.err
  21387. } && test -s conftest.$ac_objext; then
  21388. ac_header_compiler=yes
  21389. else
  21390. echo "$as_me: failed program was:" >&5
  21391. sed 's/^/| /' conftest.$ac_ext >&5
  21392. ac_header_compiler=no
  21393. fi
  21394. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21395. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  21396. echo "${ECHO_T}$ac_header_compiler" >&6; }
  21397. # Is the header present?
  21398. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  21399. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  21400. cat >conftest.$ac_ext <<_ACEOF
  21401. /* confdefs.h. */
  21402. _ACEOF
  21403. cat confdefs.h >>conftest.$ac_ext
  21404. cat >>conftest.$ac_ext <<_ACEOF
  21405. /* end confdefs.h. */
  21406. #include <$ac_header>
  21407. _ACEOF
  21408. if { (ac_try="$ac_cpp conftest.$ac_ext"
  21409. case "(($ac_try" in
  21410. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21411. *) ac_try_echo=$ac_try;;
  21412. esac
  21413. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21414. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  21415. ac_status=$?
  21416. grep -v '^ *+' conftest.er1 >conftest.err
  21417. rm -f conftest.er1
  21418. cat conftest.err >&5
  21419. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21420. (exit $ac_status); } >/dev/null && {
  21421. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  21422. test ! -s conftest.err
  21423. }; then
  21424. ac_header_preproc=yes
  21425. else
  21426. echo "$as_me: failed program was:" >&5
  21427. sed 's/^/| /' conftest.$ac_ext >&5
  21428. ac_header_preproc=no
  21429. fi
  21430. rm -f conftest.err conftest.$ac_ext
  21431. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  21432. echo "${ECHO_T}$ac_header_preproc" >&6; }
  21433. # So? What about this header?
  21434. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  21435. yes:no: )
  21436. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  21437. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  21438. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  21439. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  21440. ac_header_preproc=yes
  21441. ;;
  21442. no:yes:* )
  21443. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  21444. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  21445. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  21446. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  21447. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  21448. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  21449. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  21450. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  21451. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  21452. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  21453. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  21454. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  21455. ;;
  21456. esac
  21457. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  21458. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  21459. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21460. echo $ECHO_N "(cached) $ECHO_C" >&6
  21461. else
  21462. eval "$as_ac_Header=\$ac_header_preproc"
  21463. fi
  21464. ac_res=`eval echo '${'$as_ac_Header'}'`
  21465. { echo "$as_me:$LINENO: result: $ac_res" >&5
  21466. echo "${ECHO_T}$ac_res" >&6; }
  21467. fi
  21468. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  21469. cat >>confdefs.h <<_ACEOF
  21470. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  21471. _ACEOF
  21472. fi
  21473. done
  21474. { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  21475. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
  21476. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  21477. echo $ECHO_N "(cached) $ECHO_C" >&6
  21478. else
  21479. if test "$cross_compiling" = yes; then
  21480. ac_cv_func_malloc_0_nonnull=no
  21481. else
  21482. cat >conftest.$ac_ext <<_ACEOF
  21483. /* confdefs.h. */
  21484. _ACEOF
  21485. cat confdefs.h >>conftest.$ac_ext
  21486. cat >>conftest.$ac_ext <<_ACEOF
  21487. /* end confdefs.h. */
  21488. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  21489. # include <stdlib.h>
  21490. #else
  21491. char *malloc ();
  21492. #endif
  21493. int
  21494. main ()
  21495. {
  21496. return ! malloc (0);
  21497. ;
  21498. return 0;
  21499. }
  21500. _ACEOF
  21501. rm -f conftest$ac_exeext
  21502. if { (ac_try="$ac_link"
  21503. case "(($ac_try" in
  21504. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21505. *) ac_try_echo=$ac_try;;
  21506. esac
  21507. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21508. (eval "$ac_link") 2>&5
  21509. ac_status=$?
  21510. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21511. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  21512. { (case "(($ac_try" in
  21513. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21514. *) ac_try_echo=$ac_try;;
  21515. esac
  21516. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21517. (eval "$ac_try") 2>&5
  21518. ac_status=$?
  21519. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21520. (exit $ac_status); }; }; then
  21521. ac_cv_func_malloc_0_nonnull=yes
  21522. else
  21523. echo "$as_me: program exited with status $ac_status" >&5
  21524. echo "$as_me: failed program was:" >&5
  21525. sed 's/^/| /' conftest.$ac_ext >&5
  21526. ( exit $ac_status )
  21527. ac_cv_func_malloc_0_nonnull=no
  21528. fi
  21529. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  21530. fi
  21531. fi
  21532. { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  21533. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
  21534. if test $ac_cv_func_malloc_0_nonnull = yes; then
  21535. cat >>confdefs.h <<\_ACEOF
  21536. #define HAVE_MALLOC 1
  21537. _ACEOF
  21538. else
  21539. cat >>confdefs.h <<\_ACEOF
  21540. #define HAVE_MALLOC 0
  21541. _ACEOF
  21542. case " $LIBOBJS " in
  21543. *" malloc.$ac_objext "* ) ;;
  21544. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  21545. ;;
  21546. esac
  21547. cat >>confdefs.h <<\_ACEOF
  21548. #define malloc rpl_malloc
  21549. _ACEOF
  21550. fi
  21551. { echo "$as_me:$LINENO: checking for working memcmp" >&5
  21552. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
  21553. if test "${ac_cv_func_memcmp_working+set}" = set; then
  21554. echo $ECHO_N "(cached) $ECHO_C" >&6
  21555. else
  21556. if test "$cross_compiling" = yes; then
  21557. ac_cv_func_memcmp_working=no
  21558. else
  21559. cat >conftest.$ac_ext <<_ACEOF
  21560. /* confdefs.h. */
  21561. _ACEOF
  21562. cat confdefs.h >>conftest.$ac_ext
  21563. cat >>conftest.$ac_ext <<_ACEOF
  21564. /* end confdefs.h. */
  21565. $ac_includes_default
  21566. int
  21567. main ()
  21568. {
  21569. /* Some versions of memcmp are not 8-bit clean. */
  21570. char c0 = '\100', c1 = '\200', c2 = '\201';
  21571. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  21572. return 1;
  21573. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  21574. or more and with at least one buffer not starting on a 4-byte boundary.
  21575. William Lewis provided this test program. */
  21576. {
  21577. char foo[21];
  21578. char bar[21];
  21579. int i;
  21580. for (i = 0; i < 4; i++)
  21581. {
  21582. char *a = foo + i;
  21583. char *b = bar + i;
  21584. strcpy (a, "--------01111111");
  21585. strcpy (b, "--------10000000");
  21586. if (memcmp (a, b, 16) >= 0)
  21587. return 1;
  21588. }
  21589. return 0;
  21590. }
  21591. ;
  21592. return 0;
  21593. }
  21594. _ACEOF
  21595. rm -f conftest$ac_exeext
  21596. if { (ac_try="$ac_link"
  21597. case "(($ac_try" in
  21598. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21599. *) ac_try_echo=$ac_try;;
  21600. esac
  21601. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21602. (eval "$ac_link") 2>&5
  21603. ac_status=$?
  21604. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21605. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  21606. { (case "(($ac_try" in
  21607. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21608. *) ac_try_echo=$ac_try;;
  21609. esac
  21610. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21611. (eval "$ac_try") 2>&5
  21612. ac_status=$?
  21613. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21614. (exit $ac_status); }; }; then
  21615. ac_cv_func_memcmp_working=yes
  21616. else
  21617. echo "$as_me: program exited with status $ac_status" >&5
  21618. echo "$as_me: failed program was:" >&5
  21619. sed 's/^/| /' conftest.$ac_ext >&5
  21620. ( exit $ac_status )
  21621. ac_cv_func_memcmp_working=no
  21622. fi
  21623. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  21624. fi
  21625. fi
  21626. { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  21627. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
  21628. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  21629. *" memcmp.$ac_objext "* ) ;;
  21630. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  21631. ;;
  21632. esac
  21633. { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  21634. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
  21635. if test "${ac_cv_type_signal+set}" = set; then
  21636. echo $ECHO_N "(cached) $ECHO_C" >&6
  21637. else
  21638. cat >conftest.$ac_ext <<_ACEOF
  21639. /* confdefs.h. */
  21640. _ACEOF
  21641. cat confdefs.h >>conftest.$ac_ext
  21642. cat >>conftest.$ac_ext <<_ACEOF
  21643. /* end confdefs.h. */
  21644. #include <sys/types.h>
  21645. #include <signal.h>
  21646. int
  21647. main ()
  21648. {
  21649. return *(signal (0, 0)) (0) == 1;
  21650. ;
  21651. return 0;
  21652. }
  21653. _ACEOF
  21654. rm -f conftest.$ac_objext
  21655. if { (ac_try="$ac_compile"
  21656. case "(($ac_try" in
  21657. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21658. *) ac_try_echo=$ac_try;;
  21659. esac
  21660. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21661. (eval "$ac_compile") 2>conftest.er1
  21662. ac_status=$?
  21663. grep -v '^ *+' conftest.er1 >conftest.err
  21664. rm -f conftest.er1
  21665. cat conftest.err >&5
  21666. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21667. (exit $ac_status); } && {
  21668. test -z "$ac_c_werror_flag" ||
  21669. test ! -s conftest.err
  21670. } && test -s conftest.$ac_objext; then
  21671. ac_cv_type_signal=int
  21672. else
  21673. echo "$as_me: failed program was:" >&5
  21674. sed 's/^/| /' conftest.$ac_ext >&5
  21675. ac_cv_type_signal=void
  21676. fi
  21677. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21678. fi
  21679. { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  21680. echo "${ECHO_T}$ac_cv_type_signal" >&6; }
  21681. cat >>confdefs.h <<_ACEOF
  21682. #define RETSIGTYPE $ac_cv_type_signal
  21683. _ACEOF
  21684. for ac_func in vprintf
  21685. do
  21686. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21687. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  21688. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  21689. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  21690. echo $ECHO_N "(cached) $ECHO_C" >&6
  21691. else
  21692. cat >conftest.$ac_ext <<_ACEOF
  21693. /* confdefs.h. */
  21694. _ACEOF
  21695. cat confdefs.h >>conftest.$ac_ext
  21696. cat >>conftest.$ac_ext <<_ACEOF
  21697. /* end confdefs.h. */
  21698. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  21699. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21700. #define $ac_func innocuous_$ac_func
  21701. /* System header to define __stub macros and hopefully few prototypes,
  21702. which can conflict with char $ac_func (); below.
  21703. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21704. <limits.h> exists even on freestanding compilers. */
  21705. #ifdef __STDC__
  21706. # include <limits.h>
  21707. #else
  21708. # include <assert.h>
  21709. #endif
  21710. #undef $ac_func
  21711. /* Override any GCC internal prototype to avoid an error.
  21712. Use char because int might match the return type of a GCC
  21713. builtin and then its argument prototype would still apply. */
  21714. #ifdef __cplusplus
  21715. extern "C"
  21716. #endif
  21717. char $ac_func ();
  21718. /* The GNU C library defines this for functions which it implements
  21719. to always fail with ENOSYS. Some functions are actually named
  21720. something starting with __ and the normal name is an alias. */
  21721. #if defined __stub_$ac_func || defined __stub___$ac_func
  21722. choke me
  21723. #endif
  21724. int
  21725. main ()
  21726. {
  21727. return $ac_func ();
  21728. ;
  21729. return 0;
  21730. }
  21731. _ACEOF
  21732. rm -f conftest.$ac_objext conftest$ac_exeext
  21733. if { (ac_try="$ac_link"
  21734. case "(($ac_try" in
  21735. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21736. *) ac_try_echo=$ac_try;;
  21737. esac
  21738. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21739. (eval "$ac_link") 2>conftest.er1
  21740. ac_status=$?
  21741. grep -v '^ *+' conftest.er1 >conftest.err
  21742. rm -f conftest.er1
  21743. cat conftest.err >&5
  21744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21745. (exit $ac_status); } && {
  21746. test -z "$ac_c_werror_flag" ||
  21747. test ! -s conftest.err
  21748. } && test -s conftest$ac_exeext &&
  21749. $as_test_x conftest$ac_exeext; then
  21750. eval "$as_ac_var=yes"
  21751. else
  21752. echo "$as_me: failed program was:" >&5
  21753. sed 's/^/| /' conftest.$ac_ext >&5
  21754. eval "$as_ac_var=no"
  21755. fi
  21756. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21757. conftest$ac_exeext conftest.$ac_ext
  21758. fi
  21759. ac_res=`eval echo '${'$as_ac_var'}'`
  21760. { echo "$as_me:$LINENO: result: $ac_res" >&5
  21761. echo "${ECHO_T}$ac_res" >&6; }
  21762. if test `eval echo '${'$as_ac_var'}'` = yes; then
  21763. cat >>confdefs.h <<_ACEOF
  21764. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21765. _ACEOF
  21766. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  21767. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  21768. if test "${ac_cv_func__doprnt+set}" = set; then
  21769. echo $ECHO_N "(cached) $ECHO_C" >&6
  21770. else
  21771. cat >conftest.$ac_ext <<_ACEOF
  21772. /* confdefs.h. */
  21773. _ACEOF
  21774. cat confdefs.h >>conftest.$ac_ext
  21775. cat >>conftest.$ac_ext <<_ACEOF
  21776. /* end confdefs.h. */
  21777. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  21778. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21779. #define _doprnt innocuous__doprnt
  21780. /* System header to define __stub macros and hopefully few prototypes,
  21781. which can conflict with char _doprnt (); below.
  21782. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21783. <limits.h> exists even on freestanding compilers. */
  21784. #ifdef __STDC__
  21785. # include <limits.h>
  21786. #else
  21787. # include <assert.h>
  21788. #endif
  21789. #undef _doprnt
  21790. /* Override any GCC internal prototype to avoid an error.
  21791. Use char because int might match the return type of a GCC
  21792. builtin and then its argument prototype would still apply. */
  21793. #ifdef __cplusplus
  21794. extern "C"
  21795. #endif
  21796. char _doprnt ();
  21797. /* The GNU C library defines this for functions which it implements
  21798. to always fail with ENOSYS. Some functions are actually named
  21799. something starting with __ and the normal name is an alias. */
  21800. #if defined __stub__doprnt || defined __stub____doprnt
  21801. choke me
  21802. #endif
  21803. int
  21804. main ()
  21805. {
  21806. return _doprnt ();
  21807. ;
  21808. return 0;
  21809. }
  21810. _ACEOF
  21811. rm -f conftest.$ac_objext conftest$ac_exeext
  21812. if { (ac_try="$ac_link"
  21813. case "(($ac_try" in
  21814. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21815. *) ac_try_echo=$ac_try;;
  21816. esac
  21817. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21818. (eval "$ac_link") 2>conftest.er1
  21819. ac_status=$?
  21820. grep -v '^ *+' conftest.er1 >conftest.err
  21821. rm -f conftest.er1
  21822. cat conftest.err >&5
  21823. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21824. (exit $ac_status); } && {
  21825. test -z "$ac_c_werror_flag" ||
  21826. test ! -s conftest.err
  21827. } && test -s conftest$ac_exeext &&
  21828. $as_test_x conftest$ac_exeext; then
  21829. ac_cv_func__doprnt=yes
  21830. else
  21831. echo "$as_me: failed program was:" >&5
  21832. sed 's/^/| /' conftest.$ac_ext >&5
  21833. ac_cv_func__doprnt=no
  21834. fi
  21835. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21836. conftest$ac_exeext conftest.$ac_ext
  21837. fi
  21838. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  21839. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  21840. if test $ac_cv_func__doprnt = yes; then
  21841. cat >>confdefs.h <<\_ACEOF
  21842. #define HAVE_DOPRNT 1
  21843. _ACEOF
  21844. fi
  21845. fi
  21846. done
  21847. { echo "$as_me:$LINENO: checking for struct timeval.tv_sec" >&5
  21848. echo $ECHO_N "checking for struct timeval.tv_sec... $ECHO_C" >&6; }
  21849. if test "${ac_cv_member_struct_timeval_tv_sec+set}" = set; then
  21850. echo $ECHO_N "(cached) $ECHO_C" >&6
  21851. else
  21852. cat >conftest.$ac_ext <<_ACEOF
  21853. /* confdefs.h. */
  21854. _ACEOF
  21855. cat confdefs.h >>conftest.$ac_ext
  21856. cat >>conftest.$ac_ext <<_ACEOF
  21857. /* end confdefs.h. */
  21858. $ac_includes_default
  21859. int
  21860. main ()
  21861. {
  21862. static struct timeval ac_aggr;
  21863. if (ac_aggr.tv_sec)
  21864. return 0;
  21865. ;
  21866. return 0;
  21867. }
  21868. _ACEOF
  21869. rm -f conftest.$ac_objext
  21870. if { (ac_try="$ac_compile"
  21871. case "(($ac_try" in
  21872. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21873. *) ac_try_echo=$ac_try;;
  21874. esac
  21875. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21876. (eval "$ac_compile") 2>conftest.er1
  21877. ac_status=$?
  21878. grep -v '^ *+' conftest.er1 >conftest.err
  21879. rm -f conftest.er1
  21880. cat conftest.err >&5
  21881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21882. (exit $ac_status); } && {
  21883. test -z "$ac_c_werror_flag" ||
  21884. test ! -s conftest.err
  21885. } && test -s conftest.$ac_objext; then
  21886. ac_cv_member_struct_timeval_tv_sec=yes
  21887. else
  21888. echo "$as_me: failed program was:" >&5
  21889. sed 's/^/| /' conftest.$ac_ext >&5
  21890. cat >conftest.$ac_ext <<_ACEOF
  21891. /* confdefs.h. */
  21892. _ACEOF
  21893. cat confdefs.h >>conftest.$ac_ext
  21894. cat >>conftest.$ac_ext <<_ACEOF
  21895. /* end confdefs.h. */
  21896. $ac_includes_default
  21897. int
  21898. main ()
  21899. {
  21900. static struct timeval ac_aggr;
  21901. if (sizeof ac_aggr.tv_sec)
  21902. return 0;
  21903. ;
  21904. return 0;
  21905. }
  21906. _ACEOF
  21907. rm -f conftest.$ac_objext
  21908. if { (ac_try="$ac_compile"
  21909. case "(($ac_try" in
  21910. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21911. *) ac_try_echo=$ac_try;;
  21912. esac
  21913. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21914. (eval "$ac_compile") 2>conftest.er1
  21915. ac_status=$?
  21916. grep -v '^ *+' conftest.er1 >conftest.err
  21917. rm -f conftest.er1
  21918. cat conftest.err >&5
  21919. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21920. (exit $ac_status); } && {
  21921. test -z "$ac_c_werror_flag" ||
  21922. test ! -s conftest.err
  21923. } && test -s conftest.$ac_objext; then
  21924. ac_cv_member_struct_timeval_tv_sec=yes
  21925. else
  21926. echo "$as_me: failed program was:" >&5
  21927. sed 's/^/| /' conftest.$ac_ext >&5
  21928. ac_cv_member_struct_timeval_tv_sec=no
  21929. fi
  21930. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21931. fi
  21932. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21933. fi
  21934. { echo "$as_me:$LINENO: result: $ac_cv_member_struct_timeval_tv_sec" >&5
  21935. echo "${ECHO_T}$ac_cv_member_struct_timeval_tv_sec" >&6; }
  21936. if test $ac_cv_member_struct_timeval_tv_sec = yes; then
  21937. cat >>confdefs.h <<_ACEOF
  21938. #define HAVE_STRUCT_TIMEVAL_TV_SEC 1
  21939. _ACEOF
  21940. fi
  21941. for ac_func in gettimeofday ctime memset regcomp strdup strchr strerror strtol strncpy strtoull poll ntohll mmap snprintf vsnprintf strsignal
  21942. do
  21943. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21944. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  21945. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  21946. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  21947. echo $ECHO_N "(cached) $ECHO_C" >&6
  21948. else
  21949. cat >conftest.$ac_ext <<_ACEOF
  21950. /* confdefs.h. */
  21951. _ACEOF
  21952. cat confdefs.h >>conftest.$ac_ext
  21953. cat >>conftest.$ac_ext <<_ACEOF
  21954. /* end confdefs.h. */
  21955. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  21956. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21957. #define $ac_func innocuous_$ac_func
  21958. /* System header to define __stub macros and hopefully few prototypes,
  21959. which can conflict with char $ac_func (); below.
  21960. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21961. <limits.h> exists even on freestanding compilers. */
  21962. #ifdef __STDC__
  21963. # include <limits.h>
  21964. #else
  21965. # include <assert.h>
  21966. #endif
  21967. #undef $ac_func
  21968. /* Override any GCC internal prototype to avoid an error.
  21969. Use char because int might match the return type of a GCC
  21970. builtin and then its argument prototype would still apply. */
  21971. #ifdef __cplusplus
  21972. extern "C"
  21973. #endif
  21974. char $ac_func ();
  21975. /* The GNU C library defines this for functions which it implements
  21976. to always fail with ENOSYS. Some functions are actually named
  21977. something starting with __ and the normal name is an alias. */
  21978. #if defined __stub_$ac_func || defined __stub___$ac_func
  21979. choke me
  21980. #endif
  21981. int
  21982. main ()
  21983. {
  21984. return $ac_func ();
  21985. ;
  21986. return 0;
  21987. }
  21988. _ACEOF
  21989. rm -f conftest.$ac_objext conftest$ac_exeext
  21990. if { (ac_try="$ac_link"
  21991. case "(($ac_try" in
  21992. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21993. *) ac_try_echo=$ac_try;;
  21994. esac
  21995. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21996. (eval "$ac_link") 2>conftest.er1
  21997. ac_status=$?
  21998. grep -v '^ *+' conftest.er1 >conftest.err
  21999. rm -f conftest.er1
  22000. cat conftest.err >&5
  22001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22002. (exit $ac_status); } && {
  22003. test -z "$ac_c_werror_flag" ||
  22004. test ! -s conftest.err
  22005. } && test -s conftest$ac_exeext &&
  22006. $as_test_x conftest$ac_exeext; then
  22007. eval "$as_ac_var=yes"
  22008. else
  22009. echo "$as_me: failed program was:" >&5
  22010. sed 's/^/| /' conftest.$ac_ext >&5
  22011. eval "$as_ac_var=no"
  22012. fi
  22013. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22014. conftest$ac_exeext conftest.$ac_ext
  22015. fi
  22016. ac_res=`eval echo '${'$as_ac_var'}'`
  22017. { echo "$as_me:$LINENO: result: $ac_res" >&5
  22018. echo "${ECHO_T}$ac_res" >&6; }
  22019. if test `eval echo '${'$as_ac_var'}'` = yes; then
  22020. cat >>confdefs.h <<_ACEOF
  22021. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  22022. _ACEOF
  22023. fi
  22024. done
  22025. for ac_func in strlcpy
  22026. do
  22027. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  22028. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  22029. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  22030. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  22031. echo $ECHO_N "(cached) $ECHO_C" >&6
  22032. else
  22033. cat >conftest.$ac_ext <<_ACEOF
  22034. /* confdefs.h. */
  22035. _ACEOF
  22036. cat confdefs.h >>conftest.$ac_ext
  22037. cat >>conftest.$ac_ext <<_ACEOF
  22038. /* end confdefs.h. */
  22039. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  22040. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  22041. #define $ac_func innocuous_$ac_func
  22042. /* System header to define __stub macros and hopefully few prototypes,
  22043. which can conflict with char $ac_func (); below.
  22044. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22045. <limits.h> exists even on freestanding compilers. */
  22046. #ifdef __STDC__
  22047. # include <limits.h>
  22048. #else
  22049. # include <assert.h>
  22050. #endif
  22051. #undef $ac_func
  22052. /* Override any GCC internal prototype to avoid an error.
  22053. Use char because int might match the return type of a GCC
  22054. builtin and then its argument prototype would still apply. */
  22055. #ifdef __cplusplus
  22056. extern "C"
  22057. #endif
  22058. char $ac_func ();
  22059. /* The GNU C library defines this for functions which it implements
  22060. to always fail with ENOSYS. Some functions are actually named
  22061. something starting with __ and the normal name is an alias. */
  22062. #if defined __stub_$ac_func || defined __stub___$ac_func
  22063. choke me
  22064. #endif
  22065. int
  22066. main ()
  22067. {
  22068. return $ac_func ();
  22069. ;
  22070. return 0;
  22071. }
  22072. _ACEOF
  22073. rm -f conftest.$ac_objext conftest$ac_exeext
  22074. if { (ac_try="$ac_link"
  22075. case "(($ac_try" in
  22076. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22077. *) ac_try_echo=$ac_try;;
  22078. esac
  22079. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22080. (eval "$ac_link") 2>conftest.er1
  22081. ac_status=$?
  22082. grep -v '^ *+' conftest.er1 >conftest.err
  22083. rm -f conftest.er1
  22084. cat conftest.err >&5
  22085. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22086. (exit $ac_status); } && {
  22087. test -z "$ac_c_werror_flag" ||
  22088. test ! -s conftest.err
  22089. } && test -s conftest$ac_exeext &&
  22090. $as_test_x conftest$ac_exeext; then
  22091. eval "$as_ac_var=yes"
  22092. else
  22093. echo "$as_me: failed program was:" >&5
  22094. sed 's/^/| /' conftest.$ac_ext >&5
  22095. eval "$as_ac_var=no"
  22096. fi
  22097. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22098. conftest$ac_exeext conftest.$ac_ext
  22099. fi
  22100. ac_res=`eval echo '${'$as_ac_var'}'`
  22101. { echo "$as_me:$LINENO: result: $ac_res" >&5
  22102. echo "${ECHO_T}$ac_res" >&6; }
  22103. if test `eval echo '${'$as_ac_var'}'` = yes; then
  22104. cat >>confdefs.h <<_ACEOF
  22105. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  22106. _ACEOF
  22107. have_strlcpy=true
  22108. else
  22109. have_strlcpy=false
  22110. fi
  22111. done
  22112. if test x$have_strlcpy = xtrue; then
  22113. SYSTEM_STRLCPY_TRUE=
  22114. SYSTEM_STRLCPY_FALSE='#'
  22115. else
  22116. SYSTEM_STRLCPY_TRUE='#'
  22117. SYSTEM_STRLCPY_FALSE=
  22118. fi
  22119. { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  22120. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
  22121. if test "${ac_cv_c_bigendian+set}" = set; then
  22122. echo $ECHO_N "(cached) $ECHO_C" >&6
  22123. else
  22124. # See if sys/param.h defines the BYTE_ORDER macro.
  22125. cat >conftest.$ac_ext <<_ACEOF
  22126. /* confdefs.h. */
  22127. _ACEOF
  22128. cat confdefs.h >>conftest.$ac_ext
  22129. cat >>conftest.$ac_ext <<_ACEOF
  22130. /* end confdefs.h. */
  22131. #include <sys/types.h>
  22132. #include <sys/param.h>
  22133. int
  22134. main ()
  22135. {
  22136. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
  22137. && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
  22138. bogus endian macros
  22139. #endif
  22140. ;
  22141. return 0;
  22142. }
  22143. _ACEOF
  22144. rm -f conftest.$ac_objext
  22145. if { (ac_try="$ac_compile"
  22146. case "(($ac_try" in
  22147. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22148. *) ac_try_echo=$ac_try;;
  22149. esac
  22150. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22151. (eval "$ac_compile") 2>conftest.er1
  22152. ac_status=$?
  22153. grep -v '^ *+' conftest.er1 >conftest.err
  22154. rm -f conftest.er1
  22155. cat conftest.err >&5
  22156. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22157. (exit $ac_status); } && {
  22158. test -z "$ac_c_werror_flag" ||
  22159. test ! -s conftest.err
  22160. } && test -s conftest.$ac_objext; then
  22161. # It does; now see whether it defined to BIG_ENDIAN or not.
  22162. cat >conftest.$ac_ext <<_ACEOF
  22163. /* confdefs.h. */
  22164. _ACEOF
  22165. cat confdefs.h >>conftest.$ac_ext
  22166. cat >>conftest.$ac_ext <<_ACEOF
  22167. /* end confdefs.h. */
  22168. #include <sys/types.h>
  22169. #include <sys/param.h>
  22170. int
  22171. main ()
  22172. {
  22173. #if BYTE_ORDER != BIG_ENDIAN
  22174. not big endian
  22175. #endif
  22176. ;
  22177. return 0;
  22178. }
  22179. _ACEOF
  22180. rm -f conftest.$ac_objext
  22181. if { (ac_try="$ac_compile"
  22182. case "(($ac_try" in
  22183. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22184. *) ac_try_echo=$ac_try;;
  22185. esac
  22186. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22187. (eval "$ac_compile") 2>conftest.er1
  22188. ac_status=$?
  22189. grep -v '^ *+' conftest.er1 >conftest.err
  22190. rm -f conftest.er1
  22191. cat conftest.err >&5
  22192. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22193. (exit $ac_status); } && {
  22194. test -z "$ac_c_werror_flag" ||
  22195. test ! -s conftest.err
  22196. } && test -s conftest.$ac_objext; then
  22197. ac_cv_c_bigendian=yes
  22198. else
  22199. echo "$as_me: failed program was:" >&5
  22200. sed 's/^/| /' conftest.$ac_ext >&5
  22201. ac_cv_c_bigendian=no
  22202. fi
  22203. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22204. else
  22205. echo "$as_me: failed program was:" >&5
  22206. sed 's/^/| /' conftest.$ac_ext >&5
  22207. # It does not; compile a test program.
  22208. if test "$cross_compiling" = yes; then
  22209. # try to guess the endianness by grepping values into an object file
  22210. ac_cv_c_bigendian=unknown
  22211. cat >conftest.$ac_ext <<_ACEOF
  22212. /* confdefs.h. */
  22213. _ACEOF
  22214. cat confdefs.h >>conftest.$ac_ext
  22215. cat >>conftest.$ac_ext <<_ACEOF
  22216. /* end confdefs.h. */
  22217. short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  22218. short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  22219. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  22220. short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  22221. short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  22222. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  22223. int
  22224. main ()
  22225. {
  22226. _ascii (); _ebcdic ();
  22227. ;
  22228. return 0;
  22229. }
  22230. _ACEOF
  22231. rm -f conftest.$ac_objext
  22232. if { (ac_try="$ac_compile"
  22233. case "(($ac_try" in
  22234. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22235. *) ac_try_echo=$ac_try;;
  22236. esac
  22237. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22238. (eval "$ac_compile") 2>conftest.er1
  22239. ac_status=$?
  22240. grep -v '^ *+' conftest.er1 >conftest.err
  22241. rm -f conftest.er1
  22242. cat conftest.err >&5
  22243. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22244. (exit $ac_status); } && {
  22245. test -z "$ac_c_werror_flag" ||
  22246. test ! -s conftest.err
  22247. } && test -s conftest.$ac_objext; then
  22248. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  22249. ac_cv_c_bigendian=yes
  22250. fi
  22251. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  22252. if test "$ac_cv_c_bigendian" = unknown; then
  22253. ac_cv_c_bigendian=no
  22254. else
  22255. # finding both strings is unlikely to happen, but who knows?
  22256. ac_cv_c_bigendian=unknown
  22257. fi
  22258. fi
  22259. else
  22260. echo "$as_me: failed program was:" >&5
  22261. sed 's/^/| /' conftest.$ac_ext >&5
  22262. fi
  22263. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22264. else
  22265. cat >conftest.$ac_ext <<_ACEOF
  22266. /* confdefs.h. */
  22267. _ACEOF
  22268. cat confdefs.h >>conftest.$ac_ext
  22269. cat >>conftest.$ac_ext <<_ACEOF
  22270. /* end confdefs.h. */
  22271. $ac_includes_default
  22272. int
  22273. main ()
  22274. {
  22275. /* Are we little or big endian? From Harbison&Steele. */
  22276. union
  22277. {
  22278. long int l;
  22279. char c[sizeof (long int)];
  22280. } u;
  22281. u.l = 1;
  22282. return u.c[sizeof (long int) - 1] == 1;
  22283. ;
  22284. return 0;
  22285. }
  22286. _ACEOF
  22287. rm -f conftest$ac_exeext
  22288. if { (ac_try="$ac_link"
  22289. case "(($ac_try" in
  22290. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22291. *) ac_try_echo=$ac_try;;
  22292. esac
  22293. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22294. (eval "$ac_link") 2>&5
  22295. ac_status=$?
  22296. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22297. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22298. { (case "(($ac_try" in
  22299. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22300. *) ac_try_echo=$ac_try;;
  22301. esac
  22302. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22303. (eval "$ac_try") 2>&5
  22304. ac_status=$?
  22305. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22306. (exit $ac_status); }; }; then
  22307. ac_cv_c_bigendian=no
  22308. else
  22309. echo "$as_me: program exited with status $ac_status" >&5
  22310. echo "$as_me: failed program was:" >&5
  22311. sed 's/^/| /' conftest.$ac_ext >&5
  22312. ( exit $ac_status )
  22313. ac_cv_c_bigendian=yes
  22314. fi
  22315. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22316. fi
  22317. fi
  22318. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22319. fi
  22320. { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  22321. echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
  22322. case $ac_cv_c_bigendian in
  22323. yes)
  22324. cat >>confdefs.h <<\_ACEOF
  22325. #define WORDS_BIGENDIAN 1
  22326. _ACEOF
  22327. ;;
  22328. no)
  22329. ;;
  22330. *)
  22331. { { echo "$as_me:$LINENO: error: unknown endianness
  22332. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  22333. echo "$as_me: error: unknown endianness
  22334. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  22335. { (exit 1); exit 1; }; } ;;
  22336. esac
  22337. if test x$ac_cv_c_bigendian = xyes ; then
  22338. WORDS_BIGENDIAN_TRUE=
  22339. WORDS_BIGENDIAN_FALSE='#'
  22340. else
  22341. WORDS_BIGENDIAN_TRUE='#'
  22342. WORDS_BIGENDIAN_FALSE=
  22343. fi
  22344. debug=no
  22345. # Check whether --enable-debug was given.
  22346. if test "${enable_debug+set}" = set; then
  22347. enableval=$enable_debug; if test x$enableval = xyes; then
  22348. debug=yes
  22349. CFLAGS="${USER_CFLAGS} -ggdb -std=gnu99 -Wall $wextra $wfatal_errors $wno_variadic_macros"
  22350. # We may also want to add:
  22351. # -Wformat-security -Wswitch-default -Wunused-paramter -Wpadded"
  22352. cat >>confdefs.h <<\_ACEOF
  22353. #define DEBUG 1
  22354. _ACEOF
  22355. fi
  22356. fi
  22357. # Check whether --enable-pedantic was given.
  22358. if test "${enable_pedantic+set}" = set; then
  22359. enableval=$enable_pedantic; if test x$enableval = xyes; then
  22360. CFLAGS="$CFLAGS -pedantic"
  22361. fi
  22362. fi
  22363. # Check whether --enable-efence was given.
  22364. if test "${enable_efence+set}" = set; then
  22365. enableval=$enable_efence; if test x$enableval = xyes; then
  22366. CFLAGS="$CFLAGS -lefence"
  22367. cat >>confdefs.h <<\_ACEOF
  22368. #define EFENCE 1
  22369. _ACEOF
  22370. fi
  22371. fi
  22372. # Check whether --enable-gprof was given.
  22373. if test "${enable_gprof+set}" = set; then
  22374. enableval=$enable_gprof; if test x$enableval = xyes; then
  22375. if test $debug = yes; then
  22376. CFLAGS="$CFLAGS -pg"
  22377. else
  22378. # GPROF requires gdb
  22379. CFLAGS="$CFLAGS -ggdb -pg -fprofile-arcs"
  22380. fi
  22381. cat >>confdefs.h <<\_ACEOF
  22382. #define GPROF 1
  22383. _ACEOF
  22384. fi
  22385. fi
  22386. use64bit_counters=yes
  22387. # Check whether --enable-64bits was given.
  22388. if test "${enable_64bits+set}" = set; then
  22389. enableval=$enable_64bits;
  22390. { echo "$as_me:$LINENO: Using u_int32_t for packet counters" >&5
  22391. echo "$as_me: Using u_int32_t for packet counters" >&6;}
  22392. else
  22393. cat >>confdefs.h <<\_ACEOF
  22394. #define ENABLE_64BITS 1
  22395. _ACEOF
  22396. { echo "$as_me:$LINENO: Using u_int64_t for packet counters" >&5
  22397. echo "$as_me: Using u_int64_t for packet counters" >&6;}
  22398. fi
  22399. # If we're running gcc add '-D_U_="__attribute__((unused))"' to CFLAGS as well,
  22400. # so we can use _U_ to flag unused function arguments and not get warnings
  22401. # about them. Otherwise, add '-D_U_=""', so that _U_ used to flag an unused
  22402. # function argument will compile with non-GCC compilers.
  22403. #
  22404. if test "x$GCC" = "xyes" ; then
  22405. CFLAGS="-D_U_=\"__attribute__((unused))\" $CFLAGS"
  22406. else
  22407. CFLAGS="-D_U_=\"\" $CFLAGS"
  22408. fi
  22409. # Check whether --enable-force-bpf was given.
  22410. if test "${enable_force_bpf+set}" = set; then
  22411. enableval=$enable_force_bpf;
  22412. cat >>confdefs.h <<\_ACEOF
  22413. #define FORCE_INJECT_BPF 1
  22414. _ACEOF
  22415. fi
  22416. # Check whether --enable-force-pf was given.
  22417. if test "${enable_force_pf+set}" = set; then
  22418. enableval=$enable_force_pf;
  22419. cat >>confdefs.h <<\_ACEOF
  22420. #define FORCE_INJECT_PF 1
  22421. _ACEOF
  22422. fi
  22423. # Check whether --enable-force-libnet was given.
  22424. if test "${enable_force_libnet+set}" = set; then
  22425. enableval=$enable_force_libnet;
  22426. cat >>confdefs.h <<\_ACEOF
  22427. #define FORCE_INJECT_LIBNET 1
  22428. _ACEOF
  22429. fi
  22430. # Check whether --enable-force-inject was given.
  22431. if test "${enable_force_inject+set}" = set; then
  22432. enableval=$enable_force_inject;
  22433. cat >>confdefs.h <<\_ACEOF
  22434. #define FORCE_INJECT_PCAP_INJECT 1
  22435. _ACEOF
  22436. fi
  22437. # Check whether --enable-force-sendpacket was given.
  22438. if test "${enable_force_sendpacket+set}" = set; then
  22439. enableval=$enable_force_sendpacket;
  22440. cat >>confdefs.h <<\_ACEOF
  22441. #define FORCE_INJECT_PCAP_SENDPACKET 1
  22442. _ACEOF
  22443. fi
  22444. tcpreplay_edit=no
  22445. # Check whether --enable-tcpreplay-edit was given.
  22446. if test "${enable_tcpreplay_edit+set}" = set; then
  22447. enableval=$enable_tcpreplay_edit;
  22448. cat >>confdefs.h <<\_ACEOF
  22449. #define TCPREPLAY_EDIT 1
  22450. _ACEOF
  22451. tcpreplay_edit=yes
  22452. fi
  22453. if test x$tcpreplay_edit = xyes; then
  22454. ENABLE_TCPREPLAY_EDIT_TRUE=
  22455. ENABLE_TCPREPLAY_EDIT_FALSE='#'
  22456. else
  22457. ENABLE_TCPREPLAY_EDIT_TRUE='#'
  22458. ENABLE_TCPREPLAY_EDIT_FALSE=
  22459. fi
  22460. dynamic_link=no
  22461. # Check whether --enable-dynamic-link was given.
  22462. if test "${enable_dynamic_link+set}" = set; then
  22463. enableval=$enable_dynamic_link; if test x$enableval = xyes; then
  22464. cat >>confdefs.h <<\_ACEOF
  22465. #define ENABLE_DYNAMIC_LINK 1
  22466. _ACEOF
  22467. dynamic_link=yes
  22468. fi
  22469. fi
  22470. { echo "$as_me:$LINENO: checking for inet_aton" >&5
  22471. echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
  22472. if test "${ac_cv_func_inet_aton+set}" = set; then
  22473. echo $ECHO_N "(cached) $ECHO_C" >&6
  22474. else
  22475. cat >conftest.$ac_ext <<_ACEOF
  22476. /* confdefs.h. */
  22477. _ACEOF
  22478. cat confdefs.h >>conftest.$ac_ext
  22479. cat >>conftest.$ac_ext <<_ACEOF
  22480. /* end confdefs.h. */
  22481. /* Define inet_aton to an innocuous variant, in case <limits.h> declares inet_aton.
  22482. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  22483. #define inet_aton innocuous_inet_aton
  22484. /* System header to define __stub macros and hopefully few prototypes,
  22485. which can conflict with char inet_aton (); below.
  22486. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22487. <limits.h> exists even on freestanding compilers. */
  22488. #ifdef __STDC__
  22489. # include <limits.h>
  22490. #else
  22491. # include <assert.h>
  22492. #endif
  22493. #undef inet_aton
  22494. /* Override any GCC internal prototype to avoid an error.
  22495. Use char because int might match the return type of a GCC
  22496. builtin and then its argument prototype would still apply. */
  22497. #ifdef __cplusplus
  22498. extern "C"
  22499. #endif
  22500. char inet_aton ();
  22501. /* The GNU C library defines this for functions which it implements
  22502. to always fail with ENOSYS. Some functions are actually named
  22503. something starting with __ and the normal name is an alias. */
  22504. #if defined __stub_inet_aton || defined __stub___inet_aton
  22505. choke me
  22506. #endif
  22507. int
  22508. main ()
  22509. {
  22510. return inet_aton ();
  22511. ;
  22512. return 0;
  22513. }
  22514. _ACEOF
  22515. rm -f conftest.$ac_objext conftest$ac_exeext
  22516. if { (ac_try="$ac_link"
  22517. case "(($ac_try" in
  22518. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22519. *) ac_try_echo=$ac_try;;
  22520. esac
  22521. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22522. (eval "$ac_link") 2>conftest.er1
  22523. ac_status=$?
  22524. grep -v '^ *+' conftest.er1 >conftest.err
  22525. rm -f conftest.er1
  22526. cat conftest.err >&5
  22527. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22528. (exit $ac_status); } && {
  22529. test -z "$ac_c_werror_flag" ||
  22530. test ! -s conftest.err
  22531. } && test -s conftest$ac_exeext &&
  22532. $as_test_x conftest$ac_exeext; then
  22533. ac_cv_func_inet_aton=yes
  22534. else
  22535. echo "$as_me: failed program was:" >&5
  22536. sed 's/^/| /' conftest.$ac_ext >&5
  22537. ac_cv_func_inet_aton=no
  22538. fi
  22539. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22540. conftest$ac_exeext conftest.$ac_ext
  22541. fi
  22542. { echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton" >&5
  22543. echo "${ECHO_T}$ac_cv_func_inet_aton" >&6; }
  22544. if test $ac_cv_func_inet_aton = yes; then
  22545. cat >>confdefs.h <<\_ACEOF
  22546. #define HAVE_INET_ATON 1
  22547. _ACEOF
  22548. inet_aton=yes
  22549. else
  22550. inet_aton=no
  22551. fi
  22552. { echo "$as_me:$LINENO: checking for inet_pton" >&5
  22553. echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
  22554. if test "${ac_cv_func_inet_pton+set}" = set; then
  22555. echo $ECHO_N "(cached) $ECHO_C" >&6
  22556. else
  22557. cat >conftest.$ac_ext <<_ACEOF
  22558. /* confdefs.h. */
  22559. _ACEOF
  22560. cat confdefs.h >>conftest.$ac_ext
  22561. cat >>conftest.$ac_ext <<_ACEOF
  22562. /* end confdefs.h. */
  22563. /* Define inet_pton to an innocuous variant, in case <limits.h> declares inet_pton.
  22564. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  22565. #define inet_pton innocuous_inet_pton
  22566. /* System header to define __stub macros and hopefully few prototypes,
  22567. which can conflict with char inet_pton (); below.
  22568. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22569. <limits.h> exists even on freestanding compilers. */
  22570. #ifdef __STDC__
  22571. # include <limits.h>
  22572. #else
  22573. # include <assert.h>
  22574. #endif
  22575. #undef inet_pton
  22576. /* Override any GCC internal prototype to avoid an error.
  22577. Use char because int might match the return type of a GCC
  22578. builtin and then its argument prototype would still apply. */
  22579. #ifdef __cplusplus
  22580. extern "C"
  22581. #endif
  22582. char inet_pton ();
  22583. /* The GNU C library defines this for functions which it implements
  22584. to always fail with ENOSYS. Some functions are actually named
  22585. something starting with __ and the normal name is an alias. */
  22586. #if defined __stub_inet_pton || defined __stub___inet_pton
  22587. choke me
  22588. #endif
  22589. int
  22590. main ()
  22591. {
  22592. return inet_pton ();
  22593. ;
  22594. return 0;
  22595. }
  22596. _ACEOF
  22597. rm -f conftest.$ac_objext conftest$ac_exeext
  22598. if { (ac_try="$ac_link"
  22599. case "(($ac_try" in
  22600. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22601. *) ac_try_echo=$ac_try;;
  22602. esac
  22603. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22604. (eval "$ac_link") 2>conftest.er1
  22605. ac_status=$?
  22606. grep -v '^ *+' conftest.er1 >conftest.err
  22607. rm -f conftest.er1
  22608. cat conftest.err >&5
  22609. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22610. (exit $ac_status); } && {
  22611. test -z "$ac_c_werror_flag" ||
  22612. test ! -s conftest.err
  22613. } && test -s conftest$ac_exeext &&
  22614. $as_test_x conftest$ac_exeext; then
  22615. ac_cv_func_inet_pton=yes
  22616. else
  22617. echo "$as_me: failed program was:" >&5
  22618. sed 's/^/| /' conftest.$ac_ext >&5
  22619. ac_cv_func_inet_pton=no
  22620. fi
  22621. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22622. conftest$ac_exeext conftest.$ac_ext
  22623. fi
  22624. { echo "$as_me:$LINENO: result: $ac_cv_func_inet_pton" >&5
  22625. echo "${ECHO_T}$ac_cv_func_inet_pton" >&6; }
  22626. if test $ac_cv_func_inet_pton = yes; then
  22627. cat >>confdefs.h <<\_ACEOF
  22628. #define HAVE_INET_PTON 1
  22629. _ACEOF
  22630. inet_pton=yes
  22631. else
  22632. inet_pton=no
  22633. fi
  22634. { echo "$as_me:$LINENO: checking for inet_ntop" >&5
  22635. echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; }
  22636. if test "${ac_cv_func_inet_ntop+set}" = set; then
  22637. echo $ECHO_N "(cached) $ECHO_C" >&6
  22638. else
  22639. cat >conftest.$ac_ext <<_ACEOF
  22640. /* confdefs.h. */
  22641. _ACEOF
  22642. cat confdefs.h >>conftest.$ac_ext
  22643. cat >>conftest.$ac_ext <<_ACEOF
  22644. /* end confdefs.h. */
  22645. /* Define inet_ntop to an innocuous variant, in case <limits.h> declares inet_ntop.
  22646. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  22647. #define inet_ntop innocuous_inet_ntop
  22648. /* System header to define __stub macros and hopefully few prototypes,
  22649. which can conflict with char inet_ntop (); below.
  22650. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22651. <limits.h> exists even on freestanding compilers. */
  22652. #ifdef __STDC__
  22653. # include <limits.h>
  22654. #else
  22655. # include <assert.h>
  22656. #endif
  22657. #undef inet_ntop
  22658. /* Override any GCC internal prototype to avoid an error.
  22659. Use char because int might match the return type of a GCC
  22660. builtin and then its argument prototype would still apply. */
  22661. #ifdef __cplusplus
  22662. extern "C"
  22663. #endif
  22664. char inet_ntop ();
  22665. /* The GNU C library defines this for functions which it implements
  22666. to always fail with ENOSYS. Some functions are actually named
  22667. something starting with __ and the normal name is an alias. */
  22668. #if defined __stub_inet_ntop || defined __stub___inet_ntop
  22669. choke me
  22670. #endif
  22671. int
  22672. main ()
  22673. {
  22674. return inet_ntop ();
  22675. ;
  22676. return 0;
  22677. }
  22678. _ACEOF
  22679. rm -f conftest.$ac_objext conftest$ac_exeext
  22680. if { (ac_try="$ac_link"
  22681. case "(($ac_try" in
  22682. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22683. *) ac_try_echo=$ac_try;;
  22684. esac
  22685. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22686. (eval "$ac_link") 2>conftest.er1
  22687. ac_status=$?
  22688. grep -v '^ *+' conftest.er1 >conftest.err
  22689. rm -f conftest.er1
  22690. cat conftest.err >&5
  22691. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22692. (exit $ac_status); } && {
  22693. test -z "$ac_c_werror_flag" ||
  22694. test ! -s conftest.err
  22695. } && test -s conftest$ac_exeext &&
  22696. $as_test_x conftest$ac_exeext; then
  22697. ac_cv_func_inet_ntop=yes
  22698. else
  22699. echo "$as_me: failed program was:" >&5
  22700. sed 's/^/| /' conftest.$ac_ext >&5
  22701. ac_cv_func_inet_ntop=no
  22702. fi
  22703. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22704. conftest$ac_exeext conftest.$ac_ext
  22705. fi
  22706. { echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
  22707. echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6; }
  22708. if test $ac_cv_func_inet_ntop = yes; then
  22709. cat >>confdefs.h <<\_ACEOF
  22710. #define HAVE_INET_NTOP 1
  22711. _ACEOF
  22712. inet_ntop=yes
  22713. else
  22714. inet_ntop=no
  22715. fi
  22716. if test "$inet_ntop" = "no" -a "$inet_pton" = "no" ; then
  22717. { { echo "$as_me:$LINENO: error: We need either inet_ntop or inet_pton" >&5
  22718. echo "$as_me: error: We need either inet_ntop or inet_pton" >&2;}
  22719. { (exit 1); exit 1; }; }
  22720. fi
  22721. { echo "$as_me:$LINENO: checking for inet_addr" >&5
  22722. echo $ECHO_N "checking for inet_addr... $ECHO_C" >&6; }
  22723. if test "${ac_cv_func_inet_addr+set}" = set; then
  22724. echo $ECHO_N "(cached) $ECHO_C" >&6
  22725. else
  22726. cat >conftest.$ac_ext <<_ACEOF
  22727. /* confdefs.h. */
  22728. _ACEOF
  22729. cat confdefs.h >>conftest.$ac_ext
  22730. cat >>conftest.$ac_ext <<_ACEOF
  22731. /* end confdefs.h. */
  22732. /* Define inet_addr to an innocuous variant, in case <limits.h> declares inet_addr.
  22733. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  22734. #define inet_addr innocuous_inet_addr
  22735. /* System header to define __stub macros and hopefully few prototypes,
  22736. which can conflict with char inet_addr (); below.
  22737. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22738. <limits.h> exists even on freestanding compilers. */
  22739. #ifdef __STDC__
  22740. # include <limits.h>
  22741. #else
  22742. # include <assert.h>
  22743. #endif
  22744. #undef inet_addr
  22745. /* Override any GCC internal prototype to avoid an error.
  22746. Use char because int might match the return type of a GCC
  22747. builtin and then its argument prototype would still apply. */
  22748. #ifdef __cplusplus
  22749. extern "C"
  22750. #endif
  22751. char inet_addr ();
  22752. /* The GNU C library defines this for functions which it implements
  22753. to always fail with ENOSYS. Some functions are actually named
  22754. something starting with __ and the normal name is an alias. */
  22755. #if defined __stub_inet_addr || defined __stub___inet_addr
  22756. choke me
  22757. #endif
  22758. int
  22759. main ()
  22760. {
  22761. return inet_addr ();
  22762. ;
  22763. return 0;
  22764. }
  22765. _ACEOF
  22766. rm -f conftest.$ac_objext conftest$ac_exeext
  22767. if { (ac_try="$ac_link"
  22768. case "(($ac_try" in
  22769. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22770. *) ac_try_echo=$ac_try;;
  22771. esac
  22772. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22773. (eval "$ac_link") 2>conftest.er1
  22774. ac_status=$?
  22775. grep -v '^ *+' conftest.er1 >conftest.err
  22776. rm -f conftest.er1
  22777. cat conftest.err >&5
  22778. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22779. (exit $ac_status); } && {
  22780. test -z "$ac_c_werror_flag" ||
  22781. test ! -s conftest.err
  22782. } && test -s conftest$ac_exeext &&
  22783. $as_test_x conftest$ac_exeext; then
  22784. ac_cv_func_inet_addr=yes
  22785. else
  22786. echo "$as_me: failed program was:" >&5
  22787. sed 's/^/| /' conftest.$ac_ext >&5
  22788. ac_cv_func_inet_addr=no
  22789. fi
  22790. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22791. conftest$ac_exeext conftest.$ac_ext
  22792. fi
  22793. { echo "$as_me:$LINENO: result: $ac_cv_func_inet_addr" >&5
  22794. echo "${ECHO_T}$ac_cv_func_inet_addr" >&6; }
  22795. if test $ac_cv_func_inet_addr = yes; then
  22796. cat >>confdefs.h <<\_ACEOF
  22797. #define HAVE_INET_ADDR 1
  22798. _ACEOF
  22799. inet_addr=yes
  22800. else
  22801. inet_addr=no
  22802. fi
  22803. if test x$inet_addr = no ; then
  22804. { { echo "$as_me:$LINENO: error: We need inet_addr. See bug 26" >&5
  22805. echo "$as_me: error: We need inet_addr. See bug 26" >&2;}
  22806. { (exit 1); exit 1; }; }
  22807. fi
  22808. foundnet=no
  22809. trynetdir=no
  22810. have_libnet=no
  22811. use_libnet=no
  22812. # Check whether --enable-libnet was given.
  22813. if test "${enable_libnet+set}" = set; then
  22814. enableval=$enable_libnet; if test x$enableval = xyes; then
  22815. use_libnet=yes
  22816. { echo "$as_me:$LINENO: WARNING: Due to bugs in libnet, it is no longer officially supported" >&5
  22817. echo "$as_me: WARNING: Due to bugs in libnet, it is no longer officially supported" >&2;}
  22818. fi
  22819. fi
  22820. # Check whether --with-libnet was given.
  22821. if test "${with_libnet+set}" = set; then
  22822. withval=$with_libnet; trynetdir=$withval
  22823. fi
  22824. if test x$use_libnet = xyes ; then
  22825. { echo "$as_me:$LINENO: checking for libnet" >&5
  22826. echo $ECHO_N "checking for libnet... $ECHO_C" >&6; }
  22827. for testdir in $trynetdir /usr/local /opt/local /usr ; do
  22828. if test -f "${testdir}/include/libnet.h" -a $foundnet = no ; then
  22829. LNETINC="${testdir}/include/libnet.h"
  22830. LNETINCDIR="${testdir}/include"
  22831. if test $dynamic_link = yes; then
  22832. if test -f "${testdir}/lib64/libnet${shrext_cmds}" ; then
  22833. LNETLIB="-L${testdir}/lib64 -lnet"
  22834. elif test -f "${testdir}/lib/libnet${shrext_cmds}" ; then
  22835. LNETLIB="-L${testdir}/lib -lnet"
  22836. else
  22837. { { echo "$as_me:$LINENO: error: Unable to find libnet in ${testdir}" >&5
  22838. echo "$as_me: error: Unable to find libnet in ${testdir}" >&2;}
  22839. { (exit 1); exit 1; }; }
  22840. fi
  22841. elif test -f "${testdir}/lib64/libnet.${libext}" ; then
  22842. LNETLIB="${testdir}/lib64/libnet.${libext}"
  22843. elif test -f "${testdir}/lib/libnet.${libext}" ; then
  22844. LNETLIB="${testdir}/lib/libnet.${libext}"
  22845. else
  22846. { { echo "$as_me:$LINENO: error: Unable to find matching library for header file in ${testdir}" >&5
  22847. echo "$as_me: error: Unable to find matching library for header file in ${testdir}" >&2;}
  22848. { (exit 1); exit 1; }; }
  22849. fi
  22850. foundnet=$testdir
  22851. fi
  22852. done
  22853. if test x$foundnet = xno ; then
  22854. { echo "$as_me:$LINENO: result: no" >&5
  22855. echo "${ECHO_T}no" >&6; }
  22856. else
  22857. { echo "$as_me:$LINENO: result: $foundnet" >&5
  22858. echo "${ECHO_T}$foundnet" >&6; }
  22859. have_libnet=yes
  22860. cat >>confdefs.h <<\_ACEOF
  22861. #define HAVE_LIBNET 1
  22862. _ACEOF
  22863. fi
  22864. fi
  22865. if test $foundnet != no ; then
  22866. OLDLIBS="$LIBS"
  22867. OLDCFLAGS="$CFLAGS"
  22868. LIBS="$LNETLIB"
  22869. CFLAGS="$CFLAGS -I$LNETINCDIR"
  22870. { echo "$as_me:$LINENO: checking for libnet version" >&5
  22871. echo $ECHO_N "checking for libnet version... $ECHO_C" >&6; }
  22872. if test "$cross_compiling" = yes; then
  22873. libnet_ver_10=no
  22874. else
  22875. cat >conftest.$ac_ext <<_ACEOF
  22876. /* confdefs.h. */
  22877. _ACEOF
  22878. cat confdefs.h >>conftest.$ac_ext
  22879. cat >>conftest.$ac_ext <<_ACEOF
  22880. /* end confdefs.h. */
  22881. #include <string.h>
  22882. #define LIBNET_LIL_ENDIAN 1
  22883. #include "$LNETINC"
  22884. #define LIB_TEST "1.0"
  22885. /*
  22886. * simple proggy to test the version of libnet
  22887. * returns zero if it's 1.0.x
  22888. * or one otherwise
  22889. */
  22890. int
  22891. main (int argc, char *argv[])
  22892. {
  22893. if (strncmp(LIB_TEST, LIBNET_VERSION, 3) == 0)
  22894. exit(0);
  22895. exit(1);
  22896. }
  22897. _ACEOF
  22898. rm -f conftest$ac_exeext
  22899. if { (ac_try="$ac_link"
  22900. case "(($ac_try" in
  22901. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22902. *) ac_try_echo=$ac_try;;
  22903. esac
  22904. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22905. (eval "$ac_link") 2>&5
  22906. ac_status=$?
  22907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22908. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22909. { (case "(($ac_try" in
  22910. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22911. *) ac_try_echo=$ac_try;;
  22912. esac
  22913. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22914. (eval "$ac_try") 2>&5
  22915. ac_status=$?
  22916. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22917. (exit $ac_status); }; }; then
  22918. libnet_ver_10=yes
  22919. { echo "$as_me:$LINENO: result: 1.0.x" >&5
  22920. echo "${ECHO_T}1.0.x" >&6; }
  22921. else
  22922. echo "$as_me: program exited with status $ac_status" >&5
  22923. echo "$as_me: failed program was:" >&5
  22924. sed 's/^/| /' conftest.$ac_ext >&5
  22925. ( exit $ac_status )
  22926. libnet_ver_10=no
  22927. fi
  22928. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22929. fi
  22930. if test "$cross_compiling" = yes; then
  22931. libnet_ver_11=no
  22932. else
  22933. cat >conftest.$ac_ext <<_ACEOF
  22934. /* confdefs.h. */
  22935. _ACEOF
  22936. cat confdefs.h >>conftest.$ac_ext
  22937. cat >>conftest.$ac_ext <<_ACEOF
  22938. /* end confdefs.h. */
  22939. #include <string.h>
  22940. #include "$LNETINC"
  22941. #define LIB_TEST "1.1"
  22942. /*
  22943. * simple proggy to test the version of libnet
  22944. * returns zero if it's 1.0.x
  22945. * or one otherwise
  22946. */
  22947. int
  22948. main (int argc, char *argv[])
  22949. {
  22950. if (strncmp(LIB_TEST, LIBNET_VERSION, 3) == 0)
  22951. exit(0);
  22952. exit(1);
  22953. }
  22954. _ACEOF
  22955. rm -f conftest$ac_exeext
  22956. if { (ac_try="$ac_link"
  22957. case "(($ac_try" in
  22958. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22959. *) ac_try_echo=$ac_try;;
  22960. esac
  22961. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22962. (eval "$ac_link") 2>&5
  22963. ac_status=$?
  22964. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22965. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22966. { (case "(($ac_try" in
  22967. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22968. *) ac_try_echo=$ac_try;;
  22969. esac
  22970. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22971. (eval "$ac_try") 2>&5
  22972. ac_status=$?
  22973. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22974. (exit $ac_status); }; }; then
  22975. libnet_ver_11=yes
  22976. { echo "$as_me:$LINENO: result: 1.1.x" >&5
  22977. echo "${ECHO_T}1.1.x" >&6; }
  22978. else
  22979. echo "$as_me: program exited with status $ac_status" >&5
  22980. echo "$as_me: failed program was:" >&5
  22981. sed 's/^/| /' conftest.$ac_ext >&5
  22982. ( exit $ac_status )
  22983. libnet_ver_11=no
  22984. fi
  22985. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22986. fi
  22987. if test $libnet_ver_10 = no -a $libnet_ver_11 = no ; then
  22988. { echo "$as_me:$LINENO: result: unknown" >&5
  22989. echo "${ECHO_T}unknown" >&6; }
  22990. { { echo "$as_me:$LINENO: error: Unable to determine version of libnet" >&5
  22991. echo "$as_me: error: Unable to determine version of libnet" >&2;}
  22992. { (exit 1); exit 1; }; }
  22993. fi
  22994. if test $libnet_ver_10 = yes ; then
  22995. { { echo "$as_me:$LINENO: error: Libnet version 1.0.x is no longer supported.
  22996. Please upgrade to 1.1.0 or better" >&5
  22997. echo "$as_me: error: Libnet version 1.0.x is no longer supported.
  22998. Please upgrade to 1.1.0 or better" >&2;}
  22999. { (exit 1); exit 1; }; }
  23000. fi
  23001. LIBS="$OLDLIBS"
  23002. CFLAGS="$OLDCFLAGS"
  23003. fi
  23004. foundpcap=no
  23005. trypcapdir=/usr/local
  23006. { echo "$as_me:$LINENO: checking for libpcap" >&5
  23007. echo $ECHO_N "checking for libpcap... $ECHO_C" >&6; }
  23008. # Check whether --with-libpcap was given.
  23009. if test "${with_libpcap+set}" = set; then
  23010. withval=$with_libpcap; trypcapdir=$withval
  23011. fi
  23012. for testdir in $trypcapdir /usr/local /opt/local /usr ; do
  23013. if test -f "${testdir}/include/pcap.h" -a $foundpcap = no ; then
  23014. LPCAPINC="${testdir}/include/pcap.h"
  23015. LPCAPINCDIR="${testdir}/include"
  23016. if test $dynamic_link = yes; then
  23017. if test -f "${testdir}/lib64/libpcap${shrext_cmds}" ; then
  23018. LPCAPLIB="-L${testdir}/lib64 -lpcap"
  23019. elif test -f "${testdir}/lib/libpcap${shrext_cmds}" ; then
  23020. LPCAPLIB="-L${testdir}/lib -lpcap"
  23021. else
  23022. { { echo "$as_me:$LINENO: error: Unable to find libpcap in ${testdir}" >&5
  23023. echo "$as_me: error: Unable to find libpcap in ${testdir}" >&2;}
  23024. { (exit 1); exit 1; }; }
  23025. fi
  23026. elif test -f "${testdir}/lib64/libpcap.${libext}" ; then
  23027. LPCAPLIB="${testdir}/lib64/libpcap.${libext}"
  23028. elif test -f "${testdir}/lib/libpcap.${libext}" ; then
  23029. LPCAPLIB="${testdir}/lib/libpcap.${libext}"
  23030. elif test -f "${testdir}/lib/libwpcap.${libext}" ; then
  23031. LPCAPLIB="${testdir}/lib/libwpcap.${libext}"
  23032. cat >>confdefs.h <<\_ACEOF
  23033. #define HAVE_WINPCAP 1
  23034. _ACEOF
  23035. else
  23036. { { echo "$as_me:$LINENO: error: Unable to find matching library for header file in ${testdir}" >&5
  23037. echo "$as_me: error: Unable to find matching library for header file in ${testdir}" >&2;}
  23038. { (exit 1); exit 1; }; }
  23039. fi
  23040. foundpcap=$testdir
  23041. fi
  23042. done
  23043. if test $foundpcap = no ; then
  23044. { echo "$as_me:$LINENO: result: no" >&5
  23045. echo "${ECHO_T}no" >&6; }
  23046. { { echo "$as_me:$LINENO: error: libpcap not found" >&5
  23047. echo "$as_me: error: libpcap not found" >&2;}
  23048. { (exit 1); exit 1; }; }
  23049. else
  23050. { echo "$as_me:$LINENO: result: $foundpcap" >&5
  23051. echo "${ECHO_T}$foundpcap" >&6; }
  23052. fi
  23053. OLDLIBS="$LIBS"
  23054. OLDCFLAGS="$CFLAGS -I$LPCAPINCDIR"
  23055. LIBS="$LPCAPLIB"
  23056. CFLAGS="$CFLAGS -I$LPCAPINCDIR"
  23057. { echo "$as_me:$LINENO: checking for libpcap version" >&5
  23058. echo $ECHO_N "checking for libpcap version... $ECHO_C" >&6; }
  23059. libpcap_version_096=no
  23060. if test "$cross_compiling" = yes; then
  23061. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  23062. See \`config.log' for more details." >&5
  23063. echo "$as_me: error: cannot run test program while cross compiling
  23064. See \`config.log' for more details." >&2;}
  23065. { (exit 1); exit 1; }; }
  23066. else
  23067. cat >conftest.$ac_ext <<_ACEOF
  23068. /* confdefs.h. */
  23069. _ACEOF
  23070. cat confdefs.h >>conftest.$ac_ext
  23071. cat >>conftest.$ac_ext <<_ACEOF
  23072. /* end confdefs.h. */
  23073. #include <string.h>
  23074. #include <stdlib.h>
  23075. #include <stdio.h>
  23076. #include "$LPCAPINC"
  23077. #define PCAP_TEST "0.9.6"
  23078. int
  23079. main ()
  23080. {
  23081. /*
  23082. * simple proggy to test the version of libpcap
  23083. * returns zero if version >= 0.9.6
  23084. * or one otherwise
  23085. */
  23086. if (strncmp(pcap_lib_version(), PCAP_TEST, 5) >= 0)
  23087. exit(0);
  23088. exit(1);
  23089. ;
  23090. return 0;
  23091. }
  23092. _ACEOF
  23093. rm -f conftest$ac_exeext
  23094. if { (ac_try="$ac_link"
  23095. case "(($ac_try" in
  23096. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23097. *) ac_try_echo=$ac_try;;
  23098. esac
  23099. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23100. (eval "$ac_link") 2>&5
  23101. ac_status=$?
  23102. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23103. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23104. { (case "(($ac_try" in
  23105. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23106. *) ac_try_echo=$ac_try;;
  23107. esac
  23108. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23109. (eval "$ac_try") 2>&5
  23110. ac_status=$?
  23111. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23112. (exit $ac_status); }; }; then
  23113. libpcap_version_096=yes
  23114. else
  23115. echo "$as_me: program exited with status $ac_status" >&5
  23116. echo "$as_me: failed program was:" >&5
  23117. sed 's/^/| /' conftest.$ac_ext >&5
  23118. fi
  23119. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23120. fi
  23121. if test "$cross_compiling" = yes; then
  23122. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  23123. See \`config.log' for more details." >&5
  23124. echo "$as_me: error: cannot run test program while cross compiling
  23125. See \`config.log' for more details." >&2;}
  23126. { (exit 1); exit 1; }; }
  23127. else
  23128. cat >conftest.$ac_ext <<_ACEOF
  23129. /* confdefs.h. */
  23130. _ACEOF
  23131. cat confdefs.h >>conftest.$ac_ext
  23132. cat >>conftest.$ac_ext <<_ACEOF
  23133. /* end confdefs.h. */
  23134. #include <string.h>
  23135. #include <stdlib.h>
  23136. #include <stdio.h>
  23137. #include "$LPCAPINC"
  23138. #define PCAP_TEST "0.8"
  23139. int
  23140. main ()
  23141. {
  23142. /*
  23143. * simple proggy to test the version of libpcap
  23144. * returns zero if version >= 0.8.0
  23145. * or one otherwise
  23146. */
  23147. if (strncmp(pcap_lib_version(), PCAP_TEST, 3) >= 0)
  23148. exit(0);
  23149. /* winpcap? */
  23150. if (strncmp(pcap_lib_version(), "WinPcap", 7) == 0)
  23151. exit(0);
  23152. exit(1);
  23153. ;
  23154. return 0;
  23155. }
  23156. _ACEOF
  23157. rm -f conftest$ac_exeext
  23158. if { (ac_try="$ac_link"
  23159. case "(($ac_try" in
  23160. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23161. *) ac_try_echo=$ac_try;;
  23162. esac
  23163. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23164. (eval "$ac_link") 2>&5
  23165. ac_status=$?
  23166. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23167. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23168. { (case "(($ac_try" in
  23169. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23170. *) ac_try_echo=$ac_try;;
  23171. esac
  23172. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23173. (eval "$ac_try") 2>&5
  23174. ac_status=$?
  23175. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23176. (exit $ac_status); }; }; then
  23177. libpcap_ver8=yes
  23178. else
  23179. echo "$as_me: program exited with status $ac_status" >&5
  23180. echo "$as_me: failed program was:" >&5
  23181. sed 's/^/| /' conftest.$ac_ext >&5
  23182. ( exit $ac_status )
  23183. libpcap_ver8=no
  23184. fi
  23185. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23186. fi
  23187. if test "$cross_compiling" = yes; then
  23188. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  23189. See \`config.log' for more details." >&5
  23190. echo "$as_me: error: cannot run test program while cross compiling
  23191. See \`config.log' for more details." >&2;}
  23192. { (exit 1); exit 1; }; }
  23193. else
  23194. cat >conftest.$ac_ext <<_ACEOF
  23195. /* confdefs.h. */
  23196. _ACEOF
  23197. cat confdefs.h >>conftest.$ac_ext
  23198. cat >>conftest.$ac_ext <<_ACEOF
  23199. /* end confdefs.h. */
  23200. #include <string.h>
  23201. #include <stdlib.h>
  23202. #include <stdio.h>
  23203. #include "$LPCAPINC"
  23204. #define PCAP_TEST "0.7.2"
  23205. extern const char pcap_version[]; /* double up since autoconf escapes things */
  23206. int
  23207. main ()
  23208. {
  23209. /*
  23210. * simple proggy to test the version of libpcap
  23211. * returns zero if version >= 0.7.2
  23212. * or one otherwise
  23213. */
  23214. if (strncmp(pcap_version, PCAP_TEST, 5) >= 0)
  23215. exit(0);
  23216. exit(1);
  23217. ;
  23218. return 0;
  23219. }
  23220. _ACEOF
  23221. rm -f conftest$ac_exeext
  23222. if { (ac_try="$ac_link"
  23223. case "(($ac_try" in
  23224. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23225. *) ac_try_echo=$ac_try;;
  23226. esac
  23227. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23228. (eval "$ac_link") 2>&5
  23229. ac_status=$?
  23230. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23231. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23232. { (case "(($ac_try" in
  23233. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23234. *) ac_try_echo=$ac_try;;
  23235. esac
  23236. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23237. (eval "$ac_try") 2>&5
  23238. ac_status=$?
  23239. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23240. (exit $ac_status); }; }; then
  23241. libpcap_ver7=yes
  23242. else
  23243. echo "$as_me: program exited with status $ac_status" >&5
  23244. echo "$as_me: failed program was:" >&5
  23245. sed 's/^/| /' conftest.$ac_ext >&5
  23246. ( exit $ac_status )
  23247. libpcap_ver7=no
  23248. fi
  23249. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23250. fi
  23251. if test $libpcap_ver8 = yes ; then
  23252. { echo "$as_me:$LINENO: result: >= 0.8.0" >&5
  23253. echo "${ECHO_T}>= 0.8.0" >&6; }
  23254. elif test $libpcap_ver7 = yes ; then
  23255. { echo "$as_me:$LINENO: result: >= 0.7.2" >&5
  23256. echo "${ECHO_T}>= 0.7.2" >&6; }
  23257. else
  23258. { { echo "$as_me:$LINENO: error: Libpcap versions < 0.7.2 are not supported
  23259. Please upgrade to version 0.7.2 or better" >&5
  23260. echo "$as_me: error: Libpcap versions < 0.7.2 are not supported
  23261. Please upgrade to version 0.7.2 or better" >&2;}
  23262. { (exit 1); exit 1; }; }
  23263. fi
  23264. libpcap_version=unknown
  23265. if test $libpcap_version_096 = yes ; then
  23266. libpcap_version=">= 0.9.6"
  23267. elif test $libpcap_ver8 = yes ; then
  23268. libpcap_version=">= 0.8.0"
  23269. elif test $libcap_ver7 = yes ; then
  23270. libpcap_version=">= 0.7.0"
  23271. fi
  23272. { echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
  23273. echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6; }
  23274. cat >conftest.$ac_ext <<_ACEOF
  23275. /* confdefs.h. */
  23276. _ACEOF
  23277. cat confdefs.h >>conftest.$ac_ext
  23278. cat >>conftest.$ac_ext <<_ACEOF
  23279. /* end confdefs.h. */
  23280. #include <stdio.h>
  23281. #include <stdlib.h>
  23282. #include <string.h>
  23283. #include "$LPCAPINC"
  23284. int
  23285. main ()
  23286. {
  23287. if (strcmp(pcap_datalink_val_to_description(1), "Ethernet (10Mb)") == 0)
  23288. exit(0);
  23289. exit(1);
  23290. ;
  23291. return 0;
  23292. }
  23293. _ACEOF
  23294. rm -f conftest.$ac_objext conftest$ac_exeext
  23295. if { (ac_try="$ac_link"
  23296. case "(($ac_try" in
  23297. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23298. *) ac_try_echo=$ac_try;;
  23299. esac
  23300. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23301. (eval "$ac_link") 2>conftest.er1
  23302. ac_status=$?
  23303. grep -v '^ *+' conftest.er1 >conftest.err
  23304. rm -f conftest.er1
  23305. cat conftest.err >&5
  23306. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23307. (exit $ac_status); } && {
  23308. test -z "$ac_c_werror_flag" ||
  23309. test ! -s conftest.err
  23310. } && test -s conftest$ac_exeext &&
  23311. $as_test_x conftest$ac_exeext; then
  23312. have_dlt_to_desc=yes
  23313. { echo "$as_me:$LINENO: result: yes" >&5
  23314. echo "${ECHO_T}yes" >&6; }
  23315. else
  23316. echo "$as_me: failed program was:" >&5
  23317. sed 's/^/| /' conftest.$ac_ext >&5
  23318. have_dlt_to_desc=no
  23319. { echo "$as_me:$LINENO: result: no" >&5
  23320. echo "${ECHO_T}no" >&6; }
  23321. fi
  23322. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23323. conftest$ac_exeext conftest.$ac_ext
  23324. if test $have_dlt_to_desc = yes ; then
  23325. cat >>confdefs.h <<\_ACEOF
  23326. #define HAVE_DLT_VAL_TO_DESC 1
  23327. _ACEOF
  23328. fi
  23329. { echo "$as_me:$LINENO: checking for pcap_dump_fopen" >&5
  23330. echo $ECHO_N "checking for pcap_dump_fopen... $ECHO_C" >&6; }
  23331. cat >conftest.$ac_ext <<_ACEOF
  23332. /* confdefs.h. */
  23333. _ACEOF
  23334. cat confdefs.h >>conftest.$ac_ext
  23335. cat >>conftest.$ac_ext <<_ACEOF
  23336. /* end confdefs.h. */
  23337. #include <stdio.h>
  23338. #include <stdlib.h>
  23339. #include <string.h>
  23340. #include "$LPCAPINC"
  23341. int
  23342. main ()
  23343. {
  23344. pcap_dumper_t *dump;
  23345. pcap_t *pcap;
  23346. FILE *foo;
  23347. dump = pcap_dump_fopen(pcap, foo);
  23348. ;
  23349. return 0;
  23350. }
  23351. _ACEOF
  23352. rm -f conftest.$ac_objext conftest$ac_exeext
  23353. if { (ac_try="$ac_link"
  23354. case "(($ac_try" in
  23355. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23356. *) ac_try_echo=$ac_try;;
  23357. esac
  23358. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23359. (eval "$ac_link") 2>conftest.er1
  23360. ac_status=$?
  23361. grep -v '^ *+' conftest.er1 >conftest.err
  23362. rm -f conftest.er1
  23363. cat conftest.err >&5
  23364. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23365. (exit $ac_status); } && {
  23366. test -z "$ac_c_werror_flag" ||
  23367. test ! -s conftest.err
  23368. } && test -s conftest$ac_exeext &&
  23369. $as_test_x conftest$ac_exeext; then
  23370. have_pcap_dump_fopen=yes
  23371. { echo "$as_me:$LINENO: result: yes" >&5
  23372. echo "${ECHO_T}yes" >&6; }
  23373. else
  23374. echo "$as_me: failed program was:" >&5
  23375. sed 's/^/| /' conftest.$ac_ext >&5
  23376. have_pcap_dump_fopen=no
  23377. { echo "$as_me:$LINENO: result: no" >&5
  23378. echo "${ECHO_T}no" >&6; }
  23379. fi
  23380. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23381. conftest$ac_exeext conftest.$ac_ext
  23382. if test $have_pcap_dump_fopen = yes ; then
  23383. cat >>confdefs.h <<\_ACEOF
  23384. #define HAVE_PCAP_DUMP_FOPEN 1
  23385. _ACEOF
  23386. else
  23387. { echo "$as_me:$LINENO: --verbose mode requires libpcap >= 0.9.0" >&5
  23388. echo "$as_me: --verbose mode requires libpcap >= 0.9.0" >&6;}
  23389. fi
  23390. have_pcap_inject=no
  23391. { echo "$as_me:$LINENO: checking for pcap_inject sending support" >&5
  23392. echo $ECHO_N "checking for pcap_inject sending support... $ECHO_C" >&6; }
  23393. cat >conftest.$ac_ext <<_ACEOF
  23394. /* confdefs.h. */
  23395. _ACEOF
  23396. cat confdefs.h >>conftest.$ac_ext
  23397. cat >>conftest.$ac_ext <<_ACEOF
  23398. /* end confdefs.h. */
  23399. #include <stdio.h>
  23400. #include <stdlib.h>
  23401. #include <string.h>
  23402. #include "$LPCAPINC"
  23403. int
  23404. main ()
  23405. {
  23406. pcap_t *pcap;
  23407. char *buf;
  23408. pcap_inject(pcap, (void *)buf, 0);
  23409. ;
  23410. return 0;
  23411. }
  23412. _ACEOF
  23413. rm -f conftest.$ac_objext
  23414. if { (ac_try="$ac_compile"
  23415. case "(($ac_try" in
  23416. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23417. *) ac_try_echo=$ac_try;;
  23418. esac
  23419. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23420. (eval "$ac_compile") 2>conftest.er1
  23421. ac_status=$?
  23422. grep -v '^ *+' conftest.er1 >conftest.err
  23423. rm -f conftest.er1
  23424. cat conftest.err >&5
  23425. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23426. (exit $ac_status); } && {
  23427. test -z "$ac_c_werror_flag" ||
  23428. test ! -s conftest.err
  23429. } && test -s conftest.$ac_objext; then
  23430. cat >>confdefs.h <<\_ACEOF
  23431. #define HAVE_PCAP_INJECT 1
  23432. _ACEOF
  23433. { echo "$as_me:$LINENO: result: yes" >&5
  23434. echo "${ECHO_T}yes" >&6; }
  23435. have_pcap_inject=yes
  23436. else
  23437. echo "$as_me: failed program was:" >&5
  23438. sed 's/^/| /' conftest.$ac_ext >&5
  23439. { echo "$as_me:$LINENO: result: no" >&5
  23440. echo "${ECHO_T}no" >&6; }
  23441. fi
  23442. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23443. have_pcap_version=no
  23444. { echo "$as_me:$LINENO: checking for pcap_version" >&5
  23445. echo $ECHO_N "checking for pcap_version... $ECHO_C" >&6; }
  23446. cat >conftest.$ac_ext <<_ACEOF
  23447. /* confdefs.h. */
  23448. _ACEOF
  23449. cat confdefs.h >>conftest.$ac_ext
  23450. cat >>conftest.$ac_ext <<_ACEOF
  23451. /* end confdefs.h. */
  23452. #include <stdio.h>
  23453. #include <stdlib.h>
  23454. #include <string.h>
  23455. #include "$LPCAPINC"
  23456. extern char pcap_version[];
  23457. int
  23458. main ()
  23459. {
  23460. printf("%s", pcap_version);
  23461. ;
  23462. return 0;
  23463. }
  23464. _ACEOF
  23465. rm -f conftest.$ac_objext
  23466. if { (ac_try="$ac_compile"
  23467. case "(($ac_try" in
  23468. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23469. *) ac_try_echo=$ac_try;;
  23470. esac
  23471. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23472. (eval "$ac_compile") 2>conftest.er1
  23473. ac_status=$?
  23474. grep -v '^ *+' conftest.er1 >conftest.err
  23475. rm -f conftest.er1
  23476. cat conftest.err >&5
  23477. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23478. (exit $ac_status); } && {
  23479. test -z "$ac_c_werror_flag" ||
  23480. test ! -s conftest.err
  23481. } && test -s conftest.$ac_objext; then
  23482. cat >>confdefs.h <<\_ACEOF
  23483. #define HAVE_PCAP_VERSION 1
  23484. _ACEOF
  23485. { echo "$as_me:$LINENO: result: yes" >&5
  23486. echo "${ECHO_T}yes" >&6; }
  23487. else
  23488. echo "$as_me: failed program was:" >&5
  23489. sed 's/^/| /' conftest.$ac_ext >&5
  23490. { echo "$as_me:$LINENO: result: no" >&5
  23491. echo "${ECHO_T}no" >&6; }
  23492. fi
  23493. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23494. have_pcap_sendpacket=no
  23495. { echo "$as_me:$LINENO: checking for pcap_sendpacket sending support" >&5
  23496. echo $ECHO_N "checking for pcap_sendpacket sending support... $ECHO_C" >&6; }
  23497. cat >conftest.$ac_ext <<_ACEOF
  23498. /* confdefs.h. */
  23499. _ACEOF
  23500. cat confdefs.h >>conftest.$ac_ext
  23501. cat >>conftest.$ac_ext <<_ACEOF
  23502. /* end confdefs.h. */
  23503. #include <stdio.h>
  23504. #include <stdlib.h>
  23505. #include <string.h>
  23506. #include "$LPCAPINC"
  23507. int
  23508. main ()
  23509. {
  23510. pcap_t *pcap;
  23511. u_char *buf;
  23512. pcap_sendpacket(pcap, buf, 0);
  23513. ;
  23514. return 0;
  23515. }
  23516. _ACEOF
  23517. rm -f conftest.$ac_objext
  23518. if { (ac_try="$ac_compile"
  23519. case "(($ac_try" in
  23520. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23521. *) ac_try_echo=$ac_try;;
  23522. esac
  23523. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23524. (eval "$ac_compile") 2>conftest.er1
  23525. ac_status=$?
  23526. grep -v '^ *+' conftest.er1 >conftest.err
  23527. rm -f conftest.er1
  23528. cat conftest.err >&5
  23529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23530. (exit $ac_status); } && {
  23531. test -z "$ac_c_werror_flag" ||
  23532. test ! -s conftest.err
  23533. } && test -s conftest.$ac_objext; then
  23534. cat >>confdefs.h <<\_ACEOF
  23535. #define HAVE_PCAP_SENDPACKET 1
  23536. _ACEOF
  23537. { echo "$as_me:$LINENO: result: yes" >&5
  23538. echo "${ECHO_T}yes" >&6; }
  23539. have_pcap_sendpacket=yes
  23540. else
  23541. echo "$as_me: failed program was:" >&5
  23542. sed 's/^/| /' conftest.$ac_ext >&5
  23543. { echo "$as_me:$LINENO: result: no" >&5
  23544. echo "${ECHO_T}no" >&6; }
  23545. fi
  23546. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23547. have_pf=no
  23548. { echo "$as_me:$LINENO: checking for PF_PACKET socket sending support" >&5
  23549. echo $ECHO_N "checking for PF_PACKET socket sending support... $ECHO_C" >&6; }
  23550. cat >conftest.$ac_ext <<_ACEOF
  23551. /* confdefs.h. */
  23552. _ACEOF
  23553. cat confdefs.h >>conftest.$ac_ext
  23554. cat >>conftest.$ac_ext <<_ACEOF
  23555. /* end confdefs.h. */
  23556. #include <sys/socket.h>
  23557. #include <netpacket/packet.h>
  23558. #include <net/ethernet.h> /* the L2 protocols */
  23559. #include <netinet/in.h> /* htons */
  23560. int
  23561. main ()
  23562. {
  23563. int pf_socket;
  23564. pf_socket = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
  23565. ;
  23566. return 0;
  23567. }
  23568. _ACEOF
  23569. rm -f conftest.$ac_objext
  23570. if { (ac_try="$ac_compile"
  23571. case "(($ac_try" in
  23572. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23573. *) ac_try_echo=$ac_try;;
  23574. esac
  23575. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23576. (eval "$ac_compile") 2>conftest.er1
  23577. ac_status=$?
  23578. grep -v '^ *+' conftest.er1 >conftest.err
  23579. rm -f conftest.er1
  23580. cat conftest.err >&5
  23581. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23582. (exit $ac_status); } && {
  23583. test -z "$ac_c_werror_flag" ||
  23584. test ! -s conftest.err
  23585. } && test -s conftest.$ac_objext; then
  23586. cat >>confdefs.h <<\_ACEOF
  23587. #define HAVE_PF_PACKET 1
  23588. _ACEOF
  23589. { echo "$as_me:$LINENO: result: yes" >&5
  23590. echo "${ECHO_T}yes" >&6; }
  23591. have_pf=yes
  23592. else
  23593. echo "$as_me: failed program was:" >&5
  23594. sed 's/^/| /' conftest.$ac_ext >&5
  23595. { echo "$as_me:$LINENO: result: no" >&5
  23596. echo "${ECHO_T}no" >&6; }
  23597. fi
  23598. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23599. have_bpf=no
  23600. { echo "$as_me:$LINENO: checking for BPF device sending support" >&5
  23601. echo $ECHO_N "checking for BPF device sending support... $ECHO_C" >&6; }
  23602. if test "$cross_compiling" = yes; then
  23603. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  23604. See \`config.log' for more details." >&5
  23605. echo "$as_me: error: cannot run test program while cross compiling
  23606. See \`config.log' for more details." >&2;}
  23607. { (exit 1); exit 1; }; }
  23608. else
  23609. cat >conftest.$ac_ext <<_ACEOF
  23610. /* confdefs.h. */
  23611. _ACEOF
  23612. cat confdefs.h >>conftest.$ac_ext
  23613. cat >>conftest.$ac_ext <<_ACEOF
  23614. /* end confdefs.h. */
  23615. #include <stdio.h>
  23616. #include <stdlib.h>
  23617. #include <net/bpf.h>
  23618. #include <sys/types.h>
  23619. #include <sys/socket.h>
  23620. #include <fcntl.h>
  23621. #include <sys/time.h>
  23622. #include <sys/ioctl.h>
  23623. #include <net/bpf.h>
  23624. #include <errno.h>
  23625. int
  23626. main(int argc, char *argv[]) {
  23627. int fd;
  23628. fd = open("/dev/bpf0", O_RDONLY, 0);
  23629. /* if we opened it, we're good */
  23630. if (fd > 1)
  23631. exit(0);
  23632. /* if we got EBUSY or permission denied it exists, so we're good */
  23633. if (fd < 0 && (errno == EBUSY || errno == 13))
  23634. exit(0);
  23635. /* else suck, no good */
  23636. exit(-1);
  23637. }
  23638. _ACEOF
  23639. rm -f conftest$ac_exeext
  23640. if { (ac_try="$ac_link"
  23641. case "(($ac_try" in
  23642. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23643. *) ac_try_echo=$ac_try;;
  23644. esac
  23645. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23646. (eval "$ac_link") 2>&5
  23647. ac_status=$?
  23648. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23649. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23650. { (case "(($ac_try" in
  23651. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23652. *) ac_try_echo=$ac_try;;
  23653. esac
  23654. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23655. (eval "$ac_try") 2>&5
  23656. ac_status=$?
  23657. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23658. (exit $ac_status); }; }; then
  23659. cat >>confdefs.h <<\_ACEOF
  23660. #define HAVE_BPF 1
  23661. _ACEOF
  23662. { echo "$as_me:$LINENO: result: yes" >&5
  23663. echo "${ECHO_T}yes" >&6; }
  23664. have_bpf=yes
  23665. else
  23666. echo "$as_me: program exited with status $ac_status" >&5
  23667. echo "$as_me: failed program was:" >&5
  23668. sed 's/^/| /' conftest.$ac_ext >&5
  23669. ( exit $ac_status )
  23670. { echo "$as_me:$LINENO: result: no" >&5
  23671. echo "${ECHO_T}no" >&6; }
  23672. fi
  23673. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23674. fi
  23675. if test $have_bpf = no -a $have_pcap_inject = no -a $have_pcap_sendpacket = no \
  23676. -a $have_libnet = no -a $have_pf = no ; then
  23677. { { echo "$as_me:$LINENO: error: Unable to find a supported method to send packets. Please upgrade your libpcap or enable libnet" >&5
  23678. echo "$as_me: error: Unable to find a supported method to send packets. Please upgrade your libpcap or enable libnet" >&2;}
  23679. { (exit 1); exit 1; }; }
  23680. fi
  23681. enable_tcpbridge=yes
  23682. if test $have_bpf = no -a $have_libnet = no -a $have_pf = no ; then
  23683. { echo "$as_me:$LINENO: tcpbridge support disabled without BPF, Libnet or Linux PF_PACKET" >&5
  23684. echo "$as_me: tcpbridge support disabled without BPF, Libnet or Linux PF_PACKET" >&6;}
  23685. enable_tcpbridge=no
  23686. fi
  23687. # ADT: Commented for now
  23688. # AM_CONDITIONAL(ENABLE_TCPBRIDGE, [test $enable_tcpbridge = yes])
  23689. { echo "$as_me:$LINENO: checking for DLT_LINUX_SLL in libpcap" >&5
  23690. echo $ECHO_N "checking for DLT_LINUX_SLL in libpcap... $ECHO_C" >&6; }
  23691. cat >conftest.$ac_ext <<_ACEOF
  23692. /* confdefs.h. */
  23693. _ACEOF
  23694. cat confdefs.h >>conftest.$ac_ext
  23695. cat >>conftest.$ac_ext <<_ACEOF
  23696. /* end confdefs.h. */
  23697. #include "$LPCAPINC"
  23698. int
  23699. main ()
  23700. {
  23701. int foo;
  23702. foo = DLT_LINUX_SLL
  23703. ;
  23704. return 0;
  23705. }
  23706. _ACEOF
  23707. rm -f conftest.$ac_objext
  23708. if { (ac_try="$ac_compile"
  23709. case "(($ac_try" in
  23710. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23711. *) ac_try_echo=$ac_try;;
  23712. esac
  23713. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23714. (eval "$ac_compile") 2>conftest.er1
  23715. ac_status=$?
  23716. grep -v '^ *+' conftest.er1 >conftest.err
  23717. rm -f conftest.er1
  23718. cat conftest.err >&5
  23719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23720. (exit $ac_status); } && {
  23721. test -z "$ac_c_werror_flag" ||
  23722. test ! -s conftest.err
  23723. } && test -s conftest.$ac_objext; then
  23724. cat >>confdefs.h <<\_ACEOF
  23725. #define HAVE_DLT_LINUX_SLL 1
  23726. _ACEOF
  23727. { echo "$as_me:$LINENO: result: yes" >&5
  23728. echo "${ECHO_T}yes" >&6; }
  23729. else
  23730. echo "$as_me: failed program was:" >&5
  23731. sed 's/^/| /' conftest.$ac_ext >&5
  23732. { echo "$as_me:$LINENO: result: no" >&5
  23733. echo "${ECHO_T}no" >&6; }
  23734. fi
  23735. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23736. { echo "$as_me:$LINENO: checking for DLT_C_HDLC in libpcap" >&5
  23737. echo $ECHO_N "checking for DLT_C_HDLC in libpcap... $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 "$LPCAPINC"
  23745. int
  23746. main ()
  23747. {
  23748. int foo;
  23749. foo = DLT_C_HDLC
  23750. ;
  23751. return 0;
  23752. }
  23753. _ACEOF
  23754. rm -f conftest.$ac_objext
  23755. if { (ac_try="$ac_compile"
  23756. case "(($ac_try" in
  23757. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23758. *) ac_try_echo=$ac_try;;
  23759. esac
  23760. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23761. (eval "$ac_compile") 2>conftest.er1
  23762. ac_status=$?
  23763. grep -v '^ *+' conftest.er1 >conftest.err
  23764. rm -f conftest.er1
  23765. cat conftest.err >&5
  23766. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23767. (exit $ac_status); } && {
  23768. test -z "$ac_c_werror_flag" ||
  23769. test ! -s conftest.err
  23770. } && test -s conftest.$ac_objext; then
  23771. cat >>confdefs.h <<\_ACEOF
  23772. #define HAVE_DLT_C_HDLC 1
  23773. _ACEOF
  23774. { echo "$as_me:$LINENO: result: yes" >&5
  23775. echo "${ECHO_T}yes" >&6; }
  23776. else
  23777. echo "$as_me: failed program was:" >&5
  23778. sed 's/^/| /' conftest.$ac_ext >&5
  23779. { echo "$as_me:$LINENO: result: no" >&5
  23780. echo "${ECHO_T}no" >&6; }
  23781. fi
  23782. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23783. PCAP_BPF_H_FILE="$LPCAPINCDIR/pcap-bpf.h"
  23784. { echo "$as_me:$LINENO: checking for $PCAP_BPF_H_FILE" >&5
  23785. echo $ECHO_N "checking for $PCAP_BPF_H_FILE... $ECHO_C" >&6; }
  23786. cat >conftest.$ac_ext <<_ACEOF
  23787. /* confdefs.h. */
  23788. _ACEOF
  23789. cat confdefs.h >>conftest.$ac_ext
  23790. cat >>conftest.$ac_ext <<_ACEOF
  23791. /* end confdefs.h. */
  23792. #include <sys/types.h>
  23793. #include <sys/time.h>
  23794. #include "$PCAP_BPF_H_FILE"
  23795. int
  23796. main ()
  23797. {
  23798. int foo;
  23799. foo = BPF_MAJOR_VERSION;
  23800. ;
  23801. return 0;
  23802. }
  23803. _ACEOF
  23804. rm -f conftest.$ac_objext
  23805. if { (ac_try="$ac_compile"
  23806. case "(($ac_try" in
  23807. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23808. *) ac_try_echo=$ac_try;;
  23809. esac
  23810. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23811. (eval "$ac_compile") 2>conftest.er1
  23812. ac_status=$?
  23813. grep -v '^ *+' conftest.er1 >conftest.err
  23814. rm -f conftest.er1
  23815. cat conftest.err >&5
  23816. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23817. (exit $ac_status); } && {
  23818. test -z "$ac_c_werror_flag" ||
  23819. test ! -s conftest.err
  23820. } && test -s conftest.$ac_objext; then
  23821. cat >>confdefs.h <<\_ACEOF
  23822. #define INCLUDE_PCAP_BPF_HEADER 1
  23823. _ACEOF
  23824. { echo "$as_me:$LINENO: result: yes" >&5
  23825. echo "${ECHO_T}yes" >&6; }
  23826. else
  23827. echo "$as_me: failed program was:" >&5
  23828. sed 's/^/| /' conftest.$ac_ext >&5
  23829. { echo "$as_me:$LINENO: result: no" >&5
  23830. echo "${ECHO_T}no" >&6; }
  23831. fi
  23832. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23833. foundbpfheader=no
  23834. { echo "$as_me:$LINENO: checking for libpcap bpf header" >&5
  23835. echo $ECHO_N "checking for libpcap bpf header... $ECHO_C" >&6; }
  23836. for testfile in $LPCAPINCDIR/pcap/bpf.h $LPCAPINCDIR/pcap-bpf.h ; do
  23837. if test -f "${testfile}" -a $foundbpfheader = no ; then
  23838. cat >conftest.$ac_ext <<_ACEOF
  23839. /* confdefs.h. */
  23840. _ACEOF
  23841. cat confdefs.h >>conftest.$ac_ext
  23842. cat >>conftest.$ac_ext <<_ACEOF
  23843. /* end confdefs.h. */
  23844. #include <sys/types.h>
  23845. #include <sys/time.h>
  23846. #include "$testfile"
  23847. int
  23848. main ()
  23849. {
  23850. int foo;
  23851. foo = BPF_MAJOR_VERSION;
  23852. ;
  23853. return 0;
  23854. }
  23855. _ACEOF
  23856. rm -f conftest.$ac_objext
  23857. if { (ac_try="$ac_compile"
  23858. case "(($ac_try" in
  23859. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23860. *) ac_try_echo=$ac_try;;
  23861. esac
  23862. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23863. (eval "$ac_compile") 2>conftest.er1
  23864. ac_status=$?
  23865. grep -v '^ *+' conftest.er1 >conftest.err
  23866. rm -f conftest.er1
  23867. cat conftest.err >&5
  23868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23869. (exit $ac_status); } && {
  23870. test -z "$ac_c_werror_flag" ||
  23871. test ! -s conftest.err
  23872. } && test -s conftest.$ac_objext; then
  23873. foundbpfheader=yes
  23874. PCAP_BPF_H_FILE=$testfile
  23875. cat >>confdefs.h <<\_ACEOF
  23876. #define INCLUDE_PCAP_BPF_HEADER 1
  23877. _ACEOF
  23878. { echo "$as_me:$LINENO: result: $testfile" >&5
  23879. echo "${ECHO_T}$testfile" >&6; }
  23880. else
  23881. echo "$as_me: failed program was:" >&5
  23882. sed 's/^/| /' conftest.$ac_ext >&5
  23883. { echo "$as_me:$LINENO: result: no" >&5
  23884. echo "${ECHO_T}no" >&6; }
  23885. fi
  23886. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23887. fi
  23888. done
  23889. LIBS="$OLDLIBS"
  23890. CFLAGS="$OLDCFLAGS"
  23891. pcapnav_ver=no
  23892. pcncfg=no
  23893. # Check whether --with-pcapnav-config was given.
  23894. if test "${with_pcapnav_config+set}" = set; then
  23895. withval=$with_pcapnav_config; { echo "$as_me:$LINENO: checking for pcapnav-config" >&5
  23896. echo $ECHO_N "checking for pcapnav-config... $ECHO_C" >&6; }
  23897. if test -x $withval ; then
  23898. pcncfg=$withval
  23899. { echo "$as_me:$LINENO: result: $pcncfg" >&5
  23900. echo "${ECHO_T}$pcncfg" >&6; }
  23901. elif test x$withval = xno ; then
  23902. { echo "$as_me:$LINENO: result: no" >&5
  23903. echo "${ECHO_T}no" >&6; }
  23904. else
  23905. { echo "$as_me:$LINENO: result: Can't find pcapnav-config: disabling offset jump feature" >&5
  23906. echo "${ECHO_T}Can't find pcapnav-config: disabling offset jump feature" >&6; }
  23907. fi
  23908. else
  23909. # Extract the first word of "pcapnav-config", so it can be a program name with args.
  23910. set dummy pcapnav-config; ac_word=$2
  23911. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  23912. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  23913. if test "${ac_cv_path_pcncfg+set}" = set; then
  23914. echo $ECHO_N "(cached) $ECHO_C" >&6
  23915. else
  23916. case $pcncfg in
  23917. [\\/]* | ?:[\\/]*)
  23918. ac_cv_path_pcncfg="$pcncfg" # Let the user override the test with a path.
  23919. ;;
  23920. *)
  23921. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23922. for as_dir in $PATH
  23923. do
  23924. IFS=$as_save_IFS
  23925. test -z "$as_dir" && as_dir=.
  23926. for ac_exec_ext in '' $ac_executable_extensions; do
  23927. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23928. ac_cv_path_pcncfg="$as_dir/$ac_word$ac_exec_ext"
  23929. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23930. break 2
  23931. fi
  23932. done
  23933. done
  23934. IFS=$as_save_IFS
  23935. test -z "$ac_cv_path_pcncfg" && ac_cv_path_pcncfg="no "
  23936. ;;
  23937. esac
  23938. fi
  23939. pcncfg=$ac_cv_path_pcncfg
  23940. if test -n "$pcncfg"; then
  23941. { echo "$as_me:$LINENO: result: $pcncfg" >&5
  23942. echo "${ECHO_T}$pcncfg" >&6; }
  23943. else
  23944. { echo "$as_me:$LINENO: result: no" >&5
  23945. echo "${ECHO_T}no" >&6; }
  23946. fi
  23947. fi
  23948. if test $pcncfg != no ; then
  23949. LNAVLIB=`$pcncfg --libs`
  23950. LNAV_CFLAGS=`$pcncfg --cflags`
  23951. PCAPNAV_VERSION=`$pcncfg --version`
  23952. cat >>confdefs.h <<_ACEOF
  23953. #define PCAPNAV_VERSION "$PCAPNAV_VERSION"
  23954. _ACEOF
  23955. { echo "$as_me:$LINENO: checking for libpcapnav version" >&5
  23956. echo $ECHO_N "checking for libpcapnav version... $ECHO_C" >&6; }
  23957. if test "$cross_compiling" = yes; then
  23958. libpcapnav_ver=no
  23959. else
  23960. cat >conftest.$ac_ext <<_ACEOF
  23961. /* confdefs.h. */
  23962. _ACEOF
  23963. cat confdefs.h >>conftest.$ac_ext
  23964. cat >>conftest.$ac_ext <<_ACEOF
  23965. /* end confdefs.h. */
  23966. #include <string.h>
  23967. #define PCAPNAV_TEST "0.4"
  23968. /*
  23969. * simple proggy to test the version of libpcapnav
  23970. * returns zero if version >= 0.4
  23971. * or one otherwise
  23972. */
  23973. int
  23974. main (int argc, char *argv[])
  23975. {
  23976. if (strncmp(PCAPNAV_VERSION, PCAPNAV_TEST, 3) >= 0)
  23977. exit(0);
  23978. exit(1);
  23979. }
  23980. _ACEOF
  23981. rm -f conftest$ac_exeext
  23982. if { (ac_try="$ac_link"
  23983. case "(($ac_try" in
  23984. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23985. *) ac_try_echo=$ac_try;;
  23986. esac
  23987. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23988. (eval "$ac_link") 2>&5
  23989. ac_status=$?
  23990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23991. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23992. { (case "(($ac_try" in
  23993. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23994. *) ac_try_echo=$ac_try;;
  23995. esac
  23996. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23997. (eval "$ac_try") 2>&5
  23998. ac_status=$?
  23999. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24000. (exit $ac_status); }; }; then
  24001. libpcapnav_ver=yes
  24002. { echo "$as_me:$LINENO: result: >= 0.4" >&5
  24003. echo "${ECHO_T}>= 0.4" >&6; }
  24004. else
  24005. echo "$as_me: program exited with status $ac_status" >&5
  24006. echo "$as_me: failed program was:" >&5
  24007. sed 's/^/| /' conftest.$ac_ext >&5
  24008. ( exit $ac_status )
  24009. libpcapnav_ver=no
  24010. { echo "$as_me:$LINENO: result: < 0.4" >&5
  24011. echo "${ECHO_T}< 0.4" >&6; }
  24012. fi
  24013. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  24014. fi
  24015. if test x$libpcapnav_ver = xno ; then
  24016. { echo "$as_me:$LINENO: WARNING: Libpcapnav versions < 0.4 are not supported.
  24017. Please upgrade to version 0.4 or better.
  24018. Disabling offset jump feature." >&5
  24019. echo "$as_me: WARNING: Libpcapnav versions < 0.4 are not supported.
  24020. Please upgrade to version 0.4 or better.
  24021. Disabling offset jump feature." >&2;}
  24022. else
  24023. cat >>confdefs.h <<\_ACEOF
  24024. #define HAVE_PCAPNAV 1
  24025. _ACEOF
  24026. fi
  24027. fi # checking pcapnav version
  24028. { echo "$as_me:$LINENO: checking for requires strict byte alignment" >&5
  24029. echo $ECHO_N "checking for requires strict byte alignment... $ECHO_C" >&6; }
  24030. if test "${unaligned_fail+set}" = set; then
  24031. echo $ECHO_N "(cached) $ECHO_C" >&6
  24032. else
  24033. case "$host_cpu" in
  24034. # XXX: should also check that they don't do weird things (like on arm)
  24035. alpha*|arm*|hp*|mips*|sparc*|ia64)
  24036. unaligned_fail=yes
  24037. ;;
  24038. *)
  24039. cat >conftest.c <<EOF
  24040. #include <sys/types.h>
  24041. #include <sys/wait.h>
  24042. #include <stdio.h>
  24043. unsigned char a[5] = { 1, 2, 3, 4, 5 };
  24044. main() {
  24045. unsigned int i;
  24046. pid_t pid;
  24047. int status;
  24048. /* avoid "core dumped" message */
  24049. pid = fork();
  24050. if (pid < 0)
  24051. exit(2);
  24052. if (pid > 0) {
  24053. /* parent */
  24054. pid = waitpid(pid, &status, 0);
  24055. if (pid < 0)
  24056. exit(3);
  24057. exit(!WIFEXITED(status));
  24058. }
  24059. /* child */
  24060. i = *(unsigned int *)&a[1];
  24061. printf("%d\n", i);
  24062. exit(0);
  24063. }
  24064. EOF
  24065. ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
  24066. conftest.c $LIBS >/dev/null 2>&1
  24067. if test ! -x conftest ; then
  24068. unaligned_fail=yes
  24069. else
  24070. ./conftest >conftest.out
  24071. if test ! -s conftest.out ; then
  24072. unaligned_fail=yes
  24073. else
  24074. unaligned_fail=no
  24075. fi
  24076. fi
  24077. rm -f conftest* core core.conftest
  24078. ;;
  24079. esac
  24080. fi
  24081. { echo "$as_me:$LINENO: result: $unaligned_fail" >&5
  24082. echo "${ECHO_T}$unaligned_fail" >&6; }
  24083. if test $unaligned_fail = yes ; then
  24084. cat >>confdefs.h <<\_ACEOF
  24085. #define FORCE_ALIGN 1
  24086. _ACEOF
  24087. fi
  24088. tcpdump_path=no
  24089. # Check whether --with-tcpdump was given.
  24090. if test "${with_tcpdump+set}" = set; then
  24091. withval=$with_tcpdump; if test -x $withval ; then
  24092. tcpdump_path=$withval
  24093. { echo "$as_me:$LINENO: result: Using tcpdump in $tcpdump_path" >&5
  24094. echo "${ECHO_T}Using tcpdump in $tcpdump_path" >&6; }
  24095. else
  24096. { echo "$as_me:$LINENO: result: Error: $withval does not exist or is not executable" >&5
  24097. echo "${ECHO_T}Error: $withval does not exist or is not executable" >&6; }
  24098. fi
  24099. else
  24100. # Extract the first word of "tcpdump", so it can be a program name with args.
  24101. set dummy tcpdump; ac_word=$2
  24102. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  24103. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  24104. if test "${ac_cv_path_tcpdump_path+set}" = set; then
  24105. echo $ECHO_N "(cached) $ECHO_C" >&6
  24106. else
  24107. case $tcpdump_path in
  24108. [\\/]* | ?:[\\/]*)
  24109. ac_cv_path_tcpdump_path="$tcpdump_path" # Let the user override the test with a path.
  24110. ;;
  24111. *)
  24112. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24113. as_dummy="$PATH:/usr/sbin:/sbin:/usr/local/sbin"
  24114. for as_dir in $as_dummy
  24115. do
  24116. IFS=$as_save_IFS
  24117. test -z "$as_dir" && as_dir=.
  24118. for ac_exec_ext in '' $ac_executable_extensions; do
  24119. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24120. ac_cv_path_tcpdump_path="$as_dir/$ac_word$ac_exec_ext"
  24121. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24122. break 2
  24123. fi
  24124. done
  24125. done
  24126. IFS=$as_save_IFS
  24127. test -z "$ac_cv_path_tcpdump_path" && ac_cv_path_tcpdump_path=""no""
  24128. ;;
  24129. esac
  24130. fi
  24131. tcpdump_path=$ac_cv_path_tcpdump_path
  24132. if test -n "$tcpdump_path"; then
  24133. { echo "$as_me:$LINENO: result: $tcpdump_path" >&5
  24134. echo "${ECHO_T}$tcpdump_path" >&6; }
  24135. else
  24136. { echo "$as_me:$LINENO: result: no" >&5
  24137. echo "${ECHO_T}no" >&6; }
  24138. fi
  24139. fi
  24140. if test "$tcpdump_path" = "no"; then
  24141. { echo "$as_me:$LINENO: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.
  24142. Disabling --verbose" >&5
  24143. echo "$as_me: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.
  24144. Disabling --verbose" >&2;}
  24145. else
  24146. cat >>confdefs.h <<\_ACEOF
  24147. #define HAVE_TCPDUMP 1
  24148. _ACEOF
  24149. cat >>confdefs.h <<_ACEOF
  24150. #define TCPDUMP_BINARY "$tcpdump_path"
  24151. _ACEOF
  24152. fi
  24153. if test "$tcpdump_path" != "no" -a x$have_pcap_dump_fopen = xyes; then
  24154. ENABLE_TCPDUMP_TRUE=
  24155. ENABLE_TCPDUMP_FALSE='#'
  24156. else
  24157. ENABLE_TCPDUMP_TRUE='#'
  24158. ENABLE_TCPDUMP_FALSE=
  24159. fi
  24160. if test x$tcpdump_path != xno -a x$have_pcap_dump_fopen = xyes ; then
  24161. cat >>confdefs.h <<\_ACEOF
  24162. #define ENABLE_VERBOSE 1
  24163. _ACEOF
  24164. else
  24165. { echo "$as_me:$LINENO: WARNING: Your version of libpcap is too old for --verbose support" >&5
  24166. echo "$as_me: WARNING: Your version of libpcap is too old for --verbose support" >&2;}
  24167. fi
  24168. { echo "$as_me:$LINENO: checking for 'make test' profile" >&5
  24169. echo $ECHO_N "checking for 'make test' profile... $ECHO_C" >&6; }
  24170. if test "$host" != "$build" ; then
  24171. { echo "$as_me:$LINENO: WARNING: Unable to do tests when cross-compiling" >&5
  24172. echo "$as_me: WARNING: Unable to do tests when cross-compiling" >&2;}
  24173. fi
  24174. # Check whether --with-testnic was given.
  24175. if test "${with_testnic+set}" = set; then
  24176. withval=$with_testnic; nic1=$withval
  24177. nic2=$withval
  24178. { echo "$as_me:$LINENO: result: Using --with-testnic=$withval" >&5
  24179. echo "${ECHO_T}Using --with-testnic=$withval" >&6; }
  24180. else
  24181. disable_pcap_findalldevs=no
  24182. case $host in
  24183. *-*-linux*)
  24184. nic1=eth0
  24185. nic2=eth0
  24186. { echo "$as_me:$LINENO: result: Linux" >&5
  24187. echo "${ECHO_T}Linux" >&6; }
  24188. ;;
  24189. *-*-solaris*)
  24190. nic1=hme0
  24191. nic2=hme0
  24192. { echo "$as_me:$LINENO: result: Solaris" >&5
  24193. echo "${ECHO_T}Solaris" >&6; }
  24194. ;;
  24195. *-*-sunos*)
  24196. nic1=hme0
  24197. nic2=hme0
  24198. { echo "$as_me:$LINENO: result: SunOS" >&5
  24199. echo "${ECHO_T}SunOS" >&6; }
  24200. ;;
  24201. *-apple-darwin*)
  24202. nic1=en0
  24203. nic2=en0
  24204. if test x$libpcap_version_096 = xno ; then
  24205. disable_pcap_findalldevs=yes
  24206. fi
  24207. { echo "$as_me:$LINENO: result: Apple OS X" >&5
  24208. echo "${ECHO_T}Apple OS X" >&6; }
  24209. ;;
  24210. *-*-openbsd*)
  24211. nic1=xl0
  24212. nic2=xl0
  24213. { echo "$as_me:$LINENO: result: OpenBSD" >&5
  24214. echo "${ECHO_T}OpenBSD" >&6; }
  24215. ;;
  24216. *-*-cygwin)
  24217. { echo "$as_me:$LINENO: result: Win32/Cygwin" >&5
  24218. echo "${ECHO_T}Win32/Cygwin" >&6; }
  24219. nic1=%0
  24220. nic2=%0
  24221. ;;
  24222. *)
  24223. { echo "$as_me:$LINENO: result: $host is unknown! Using first non-loopback interface" >&5
  24224. echo "${ECHO_T}$host is unknown! Using first non-loopback interface" >&6; }
  24225. nic1=%0
  24226. nic2=%0
  24227. ;;
  24228. esac
  24229. fi
  24230. # Check whether --with-testnic2 was given.
  24231. if test "${with_testnic2+set}" = set; then
  24232. withval=$with_testnic2; nic2=$withval
  24233. fi
  24234. { echo "$as_me:$LINENO: Using $nic1 for 1st test network interface card" >&5
  24235. echo "$as_me: Using $nic1 for 1st test network interface card" >&6;}
  24236. { echo "$as_me:$LINENO: Using $nic2 for 2nd test network interface card" >&5
  24237. echo "$as_me: Using $nic2 for 2nd test network interface card" >&6;}
  24238. { echo "$as_me:$LINENO: checking if it's ok to use pcap_findalldevs()" >&5
  24239. echo $ECHO_N "checking if it's ok to use pcap_findalldevs()... $ECHO_C" >&6; }
  24240. if test x$disable_pcap_findalldevs = xno ; then
  24241. cat >>confdefs.h <<\_ACEOF
  24242. #define ENABLE_PCAP_FINDALLDEVS 1
  24243. _ACEOF
  24244. { echo "$as_me:$LINENO: result: yes" >&5
  24245. echo "${ECHO_T}yes" >&6; }
  24246. else
  24247. { echo "$as_me:$LINENO: result: no" >&5
  24248. echo "${ECHO_T}no" >&6; }
  24249. fi
  24250. case "${enable_local_libopts+set}" in
  24251. set) ;;
  24252. *) enable_local_libopts=yes ;;
  24253. esac
  24254. case "${enable_libopts_install+set}" in
  24255. set) ;;
  24256. *) enable_libopts_install=no ;;
  24257. esac
  24258. NEED_LIBOPTS_DIR=''
  24259. LIBOPTS_DIR=libopts
  24260. # Check whether --enable-local-libopts was given.
  24261. if test "${enable_local_libopts+set}" = set; then
  24262. enableval=$enable_local_libopts;
  24263. if test x$enableval = xyes ; then
  24264. { echo "$as_me:$LINENO: Using supplied libopts tearoff" >&5
  24265. echo "$as_me: Using supplied libopts tearoff" >&6;}
  24266. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  24267. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  24268. NEED_LIBOPTS_DIR=true
  24269. fi
  24270. fi
  24271. # Check whether --enable-libopts-install was given.
  24272. if test "${enable_libopts_install+set}" = set; then
  24273. enableval=$enable_libopts_install;
  24274. fi
  24275. if test "X${enable_libopts_install}" != Xno; then
  24276. INSTALL_LIBOPTS_TRUE=
  24277. INSTALL_LIBOPTS_FALSE='#'
  24278. else
  24279. INSTALL_LIBOPTS_TRUE='#'
  24280. INSTALL_LIBOPTS_FALSE=
  24281. fi
  24282. if test -z "${NEED_LIBOPTS_DIR}" ; then
  24283. { echo "$as_me:$LINENO: checking whether autoopts-config can be found" >&5
  24284. echo $ECHO_N "checking whether autoopts-config can be found... $ECHO_C" >&6; }
  24285. # Check whether --with-autoopts-config was given.
  24286. if test "${with_autoopts_config+set}" = set; then
  24287. withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
  24288. else
  24289. { echo "$as_me:$LINENO: checking whether autoopts-config is specified" >&5
  24290. echo $ECHO_N "checking whether autoopts-config is specified... $ECHO_C" >&6; }
  24291. if test "${lo_cv_with_autoopts_config+set}" = set; then
  24292. echo $ECHO_N "(cached) $ECHO_C" >&6
  24293. else
  24294. if autoopts-config --help 2>/dev/null 1>&2
  24295. then lo_cv_with_autoopts_config=autoopts-config
  24296. elif libopts-config --help 2>/dev/null 1>&2
  24297. then lo_cv_with_autoopts_config=libopts-config
  24298. else lo_cv_with_autoopts_config=no ; fi
  24299. fi
  24300. { echo "$as_me:$LINENO: result: $lo_cv_with_autoopts_config" >&5
  24301. echo "${ECHO_T}$lo_cv_with_autoopts_config" >&6; }
  24302. fi
  24303. # end of AC_ARG_WITH
  24304. if test "${lo_cv_test_autoopts+set}" = set; then
  24305. echo $ECHO_N "(cached) $ECHO_C" >&6
  24306. else
  24307. if test -z "${lo_cv_with_autoopts_config}" \
  24308. -o X"${lo_cv_with_autoopts_config}" = Xno
  24309. then
  24310. if autoopts-config --help 2>/dev/null 1>&2
  24311. then lo_cv_with_autoopts_config=autoopts-config
  24312. elif libopts-config --help 2>/dev/null 1>&2
  24313. then lo_cv_with_autoopts_config=libopts-config
  24314. else lo_cv_with_autoopts_config=false ; fi
  24315. fi
  24316. lo_cv_test_autoopts=`
  24317. ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
  24318. if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
  24319. then lo_cv_test_autoopts=no ; fi
  24320. fi
  24321. # end of CACHE_VAL
  24322. { echo "$as_me:$LINENO: result: ${lo_cv_test_autoopts}" >&5
  24323. echo "${ECHO_T}${lo_cv_test_autoopts}" >&6; }
  24324. if test "X${lo_cv_test_autoopts}" != Xno
  24325. then
  24326. LIBOPTS_LDADD="${lo_cv_test_autoopts}"
  24327. LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
  24328. else
  24329. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  24330. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  24331. NEED_LIBOPTS_DIR=true
  24332. fi
  24333. fi # end of if test -z "${NEED_LIBOPTS_DIR}"
  24334. if test -n "${NEED_LIBOPTS_DIR}"; then
  24335. NEED_LIBOPTS_TRUE=
  24336. NEED_LIBOPTS_FALSE='#'
  24337. else
  24338. NEED_LIBOPTS_TRUE='#'
  24339. NEED_LIBOPTS_FALSE=
  24340. fi
  24341. LIBOPTS_DIR=libopts
  24342. ac_config_files="$ac_config_files libopts/Makefile"
  24343. if test -n "${NEED_LIBOPTS_DIR}" ; then
  24344. if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
  24345. # =================
  24346. # AC_HEADER_STDC
  24347. # =================
  24348. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  24349. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  24350. if test "${ac_cv_header_stdc+set}" = set; then
  24351. echo $ECHO_N "(cached) $ECHO_C" >&6
  24352. else
  24353. cat >conftest.$ac_ext <<_ACEOF
  24354. /* confdefs.h. */
  24355. _ACEOF
  24356. cat confdefs.h >>conftest.$ac_ext
  24357. cat >>conftest.$ac_ext <<_ACEOF
  24358. /* end confdefs.h. */
  24359. #include <stdlib.h>
  24360. #include <stdarg.h>
  24361. #include <string.h>
  24362. #include <float.h>
  24363. int
  24364. main ()
  24365. {
  24366. ;
  24367. return 0;
  24368. }
  24369. _ACEOF
  24370. rm -f conftest.$ac_objext
  24371. if { (ac_try="$ac_compile"
  24372. case "(($ac_try" in
  24373. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24374. *) ac_try_echo=$ac_try;;
  24375. esac
  24376. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24377. (eval "$ac_compile") 2>conftest.er1
  24378. ac_status=$?
  24379. grep -v '^ *+' conftest.er1 >conftest.err
  24380. rm -f conftest.er1
  24381. cat conftest.err >&5
  24382. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24383. (exit $ac_status); } && {
  24384. test -z "$ac_c_werror_flag" ||
  24385. test ! -s conftest.err
  24386. } && test -s conftest.$ac_objext; then
  24387. ac_cv_header_stdc=yes
  24388. else
  24389. echo "$as_me: failed program was:" >&5
  24390. sed 's/^/| /' conftest.$ac_ext >&5
  24391. ac_cv_header_stdc=no
  24392. fi
  24393. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24394. if test $ac_cv_header_stdc = yes; then
  24395. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  24396. cat >conftest.$ac_ext <<_ACEOF
  24397. /* confdefs.h. */
  24398. _ACEOF
  24399. cat confdefs.h >>conftest.$ac_ext
  24400. cat >>conftest.$ac_ext <<_ACEOF
  24401. /* end confdefs.h. */
  24402. #include <string.h>
  24403. _ACEOF
  24404. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  24405. $EGREP "memchr" >/dev/null 2>&1; then
  24406. :
  24407. else
  24408. ac_cv_header_stdc=no
  24409. fi
  24410. rm -f conftest*
  24411. fi
  24412. if test $ac_cv_header_stdc = yes; then
  24413. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  24414. cat >conftest.$ac_ext <<_ACEOF
  24415. /* confdefs.h. */
  24416. _ACEOF
  24417. cat confdefs.h >>conftest.$ac_ext
  24418. cat >>conftest.$ac_ext <<_ACEOF
  24419. /* end confdefs.h. */
  24420. #include <stdlib.h>
  24421. _ACEOF
  24422. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  24423. $EGREP "free" >/dev/null 2>&1; then
  24424. :
  24425. else
  24426. ac_cv_header_stdc=no
  24427. fi
  24428. rm -f conftest*
  24429. fi
  24430. if test $ac_cv_header_stdc = yes; then
  24431. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  24432. if test "$cross_compiling" = yes; then
  24433. :
  24434. else
  24435. cat >conftest.$ac_ext <<_ACEOF
  24436. /* confdefs.h. */
  24437. _ACEOF
  24438. cat confdefs.h >>conftest.$ac_ext
  24439. cat >>conftest.$ac_ext <<_ACEOF
  24440. /* end confdefs.h. */
  24441. #include <ctype.h>
  24442. #include <stdlib.h>
  24443. #if ((' ' & 0x0FF) == 0x020)
  24444. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  24445. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  24446. #else
  24447. # define ISLOWER(c) \
  24448. (('a' <= (c) && (c) <= 'i') \
  24449. || ('j' <= (c) && (c) <= 'r') \
  24450. || ('s' <= (c) && (c) <= 'z'))
  24451. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  24452. #endif
  24453. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  24454. int
  24455. main ()
  24456. {
  24457. int i;
  24458. for (i = 0; i < 256; i++)
  24459. if (XOR (islower (i), ISLOWER (i))
  24460. || toupper (i) != TOUPPER (i))
  24461. return 2;
  24462. return 0;
  24463. }
  24464. _ACEOF
  24465. rm -f conftest$ac_exeext
  24466. if { (ac_try="$ac_link"
  24467. case "(($ac_try" in
  24468. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24469. *) ac_try_echo=$ac_try;;
  24470. esac
  24471. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24472. (eval "$ac_link") 2>&5
  24473. ac_status=$?
  24474. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24475. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  24476. { (case "(($ac_try" in
  24477. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24478. *) ac_try_echo=$ac_try;;
  24479. esac
  24480. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24481. (eval "$ac_try") 2>&5
  24482. ac_status=$?
  24483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24484. (exit $ac_status); }; }; then
  24485. :
  24486. else
  24487. echo "$as_me: program exited with status $ac_status" >&5
  24488. echo "$as_me: failed program was:" >&5
  24489. sed 's/^/| /' conftest.$ac_ext >&5
  24490. ( exit $ac_status )
  24491. ac_cv_header_stdc=no
  24492. fi
  24493. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  24494. fi
  24495. fi
  24496. fi
  24497. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  24498. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  24499. if test $ac_cv_header_stdc = yes; then
  24500. cat >>confdefs.h <<\_ACEOF
  24501. #define STDC_HEADERS 1
  24502. _ACEOF
  24503. fi
  24504. # =================
  24505. # AC_HEADER_DIRENT
  24506. # =================
  24507. ac_header_dirent=no
  24508. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  24509. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  24510. { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  24511. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
  24512. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24513. echo $ECHO_N "(cached) $ECHO_C" >&6
  24514. else
  24515. cat >conftest.$ac_ext <<_ACEOF
  24516. /* confdefs.h. */
  24517. _ACEOF
  24518. cat confdefs.h >>conftest.$ac_ext
  24519. cat >>conftest.$ac_ext <<_ACEOF
  24520. /* end confdefs.h. */
  24521. #include <sys/types.h>
  24522. #include <$ac_hdr>
  24523. int
  24524. main ()
  24525. {
  24526. if ((DIR *) 0)
  24527. return 0;
  24528. ;
  24529. return 0;
  24530. }
  24531. _ACEOF
  24532. rm -f conftest.$ac_objext
  24533. if { (ac_try="$ac_compile"
  24534. case "(($ac_try" in
  24535. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24536. *) ac_try_echo=$ac_try;;
  24537. esac
  24538. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24539. (eval "$ac_compile") 2>conftest.er1
  24540. ac_status=$?
  24541. grep -v '^ *+' conftest.er1 >conftest.err
  24542. rm -f conftest.er1
  24543. cat conftest.err >&5
  24544. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24545. (exit $ac_status); } && {
  24546. test -z "$ac_c_werror_flag" ||
  24547. test ! -s conftest.err
  24548. } && test -s conftest.$ac_objext; then
  24549. eval "$as_ac_Header=yes"
  24550. else
  24551. echo "$as_me: failed program was:" >&5
  24552. sed 's/^/| /' conftest.$ac_ext >&5
  24553. eval "$as_ac_Header=no"
  24554. fi
  24555. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24556. fi
  24557. ac_res=`eval echo '${'$as_ac_Header'}'`
  24558. { echo "$as_me:$LINENO: result: $ac_res" >&5
  24559. echo "${ECHO_T}$ac_res" >&6; }
  24560. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  24561. cat >>confdefs.h <<_ACEOF
  24562. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  24563. _ACEOF
  24564. ac_header_dirent=$ac_hdr; break
  24565. fi
  24566. done
  24567. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  24568. if test $ac_header_dirent = dirent.h; then
  24569. { echo "$as_me:$LINENO: checking for library containing opendir" >&5
  24570. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
  24571. if test "${ac_cv_search_opendir+set}" = set; then
  24572. echo $ECHO_N "(cached) $ECHO_C" >&6
  24573. else
  24574. ac_func_search_save_LIBS=$LIBS
  24575. cat >conftest.$ac_ext <<_ACEOF
  24576. /* confdefs.h. */
  24577. _ACEOF
  24578. cat confdefs.h >>conftest.$ac_ext
  24579. cat >>conftest.$ac_ext <<_ACEOF
  24580. /* end confdefs.h. */
  24581. /* Override any GCC internal prototype to avoid an error.
  24582. Use char because int might match the return type of a GCC
  24583. builtin and then its argument prototype would still apply. */
  24584. #ifdef __cplusplus
  24585. extern "C"
  24586. #endif
  24587. char opendir ();
  24588. int
  24589. main ()
  24590. {
  24591. return opendir ();
  24592. ;
  24593. return 0;
  24594. }
  24595. _ACEOF
  24596. for ac_lib in '' dir; do
  24597. if test -z "$ac_lib"; then
  24598. ac_res="none required"
  24599. else
  24600. ac_res=-l$ac_lib
  24601. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  24602. fi
  24603. rm -f conftest.$ac_objext conftest$ac_exeext
  24604. if { (ac_try="$ac_link"
  24605. case "(($ac_try" in
  24606. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24607. *) ac_try_echo=$ac_try;;
  24608. esac
  24609. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24610. (eval "$ac_link") 2>conftest.er1
  24611. ac_status=$?
  24612. grep -v '^ *+' conftest.er1 >conftest.err
  24613. rm -f conftest.er1
  24614. cat conftest.err >&5
  24615. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24616. (exit $ac_status); } && {
  24617. test -z "$ac_c_werror_flag" ||
  24618. test ! -s conftest.err
  24619. } && test -s conftest$ac_exeext &&
  24620. $as_test_x conftest$ac_exeext; then
  24621. ac_cv_search_opendir=$ac_res
  24622. else
  24623. echo "$as_me: failed program was:" >&5
  24624. sed 's/^/| /' conftest.$ac_ext >&5
  24625. fi
  24626. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24627. conftest$ac_exeext
  24628. if test "${ac_cv_search_opendir+set}" = set; then
  24629. break
  24630. fi
  24631. done
  24632. if test "${ac_cv_search_opendir+set}" = set; then
  24633. :
  24634. else
  24635. ac_cv_search_opendir=no
  24636. fi
  24637. rm conftest.$ac_ext
  24638. LIBS=$ac_func_search_save_LIBS
  24639. fi
  24640. { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  24641. echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
  24642. ac_res=$ac_cv_search_opendir
  24643. if test "$ac_res" != no; then
  24644. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  24645. fi
  24646. else
  24647. { echo "$as_me:$LINENO: checking for library containing opendir" >&5
  24648. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
  24649. if test "${ac_cv_search_opendir+set}" = set; then
  24650. echo $ECHO_N "(cached) $ECHO_C" >&6
  24651. else
  24652. ac_func_search_save_LIBS=$LIBS
  24653. cat >conftest.$ac_ext <<_ACEOF
  24654. /* confdefs.h. */
  24655. _ACEOF
  24656. cat confdefs.h >>conftest.$ac_ext
  24657. cat >>conftest.$ac_ext <<_ACEOF
  24658. /* end confdefs.h. */
  24659. /* Override any GCC internal prototype to avoid an error.
  24660. Use char because int might match the return type of a GCC
  24661. builtin and then its argument prototype would still apply. */
  24662. #ifdef __cplusplus
  24663. extern "C"
  24664. #endif
  24665. char opendir ();
  24666. int
  24667. main ()
  24668. {
  24669. return opendir ();
  24670. ;
  24671. return 0;
  24672. }
  24673. _ACEOF
  24674. for ac_lib in '' x; do
  24675. if test -z "$ac_lib"; then
  24676. ac_res="none required"
  24677. else
  24678. ac_res=-l$ac_lib
  24679. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  24680. fi
  24681. rm -f conftest.$ac_objext conftest$ac_exeext
  24682. if { (ac_try="$ac_link"
  24683. case "(($ac_try" in
  24684. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24685. *) ac_try_echo=$ac_try;;
  24686. esac
  24687. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24688. (eval "$ac_link") 2>conftest.er1
  24689. ac_status=$?
  24690. grep -v '^ *+' conftest.er1 >conftest.err
  24691. rm -f conftest.er1
  24692. cat conftest.err >&5
  24693. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24694. (exit $ac_status); } && {
  24695. test -z "$ac_c_werror_flag" ||
  24696. test ! -s conftest.err
  24697. } && test -s conftest$ac_exeext &&
  24698. $as_test_x conftest$ac_exeext; then
  24699. ac_cv_search_opendir=$ac_res
  24700. else
  24701. echo "$as_me: failed program was:" >&5
  24702. sed 's/^/| /' conftest.$ac_ext >&5
  24703. fi
  24704. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24705. conftest$ac_exeext
  24706. if test "${ac_cv_search_opendir+set}" = set; then
  24707. break
  24708. fi
  24709. done
  24710. if test "${ac_cv_search_opendir+set}" = set; then
  24711. :
  24712. else
  24713. ac_cv_search_opendir=no
  24714. fi
  24715. rm conftest.$ac_ext
  24716. LIBS=$ac_func_search_save_LIBS
  24717. fi
  24718. { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  24719. echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
  24720. ac_res=$ac_cv_search_opendir
  24721. if test "$ac_res" != no; then
  24722. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  24723. fi
  24724. fi
  24725. # =================
  24726. # AC_CHECK_HEADERS
  24727. # =================
  24728. for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
  24729. setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
  24730. sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h \
  24731. utime.h sysexits.h
  24732. do
  24733. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  24734. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24735. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  24736. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  24737. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24738. echo $ECHO_N "(cached) $ECHO_C" >&6
  24739. fi
  24740. ac_res=`eval echo '${'$as_ac_Header'}'`
  24741. { echo "$as_me:$LINENO: result: $ac_res" >&5
  24742. echo "${ECHO_T}$ac_res" >&6; }
  24743. else
  24744. # Is the header compilable?
  24745. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  24746. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  24747. cat >conftest.$ac_ext <<_ACEOF
  24748. /* confdefs.h. */
  24749. _ACEOF
  24750. cat confdefs.h >>conftest.$ac_ext
  24751. cat >>conftest.$ac_ext <<_ACEOF
  24752. /* end confdefs.h. */
  24753. $ac_includes_default
  24754. #include <$ac_header>
  24755. _ACEOF
  24756. rm -f conftest.$ac_objext
  24757. if { (ac_try="$ac_compile"
  24758. case "(($ac_try" in
  24759. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24760. *) ac_try_echo=$ac_try;;
  24761. esac
  24762. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24763. (eval "$ac_compile") 2>conftest.er1
  24764. ac_status=$?
  24765. grep -v '^ *+' conftest.er1 >conftest.err
  24766. rm -f conftest.er1
  24767. cat conftest.err >&5
  24768. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24769. (exit $ac_status); } && {
  24770. test -z "$ac_c_werror_flag" ||
  24771. test ! -s conftest.err
  24772. } && test -s conftest.$ac_objext; then
  24773. ac_header_compiler=yes
  24774. else
  24775. echo "$as_me: failed program was:" >&5
  24776. sed 's/^/| /' conftest.$ac_ext >&5
  24777. ac_header_compiler=no
  24778. fi
  24779. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24780. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  24781. echo "${ECHO_T}$ac_header_compiler" >&6; }
  24782. # Is the header present?
  24783. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  24784. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  24785. cat >conftest.$ac_ext <<_ACEOF
  24786. /* confdefs.h. */
  24787. _ACEOF
  24788. cat confdefs.h >>conftest.$ac_ext
  24789. cat >>conftest.$ac_ext <<_ACEOF
  24790. /* end confdefs.h. */
  24791. #include <$ac_header>
  24792. _ACEOF
  24793. if { (ac_try="$ac_cpp conftest.$ac_ext"
  24794. case "(($ac_try" in
  24795. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24796. *) ac_try_echo=$ac_try;;
  24797. esac
  24798. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24799. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  24800. ac_status=$?
  24801. grep -v '^ *+' conftest.er1 >conftest.err
  24802. rm -f conftest.er1
  24803. cat conftest.err >&5
  24804. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24805. (exit $ac_status); } >/dev/null && {
  24806. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  24807. test ! -s conftest.err
  24808. }; then
  24809. ac_header_preproc=yes
  24810. else
  24811. echo "$as_me: failed program was:" >&5
  24812. sed 's/^/| /' conftest.$ac_ext >&5
  24813. ac_header_preproc=no
  24814. fi
  24815. rm -f conftest.err conftest.$ac_ext
  24816. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  24817. echo "${ECHO_T}$ac_header_preproc" >&6; }
  24818. # So? What about this header?
  24819. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  24820. yes:no: )
  24821. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  24822. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  24823. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  24824. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  24825. ac_header_preproc=yes
  24826. ;;
  24827. no:yes:* )
  24828. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  24829. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  24830. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  24831. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  24832. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  24833. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  24834. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  24835. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  24836. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  24837. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  24838. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  24839. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  24840. ;;
  24841. esac
  24842. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  24843. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  24844. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24845. echo $ECHO_N "(cached) $ECHO_C" >&6
  24846. else
  24847. eval "$as_ac_Header=\$ac_header_preproc"
  24848. fi
  24849. ac_res=`eval echo '${'$as_ac_Header'}'`
  24850. { echo "$as_me:$LINENO: result: $ac_res" >&5
  24851. echo "${ECHO_T}$ac_res" >&6; }
  24852. fi
  24853. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  24854. cat >>confdefs.h <<_ACEOF
  24855. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  24856. _ACEOF
  24857. fi
  24858. done
  24859. # --------------------------------------------
  24860. # Verify certain entries from AC_CHECK_HEADERS
  24861. # --------------------------------------------
  24862. for f in sys_types sys_mman sys_param sys_stat sys_wait \
  24863. string errno stdlib memory setjmp
  24864. do eval as_ac_var=\${ac_cv_header_${f}_h+set}
  24865. test "${as_ac_var}" = set || \
  24866. { { echo "$as_me:$LINENO: error: You must have ${f}.h on your system" >&5
  24867. echo "$as_me: error: You must have ${f}.h on your system" >&2;}
  24868. { (exit 1); exit 1; }; }
  24869. done
  24870. # ================================================
  24871. # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
  24872. # if varargs.h is present define HAVE_VARARGS_H.
  24873. # ================================================
  24874. for ac_header in stdarg.h varargs.h
  24875. do
  24876. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  24877. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24878. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  24879. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  24880. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24881. echo $ECHO_N "(cached) $ECHO_C" >&6
  24882. fi
  24883. ac_res=`eval echo '${'$as_ac_Header'}'`
  24884. { echo "$as_me:$LINENO: result: $ac_res" >&5
  24885. echo "${ECHO_T}$ac_res" >&6; }
  24886. else
  24887. # Is the header compilable?
  24888. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  24889. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  24890. cat >conftest.$ac_ext <<_ACEOF
  24891. /* confdefs.h. */
  24892. _ACEOF
  24893. cat confdefs.h >>conftest.$ac_ext
  24894. cat >>conftest.$ac_ext <<_ACEOF
  24895. /* end confdefs.h. */
  24896. $ac_includes_default
  24897. #include <$ac_header>
  24898. _ACEOF
  24899. rm -f conftest.$ac_objext
  24900. if { (ac_try="$ac_compile"
  24901. case "(($ac_try" in
  24902. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24903. *) ac_try_echo=$ac_try;;
  24904. esac
  24905. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24906. (eval "$ac_compile") 2>conftest.er1
  24907. ac_status=$?
  24908. grep -v '^ *+' conftest.er1 >conftest.err
  24909. rm -f conftest.er1
  24910. cat conftest.err >&5
  24911. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24912. (exit $ac_status); } && {
  24913. test -z "$ac_c_werror_flag" ||
  24914. test ! -s conftest.err
  24915. } && test -s conftest.$ac_objext; then
  24916. ac_header_compiler=yes
  24917. else
  24918. echo "$as_me: failed program was:" >&5
  24919. sed 's/^/| /' conftest.$ac_ext >&5
  24920. ac_header_compiler=no
  24921. fi
  24922. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24923. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  24924. echo "${ECHO_T}$ac_header_compiler" >&6; }
  24925. # Is the header present?
  24926. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  24927. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  24928. cat >conftest.$ac_ext <<_ACEOF
  24929. /* confdefs.h. */
  24930. _ACEOF
  24931. cat confdefs.h >>conftest.$ac_ext
  24932. cat >>conftest.$ac_ext <<_ACEOF
  24933. /* end confdefs.h. */
  24934. #include <$ac_header>
  24935. _ACEOF
  24936. if { (ac_try="$ac_cpp conftest.$ac_ext"
  24937. case "(($ac_try" in
  24938. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24939. *) ac_try_echo=$ac_try;;
  24940. esac
  24941. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24942. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  24943. ac_status=$?
  24944. grep -v '^ *+' conftest.er1 >conftest.err
  24945. rm -f conftest.er1
  24946. cat conftest.err >&5
  24947. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24948. (exit $ac_status); } >/dev/null && {
  24949. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  24950. test ! -s conftest.err
  24951. }; then
  24952. ac_header_preproc=yes
  24953. else
  24954. echo "$as_me: failed program was:" >&5
  24955. sed 's/^/| /' conftest.$ac_ext >&5
  24956. ac_header_preproc=no
  24957. fi
  24958. rm -f conftest.err conftest.$ac_ext
  24959. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  24960. echo "${ECHO_T}$ac_header_preproc" >&6; }
  24961. # So? What about this header?
  24962. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  24963. yes:no: )
  24964. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  24965. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  24966. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  24967. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  24968. ac_header_preproc=yes
  24969. ;;
  24970. no:yes:* )
  24971. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  24972. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  24973. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  24974. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  24975. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  24976. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  24977. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  24978. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  24979. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  24980. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  24981. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  24982. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  24983. ;;
  24984. esac
  24985. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  24986. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  24987. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24988. echo $ECHO_N "(cached) $ECHO_C" >&6
  24989. else
  24990. eval "$as_ac_Header=\$ac_header_preproc"
  24991. fi
  24992. ac_res=`eval echo '${'$as_ac_Header'}'`
  24993. { echo "$as_me:$LINENO: result: $ac_res" >&5
  24994. echo "${ECHO_T}$ac_res" >&6; }
  24995. fi
  24996. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  24997. cat >>confdefs.h <<_ACEOF
  24998. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  24999. _ACEOF
  25000. break
  25001. fi
  25002. done
  25003. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  25004. { { echo "$as_me:$LINENO: error: You must have stdarg.h or varargs.h on your system" >&5
  25005. echo "$as_me: error: You must have stdarg.h or varargs.h on your system" >&2;}
  25006. { (exit 1); exit 1; }; }
  25007. fi
  25008. # ================================================
  25009. # Similarly for the string.h and strings.h headers
  25010. # ================================================
  25011. for ac_header in string.h strings.h
  25012. do
  25013. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  25014. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25015. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  25016. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  25017. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25018. echo $ECHO_N "(cached) $ECHO_C" >&6
  25019. fi
  25020. ac_res=`eval echo '${'$as_ac_Header'}'`
  25021. { echo "$as_me:$LINENO: result: $ac_res" >&5
  25022. echo "${ECHO_T}$ac_res" >&6; }
  25023. else
  25024. # Is the header compilable?
  25025. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  25026. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  25027. cat >conftest.$ac_ext <<_ACEOF
  25028. /* confdefs.h. */
  25029. _ACEOF
  25030. cat confdefs.h >>conftest.$ac_ext
  25031. cat >>conftest.$ac_ext <<_ACEOF
  25032. /* end confdefs.h. */
  25033. $ac_includes_default
  25034. #include <$ac_header>
  25035. _ACEOF
  25036. rm -f conftest.$ac_objext
  25037. if { (ac_try="$ac_compile"
  25038. case "(($ac_try" in
  25039. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25040. *) ac_try_echo=$ac_try;;
  25041. esac
  25042. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25043. (eval "$ac_compile") 2>conftest.er1
  25044. ac_status=$?
  25045. grep -v '^ *+' conftest.er1 >conftest.err
  25046. rm -f conftest.er1
  25047. cat conftest.err >&5
  25048. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25049. (exit $ac_status); } && {
  25050. test -z "$ac_c_werror_flag" ||
  25051. test ! -s conftest.err
  25052. } && test -s conftest.$ac_objext; then
  25053. ac_header_compiler=yes
  25054. else
  25055. echo "$as_me: failed program was:" >&5
  25056. sed 's/^/| /' conftest.$ac_ext >&5
  25057. ac_header_compiler=no
  25058. fi
  25059. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25060. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  25061. echo "${ECHO_T}$ac_header_compiler" >&6; }
  25062. # Is the header present?
  25063. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  25064. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  25065. cat >conftest.$ac_ext <<_ACEOF
  25066. /* confdefs.h. */
  25067. _ACEOF
  25068. cat confdefs.h >>conftest.$ac_ext
  25069. cat >>conftest.$ac_ext <<_ACEOF
  25070. /* end confdefs.h. */
  25071. #include <$ac_header>
  25072. _ACEOF
  25073. if { (ac_try="$ac_cpp conftest.$ac_ext"
  25074. case "(($ac_try" in
  25075. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25076. *) ac_try_echo=$ac_try;;
  25077. esac
  25078. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25079. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  25080. ac_status=$?
  25081. grep -v '^ *+' conftest.er1 >conftest.err
  25082. rm -f conftest.er1
  25083. cat conftest.err >&5
  25084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25085. (exit $ac_status); } >/dev/null && {
  25086. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  25087. test ! -s conftest.err
  25088. }; then
  25089. ac_header_preproc=yes
  25090. else
  25091. echo "$as_me: failed program was:" >&5
  25092. sed 's/^/| /' conftest.$ac_ext >&5
  25093. ac_header_preproc=no
  25094. fi
  25095. rm -f conftest.err conftest.$ac_ext
  25096. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  25097. echo "${ECHO_T}$ac_header_preproc" >&6; }
  25098. # So? What about this header?
  25099. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  25100. yes:no: )
  25101. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  25102. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  25103. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  25104. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  25105. ac_header_preproc=yes
  25106. ;;
  25107. no:yes:* )
  25108. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  25109. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  25110. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  25111. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  25112. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  25113. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  25114. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  25115. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  25116. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  25117. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  25118. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  25119. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  25120. ;;
  25121. esac
  25122. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  25123. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  25124. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25125. echo $ECHO_N "(cached) $ECHO_C" >&6
  25126. else
  25127. eval "$as_ac_Header=\$ac_header_preproc"
  25128. fi
  25129. ac_res=`eval echo '${'$as_ac_Header'}'`
  25130. { echo "$as_me:$LINENO: result: $ac_res" >&5
  25131. echo "${ECHO_T}$ac_res" >&6; }
  25132. fi
  25133. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  25134. cat >>confdefs.h <<_ACEOF
  25135. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  25136. _ACEOF
  25137. break
  25138. fi
  25139. done
  25140. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  25141. { { echo "$as_me:$LINENO: error: You must have string.h or strings.h on your system" >&5
  25142. echo "$as_me: error: You must have string.h or strings.h on your system" >&2;}
  25143. { (exit 1); exit 1; }; }
  25144. fi
  25145. # =====================
  25146. # ...and limits headers
  25147. # =====================
  25148. for ac_header in limits.h sys/limits.h values.h
  25149. do
  25150. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  25151. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25152. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  25153. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  25154. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25155. echo $ECHO_N "(cached) $ECHO_C" >&6
  25156. fi
  25157. ac_res=`eval echo '${'$as_ac_Header'}'`
  25158. { echo "$as_me:$LINENO: result: $ac_res" >&5
  25159. echo "${ECHO_T}$ac_res" >&6; }
  25160. else
  25161. # Is the header compilable?
  25162. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  25163. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  25164. cat >conftest.$ac_ext <<_ACEOF
  25165. /* confdefs.h. */
  25166. _ACEOF
  25167. cat confdefs.h >>conftest.$ac_ext
  25168. cat >>conftest.$ac_ext <<_ACEOF
  25169. /* end confdefs.h. */
  25170. $ac_includes_default
  25171. #include <$ac_header>
  25172. _ACEOF
  25173. rm -f conftest.$ac_objext
  25174. if { (ac_try="$ac_compile"
  25175. case "(($ac_try" in
  25176. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25177. *) ac_try_echo=$ac_try;;
  25178. esac
  25179. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25180. (eval "$ac_compile") 2>conftest.er1
  25181. ac_status=$?
  25182. grep -v '^ *+' conftest.er1 >conftest.err
  25183. rm -f conftest.er1
  25184. cat conftest.err >&5
  25185. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25186. (exit $ac_status); } && {
  25187. test -z "$ac_c_werror_flag" ||
  25188. test ! -s conftest.err
  25189. } && test -s conftest.$ac_objext; then
  25190. ac_header_compiler=yes
  25191. else
  25192. echo "$as_me: failed program was:" >&5
  25193. sed 's/^/| /' conftest.$ac_ext >&5
  25194. ac_header_compiler=no
  25195. fi
  25196. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25197. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  25198. echo "${ECHO_T}$ac_header_compiler" >&6; }
  25199. # Is the header present?
  25200. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  25201. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  25202. cat >conftest.$ac_ext <<_ACEOF
  25203. /* confdefs.h. */
  25204. _ACEOF
  25205. cat confdefs.h >>conftest.$ac_ext
  25206. cat >>conftest.$ac_ext <<_ACEOF
  25207. /* end confdefs.h. */
  25208. #include <$ac_header>
  25209. _ACEOF
  25210. if { (ac_try="$ac_cpp conftest.$ac_ext"
  25211. case "(($ac_try" in
  25212. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25213. *) ac_try_echo=$ac_try;;
  25214. esac
  25215. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25216. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  25217. ac_status=$?
  25218. grep -v '^ *+' conftest.er1 >conftest.err
  25219. rm -f conftest.er1
  25220. cat conftest.err >&5
  25221. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25222. (exit $ac_status); } >/dev/null && {
  25223. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  25224. test ! -s conftest.err
  25225. }; then
  25226. ac_header_preproc=yes
  25227. else
  25228. echo "$as_me: failed program was:" >&5
  25229. sed 's/^/| /' conftest.$ac_ext >&5
  25230. ac_header_preproc=no
  25231. fi
  25232. rm -f conftest.err conftest.$ac_ext
  25233. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  25234. echo "${ECHO_T}$ac_header_preproc" >&6; }
  25235. # So? What about this header?
  25236. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  25237. yes:no: )
  25238. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  25239. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  25240. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  25241. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  25242. ac_header_preproc=yes
  25243. ;;
  25244. no:yes:* )
  25245. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  25246. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  25247. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  25248. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  25249. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  25250. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  25251. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  25252. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  25253. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  25254. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  25255. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  25256. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  25257. ;;
  25258. esac
  25259. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  25260. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  25261. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25262. echo $ECHO_N "(cached) $ECHO_C" >&6
  25263. else
  25264. eval "$as_ac_Header=\$ac_header_preproc"
  25265. fi
  25266. ac_res=`eval echo '${'$as_ac_Header'}'`
  25267. { echo "$as_me:$LINENO: result: $ac_res" >&5
  25268. echo "${ECHO_T}$ac_res" >&6; }
  25269. fi
  25270. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  25271. cat >>confdefs.h <<_ACEOF
  25272. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  25273. _ACEOF
  25274. break
  25275. fi
  25276. done
  25277. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  25278. { { echo "$as_me:$LINENO: error: You must have one of limits.h, sys/limits.h or values.h" >&5
  25279. echo "$as_me: error: You must have one of limits.h, sys/limits.h or values.h" >&2;}
  25280. { (exit 1); exit 1; }; }
  25281. fi
  25282. # ========================
  25283. # ...and int types headers
  25284. # ========================
  25285. for ac_header in stdint.h inttypes.h
  25286. do
  25287. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  25288. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25289. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  25290. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  25291. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25292. echo $ECHO_N "(cached) $ECHO_C" >&6
  25293. fi
  25294. ac_res=`eval echo '${'$as_ac_Header'}'`
  25295. { echo "$as_me:$LINENO: result: $ac_res" >&5
  25296. echo "${ECHO_T}$ac_res" >&6; }
  25297. else
  25298. # Is the header compilable?
  25299. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  25300. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  25301. cat >conftest.$ac_ext <<_ACEOF
  25302. /* confdefs.h. */
  25303. _ACEOF
  25304. cat confdefs.h >>conftest.$ac_ext
  25305. cat >>conftest.$ac_ext <<_ACEOF
  25306. /* end confdefs.h. */
  25307. $ac_includes_default
  25308. #include <$ac_header>
  25309. _ACEOF
  25310. rm -f conftest.$ac_objext
  25311. if { (ac_try="$ac_compile"
  25312. case "(($ac_try" in
  25313. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25314. *) ac_try_echo=$ac_try;;
  25315. esac
  25316. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25317. (eval "$ac_compile") 2>conftest.er1
  25318. ac_status=$?
  25319. grep -v '^ *+' conftest.er1 >conftest.err
  25320. rm -f conftest.er1
  25321. cat conftest.err >&5
  25322. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25323. (exit $ac_status); } && {
  25324. test -z "$ac_c_werror_flag" ||
  25325. test ! -s conftest.err
  25326. } && test -s conftest.$ac_objext; then
  25327. ac_header_compiler=yes
  25328. else
  25329. echo "$as_me: failed program was:" >&5
  25330. sed 's/^/| /' conftest.$ac_ext >&5
  25331. ac_header_compiler=no
  25332. fi
  25333. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25334. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  25335. echo "${ECHO_T}$ac_header_compiler" >&6; }
  25336. # Is the header present?
  25337. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  25338. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  25339. cat >conftest.$ac_ext <<_ACEOF
  25340. /* confdefs.h. */
  25341. _ACEOF
  25342. cat confdefs.h >>conftest.$ac_ext
  25343. cat >>conftest.$ac_ext <<_ACEOF
  25344. /* end confdefs.h. */
  25345. #include <$ac_header>
  25346. _ACEOF
  25347. if { (ac_try="$ac_cpp conftest.$ac_ext"
  25348. case "(($ac_try" in
  25349. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25350. *) ac_try_echo=$ac_try;;
  25351. esac
  25352. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25353. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  25354. ac_status=$?
  25355. grep -v '^ *+' conftest.er1 >conftest.err
  25356. rm -f conftest.er1
  25357. cat conftest.err >&5
  25358. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25359. (exit $ac_status); } >/dev/null && {
  25360. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  25361. test ! -s conftest.err
  25362. }; then
  25363. ac_header_preproc=yes
  25364. else
  25365. echo "$as_me: failed program was:" >&5
  25366. sed 's/^/| /' conftest.$ac_ext >&5
  25367. ac_header_preproc=no
  25368. fi
  25369. rm -f conftest.err conftest.$ac_ext
  25370. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  25371. echo "${ECHO_T}$ac_header_preproc" >&6; }
  25372. # So? What about this header?
  25373. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  25374. yes:no: )
  25375. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  25376. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  25377. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  25378. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  25379. ac_header_preproc=yes
  25380. ;;
  25381. no:yes:* )
  25382. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  25383. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  25384. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  25385. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  25386. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  25387. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  25388. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  25389. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  25390. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  25391. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  25392. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  25393. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  25394. ;;
  25395. esac
  25396. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  25397. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  25398. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25399. echo $ECHO_N "(cached) $ECHO_C" >&6
  25400. else
  25401. eval "$as_ac_Header=\$ac_header_preproc"
  25402. fi
  25403. ac_res=`eval echo '${'$as_ac_Header'}'`
  25404. { echo "$as_me:$LINENO: result: $ac_res" >&5
  25405. echo "${ECHO_T}$ac_res" >&6; }
  25406. fi
  25407. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  25408. cat >>confdefs.h <<_ACEOF
  25409. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  25410. _ACEOF
  25411. break
  25412. fi
  25413. done
  25414. { echo "$as_me:$LINENO: checking for int8_t" >&5
  25415. echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
  25416. if test "${ac_cv_type_int8_t+set}" = set; then
  25417. echo $ECHO_N "(cached) $ECHO_C" >&6
  25418. else
  25419. cat >conftest.$ac_ext <<_ACEOF
  25420. /* confdefs.h. */
  25421. _ACEOF
  25422. cat confdefs.h >>conftest.$ac_ext
  25423. cat >>conftest.$ac_ext <<_ACEOF
  25424. /* end confdefs.h. */
  25425. $ac_includes_default
  25426. typedef int8_t ac__type_new_;
  25427. int
  25428. main ()
  25429. {
  25430. if ((ac__type_new_ *) 0)
  25431. return 0;
  25432. if (sizeof (ac__type_new_))
  25433. return 0;
  25434. ;
  25435. return 0;
  25436. }
  25437. _ACEOF
  25438. rm -f conftest.$ac_objext
  25439. if { (ac_try="$ac_compile"
  25440. case "(($ac_try" in
  25441. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25442. *) ac_try_echo=$ac_try;;
  25443. esac
  25444. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25445. (eval "$ac_compile") 2>conftest.er1
  25446. ac_status=$?
  25447. grep -v '^ *+' conftest.er1 >conftest.err
  25448. rm -f conftest.er1
  25449. cat conftest.err >&5
  25450. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25451. (exit $ac_status); } && {
  25452. test -z "$ac_c_werror_flag" ||
  25453. test ! -s conftest.err
  25454. } && test -s conftest.$ac_objext; then
  25455. ac_cv_type_int8_t=yes
  25456. else
  25457. echo "$as_me: failed program was:" >&5
  25458. sed 's/^/| /' conftest.$ac_ext >&5
  25459. ac_cv_type_int8_t=no
  25460. fi
  25461. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25462. fi
  25463. { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
  25464. echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
  25465. if test $ac_cv_type_int8_t = yes; then
  25466. cat >>confdefs.h <<_ACEOF
  25467. #define HAVE_INT8_T 1
  25468. _ACEOF
  25469. fi
  25470. { echo "$as_me:$LINENO: checking for uint8_t" >&5
  25471. echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
  25472. if test "${ac_cv_type_uint8_t+set}" = set; then
  25473. echo $ECHO_N "(cached) $ECHO_C" >&6
  25474. else
  25475. cat >conftest.$ac_ext <<_ACEOF
  25476. /* confdefs.h. */
  25477. _ACEOF
  25478. cat confdefs.h >>conftest.$ac_ext
  25479. cat >>conftest.$ac_ext <<_ACEOF
  25480. /* end confdefs.h. */
  25481. $ac_includes_default
  25482. typedef uint8_t ac__type_new_;
  25483. int
  25484. main ()
  25485. {
  25486. if ((ac__type_new_ *) 0)
  25487. return 0;
  25488. if (sizeof (ac__type_new_))
  25489. return 0;
  25490. ;
  25491. return 0;
  25492. }
  25493. _ACEOF
  25494. rm -f conftest.$ac_objext
  25495. if { (ac_try="$ac_compile"
  25496. case "(($ac_try" in
  25497. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25498. *) ac_try_echo=$ac_try;;
  25499. esac
  25500. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25501. (eval "$ac_compile") 2>conftest.er1
  25502. ac_status=$?
  25503. grep -v '^ *+' conftest.er1 >conftest.err
  25504. rm -f conftest.er1
  25505. cat conftest.err >&5
  25506. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25507. (exit $ac_status); } && {
  25508. test -z "$ac_c_werror_flag" ||
  25509. test ! -s conftest.err
  25510. } && test -s conftest.$ac_objext; then
  25511. ac_cv_type_uint8_t=yes
  25512. else
  25513. echo "$as_me: failed program was:" >&5
  25514. sed 's/^/| /' conftest.$ac_ext >&5
  25515. ac_cv_type_uint8_t=no
  25516. fi
  25517. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25518. fi
  25519. { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
  25520. echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
  25521. if test $ac_cv_type_uint8_t = yes; then
  25522. cat >>confdefs.h <<_ACEOF
  25523. #define HAVE_UINT8_T 1
  25524. _ACEOF
  25525. fi
  25526. { echo "$as_me:$LINENO: checking for int16_t" >&5
  25527. echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
  25528. if test "${ac_cv_type_int16_t+set}" = set; then
  25529. echo $ECHO_N "(cached) $ECHO_C" >&6
  25530. else
  25531. cat >conftest.$ac_ext <<_ACEOF
  25532. /* confdefs.h. */
  25533. _ACEOF
  25534. cat confdefs.h >>conftest.$ac_ext
  25535. cat >>conftest.$ac_ext <<_ACEOF
  25536. /* end confdefs.h. */
  25537. $ac_includes_default
  25538. typedef int16_t ac__type_new_;
  25539. int
  25540. main ()
  25541. {
  25542. if ((ac__type_new_ *) 0)
  25543. return 0;
  25544. if (sizeof (ac__type_new_))
  25545. return 0;
  25546. ;
  25547. return 0;
  25548. }
  25549. _ACEOF
  25550. rm -f conftest.$ac_objext
  25551. if { (ac_try="$ac_compile"
  25552. case "(($ac_try" in
  25553. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25554. *) ac_try_echo=$ac_try;;
  25555. esac
  25556. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25557. (eval "$ac_compile") 2>conftest.er1
  25558. ac_status=$?
  25559. grep -v '^ *+' conftest.er1 >conftest.err
  25560. rm -f conftest.er1
  25561. cat conftest.err >&5
  25562. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25563. (exit $ac_status); } && {
  25564. test -z "$ac_c_werror_flag" ||
  25565. test ! -s conftest.err
  25566. } && test -s conftest.$ac_objext; then
  25567. ac_cv_type_int16_t=yes
  25568. else
  25569. echo "$as_me: failed program was:" >&5
  25570. sed 's/^/| /' conftest.$ac_ext >&5
  25571. ac_cv_type_int16_t=no
  25572. fi
  25573. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25574. fi
  25575. { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
  25576. echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
  25577. if test $ac_cv_type_int16_t = yes; then
  25578. cat >>confdefs.h <<_ACEOF
  25579. #define HAVE_INT16_T 1
  25580. _ACEOF
  25581. fi
  25582. { echo "$as_me:$LINENO: checking for uint16_t" >&5
  25583. echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
  25584. if test "${ac_cv_type_uint16_t+set}" = set; then
  25585. echo $ECHO_N "(cached) $ECHO_C" >&6
  25586. else
  25587. cat >conftest.$ac_ext <<_ACEOF
  25588. /* confdefs.h. */
  25589. _ACEOF
  25590. cat confdefs.h >>conftest.$ac_ext
  25591. cat >>conftest.$ac_ext <<_ACEOF
  25592. /* end confdefs.h. */
  25593. $ac_includes_default
  25594. typedef uint16_t ac__type_new_;
  25595. int
  25596. main ()
  25597. {
  25598. if ((ac__type_new_ *) 0)
  25599. return 0;
  25600. if (sizeof (ac__type_new_))
  25601. return 0;
  25602. ;
  25603. return 0;
  25604. }
  25605. _ACEOF
  25606. rm -f conftest.$ac_objext
  25607. if { (ac_try="$ac_compile"
  25608. case "(($ac_try" in
  25609. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25610. *) ac_try_echo=$ac_try;;
  25611. esac
  25612. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25613. (eval "$ac_compile") 2>conftest.er1
  25614. ac_status=$?
  25615. grep -v '^ *+' conftest.er1 >conftest.err
  25616. rm -f conftest.er1
  25617. cat conftest.err >&5
  25618. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25619. (exit $ac_status); } && {
  25620. test -z "$ac_c_werror_flag" ||
  25621. test ! -s conftest.err
  25622. } && test -s conftest.$ac_objext; then
  25623. ac_cv_type_uint16_t=yes
  25624. else
  25625. echo "$as_me: failed program was:" >&5
  25626. sed 's/^/| /' conftest.$ac_ext >&5
  25627. ac_cv_type_uint16_t=no
  25628. fi
  25629. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25630. fi
  25631. { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
  25632. echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
  25633. if test $ac_cv_type_uint16_t = yes; then
  25634. cat >>confdefs.h <<_ACEOF
  25635. #define HAVE_UINT16_T 1
  25636. _ACEOF
  25637. fi
  25638. { echo "$as_me:$LINENO: checking for int32_t" >&5
  25639. echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
  25640. if test "${ac_cv_type_int32_t+set}" = set; then
  25641. echo $ECHO_N "(cached) $ECHO_C" >&6
  25642. else
  25643. cat >conftest.$ac_ext <<_ACEOF
  25644. /* confdefs.h. */
  25645. _ACEOF
  25646. cat confdefs.h >>conftest.$ac_ext
  25647. cat >>conftest.$ac_ext <<_ACEOF
  25648. /* end confdefs.h. */
  25649. $ac_includes_default
  25650. typedef int32_t ac__type_new_;
  25651. int
  25652. main ()
  25653. {
  25654. if ((ac__type_new_ *) 0)
  25655. return 0;
  25656. if (sizeof (ac__type_new_))
  25657. return 0;
  25658. ;
  25659. return 0;
  25660. }
  25661. _ACEOF
  25662. rm -f conftest.$ac_objext
  25663. if { (ac_try="$ac_compile"
  25664. case "(($ac_try" in
  25665. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25666. *) ac_try_echo=$ac_try;;
  25667. esac
  25668. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25669. (eval "$ac_compile") 2>conftest.er1
  25670. ac_status=$?
  25671. grep -v '^ *+' conftest.er1 >conftest.err
  25672. rm -f conftest.er1
  25673. cat conftest.err >&5
  25674. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25675. (exit $ac_status); } && {
  25676. test -z "$ac_c_werror_flag" ||
  25677. test ! -s conftest.err
  25678. } && test -s conftest.$ac_objext; then
  25679. ac_cv_type_int32_t=yes
  25680. else
  25681. echo "$as_me: failed program was:" >&5
  25682. sed 's/^/| /' conftest.$ac_ext >&5
  25683. ac_cv_type_int32_t=no
  25684. fi
  25685. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25686. fi
  25687. { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
  25688. echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
  25689. if test $ac_cv_type_int32_t = yes; then
  25690. cat >>confdefs.h <<_ACEOF
  25691. #define HAVE_INT32_T 1
  25692. _ACEOF
  25693. fi
  25694. { echo "$as_me:$LINENO: checking for uint32_t" >&5
  25695. echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
  25696. if test "${ac_cv_type_uint32_t+set}" = set; then
  25697. echo $ECHO_N "(cached) $ECHO_C" >&6
  25698. else
  25699. cat >conftest.$ac_ext <<_ACEOF
  25700. /* confdefs.h. */
  25701. _ACEOF
  25702. cat confdefs.h >>conftest.$ac_ext
  25703. cat >>conftest.$ac_ext <<_ACEOF
  25704. /* end confdefs.h. */
  25705. $ac_includes_default
  25706. typedef uint32_t ac__type_new_;
  25707. int
  25708. main ()
  25709. {
  25710. if ((ac__type_new_ *) 0)
  25711. return 0;
  25712. if (sizeof (ac__type_new_))
  25713. return 0;
  25714. ;
  25715. return 0;
  25716. }
  25717. _ACEOF
  25718. rm -f conftest.$ac_objext
  25719. if { (ac_try="$ac_compile"
  25720. case "(($ac_try" in
  25721. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25722. *) ac_try_echo=$ac_try;;
  25723. esac
  25724. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25725. (eval "$ac_compile") 2>conftest.er1
  25726. ac_status=$?
  25727. grep -v '^ *+' conftest.er1 >conftest.err
  25728. rm -f conftest.er1
  25729. cat conftest.err >&5
  25730. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25731. (exit $ac_status); } && {
  25732. test -z "$ac_c_werror_flag" ||
  25733. test ! -s conftest.err
  25734. } && test -s conftest.$ac_objext; then
  25735. ac_cv_type_uint32_t=yes
  25736. else
  25737. echo "$as_me: failed program was:" >&5
  25738. sed 's/^/| /' conftest.$ac_ext >&5
  25739. ac_cv_type_uint32_t=no
  25740. fi
  25741. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25742. fi
  25743. { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
  25744. echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
  25745. if test $ac_cv_type_uint32_t = yes; then
  25746. cat >>confdefs.h <<_ACEOF
  25747. #define HAVE_UINT32_T 1
  25748. _ACEOF
  25749. fi
  25750. { echo "$as_me:$LINENO: checking for intptr_t" >&5
  25751. echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
  25752. if test "${ac_cv_type_intptr_t+set}" = set; then
  25753. echo $ECHO_N "(cached) $ECHO_C" >&6
  25754. else
  25755. cat >conftest.$ac_ext <<_ACEOF
  25756. /* confdefs.h. */
  25757. _ACEOF
  25758. cat confdefs.h >>conftest.$ac_ext
  25759. cat >>conftest.$ac_ext <<_ACEOF
  25760. /* end confdefs.h. */
  25761. $ac_includes_default
  25762. typedef intptr_t ac__type_new_;
  25763. int
  25764. main ()
  25765. {
  25766. if ((ac__type_new_ *) 0)
  25767. return 0;
  25768. if (sizeof (ac__type_new_))
  25769. return 0;
  25770. ;
  25771. return 0;
  25772. }
  25773. _ACEOF
  25774. rm -f conftest.$ac_objext
  25775. if { (ac_try="$ac_compile"
  25776. case "(($ac_try" in
  25777. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25778. *) ac_try_echo=$ac_try;;
  25779. esac
  25780. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25781. (eval "$ac_compile") 2>conftest.er1
  25782. ac_status=$?
  25783. grep -v '^ *+' conftest.er1 >conftest.err
  25784. rm -f conftest.er1
  25785. cat conftest.err >&5
  25786. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25787. (exit $ac_status); } && {
  25788. test -z "$ac_c_werror_flag" ||
  25789. test ! -s conftest.err
  25790. } && test -s conftest.$ac_objext; then
  25791. ac_cv_type_intptr_t=yes
  25792. else
  25793. echo "$as_me: failed program was:" >&5
  25794. sed 's/^/| /' conftest.$ac_ext >&5
  25795. ac_cv_type_intptr_t=no
  25796. fi
  25797. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25798. fi
  25799. { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
  25800. echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
  25801. if test $ac_cv_type_intptr_t = yes; then
  25802. cat >>confdefs.h <<_ACEOF
  25803. #define HAVE_INTPTR_T 1
  25804. _ACEOF
  25805. fi
  25806. { echo "$as_me:$LINENO: checking for uint_t" >&5
  25807. echo $ECHO_N "checking for uint_t... $ECHO_C" >&6; }
  25808. if test "${ac_cv_type_uint_t+set}" = set; then
  25809. echo $ECHO_N "(cached) $ECHO_C" >&6
  25810. else
  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. typedef uint_t ac__type_new_;
  25819. int
  25820. main ()
  25821. {
  25822. if ((ac__type_new_ *) 0)
  25823. return 0;
  25824. if (sizeof (ac__type_new_))
  25825. return 0;
  25826. ;
  25827. return 0;
  25828. }
  25829. _ACEOF
  25830. rm -f conftest.$ac_objext
  25831. if { (ac_try="$ac_compile"
  25832. case "(($ac_try" in
  25833. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25834. *) ac_try_echo=$ac_try;;
  25835. esac
  25836. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25837. (eval "$ac_compile") 2>conftest.er1
  25838. ac_status=$?
  25839. grep -v '^ *+' conftest.er1 >conftest.err
  25840. rm -f conftest.er1
  25841. cat conftest.err >&5
  25842. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25843. (exit $ac_status); } && {
  25844. test -z "$ac_c_werror_flag" ||
  25845. test ! -s conftest.err
  25846. } && test -s conftest.$ac_objext; then
  25847. ac_cv_type_uint_t=yes
  25848. else
  25849. echo "$as_me: failed program was:" >&5
  25850. sed 's/^/| /' conftest.$ac_ext >&5
  25851. ac_cv_type_uint_t=no
  25852. fi
  25853. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25854. fi
  25855. { echo "$as_me:$LINENO: result: $ac_cv_type_uint_t" >&5
  25856. echo "${ECHO_T}$ac_cv_type_uint_t" >&6; }
  25857. if test $ac_cv_type_uint_t = yes; then
  25858. cat >>confdefs.h <<_ACEOF
  25859. #define HAVE_UINT_T 1
  25860. _ACEOF
  25861. fi
  25862. # ====================
  25863. # uintptr type & sizes
  25864. # ====================
  25865. { echo "$as_me:$LINENO: checking for uintptr_t" >&5
  25866. echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
  25867. if test "${ac_cv_type_uintptr_t+set}" = set; then
  25868. echo $ECHO_N "(cached) $ECHO_C" >&6
  25869. else
  25870. cat >conftest.$ac_ext <<_ACEOF
  25871. /* confdefs.h. */
  25872. _ACEOF
  25873. cat confdefs.h >>conftest.$ac_ext
  25874. cat >>conftest.$ac_ext <<_ACEOF
  25875. /* end confdefs.h. */
  25876. $ac_includes_default
  25877. typedef uintptr_t ac__type_new_;
  25878. int
  25879. main ()
  25880. {
  25881. if ((ac__type_new_ *) 0)
  25882. return 0;
  25883. if (sizeof (ac__type_new_))
  25884. return 0;
  25885. ;
  25886. return 0;
  25887. }
  25888. _ACEOF
  25889. rm -f conftest.$ac_objext
  25890. if { (ac_try="$ac_compile"
  25891. case "(($ac_try" in
  25892. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25893. *) ac_try_echo=$ac_try;;
  25894. esac
  25895. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25896. (eval "$ac_compile") 2>conftest.er1
  25897. ac_status=$?
  25898. grep -v '^ *+' conftest.er1 >conftest.err
  25899. rm -f conftest.er1
  25900. cat conftest.err >&5
  25901. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25902. (exit $ac_status); } && {
  25903. test -z "$ac_c_werror_flag" ||
  25904. test ! -s conftest.err
  25905. } && test -s conftest.$ac_objext; then
  25906. ac_cv_type_uintptr_t=yes
  25907. else
  25908. echo "$as_me: failed program was:" >&5
  25909. sed 's/^/| /' conftest.$ac_ext >&5
  25910. ac_cv_type_uintptr_t=no
  25911. fi
  25912. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25913. fi
  25914. { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
  25915. echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
  25916. if test $ac_cv_type_uintptr_t = yes; then
  25917. cat >>confdefs.h <<_ACEOF
  25918. #define HAVE_UINTPTR_T 1
  25919. _ACEOF
  25920. else
  25921. cat >>confdefs.h <<\_ACEOF
  25922. #define uintptr_t unsigned long
  25923. _ACEOF
  25924. fi
  25925. { echo "$as_me:$LINENO: checking for char*" >&5
  25926. echo $ECHO_N "checking for char*... $ECHO_C" >&6; }
  25927. if test "${ac_cv_type_charp+set}" = set; then
  25928. echo $ECHO_N "(cached) $ECHO_C" >&6
  25929. else
  25930. cat >conftest.$ac_ext <<_ACEOF
  25931. /* confdefs.h. */
  25932. _ACEOF
  25933. cat confdefs.h >>conftest.$ac_ext
  25934. cat >>conftest.$ac_ext <<_ACEOF
  25935. /* end confdefs.h. */
  25936. $ac_includes_default
  25937. typedef char* ac__type_new_;
  25938. int
  25939. main ()
  25940. {
  25941. if ((ac__type_new_ *) 0)
  25942. return 0;
  25943. if (sizeof (ac__type_new_))
  25944. return 0;
  25945. ;
  25946. return 0;
  25947. }
  25948. _ACEOF
  25949. rm -f conftest.$ac_objext
  25950. if { (ac_try="$ac_compile"
  25951. case "(($ac_try" in
  25952. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25953. *) ac_try_echo=$ac_try;;
  25954. esac
  25955. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25956. (eval "$ac_compile") 2>conftest.er1
  25957. ac_status=$?
  25958. grep -v '^ *+' conftest.er1 >conftest.err
  25959. rm -f conftest.er1
  25960. cat conftest.err >&5
  25961. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25962. (exit $ac_status); } && {
  25963. test -z "$ac_c_werror_flag" ||
  25964. test ! -s conftest.err
  25965. } && test -s conftest.$ac_objext; then
  25966. ac_cv_type_charp=yes
  25967. else
  25968. echo "$as_me: failed program was:" >&5
  25969. sed 's/^/| /' conftest.$ac_ext >&5
  25970. ac_cv_type_charp=no
  25971. fi
  25972. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25973. fi
  25974. { echo "$as_me:$LINENO: result: $ac_cv_type_charp" >&5
  25975. echo "${ECHO_T}$ac_cv_type_charp" >&6; }
  25976. # The cast to long int works around a bug in the HP C Compiler
  25977. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  25978. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  25979. # This bug is HP SR number 8606223364.
  25980. { echo "$as_me:$LINENO: checking size of char*" >&5
  25981. echo $ECHO_N "checking size of char*... $ECHO_C" >&6; }
  25982. if test "${ac_cv_sizeof_charp+set}" = set; then
  25983. echo $ECHO_N "(cached) $ECHO_C" >&6
  25984. else
  25985. if test "$cross_compiling" = yes; then
  25986. # Depending upon the size, compute the lo and hi bounds.
  25987. cat >conftest.$ac_ext <<_ACEOF
  25988. /* confdefs.h. */
  25989. _ACEOF
  25990. cat confdefs.h >>conftest.$ac_ext
  25991. cat >>conftest.$ac_ext <<_ACEOF
  25992. /* end confdefs.h. */
  25993. $ac_includes_default
  25994. typedef char* ac__type_sizeof_;
  25995. int
  25996. main ()
  25997. {
  25998. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  25999. test_array [0] = 0
  26000. ;
  26001. return 0;
  26002. }
  26003. _ACEOF
  26004. rm -f conftest.$ac_objext
  26005. if { (ac_try="$ac_compile"
  26006. case "(($ac_try" in
  26007. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26008. *) ac_try_echo=$ac_try;;
  26009. esac
  26010. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26011. (eval "$ac_compile") 2>conftest.er1
  26012. ac_status=$?
  26013. grep -v '^ *+' conftest.er1 >conftest.err
  26014. rm -f conftest.er1
  26015. cat conftest.err >&5
  26016. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26017. (exit $ac_status); } && {
  26018. test -z "$ac_c_werror_flag" ||
  26019. test ! -s conftest.err
  26020. } && test -s conftest.$ac_objext; then
  26021. ac_lo=0 ac_mid=0
  26022. while :; do
  26023. cat >conftest.$ac_ext <<_ACEOF
  26024. /* confdefs.h. */
  26025. _ACEOF
  26026. cat confdefs.h >>conftest.$ac_ext
  26027. cat >>conftest.$ac_ext <<_ACEOF
  26028. /* end confdefs.h. */
  26029. $ac_includes_default
  26030. typedef char* ac__type_sizeof_;
  26031. int
  26032. main ()
  26033. {
  26034. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  26035. test_array [0] = 0
  26036. ;
  26037. return 0;
  26038. }
  26039. _ACEOF
  26040. rm -f conftest.$ac_objext
  26041. if { (ac_try="$ac_compile"
  26042. case "(($ac_try" in
  26043. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26044. *) ac_try_echo=$ac_try;;
  26045. esac
  26046. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26047. (eval "$ac_compile") 2>conftest.er1
  26048. ac_status=$?
  26049. grep -v '^ *+' conftest.er1 >conftest.err
  26050. rm -f conftest.er1
  26051. cat conftest.err >&5
  26052. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26053. (exit $ac_status); } && {
  26054. test -z "$ac_c_werror_flag" ||
  26055. test ! -s conftest.err
  26056. } && test -s conftest.$ac_objext; then
  26057. ac_hi=$ac_mid; break
  26058. else
  26059. echo "$as_me: failed program was:" >&5
  26060. sed 's/^/| /' conftest.$ac_ext >&5
  26061. ac_lo=`expr $ac_mid + 1`
  26062. if test $ac_lo -le $ac_mid; then
  26063. ac_lo= ac_hi=
  26064. break
  26065. fi
  26066. ac_mid=`expr 2 '*' $ac_mid + 1`
  26067. fi
  26068. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26069. done
  26070. else
  26071. echo "$as_me: failed program was:" >&5
  26072. sed 's/^/| /' conftest.$ac_ext >&5
  26073. cat >conftest.$ac_ext <<_ACEOF
  26074. /* confdefs.h. */
  26075. _ACEOF
  26076. cat confdefs.h >>conftest.$ac_ext
  26077. cat >>conftest.$ac_ext <<_ACEOF
  26078. /* end confdefs.h. */
  26079. $ac_includes_default
  26080. typedef char* ac__type_sizeof_;
  26081. int
  26082. main ()
  26083. {
  26084. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  26085. test_array [0] = 0
  26086. ;
  26087. return 0;
  26088. }
  26089. _ACEOF
  26090. rm -f conftest.$ac_objext
  26091. if { (ac_try="$ac_compile"
  26092. case "(($ac_try" in
  26093. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26094. *) ac_try_echo=$ac_try;;
  26095. esac
  26096. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26097. (eval "$ac_compile") 2>conftest.er1
  26098. ac_status=$?
  26099. grep -v '^ *+' conftest.er1 >conftest.err
  26100. rm -f conftest.er1
  26101. cat conftest.err >&5
  26102. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26103. (exit $ac_status); } && {
  26104. test -z "$ac_c_werror_flag" ||
  26105. test ! -s conftest.err
  26106. } && test -s conftest.$ac_objext; then
  26107. ac_hi=-1 ac_mid=-1
  26108. while :; do
  26109. cat >conftest.$ac_ext <<_ACEOF
  26110. /* confdefs.h. */
  26111. _ACEOF
  26112. cat confdefs.h >>conftest.$ac_ext
  26113. cat >>conftest.$ac_ext <<_ACEOF
  26114. /* end confdefs.h. */
  26115. $ac_includes_default
  26116. typedef char* ac__type_sizeof_;
  26117. int
  26118. main ()
  26119. {
  26120. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  26121. test_array [0] = 0
  26122. ;
  26123. return 0;
  26124. }
  26125. _ACEOF
  26126. rm -f conftest.$ac_objext
  26127. if { (ac_try="$ac_compile"
  26128. case "(($ac_try" in
  26129. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26130. *) ac_try_echo=$ac_try;;
  26131. esac
  26132. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26133. (eval "$ac_compile") 2>conftest.er1
  26134. ac_status=$?
  26135. grep -v '^ *+' conftest.er1 >conftest.err
  26136. rm -f conftest.er1
  26137. cat conftest.err >&5
  26138. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26139. (exit $ac_status); } && {
  26140. test -z "$ac_c_werror_flag" ||
  26141. test ! -s conftest.err
  26142. } && test -s conftest.$ac_objext; then
  26143. ac_lo=$ac_mid; break
  26144. else
  26145. echo "$as_me: failed program was:" >&5
  26146. sed 's/^/| /' conftest.$ac_ext >&5
  26147. ac_hi=`expr '(' $ac_mid ')' - 1`
  26148. if test $ac_mid -le $ac_hi; then
  26149. ac_lo= ac_hi=
  26150. break
  26151. fi
  26152. ac_mid=`expr 2 '*' $ac_mid`
  26153. fi
  26154. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26155. done
  26156. else
  26157. echo "$as_me: failed program was:" >&5
  26158. sed 's/^/| /' conftest.$ac_ext >&5
  26159. ac_lo= ac_hi=
  26160. fi
  26161. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26162. fi
  26163. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26164. # Binary search between lo and hi bounds.
  26165. while test "x$ac_lo" != "x$ac_hi"; do
  26166. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  26167. cat >conftest.$ac_ext <<_ACEOF
  26168. /* confdefs.h. */
  26169. _ACEOF
  26170. cat confdefs.h >>conftest.$ac_ext
  26171. cat >>conftest.$ac_ext <<_ACEOF
  26172. /* end confdefs.h. */
  26173. $ac_includes_default
  26174. typedef char* ac__type_sizeof_;
  26175. int
  26176. main ()
  26177. {
  26178. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  26179. test_array [0] = 0
  26180. ;
  26181. return 0;
  26182. }
  26183. _ACEOF
  26184. rm -f conftest.$ac_objext
  26185. if { (ac_try="$ac_compile"
  26186. case "(($ac_try" in
  26187. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26188. *) ac_try_echo=$ac_try;;
  26189. esac
  26190. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26191. (eval "$ac_compile") 2>conftest.er1
  26192. ac_status=$?
  26193. grep -v '^ *+' conftest.er1 >conftest.err
  26194. rm -f conftest.er1
  26195. cat conftest.err >&5
  26196. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26197. (exit $ac_status); } && {
  26198. test -z "$ac_c_werror_flag" ||
  26199. test ! -s conftest.err
  26200. } && test -s conftest.$ac_objext; then
  26201. ac_hi=$ac_mid
  26202. else
  26203. echo "$as_me: failed program was:" >&5
  26204. sed 's/^/| /' conftest.$ac_ext >&5
  26205. ac_lo=`expr '(' $ac_mid ')' + 1`
  26206. fi
  26207. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26208. done
  26209. case $ac_lo in
  26210. ?*) ac_cv_sizeof_charp=$ac_lo;;
  26211. '') if test "$ac_cv_type_charp" = yes; then
  26212. { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*)
  26213. See \`config.log' for more details." >&5
  26214. echo "$as_me: error: cannot compute sizeof (char*)
  26215. See \`config.log' for more details." >&2;}
  26216. { (exit 77); exit 77; }; }
  26217. else
  26218. ac_cv_sizeof_charp=0
  26219. fi ;;
  26220. esac
  26221. else
  26222. cat >conftest.$ac_ext <<_ACEOF
  26223. /* confdefs.h. */
  26224. _ACEOF
  26225. cat confdefs.h >>conftest.$ac_ext
  26226. cat >>conftest.$ac_ext <<_ACEOF
  26227. /* end confdefs.h. */
  26228. $ac_includes_default
  26229. typedef char* ac__type_sizeof_;
  26230. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  26231. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  26232. #include <stdio.h>
  26233. #include <stdlib.h>
  26234. int
  26235. main ()
  26236. {
  26237. FILE *f = fopen ("conftest.val", "w");
  26238. if (! f)
  26239. return 1;
  26240. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  26241. {
  26242. long int i = longval ();
  26243. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  26244. return 1;
  26245. fprintf (f, "%ld\n", i);
  26246. }
  26247. else
  26248. {
  26249. unsigned long int i = ulongval ();
  26250. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  26251. return 1;
  26252. fprintf (f, "%lu\n", i);
  26253. }
  26254. return ferror (f) || fclose (f) != 0;
  26255. ;
  26256. return 0;
  26257. }
  26258. _ACEOF
  26259. rm -f conftest$ac_exeext
  26260. if { (ac_try="$ac_link"
  26261. case "(($ac_try" in
  26262. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26263. *) ac_try_echo=$ac_try;;
  26264. esac
  26265. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26266. (eval "$ac_link") 2>&5
  26267. ac_status=$?
  26268. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26269. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  26270. { (case "(($ac_try" in
  26271. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26272. *) ac_try_echo=$ac_try;;
  26273. esac
  26274. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26275. (eval "$ac_try") 2>&5
  26276. ac_status=$?
  26277. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26278. (exit $ac_status); }; }; then
  26279. ac_cv_sizeof_charp=`cat conftest.val`
  26280. else
  26281. echo "$as_me: program exited with status $ac_status" >&5
  26282. echo "$as_me: failed program was:" >&5
  26283. sed 's/^/| /' conftest.$ac_ext >&5
  26284. ( exit $ac_status )
  26285. if test "$ac_cv_type_charp" = yes; then
  26286. { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*)
  26287. See \`config.log' for more details." >&5
  26288. echo "$as_me: error: cannot compute sizeof (char*)
  26289. See \`config.log' for more details." >&2;}
  26290. { (exit 77); exit 77; }; }
  26291. else
  26292. ac_cv_sizeof_charp=0
  26293. fi
  26294. fi
  26295. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  26296. fi
  26297. rm -f conftest.val
  26298. fi
  26299. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_charp" >&5
  26300. echo "${ECHO_T}$ac_cv_sizeof_charp" >&6; }
  26301. cat >>confdefs.h <<_ACEOF
  26302. #define SIZEOF_CHARP $ac_cv_sizeof_charp
  26303. _ACEOF
  26304. { echo "$as_me:$LINENO: checking for int" >&5
  26305. echo $ECHO_N "checking for int... $ECHO_C" >&6; }
  26306. if test "${ac_cv_type_int+set}" = set; then
  26307. echo $ECHO_N "(cached) $ECHO_C" >&6
  26308. else
  26309. cat >conftest.$ac_ext <<_ACEOF
  26310. /* confdefs.h. */
  26311. _ACEOF
  26312. cat confdefs.h >>conftest.$ac_ext
  26313. cat >>conftest.$ac_ext <<_ACEOF
  26314. /* end confdefs.h. */
  26315. $ac_includes_default
  26316. typedef int ac__type_new_;
  26317. int
  26318. main ()
  26319. {
  26320. if ((ac__type_new_ *) 0)
  26321. return 0;
  26322. if (sizeof (ac__type_new_))
  26323. return 0;
  26324. ;
  26325. return 0;
  26326. }
  26327. _ACEOF
  26328. rm -f conftest.$ac_objext
  26329. if { (ac_try="$ac_compile"
  26330. case "(($ac_try" in
  26331. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26332. *) ac_try_echo=$ac_try;;
  26333. esac
  26334. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26335. (eval "$ac_compile") 2>conftest.er1
  26336. ac_status=$?
  26337. grep -v '^ *+' conftest.er1 >conftest.err
  26338. rm -f conftest.er1
  26339. cat conftest.err >&5
  26340. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26341. (exit $ac_status); } && {
  26342. test -z "$ac_c_werror_flag" ||
  26343. test ! -s conftest.err
  26344. } && test -s conftest.$ac_objext; then
  26345. ac_cv_type_int=yes
  26346. else
  26347. echo "$as_me: failed program was:" >&5
  26348. sed 's/^/| /' conftest.$ac_ext >&5
  26349. ac_cv_type_int=no
  26350. fi
  26351. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26352. fi
  26353. { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  26354. echo "${ECHO_T}$ac_cv_type_int" >&6; }
  26355. # The cast to long int works around a bug in the HP C Compiler
  26356. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  26357. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  26358. # This bug is HP SR number 8606223364.
  26359. { echo "$as_me:$LINENO: checking size of int" >&5
  26360. echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
  26361. if test "${ac_cv_sizeof_int+set}" = set; then
  26362. echo $ECHO_N "(cached) $ECHO_C" >&6
  26363. else
  26364. if test "$cross_compiling" = yes; then
  26365. # Depending upon the size, compute the lo and hi bounds.
  26366. cat >conftest.$ac_ext <<_ACEOF
  26367. /* confdefs.h. */
  26368. _ACEOF
  26369. cat confdefs.h >>conftest.$ac_ext
  26370. cat >>conftest.$ac_ext <<_ACEOF
  26371. /* end confdefs.h. */
  26372. $ac_includes_default
  26373. typedef int ac__type_sizeof_;
  26374. int
  26375. main ()
  26376. {
  26377. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  26378. test_array [0] = 0
  26379. ;
  26380. return 0;
  26381. }
  26382. _ACEOF
  26383. rm -f conftest.$ac_objext
  26384. if { (ac_try="$ac_compile"
  26385. case "(($ac_try" in
  26386. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26387. *) ac_try_echo=$ac_try;;
  26388. esac
  26389. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26390. (eval "$ac_compile") 2>conftest.er1
  26391. ac_status=$?
  26392. grep -v '^ *+' conftest.er1 >conftest.err
  26393. rm -f conftest.er1
  26394. cat conftest.err >&5
  26395. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26396. (exit $ac_status); } && {
  26397. test -z "$ac_c_werror_flag" ||
  26398. test ! -s conftest.err
  26399. } && test -s conftest.$ac_objext; then
  26400. ac_lo=0 ac_mid=0
  26401. while :; do
  26402. cat >conftest.$ac_ext <<_ACEOF
  26403. /* confdefs.h. */
  26404. _ACEOF
  26405. cat confdefs.h >>conftest.$ac_ext
  26406. cat >>conftest.$ac_ext <<_ACEOF
  26407. /* end confdefs.h. */
  26408. $ac_includes_default
  26409. typedef int ac__type_sizeof_;
  26410. int
  26411. main ()
  26412. {
  26413. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  26414. test_array [0] = 0
  26415. ;
  26416. return 0;
  26417. }
  26418. _ACEOF
  26419. rm -f conftest.$ac_objext
  26420. if { (ac_try="$ac_compile"
  26421. case "(($ac_try" in
  26422. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26423. *) ac_try_echo=$ac_try;;
  26424. esac
  26425. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26426. (eval "$ac_compile") 2>conftest.er1
  26427. ac_status=$?
  26428. grep -v '^ *+' conftest.er1 >conftest.err
  26429. rm -f conftest.er1
  26430. cat conftest.err >&5
  26431. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26432. (exit $ac_status); } && {
  26433. test -z "$ac_c_werror_flag" ||
  26434. test ! -s conftest.err
  26435. } && test -s conftest.$ac_objext; then
  26436. ac_hi=$ac_mid; break
  26437. else
  26438. echo "$as_me: failed program was:" >&5
  26439. sed 's/^/| /' conftest.$ac_ext >&5
  26440. ac_lo=`expr $ac_mid + 1`
  26441. if test $ac_lo -le $ac_mid; then
  26442. ac_lo= ac_hi=
  26443. break
  26444. fi
  26445. ac_mid=`expr 2 '*' $ac_mid + 1`
  26446. fi
  26447. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26448. done
  26449. else
  26450. echo "$as_me: failed program was:" >&5
  26451. sed 's/^/| /' conftest.$ac_ext >&5
  26452. cat >conftest.$ac_ext <<_ACEOF
  26453. /* confdefs.h. */
  26454. _ACEOF
  26455. cat confdefs.h >>conftest.$ac_ext
  26456. cat >>conftest.$ac_ext <<_ACEOF
  26457. /* end confdefs.h. */
  26458. $ac_includes_default
  26459. typedef int ac__type_sizeof_;
  26460. int
  26461. main ()
  26462. {
  26463. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  26464. test_array [0] = 0
  26465. ;
  26466. return 0;
  26467. }
  26468. _ACEOF
  26469. rm -f conftest.$ac_objext
  26470. if { (ac_try="$ac_compile"
  26471. case "(($ac_try" in
  26472. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26473. *) ac_try_echo=$ac_try;;
  26474. esac
  26475. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26476. (eval "$ac_compile") 2>conftest.er1
  26477. ac_status=$?
  26478. grep -v '^ *+' conftest.er1 >conftest.err
  26479. rm -f conftest.er1
  26480. cat conftest.err >&5
  26481. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26482. (exit $ac_status); } && {
  26483. test -z "$ac_c_werror_flag" ||
  26484. test ! -s conftest.err
  26485. } && test -s conftest.$ac_objext; then
  26486. ac_hi=-1 ac_mid=-1
  26487. while :; do
  26488. cat >conftest.$ac_ext <<_ACEOF
  26489. /* confdefs.h. */
  26490. _ACEOF
  26491. cat confdefs.h >>conftest.$ac_ext
  26492. cat >>conftest.$ac_ext <<_ACEOF
  26493. /* end confdefs.h. */
  26494. $ac_includes_default
  26495. typedef int ac__type_sizeof_;
  26496. int
  26497. main ()
  26498. {
  26499. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  26500. test_array [0] = 0
  26501. ;
  26502. return 0;
  26503. }
  26504. _ACEOF
  26505. rm -f conftest.$ac_objext
  26506. if { (ac_try="$ac_compile"
  26507. case "(($ac_try" in
  26508. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26509. *) ac_try_echo=$ac_try;;
  26510. esac
  26511. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26512. (eval "$ac_compile") 2>conftest.er1
  26513. ac_status=$?
  26514. grep -v '^ *+' conftest.er1 >conftest.err
  26515. rm -f conftest.er1
  26516. cat conftest.err >&5
  26517. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26518. (exit $ac_status); } && {
  26519. test -z "$ac_c_werror_flag" ||
  26520. test ! -s conftest.err
  26521. } && test -s conftest.$ac_objext; then
  26522. ac_lo=$ac_mid; break
  26523. else
  26524. echo "$as_me: failed program was:" >&5
  26525. sed 's/^/| /' conftest.$ac_ext >&5
  26526. ac_hi=`expr '(' $ac_mid ')' - 1`
  26527. if test $ac_mid -le $ac_hi; then
  26528. ac_lo= ac_hi=
  26529. break
  26530. fi
  26531. ac_mid=`expr 2 '*' $ac_mid`
  26532. fi
  26533. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26534. done
  26535. else
  26536. echo "$as_me: failed program was:" >&5
  26537. sed 's/^/| /' conftest.$ac_ext >&5
  26538. ac_lo= ac_hi=
  26539. fi
  26540. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26541. fi
  26542. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26543. # Binary search between lo and hi bounds.
  26544. while test "x$ac_lo" != "x$ac_hi"; do
  26545. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  26546. cat >conftest.$ac_ext <<_ACEOF
  26547. /* confdefs.h. */
  26548. _ACEOF
  26549. cat confdefs.h >>conftest.$ac_ext
  26550. cat >>conftest.$ac_ext <<_ACEOF
  26551. /* end confdefs.h. */
  26552. $ac_includes_default
  26553. typedef int ac__type_sizeof_;
  26554. int
  26555. main ()
  26556. {
  26557. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  26558. test_array [0] = 0
  26559. ;
  26560. return 0;
  26561. }
  26562. _ACEOF
  26563. rm -f conftest.$ac_objext
  26564. if { (ac_try="$ac_compile"
  26565. case "(($ac_try" in
  26566. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26567. *) ac_try_echo=$ac_try;;
  26568. esac
  26569. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26570. (eval "$ac_compile") 2>conftest.er1
  26571. ac_status=$?
  26572. grep -v '^ *+' conftest.er1 >conftest.err
  26573. rm -f conftest.er1
  26574. cat conftest.err >&5
  26575. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26576. (exit $ac_status); } && {
  26577. test -z "$ac_c_werror_flag" ||
  26578. test ! -s conftest.err
  26579. } && test -s conftest.$ac_objext; then
  26580. ac_hi=$ac_mid
  26581. else
  26582. echo "$as_me: failed program was:" >&5
  26583. sed 's/^/| /' conftest.$ac_ext >&5
  26584. ac_lo=`expr '(' $ac_mid ')' + 1`
  26585. fi
  26586. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26587. done
  26588. case $ac_lo in
  26589. ?*) ac_cv_sizeof_int=$ac_lo;;
  26590. '') if test "$ac_cv_type_int" = yes; then
  26591. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  26592. See \`config.log' for more details." >&5
  26593. echo "$as_me: error: cannot compute sizeof (int)
  26594. See \`config.log' for more details." >&2;}
  26595. { (exit 77); exit 77; }; }
  26596. else
  26597. ac_cv_sizeof_int=0
  26598. fi ;;
  26599. esac
  26600. else
  26601. cat >conftest.$ac_ext <<_ACEOF
  26602. /* confdefs.h. */
  26603. _ACEOF
  26604. cat confdefs.h >>conftest.$ac_ext
  26605. cat >>conftest.$ac_ext <<_ACEOF
  26606. /* end confdefs.h. */
  26607. $ac_includes_default
  26608. typedef int ac__type_sizeof_;
  26609. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  26610. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  26611. #include <stdio.h>
  26612. #include <stdlib.h>
  26613. int
  26614. main ()
  26615. {
  26616. FILE *f = fopen ("conftest.val", "w");
  26617. if (! f)
  26618. return 1;
  26619. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  26620. {
  26621. long int i = longval ();
  26622. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  26623. return 1;
  26624. fprintf (f, "%ld\n", i);
  26625. }
  26626. else
  26627. {
  26628. unsigned long int i = ulongval ();
  26629. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  26630. return 1;
  26631. fprintf (f, "%lu\n", i);
  26632. }
  26633. return ferror (f) || fclose (f) != 0;
  26634. ;
  26635. return 0;
  26636. }
  26637. _ACEOF
  26638. rm -f conftest$ac_exeext
  26639. if { (ac_try="$ac_link"
  26640. case "(($ac_try" in
  26641. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26642. *) ac_try_echo=$ac_try;;
  26643. esac
  26644. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26645. (eval "$ac_link") 2>&5
  26646. ac_status=$?
  26647. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26648. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  26649. { (case "(($ac_try" in
  26650. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26651. *) ac_try_echo=$ac_try;;
  26652. esac
  26653. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26654. (eval "$ac_try") 2>&5
  26655. ac_status=$?
  26656. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26657. (exit $ac_status); }; }; then
  26658. ac_cv_sizeof_int=`cat conftest.val`
  26659. else
  26660. echo "$as_me: program exited with status $ac_status" >&5
  26661. echo "$as_me: failed program was:" >&5
  26662. sed 's/^/| /' conftest.$ac_ext >&5
  26663. ( exit $ac_status )
  26664. if test "$ac_cv_type_int" = yes; then
  26665. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  26666. See \`config.log' for more details." >&5
  26667. echo "$as_me: error: cannot compute sizeof (int)
  26668. See \`config.log' for more details." >&2;}
  26669. { (exit 77); exit 77; }; }
  26670. else
  26671. ac_cv_sizeof_int=0
  26672. fi
  26673. fi
  26674. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  26675. fi
  26676. rm -f conftest.val
  26677. fi
  26678. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  26679. echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
  26680. cat >>confdefs.h <<_ACEOF
  26681. #define SIZEOF_INT $ac_cv_sizeof_int
  26682. _ACEOF
  26683. { echo "$as_me:$LINENO: checking for long" >&5
  26684. echo $ECHO_N "checking for long... $ECHO_C" >&6; }
  26685. if test "${ac_cv_type_long+set}" = set; then
  26686. echo $ECHO_N "(cached) $ECHO_C" >&6
  26687. else
  26688. cat >conftest.$ac_ext <<_ACEOF
  26689. /* confdefs.h. */
  26690. _ACEOF
  26691. cat confdefs.h >>conftest.$ac_ext
  26692. cat >>conftest.$ac_ext <<_ACEOF
  26693. /* end confdefs.h. */
  26694. $ac_includes_default
  26695. typedef long ac__type_new_;
  26696. int
  26697. main ()
  26698. {
  26699. if ((ac__type_new_ *) 0)
  26700. return 0;
  26701. if (sizeof (ac__type_new_))
  26702. return 0;
  26703. ;
  26704. return 0;
  26705. }
  26706. _ACEOF
  26707. rm -f conftest.$ac_objext
  26708. if { (ac_try="$ac_compile"
  26709. case "(($ac_try" in
  26710. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26711. *) ac_try_echo=$ac_try;;
  26712. esac
  26713. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26714. (eval "$ac_compile") 2>conftest.er1
  26715. ac_status=$?
  26716. grep -v '^ *+' conftest.er1 >conftest.err
  26717. rm -f conftest.er1
  26718. cat conftest.err >&5
  26719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26720. (exit $ac_status); } && {
  26721. test -z "$ac_c_werror_flag" ||
  26722. test ! -s conftest.err
  26723. } && test -s conftest.$ac_objext; then
  26724. ac_cv_type_long=yes
  26725. else
  26726. echo "$as_me: failed program was:" >&5
  26727. sed 's/^/| /' conftest.$ac_ext >&5
  26728. ac_cv_type_long=no
  26729. fi
  26730. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26731. fi
  26732. { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  26733. echo "${ECHO_T}$ac_cv_type_long" >&6; }
  26734. # The cast to long int works around a bug in the HP C Compiler
  26735. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  26736. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  26737. # This bug is HP SR number 8606223364.
  26738. { echo "$as_me:$LINENO: checking size of long" >&5
  26739. echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
  26740. if test "${ac_cv_sizeof_long+set}" = set; then
  26741. echo $ECHO_N "(cached) $ECHO_C" >&6
  26742. else
  26743. if test "$cross_compiling" = yes; then
  26744. # Depending upon the size, compute the lo and hi bounds.
  26745. cat >conftest.$ac_ext <<_ACEOF
  26746. /* confdefs.h. */
  26747. _ACEOF
  26748. cat confdefs.h >>conftest.$ac_ext
  26749. cat >>conftest.$ac_ext <<_ACEOF
  26750. /* end confdefs.h. */
  26751. $ac_includes_default
  26752. typedef long ac__type_sizeof_;
  26753. int
  26754. main ()
  26755. {
  26756. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  26757. test_array [0] = 0
  26758. ;
  26759. return 0;
  26760. }
  26761. _ACEOF
  26762. rm -f conftest.$ac_objext
  26763. if { (ac_try="$ac_compile"
  26764. case "(($ac_try" in
  26765. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26766. *) ac_try_echo=$ac_try;;
  26767. esac
  26768. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26769. (eval "$ac_compile") 2>conftest.er1
  26770. ac_status=$?
  26771. grep -v '^ *+' conftest.er1 >conftest.err
  26772. rm -f conftest.er1
  26773. cat conftest.err >&5
  26774. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26775. (exit $ac_status); } && {
  26776. test -z "$ac_c_werror_flag" ||
  26777. test ! -s conftest.err
  26778. } && test -s conftest.$ac_objext; then
  26779. ac_lo=0 ac_mid=0
  26780. while :; do
  26781. cat >conftest.$ac_ext <<_ACEOF
  26782. /* confdefs.h. */
  26783. _ACEOF
  26784. cat confdefs.h >>conftest.$ac_ext
  26785. cat >>conftest.$ac_ext <<_ACEOF
  26786. /* end confdefs.h. */
  26787. $ac_includes_default
  26788. typedef long ac__type_sizeof_;
  26789. int
  26790. main ()
  26791. {
  26792. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  26793. test_array [0] = 0
  26794. ;
  26795. return 0;
  26796. }
  26797. _ACEOF
  26798. rm -f conftest.$ac_objext
  26799. if { (ac_try="$ac_compile"
  26800. case "(($ac_try" in
  26801. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26802. *) ac_try_echo=$ac_try;;
  26803. esac
  26804. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26805. (eval "$ac_compile") 2>conftest.er1
  26806. ac_status=$?
  26807. grep -v '^ *+' conftest.er1 >conftest.err
  26808. rm -f conftest.er1
  26809. cat conftest.err >&5
  26810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26811. (exit $ac_status); } && {
  26812. test -z "$ac_c_werror_flag" ||
  26813. test ! -s conftest.err
  26814. } && test -s conftest.$ac_objext; then
  26815. ac_hi=$ac_mid; break
  26816. else
  26817. echo "$as_me: failed program was:" >&5
  26818. sed 's/^/| /' conftest.$ac_ext >&5
  26819. ac_lo=`expr $ac_mid + 1`
  26820. if test $ac_lo -le $ac_mid; then
  26821. ac_lo= ac_hi=
  26822. break
  26823. fi
  26824. ac_mid=`expr 2 '*' $ac_mid + 1`
  26825. fi
  26826. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26827. done
  26828. else
  26829. echo "$as_me: failed program was:" >&5
  26830. sed 's/^/| /' conftest.$ac_ext >&5
  26831. cat >conftest.$ac_ext <<_ACEOF
  26832. /* confdefs.h. */
  26833. _ACEOF
  26834. cat confdefs.h >>conftest.$ac_ext
  26835. cat >>conftest.$ac_ext <<_ACEOF
  26836. /* end confdefs.h. */
  26837. $ac_includes_default
  26838. typedef long ac__type_sizeof_;
  26839. int
  26840. main ()
  26841. {
  26842. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  26843. test_array [0] = 0
  26844. ;
  26845. return 0;
  26846. }
  26847. _ACEOF
  26848. rm -f conftest.$ac_objext
  26849. if { (ac_try="$ac_compile"
  26850. case "(($ac_try" in
  26851. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26852. *) ac_try_echo=$ac_try;;
  26853. esac
  26854. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26855. (eval "$ac_compile") 2>conftest.er1
  26856. ac_status=$?
  26857. grep -v '^ *+' conftest.er1 >conftest.err
  26858. rm -f conftest.er1
  26859. cat conftest.err >&5
  26860. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26861. (exit $ac_status); } && {
  26862. test -z "$ac_c_werror_flag" ||
  26863. test ! -s conftest.err
  26864. } && test -s conftest.$ac_objext; then
  26865. ac_hi=-1 ac_mid=-1
  26866. while :; do
  26867. cat >conftest.$ac_ext <<_ACEOF
  26868. /* confdefs.h. */
  26869. _ACEOF
  26870. cat confdefs.h >>conftest.$ac_ext
  26871. cat >>conftest.$ac_ext <<_ACEOF
  26872. /* end confdefs.h. */
  26873. $ac_includes_default
  26874. typedef long ac__type_sizeof_;
  26875. int
  26876. main ()
  26877. {
  26878. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  26879. test_array [0] = 0
  26880. ;
  26881. return 0;
  26882. }
  26883. _ACEOF
  26884. rm -f conftest.$ac_objext
  26885. if { (ac_try="$ac_compile"
  26886. case "(($ac_try" in
  26887. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26888. *) ac_try_echo=$ac_try;;
  26889. esac
  26890. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26891. (eval "$ac_compile") 2>conftest.er1
  26892. ac_status=$?
  26893. grep -v '^ *+' conftest.er1 >conftest.err
  26894. rm -f conftest.er1
  26895. cat conftest.err >&5
  26896. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26897. (exit $ac_status); } && {
  26898. test -z "$ac_c_werror_flag" ||
  26899. test ! -s conftest.err
  26900. } && test -s conftest.$ac_objext; then
  26901. ac_lo=$ac_mid; break
  26902. else
  26903. echo "$as_me: failed program was:" >&5
  26904. sed 's/^/| /' conftest.$ac_ext >&5
  26905. ac_hi=`expr '(' $ac_mid ')' - 1`
  26906. if test $ac_mid -le $ac_hi; then
  26907. ac_lo= ac_hi=
  26908. break
  26909. fi
  26910. ac_mid=`expr 2 '*' $ac_mid`
  26911. fi
  26912. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26913. done
  26914. else
  26915. echo "$as_me: failed program was:" >&5
  26916. sed 's/^/| /' conftest.$ac_ext >&5
  26917. ac_lo= ac_hi=
  26918. fi
  26919. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26920. fi
  26921. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26922. # Binary search between lo and hi bounds.
  26923. while test "x$ac_lo" != "x$ac_hi"; do
  26924. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  26925. cat >conftest.$ac_ext <<_ACEOF
  26926. /* confdefs.h. */
  26927. _ACEOF
  26928. cat confdefs.h >>conftest.$ac_ext
  26929. cat >>conftest.$ac_ext <<_ACEOF
  26930. /* end confdefs.h. */
  26931. $ac_includes_default
  26932. typedef long ac__type_sizeof_;
  26933. int
  26934. main ()
  26935. {
  26936. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  26937. test_array [0] = 0
  26938. ;
  26939. return 0;
  26940. }
  26941. _ACEOF
  26942. rm -f conftest.$ac_objext
  26943. if { (ac_try="$ac_compile"
  26944. case "(($ac_try" in
  26945. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26946. *) ac_try_echo=$ac_try;;
  26947. esac
  26948. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26949. (eval "$ac_compile") 2>conftest.er1
  26950. ac_status=$?
  26951. grep -v '^ *+' conftest.er1 >conftest.err
  26952. rm -f conftest.er1
  26953. cat conftest.err >&5
  26954. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26955. (exit $ac_status); } && {
  26956. test -z "$ac_c_werror_flag" ||
  26957. test ! -s conftest.err
  26958. } && test -s conftest.$ac_objext; then
  26959. ac_hi=$ac_mid
  26960. else
  26961. echo "$as_me: failed program was:" >&5
  26962. sed 's/^/| /' conftest.$ac_ext >&5
  26963. ac_lo=`expr '(' $ac_mid ')' + 1`
  26964. fi
  26965. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26966. done
  26967. case $ac_lo in
  26968. ?*) ac_cv_sizeof_long=$ac_lo;;
  26969. '') if test "$ac_cv_type_long" = yes; then
  26970. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  26971. See \`config.log' for more details." >&5
  26972. echo "$as_me: error: cannot compute sizeof (long)
  26973. See \`config.log' for more details." >&2;}
  26974. { (exit 77); exit 77; }; }
  26975. else
  26976. ac_cv_sizeof_long=0
  26977. fi ;;
  26978. esac
  26979. else
  26980. cat >conftest.$ac_ext <<_ACEOF
  26981. /* confdefs.h. */
  26982. _ACEOF
  26983. cat confdefs.h >>conftest.$ac_ext
  26984. cat >>conftest.$ac_ext <<_ACEOF
  26985. /* end confdefs.h. */
  26986. $ac_includes_default
  26987. typedef long ac__type_sizeof_;
  26988. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  26989. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  26990. #include <stdio.h>
  26991. #include <stdlib.h>
  26992. int
  26993. main ()
  26994. {
  26995. FILE *f = fopen ("conftest.val", "w");
  26996. if (! f)
  26997. return 1;
  26998. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  26999. {
  27000. long int i = longval ();
  27001. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  27002. return 1;
  27003. fprintf (f, "%ld\n", i);
  27004. }
  27005. else
  27006. {
  27007. unsigned long int i = ulongval ();
  27008. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  27009. return 1;
  27010. fprintf (f, "%lu\n", i);
  27011. }
  27012. return ferror (f) || fclose (f) != 0;
  27013. ;
  27014. return 0;
  27015. }
  27016. _ACEOF
  27017. rm -f conftest$ac_exeext
  27018. if { (ac_try="$ac_link"
  27019. case "(($ac_try" in
  27020. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27021. *) ac_try_echo=$ac_try;;
  27022. esac
  27023. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27024. (eval "$ac_link") 2>&5
  27025. ac_status=$?
  27026. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27027. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  27028. { (case "(($ac_try" in
  27029. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27030. *) ac_try_echo=$ac_try;;
  27031. esac
  27032. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27033. (eval "$ac_try") 2>&5
  27034. ac_status=$?
  27035. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27036. (exit $ac_status); }; }; then
  27037. ac_cv_sizeof_long=`cat conftest.val`
  27038. else
  27039. echo "$as_me: program exited with status $ac_status" >&5
  27040. echo "$as_me: failed program was:" >&5
  27041. sed 's/^/| /' conftest.$ac_ext >&5
  27042. ( exit $ac_status )
  27043. if test "$ac_cv_type_long" = yes; then
  27044. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  27045. See \`config.log' for more details." >&5
  27046. echo "$as_me: error: cannot compute sizeof (long)
  27047. See \`config.log' for more details." >&2;}
  27048. { (exit 77); exit 77; }; }
  27049. else
  27050. ac_cv_sizeof_long=0
  27051. fi
  27052. fi
  27053. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  27054. fi
  27055. rm -f conftest.val
  27056. fi
  27057. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  27058. echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
  27059. cat >>confdefs.h <<_ACEOF
  27060. #define SIZEOF_LONG $ac_cv_sizeof_long
  27061. _ACEOF
  27062. { echo "$as_me:$LINENO: checking for short" >&5
  27063. echo $ECHO_N "checking for short... $ECHO_C" >&6; }
  27064. if test "${ac_cv_type_short+set}" = set; then
  27065. echo $ECHO_N "(cached) $ECHO_C" >&6
  27066. else
  27067. cat >conftest.$ac_ext <<_ACEOF
  27068. /* confdefs.h. */
  27069. _ACEOF
  27070. cat confdefs.h >>conftest.$ac_ext
  27071. cat >>conftest.$ac_ext <<_ACEOF
  27072. /* end confdefs.h. */
  27073. $ac_includes_default
  27074. typedef short ac__type_new_;
  27075. int
  27076. main ()
  27077. {
  27078. if ((ac__type_new_ *) 0)
  27079. return 0;
  27080. if (sizeof (ac__type_new_))
  27081. return 0;
  27082. ;
  27083. return 0;
  27084. }
  27085. _ACEOF
  27086. rm -f conftest.$ac_objext
  27087. if { (ac_try="$ac_compile"
  27088. case "(($ac_try" in
  27089. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27090. *) ac_try_echo=$ac_try;;
  27091. esac
  27092. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27093. (eval "$ac_compile") 2>conftest.er1
  27094. ac_status=$?
  27095. grep -v '^ *+' conftest.er1 >conftest.err
  27096. rm -f conftest.er1
  27097. cat conftest.err >&5
  27098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27099. (exit $ac_status); } && {
  27100. test -z "$ac_c_werror_flag" ||
  27101. test ! -s conftest.err
  27102. } && test -s conftest.$ac_objext; then
  27103. ac_cv_type_short=yes
  27104. else
  27105. echo "$as_me: failed program was:" >&5
  27106. sed 's/^/| /' conftest.$ac_ext >&5
  27107. ac_cv_type_short=no
  27108. fi
  27109. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27110. fi
  27111. { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  27112. echo "${ECHO_T}$ac_cv_type_short" >&6; }
  27113. # The cast to long int works around a bug in the HP C Compiler
  27114. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  27115. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  27116. # This bug is HP SR number 8606223364.
  27117. { echo "$as_me:$LINENO: checking size of short" >&5
  27118. echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
  27119. if test "${ac_cv_sizeof_short+set}" = set; then
  27120. echo $ECHO_N "(cached) $ECHO_C" >&6
  27121. else
  27122. if test "$cross_compiling" = yes; then
  27123. # Depending upon the size, compute the lo and hi bounds.
  27124. cat >conftest.$ac_ext <<_ACEOF
  27125. /* confdefs.h. */
  27126. _ACEOF
  27127. cat confdefs.h >>conftest.$ac_ext
  27128. cat >>conftest.$ac_ext <<_ACEOF
  27129. /* end confdefs.h. */
  27130. $ac_includes_default
  27131. typedef short ac__type_sizeof_;
  27132. int
  27133. main ()
  27134. {
  27135. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  27136. test_array [0] = 0
  27137. ;
  27138. return 0;
  27139. }
  27140. _ACEOF
  27141. rm -f conftest.$ac_objext
  27142. if { (ac_try="$ac_compile"
  27143. case "(($ac_try" in
  27144. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27145. *) ac_try_echo=$ac_try;;
  27146. esac
  27147. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27148. (eval "$ac_compile") 2>conftest.er1
  27149. ac_status=$?
  27150. grep -v '^ *+' conftest.er1 >conftest.err
  27151. rm -f conftest.er1
  27152. cat conftest.err >&5
  27153. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27154. (exit $ac_status); } && {
  27155. test -z "$ac_c_werror_flag" ||
  27156. test ! -s conftest.err
  27157. } && test -s conftest.$ac_objext; then
  27158. ac_lo=0 ac_mid=0
  27159. while :; do
  27160. cat >conftest.$ac_ext <<_ACEOF
  27161. /* confdefs.h. */
  27162. _ACEOF
  27163. cat confdefs.h >>conftest.$ac_ext
  27164. cat >>conftest.$ac_ext <<_ACEOF
  27165. /* end confdefs.h. */
  27166. $ac_includes_default
  27167. typedef short ac__type_sizeof_;
  27168. int
  27169. main ()
  27170. {
  27171. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  27172. test_array [0] = 0
  27173. ;
  27174. return 0;
  27175. }
  27176. _ACEOF
  27177. rm -f conftest.$ac_objext
  27178. if { (ac_try="$ac_compile"
  27179. case "(($ac_try" in
  27180. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27181. *) ac_try_echo=$ac_try;;
  27182. esac
  27183. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27184. (eval "$ac_compile") 2>conftest.er1
  27185. ac_status=$?
  27186. grep -v '^ *+' conftest.er1 >conftest.err
  27187. rm -f conftest.er1
  27188. cat conftest.err >&5
  27189. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27190. (exit $ac_status); } && {
  27191. test -z "$ac_c_werror_flag" ||
  27192. test ! -s conftest.err
  27193. } && test -s conftest.$ac_objext; then
  27194. ac_hi=$ac_mid; break
  27195. else
  27196. echo "$as_me: failed program was:" >&5
  27197. sed 's/^/| /' conftest.$ac_ext >&5
  27198. ac_lo=`expr $ac_mid + 1`
  27199. if test $ac_lo -le $ac_mid; then
  27200. ac_lo= ac_hi=
  27201. break
  27202. fi
  27203. ac_mid=`expr 2 '*' $ac_mid + 1`
  27204. fi
  27205. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27206. done
  27207. else
  27208. echo "$as_me: failed program was:" >&5
  27209. sed 's/^/| /' conftest.$ac_ext >&5
  27210. cat >conftest.$ac_ext <<_ACEOF
  27211. /* confdefs.h. */
  27212. _ACEOF
  27213. cat confdefs.h >>conftest.$ac_ext
  27214. cat >>conftest.$ac_ext <<_ACEOF
  27215. /* end confdefs.h. */
  27216. $ac_includes_default
  27217. typedef short ac__type_sizeof_;
  27218. int
  27219. main ()
  27220. {
  27221. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  27222. test_array [0] = 0
  27223. ;
  27224. return 0;
  27225. }
  27226. _ACEOF
  27227. rm -f conftest.$ac_objext
  27228. if { (ac_try="$ac_compile"
  27229. case "(($ac_try" in
  27230. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27231. *) ac_try_echo=$ac_try;;
  27232. esac
  27233. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27234. (eval "$ac_compile") 2>conftest.er1
  27235. ac_status=$?
  27236. grep -v '^ *+' conftest.er1 >conftest.err
  27237. rm -f conftest.er1
  27238. cat conftest.err >&5
  27239. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27240. (exit $ac_status); } && {
  27241. test -z "$ac_c_werror_flag" ||
  27242. test ! -s conftest.err
  27243. } && test -s conftest.$ac_objext; then
  27244. ac_hi=-1 ac_mid=-1
  27245. while :; do
  27246. cat >conftest.$ac_ext <<_ACEOF
  27247. /* confdefs.h. */
  27248. _ACEOF
  27249. cat confdefs.h >>conftest.$ac_ext
  27250. cat >>conftest.$ac_ext <<_ACEOF
  27251. /* end confdefs.h. */
  27252. $ac_includes_default
  27253. typedef short ac__type_sizeof_;
  27254. int
  27255. main ()
  27256. {
  27257. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  27258. test_array [0] = 0
  27259. ;
  27260. return 0;
  27261. }
  27262. _ACEOF
  27263. rm -f conftest.$ac_objext
  27264. if { (ac_try="$ac_compile"
  27265. case "(($ac_try" in
  27266. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27267. *) ac_try_echo=$ac_try;;
  27268. esac
  27269. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27270. (eval "$ac_compile") 2>conftest.er1
  27271. ac_status=$?
  27272. grep -v '^ *+' conftest.er1 >conftest.err
  27273. rm -f conftest.er1
  27274. cat conftest.err >&5
  27275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27276. (exit $ac_status); } && {
  27277. test -z "$ac_c_werror_flag" ||
  27278. test ! -s conftest.err
  27279. } && test -s conftest.$ac_objext; then
  27280. ac_lo=$ac_mid; break
  27281. else
  27282. echo "$as_me: failed program was:" >&5
  27283. sed 's/^/| /' conftest.$ac_ext >&5
  27284. ac_hi=`expr '(' $ac_mid ')' - 1`
  27285. if test $ac_mid -le $ac_hi; then
  27286. ac_lo= ac_hi=
  27287. break
  27288. fi
  27289. ac_mid=`expr 2 '*' $ac_mid`
  27290. fi
  27291. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27292. done
  27293. else
  27294. echo "$as_me: failed program was:" >&5
  27295. sed 's/^/| /' conftest.$ac_ext >&5
  27296. ac_lo= ac_hi=
  27297. fi
  27298. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27299. fi
  27300. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27301. # Binary search between lo and hi bounds.
  27302. while test "x$ac_lo" != "x$ac_hi"; do
  27303. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  27304. cat >conftest.$ac_ext <<_ACEOF
  27305. /* confdefs.h. */
  27306. _ACEOF
  27307. cat confdefs.h >>conftest.$ac_ext
  27308. cat >>conftest.$ac_ext <<_ACEOF
  27309. /* end confdefs.h. */
  27310. $ac_includes_default
  27311. typedef short ac__type_sizeof_;
  27312. int
  27313. main ()
  27314. {
  27315. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  27316. test_array [0] = 0
  27317. ;
  27318. return 0;
  27319. }
  27320. _ACEOF
  27321. rm -f conftest.$ac_objext
  27322. if { (ac_try="$ac_compile"
  27323. case "(($ac_try" in
  27324. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27325. *) ac_try_echo=$ac_try;;
  27326. esac
  27327. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27328. (eval "$ac_compile") 2>conftest.er1
  27329. ac_status=$?
  27330. grep -v '^ *+' conftest.er1 >conftest.err
  27331. rm -f conftest.er1
  27332. cat conftest.err >&5
  27333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27334. (exit $ac_status); } && {
  27335. test -z "$ac_c_werror_flag" ||
  27336. test ! -s conftest.err
  27337. } && test -s conftest.$ac_objext; then
  27338. ac_hi=$ac_mid
  27339. else
  27340. echo "$as_me: failed program was:" >&5
  27341. sed 's/^/| /' conftest.$ac_ext >&5
  27342. ac_lo=`expr '(' $ac_mid ')' + 1`
  27343. fi
  27344. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27345. done
  27346. case $ac_lo in
  27347. ?*) ac_cv_sizeof_short=$ac_lo;;
  27348. '') if test "$ac_cv_type_short" = yes; then
  27349. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  27350. See \`config.log' for more details." >&5
  27351. echo "$as_me: error: cannot compute sizeof (short)
  27352. See \`config.log' for more details." >&2;}
  27353. { (exit 77); exit 77; }; }
  27354. else
  27355. ac_cv_sizeof_short=0
  27356. fi ;;
  27357. esac
  27358. else
  27359. cat >conftest.$ac_ext <<_ACEOF
  27360. /* confdefs.h. */
  27361. _ACEOF
  27362. cat confdefs.h >>conftest.$ac_ext
  27363. cat >>conftest.$ac_ext <<_ACEOF
  27364. /* end confdefs.h. */
  27365. $ac_includes_default
  27366. typedef short ac__type_sizeof_;
  27367. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  27368. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  27369. #include <stdio.h>
  27370. #include <stdlib.h>
  27371. int
  27372. main ()
  27373. {
  27374. FILE *f = fopen ("conftest.val", "w");
  27375. if (! f)
  27376. return 1;
  27377. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  27378. {
  27379. long int i = longval ();
  27380. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  27381. return 1;
  27382. fprintf (f, "%ld\n", i);
  27383. }
  27384. else
  27385. {
  27386. unsigned long int i = ulongval ();
  27387. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  27388. return 1;
  27389. fprintf (f, "%lu\n", i);
  27390. }
  27391. return ferror (f) || fclose (f) != 0;
  27392. ;
  27393. return 0;
  27394. }
  27395. _ACEOF
  27396. rm -f conftest$ac_exeext
  27397. if { (ac_try="$ac_link"
  27398. case "(($ac_try" in
  27399. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27400. *) ac_try_echo=$ac_try;;
  27401. esac
  27402. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27403. (eval "$ac_link") 2>&5
  27404. ac_status=$?
  27405. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27406. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  27407. { (case "(($ac_try" in
  27408. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27409. *) ac_try_echo=$ac_try;;
  27410. esac
  27411. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27412. (eval "$ac_try") 2>&5
  27413. ac_status=$?
  27414. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27415. (exit $ac_status); }; }; then
  27416. ac_cv_sizeof_short=`cat conftest.val`
  27417. else
  27418. echo "$as_me: program exited with status $ac_status" >&5
  27419. echo "$as_me: failed program was:" >&5
  27420. sed 's/^/| /' conftest.$ac_ext >&5
  27421. ( exit $ac_status )
  27422. if test "$ac_cv_type_short" = yes; then
  27423. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  27424. See \`config.log' for more details." >&5
  27425. echo "$as_me: error: cannot compute sizeof (short)
  27426. See \`config.log' for more details." >&2;}
  27427. { (exit 77); exit 77; }; }
  27428. else
  27429. ac_cv_sizeof_short=0
  27430. fi
  27431. fi
  27432. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  27433. fi
  27434. rm -f conftest.val
  27435. fi
  27436. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  27437. echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
  27438. cat >>confdefs.h <<_ACEOF
  27439. #define SIZEOF_SHORT $ac_cv_sizeof_short
  27440. _ACEOF
  27441. # ----------------------------------------------------------------------
  27442. # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
  27443. # ----------------------------------------------------------------------
  27444. { echo "$as_me:$LINENO: checking for pathfind in -lgen" >&5
  27445. echo $ECHO_N "checking for pathfind in -lgen... $ECHO_C" >&6; }
  27446. if test "${ac_cv_lib_gen_pathfind+set}" = set; then
  27447. echo $ECHO_N "(cached) $ECHO_C" >&6
  27448. else
  27449. ac_check_lib_save_LIBS=$LIBS
  27450. LIBS="-lgen $LIBS"
  27451. cat >conftest.$ac_ext <<_ACEOF
  27452. /* confdefs.h. */
  27453. _ACEOF
  27454. cat confdefs.h >>conftest.$ac_ext
  27455. cat >>conftest.$ac_ext <<_ACEOF
  27456. /* end confdefs.h. */
  27457. /* Override any GCC internal prototype to avoid an error.
  27458. Use char because int might match the return type of a GCC
  27459. builtin and then its argument prototype would still apply. */
  27460. #ifdef __cplusplus
  27461. extern "C"
  27462. #endif
  27463. char pathfind ();
  27464. int
  27465. main ()
  27466. {
  27467. return pathfind ();
  27468. ;
  27469. return 0;
  27470. }
  27471. _ACEOF
  27472. rm -f conftest.$ac_objext conftest$ac_exeext
  27473. if { (ac_try="$ac_link"
  27474. case "(($ac_try" in
  27475. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27476. *) ac_try_echo=$ac_try;;
  27477. esac
  27478. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27479. (eval "$ac_link") 2>conftest.er1
  27480. ac_status=$?
  27481. grep -v '^ *+' conftest.er1 >conftest.err
  27482. rm -f conftest.er1
  27483. cat conftest.err >&5
  27484. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27485. (exit $ac_status); } && {
  27486. test -z "$ac_c_werror_flag" ||
  27487. test ! -s conftest.err
  27488. } && test -s conftest$ac_exeext &&
  27489. $as_test_x conftest$ac_exeext; then
  27490. ac_cv_lib_gen_pathfind=yes
  27491. else
  27492. echo "$as_me: failed program was:" >&5
  27493. sed 's/^/| /' conftest.$ac_ext >&5
  27494. ac_cv_lib_gen_pathfind=no
  27495. fi
  27496. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27497. conftest$ac_exeext conftest.$ac_ext
  27498. LIBS=$ac_check_lib_save_LIBS
  27499. fi
  27500. { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_pathfind" >&5
  27501. echo "${ECHO_T}$ac_cv_lib_gen_pathfind" >&6; }
  27502. if test $ac_cv_lib_gen_pathfind = yes; then
  27503. cat >>confdefs.h <<_ACEOF
  27504. #define HAVE_LIBGEN 1
  27505. _ACEOF
  27506. LIBS="-lgen $LIBS"
  27507. fi
  27508. for ac_func in vprintf
  27509. do
  27510. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  27511. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  27512. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  27513. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  27514. echo $ECHO_N "(cached) $ECHO_C" >&6
  27515. else
  27516. cat >conftest.$ac_ext <<_ACEOF
  27517. /* confdefs.h. */
  27518. _ACEOF
  27519. cat confdefs.h >>conftest.$ac_ext
  27520. cat >>conftest.$ac_ext <<_ACEOF
  27521. /* end confdefs.h. */
  27522. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  27523. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  27524. #define $ac_func innocuous_$ac_func
  27525. /* System header to define __stub macros and hopefully few prototypes,
  27526. which can conflict with char $ac_func (); below.
  27527. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  27528. <limits.h> exists even on freestanding compilers. */
  27529. #ifdef __STDC__
  27530. # include <limits.h>
  27531. #else
  27532. # include <assert.h>
  27533. #endif
  27534. #undef $ac_func
  27535. /* Override any GCC internal prototype to avoid an error.
  27536. Use char because int might match the return type of a GCC
  27537. builtin and then its argument prototype would still apply. */
  27538. #ifdef __cplusplus
  27539. extern "C"
  27540. #endif
  27541. char $ac_func ();
  27542. /* The GNU C library defines this for functions which it implements
  27543. to always fail with ENOSYS. Some functions are actually named
  27544. something starting with __ and the normal name is an alias. */
  27545. #if defined __stub_$ac_func || defined __stub___$ac_func
  27546. choke me
  27547. #endif
  27548. int
  27549. main ()
  27550. {
  27551. return $ac_func ();
  27552. ;
  27553. return 0;
  27554. }
  27555. _ACEOF
  27556. rm -f conftest.$ac_objext conftest$ac_exeext
  27557. if { (ac_try="$ac_link"
  27558. case "(($ac_try" in
  27559. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27560. *) ac_try_echo=$ac_try;;
  27561. esac
  27562. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27563. (eval "$ac_link") 2>conftest.er1
  27564. ac_status=$?
  27565. grep -v '^ *+' conftest.er1 >conftest.err
  27566. rm -f conftest.er1
  27567. cat conftest.err >&5
  27568. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27569. (exit $ac_status); } && {
  27570. test -z "$ac_c_werror_flag" ||
  27571. test ! -s conftest.err
  27572. } && test -s conftest$ac_exeext &&
  27573. $as_test_x conftest$ac_exeext; then
  27574. eval "$as_ac_var=yes"
  27575. else
  27576. echo "$as_me: failed program was:" >&5
  27577. sed 's/^/| /' conftest.$ac_ext >&5
  27578. eval "$as_ac_var=no"
  27579. fi
  27580. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27581. conftest$ac_exeext conftest.$ac_ext
  27582. fi
  27583. ac_res=`eval echo '${'$as_ac_var'}'`
  27584. { echo "$as_me:$LINENO: result: $ac_res" >&5
  27585. echo "${ECHO_T}$ac_res" >&6; }
  27586. if test `eval echo '${'$as_ac_var'}'` = yes; then
  27587. cat >>confdefs.h <<_ACEOF
  27588. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  27589. _ACEOF
  27590. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  27591. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  27592. if test "${ac_cv_func__doprnt+set}" = set; then
  27593. echo $ECHO_N "(cached) $ECHO_C" >&6
  27594. else
  27595. cat >conftest.$ac_ext <<_ACEOF
  27596. /* confdefs.h. */
  27597. _ACEOF
  27598. cat confdefs.h >>conftest.$ac_ext
  27599. cat >>conftest.$ac_ext <<_ACEOF
  27600. /* end confdefs.h. */
  27601. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  27602. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  27603. #define _doprnt innocuous__doprnt
  27604. /* System header to define __stub macros and hopefully few prototypes,
  27605. which can conflict with char _doprnt (); below.
  27606. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  27607. <limits.h> exists even on freestanding compilers. */
  27608. #ifdef __STDC__
  27609. # include <limits.h>
  27610. #else
  27611. # include <assert.h>
  27612. #endif
  27613. #undef _doprnt
  27614. /* Override any GCC internal prototype to avoid an error.
  27615. Use char because int might match the return type of a GCC
  27616. builtin and then its argument prototype would still apply. */
  27617. #ifdef __cplusplus
  27618. extern "C"
  27619. #endif
  27620. char _doprnt ();
  27621. /* The GNU C library defines this for functions which it implements
  27622. to always fail with ENOSYS. Some functions are actually named
  27623. something starting with __ and the normal name is an alias. */
  27624. #if defined __stub__doprnt || defined __stub____doprnt
  27625. choke me
  27626. #endif
  27627. int
  27628. main ()
  27629. {
  27630. return _doprnt ();
  27631. ;
  27632. return 0;
  27633. }
  27634. _ACEOF
  27635. rm -f conftest.$ac_objext conftest$ac_exeext
  27636. if { (ac_try="$ac_link"
  27637. case "(($ac_try" in
  27638. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27639. *) ac_try_echo=$ac_try;;
  27640. esac
  27641. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27642. (eval "$ac_link") 2>conftest.er1
  27643. ac_status=$?
  27644. grep -v '^ *+' conftest.er1 >conftest.err
  27645. rm -f conftest.er1
  27646. cat conftest.err >&5
  27647. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27648. (exit $ac_status); } && {
  27649. test -z "$ac_c_werror_flag" ||
  27650. test ! -s conftest.err
  27651. } && test -s conftest$ac_exeext &&
  27652. $as_test_x conftest$ac_exeext; then
  27653. ac_cv_func__doprnt=yes
  27654. else
  27655. echo "$as_me: failed program was:" >&5
  27656. sed 's/^/| /' conftest.$ac_ext >&5
  27657. ac_cv_func__doprnt=no
  27658. fi
  27659. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27660. conftest$ac_exeext conftest.$ac_ext
  27661. fi
  27662. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  27663. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  27664. if test $ac_cv_func__doprnt = yes; then
  27665. cat >>confdefs.h <<\_ACEOF
  27666. #define HAVE_DOPRNT 1
  27667. _ACEOF
  27668. fi
  27669. fi
  27670. done
  27671. for ac_func in strsignal mmap canonicalize_file_name snprintf strdup strchr strrchr
  27672. do
  27673. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  27674. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  27675. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  27676. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  27677. echo $ECHO_N "(cached) $ECHO_C" >&6
  27678. else
  27679. cat >conftest.$ac_ext <<_ACEOF
  27680. /* confdefs.h. */
  27681. _ACEOF
  27682. cat confdefs.h >>conftest.$ac_ext
  27683. cat >>conftest.$ac_ext <<_ACEOF
  27684. /* end confdefs.h. */
  27685. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  27686. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  27687. #define $ac_func innocuous_$ac_func
  27688. /* System header to define __stub macros and hopefully few prototypes,
  27689. which can conflict with char $ac_func (); below.
  27690. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  27691. <limits.h> exists even on freestanding compilers. */
  27692. #ifdef __STDC__
  27693. # include <limits.h>
  27694. #else
  27695. # include <assert.h>
  27696. #endif
  27697. #undef $ac_func
  27698. /* Override any GCC internal prototype to avoid an error.
  27699. Use char because int might match the return type of a GCC
  27700. builtin and then its argument prototype would still apply. */
  27701. #ifdef __cplusplus
  27702. extern "C"
  27703. #endif
  27704. char $ac_func ();
  27705. /* The GNU C library defines this for functions which it implements
  27706. to always fail with ENOSYS. Some functions are actually named
  27707. something starting with __ and the normal name is an alias. */
  27708. #if defined __stub_$ac_func || defined __stub___$ac_func
  27709. choke me
  27710. #endif
  27711. int
  27712. main ()
  27713. {
  27714. return $ac_func ();
  27715. ;
  27716. return 0;
  27717. }
  27718. _ACEOF
  27719. rm -f conftest.$ac_objext conftest$ac_exeext
  27720. if { (ac_try="$ac_link"
  27721. case "(($ac_try" in
  27722. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27723. *) ac_try_echo=$ac_try;;
  27724. esac
  27725. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27726. (eval "$ac_link") 2>conftest.er1
  27727. ac_status=$?
  27728. grep -v '^ *+' conftest.er1 >conftest.err
  27729. rm -f conftest.er1
  27730. cat conftest.err >&5
  27731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27732. (exit $ac_status); } && {
  27733. test -z "$ac_c_werror_flag" ||
  27734. test ! -s conftest.err
  27735. } && test -s conftest$ac_exeext &&
  27736. $as_test_x conftest$ac_exeext; then
  27737. eval "$as_ac_var=yes"
  27738. else
  27739. echo "$as_me: failed program was:" >&5
  27740. sed 's/^/| /' conftest.$ac_ext >&5
  27741. eval "$as_ac_var=no"
  27742. fi
  27743. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27744. conftest$ac_exeext conftest.$ac_ext
  27745. fi
  27746. ac_res=`eval echo '${'$as_ac_var'}'`
  27747. { echo "$as_me:$LINENO: result: $ac_res" >&5
  27748. echo "${ECHO_T}$ac_res" >&6; }
  27749. if test `eval echo '${'$as_ac_var'}'` = yes; then
  27750. cat >>confdefs.h <<_ACEOF
  27751. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  27752. _ACEOF
  27753. fi
  27754. done
  27755. INVOKE_LIBOPTS_MACROS_FIRST_done=yes
  27756. fi
  27757. # Check to see if a reg expr header is specified.
  27758. # Check whether --with-regex-header was given.
  27759. if test "${with_regex_header+set}" = set; then
  27760. withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header}
  27761. else
  27762. { echo "$as_me:$LINENO: checking whether a reg expr header is specified" >&5
  27763. echo $ECHO_N "checking whether a reg expr header is specified... $ECHO_C" >&6; }
  27764. if test "${libopts_cv_with_regex_header+set}" = set; then
  27765. echo $ECHO_N "(cached) $ECHO_C" >&6
  27766. else
  27767. libopts_cv_with_regex_header=no
  27768. fi
  27769. { echo "$as_me:$LINENO: result: $libopts_cv_with_regex_header" >&5
  27770. echo "${ECHO_T}$libopts_cv_with_regex_header" >&6; }
  27771. fi
  27772. # end of AC_ARG_WITH
  27773. if test "X${libopts_cv_with_regex_header}" != Xno
  27774. then
  27775. cat >>confdefs.h <<_ACEOF
  27776. #define REGEX_HEADER <${libopts_cv_with_regex_header}>
  27777. _ACEOF
  27778. else
  27779. cat >>confdefs.h <<\_ACEOF
  27780. #define REGEX_HEADER <regex.h>
  27781. _ACEOF
  27782. fi
  27783. # Check to see if a working libregex can be found.
  27784. # Check whether --with-libregex was given.
  27785. if test "${with_libregex+set}" = set; then
  27786. withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex}
  27787. else
  27788. { echo "$as_me:$LINENO: checking whether with-libregex was specified" >&5
  27789. echo $ECHO_N "checking whether with-libregex was specified... $ECHO_C" >&6; }
  27790. if test "${libopts_cv_with_libregex_root+set}" = set; then
  27791. echo $ECHO_N "(cached) $ECHO_C" >&6
  27792. else
  27793. libopts_cv_with_libregex_root=no
  27794. fi
  27795. { echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_root" >&5
  27796. echo "${ECHO_T}$libopts_cv_with_libregex_root" >&6; }
  27797. fi
  27798. # end of AC_ARG_WITH libregex
  27799. if test "${with_libguile+set}" = set && \
  27800. test "${withval}" = no
  27801. then ## disabled by request
  27802. libopts_cv_with_libregex_root=no
  27803. libopts_cv_with_libregex_cflags=no
  27804. libopts_cv_with_libregex_libs=no
  27805. else
  27806. # Check whether --with-libregex-cflags was given.
  27807. if test "${with_libregex_cflags+set}" = set; then
  27808. withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_regex_cflags}
  27809. else
  27810. { echo "$as_me:$LINENO: checking whether with-libregex-cflags was specified" >&5
  27811. echo $ECHO_N "checking whether with-libregex-cflags was specified... $ECHO_C" >&6; }
  27812. if test "${libopts_cv_with_libregex_cflags+set}" = set; then
  27813. echo $ECHO_N "(cached) $ECHO_C" >&6
  27814. else
  27815. libopts_cv_with_libregex_cflags=no
  27816. fi
  27817. { echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_cflags" >&5
  27818. echo "${ECHO_T}$libopts_cv_with_libregex_cflags" >&6; }
  27819. fi
  27820. # end of AC_ARG_WITH libregex-cflags
  27821. # Check whether --with-libregex-libs was given.
  27822. if test "${with_libregex_libs+set}" = set; then
  27823. withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_regex_libs}
  27824. else
  27825. { echo "$as_me:$LINENO: checking whether with-libregex-libs was specified" >&5
  27826. echo $ECHO_N "checking whether with-libregex-libs was specified... $ECHO_C" >&6; }
  27827. if test "${libopts_cv_with_libregex_libs+set}" = set; then
  27828. echo $ECHO_N "(cached) $ECHO_C" >&6
  27829. else
  27830. libopts_cv_with_libregex_libs=no
  27831. fi
  27832. { echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_libs" >&5
  27833. echo "${ECHO_T}$libopts_cv_with_libregex_libs" >&6; }
  27834. fi
  27835. # end of AC_ARG_WITH libregex-libs
  27836. case "X${libopts_cv_with_libregex_cflags}" in
  27837. Xyes|Xno|X )
  27838. case "X${libopts_cv_with_libregex_root}" in
  27839. Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
  27840. * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
  27841. esac
  27842. esac
  27843. case "X${libopts_cv_with_libregex_libs}" in
  27844. Xyes|Xno|X )
  27845. case "X${libopts_cv_with_libregex_root}" in
  27846. Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
  27847. * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex";;
  27848. esac
  27849. esac
  27850. libopts_save_CPPFLAGS="${CPPFLAGS}"
  27851. libopts_save_LIBS="${LIBS}"
  27852. fi ## disabled by request
  27853. case "X${libopts_cv_with_libregex_cflags}" in
  27854. Xyes|Xno|X )
  27855. libopts_cv_with_libregex_cflags="" ;;
  27856. * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
  27857. esac
  27858. case "X${libopts_cv_with_libregex_libs}" in
  27859. Xyes|Xno|X )
  27860. libopts_cv_with_libregex_libs="" ;;
  27861. * )
  27862. LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
  27863. esac
  27864. LIBREGEX_CFLAGS=""
  27865. LIBREGEX_LIBS=""
  27866. { echo "$as_me:$LINENO: checking whether libregex functions properly" >&5
  27867. echo $ECHO_N "checking whether libregex functions properly... $ECHO_C" >&6; }
  27868. if test "${libopts_cv_with_libregex+set}" = set; then
  27869. echo $ECHO_N "(cached) $ECHO_C" >&6
  27870. else
  27871. if test "$cross_compiling" = yes; then
  27872. libopts_cv_with_libregex=no
  27873. else
  27874. cat >conftest.$ac_ext <<_ACEOF
  27875. /* confdefs.h. */
  27876. _ACEOF
  27877. cat confdefs.h >>conftest.$ac_ext
  27878. cat >>conftest.$ac_ext <<_ACEOF
  27879. /* end confdefs.h. */
  27880. #include <stdio.h>
  27881. #include <stdlib.h>
  27882. #include <sys/types.h>
  27883. #include REGEX_HEADER
  27884. static regex_t re;
  27885. void comp_re( char const* pzPat ) {
  27886. int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
  27887. if (res == 0) return;
  27888. exit( res ); }
  27889. int main() {
  27890. regmatch_t m[2];
  27891. comp_re( "^.*\$" );
  27892. comp_re( "()|no.*" );
  27893. comp_re( "." );
  27894. if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
  27895. if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
  27896. fputs( "error: regex -->.<-- did not match\n", stderr );
  27897. return 1;
  27898. }
  27899. return 0; }
  27900. _ACEOF
  27901. rm -f conftest$ac_exeext
  27902. if { (ac_try="$ac_link"
  27903. case "(($ac_try" in
  27904. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27905. *) ac_try_echo=$ac_try;;
  27906. esac
  27907. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27908. (eval "$ac_link") 2>&5
  27909. ac_status=$?
  27910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27911. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  27912. { (case "(($ac_try" in
  27913. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27914. *) ac_try_echo=$ac_try;;
  27915. esac
  27916. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27917. (eval "$ac_try") 2>&5
  27918. ac_status=$?
  27919. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27920. (exit $ac_status); }; }; then
  27921. libopts_cv_with_libregex=yes
  27922. else
  27923. echo "$as_me: program exited with status $ac_status" >&5
  27924. echo "$as_me: failed program was:" >&5
  27925. sed 's/^/| /' conftest.$ac_ext >&5
  27926. ( exit $ac_status )
  27927. libopts_cv_with_libregex=no
  27928. fi
  27929. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  27930. fi
  27931. # end of AC_TRY_RUN
  27932. fi
  27933. # end of AC_CACHE_VAL for libopts_cv_with_libregex
  27934. { echo "$as_me:$LINENO: result: ${libopts_cv_with_libregex}" >&5
  27935. echo "${ECHO_T}${libopts_cv_with_libregex}" >&6; }
  27936. if test "X${libopts_cv_with_libregex}" != Xno
  27937. then
  27938. cat >>confdefs.h <<\_ACEOF
  27939. #define WITH_LIBREGEX 1
  27940. _ACEOF
  27941. else
  27942. CPPFLAGS="${libopts_save_CPPFLAGS}"
  27943. LIBS="${libopts_save_LIBS}"
  27944. fi
  27945. # Check to see if pathfind(3) works.
  27946. { echo "$as_me:$LINENO: checking whether pathfind(3) works" >&5
  27947. echo $ECHO_N "checking whether pathfind(3) works... $ECHO_C" >&6; }
  27948. if test "${libopts_cv_run_pathfind+set}" = set; then
  27949. echo $ECHO_N "(cached) $ECHO_C" >&6
  27950. else
  27951. if test "$cross_compiling" = yes; then
  27952. libopts_cv_run_pathfind=no
  27953. else
  27954. cat >conftest.$ac_ext <<_ACEOF
  27955. /* confdefs.h. */
  27956. _ACEOF
  27957. cat confdefs.h >>conftest.$ac_ext
  27958. cat >>conftest.$ac_ext <<_ACEOF
  27959. /* end confdefs.h. */
  27960. #include <string.h>
  27961. #include <stdlib.h>
  27962. int main (int argc, char** argv) {
  27963. char* pz = pathfind( getenv( "PATH" ), "sh", "x" );
  27964. return (pz == 0) ? 1 : 0;
  27965. }
  27966. _ACEOF
  27967. rm -f conftest$ac_exeext
  27968. if { (ac_try="$ac_link"
  27969. case "(($ac_try" in
  27970. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27971. *) ac_try_echo=$ac_try;;
  27972. esac
  27973. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27974. (eval "$ac_link") 2>&5
  27975. ac_status=$?
  27976. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27977. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  27978. { (case "(($ac_try" in
  27979. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27980. *) ac_try_echo=$ac_try;;
  27981. esac
  27982. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27983. (eval "$ac_try") 2>&5
  27984. ac_status=$?
  27985. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27986. (exit $ac_status); }; }; then
  27987. libopts_cv_run_pathfind=yes
  27988. else
  27989. echo "$as_me: program exited with status $ac_status" >&5
  27990. echo "$as_me: failed program was:" >&5
  27991. sed 's/^/| /' conftest.$ac_ext >&5
  27992. ( exit $ac_status )
  27993. libopts_cv_run_pathfind=no
  27994. fi
  27995. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  27996. fi
  27997. # end of TRY_RUN
  27998. fi
  27999. # end of AC_CACHE_VAL for libopts_cv_run_pathfind
  28000. { echo "$as_me:$LINENO: result: ${libopts_cv_run_pathfind}" >&5
  28001. echo "${ECHO_T}${libopts_cv_run_pathfind}" >&6; }
  28002. if test "X${libopts_cv_run_pathfind}" != Xno
  28003. then
  28004. cat >>confdefs.h <<\_ACEOF
  28005. #define HAVE_PATHFIND 1
  28006. _ACEOF
  28007. fi
  28008. # Check to see if /dev/zero is readable device.
  28009. { echo "$as_me:$LINENO: checking whether /dev/zero is readable device" >&5
  28010. echo $ECHO_N "checking whether /dev/zero is readable device... $ECHO_C" >&6; }
  28011. if test "${libopts_cv_test_dev_zero+set}" = set; then
  28012. echo $ECHO_N "(cached) $ECHO_C" >&6
  28013. else
  28014. libopts_cv_test_dev_zero=`exec 2> /dev/null
  28015. dzero=\`ls -lL /dev/zero | egrep ^c......r\`
  28016. test -z "${dzero}" && exit 1
  28017. echo ${dzero}`
  28018. if test $? -ne 0
  28019. then libopts_cv_test_dev_zero=no
  28020. elif test -z "$libopts_cv_test_dev_zero"
  28021. then libopts_cv_test_dev_zero=no
  28022. fi
  28023. fi
  28024. # end of CACHE_VAL of libopts_cv_test_dev_zero
  28025. { echo "$as_me:$LINENO: result: ${libopts_cv_test_dev_zero}" >&5
  28026. echo "${ECHO_T}${libopts_cv_test_dev_zero}" >&6; }
  28027. if test "X${libopts_cv_test_dev_zero}" != Xno
  28028. then
  28029. cat >>confdefs.h <<\_ACEOF
  28030. #define HAVE_DEV_ZERO 1
  28031. _ACEOF
  28032. fi
  28033. # Check to see if we have a functional realpath(3C).
  28034. { echo "$as_me:$LINENO: checking whether we have a functional realpath(3C)" >&5
  28035. echo $ECHO_N "checking whether we have a functional realpath(3C)... $ECHO_C" >&6; }
  28036. if test "${libopts_cv_run_realpath+set}" = set; then
  28037. echo $ECHO_N "(cached) $ECHO_C" >&6
  28038. else
  28039. if test "$cross_compiling" = yes; then
  28040. libopts_cv_run_realpath=no
  28041. else
  28042. cat >conftest.$ac_ext <<_ACEOF
  28043. /* confdefs.h. */
  28044. _ACEOF
  28045. cat confdefs.h >>conftest.$ac_ext
  28046. cat >>conftest.$ac_ext <<_ACEOF
  28047. /* end confdefs.h. */
  28048. #include <limits.h>
  28049. #include <stdlib.h>
  28050. int main (int argc, char** argv) {
  28051. #ifndef PATH_MAX
  28052. choke me!!
  28053. #else
  28054. char zPath[PATH_MAX+1];
  28055. #endif
  28056. char *pz = realpath(argv[0], zPath);
  28057. return (pz == zPath) ? 0 : 1;
  28058. }
  28059. _ACEOF
  28060. rm -f conftest$ac_exeext
  28061. if { (ac_try="$ac_link"
  28062. case "(($ac_try" in
  28063. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28064. *) ac_try_echo=$ac_try;;
  28065. esac
  28066. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28067. (eval "$ac_link") 2>&5
  28068. ac_status=$?
  28069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28070. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  28071. { (case "(($ac_try" in
  28072. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28073. *) ac_try_echo=$ac_try;;
  28074. esac
  28075. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28076. (eval "$ac_try") 2>&5
  28077. ac_status=$?
  28078. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28079. (exit $ac_status); }; }; then
  28080. libopts_cv_run_realpath=yes
  28081. else
  28082. echo "$as_me: program exited with status $ac_status" >&5
  28083. echo "$as_me: failed program was:" >&5
  28084. sed 's/^/| /' conftest.$ac_ext >&5
  28085. ( exit $ac_status )
  28086. libopts_cv_run_realpath=no
  28087. fi
  28088. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  28089. fi
  28090. # end of TRY_RUN
  28091. fi
  28092. # end of AC_CACHE_VAL for libopts_cv_run_realpath
  28093. { echo "$as_me:$LINENO: result: ${libopts_cv_run_realpath}" >&5
  28094. echo "${ECHO_T}${libopts_cv_run_realpath}" >&6; }
  28095. if test "X${libopts_cv_run_realpath}" != Xno
  28096. then
  28097. cat >>confdefs.h <<\_ACEOF
  28098. #define HAVE_REALPATH 1
  28099. _ACEOF
  28100. fi
  28101. # Check to see if strftime() works.
  28102. { echo "$as_me:$LINENO: checking whether strftime() works" >&5
  28103. echo $ECHO_N "checking whether strftime() works... $ECHO_C" >&6; }
  28104. if test "${libopts_cv_run_strftime+set}" = set; then
  28105. echo $ECHO_N "(cached) $ECHO_C" >&6
  28106. else
  28107. if test "$cross_compiling" = yes; then
  28108. libopts_cv_run_strftime=no
  28109. else
  28110. cat >conftest.$ac_ext <<_ACEOF
  28111. /* confdefs.h. */
  28112. _ACEOF
  28113. cat confdefs.h >>conftest.$ac_ext
  28114. cat >>conftest.$ac_ext <<_ACEOF
  28115. /* end confdefs.h. */
  28116. #include <time.h>
  28117. #include <string.h>
  28118. char t_buf[ 64 ];
  28119. int main() {
  28120. static char const z[] = "Thursday Aug 28 240";
  28121. struct tm tm;
  28122. tm.tm_sec = 36; /* seconds after the minute [0, 61] */
  28123. tm.tm_min = 44; /* minutes after the hour [0, 59] */
  28124. tm.tm_hour = 12; /* hour since midnight [0, 23] */
  28125. tm.tm_mday = 28; /* day of the month [1, 31] */
  28126. tm.tm_mon = 7; /* months since January [0, 11] */
  28127. tm.tm_year = 86; /* years since 1900 */
  28128. tm.tm_wday = 4; /* days since Sunday [0, 6] */
  28129. tm.tm_yday = 239; /* days since January 1 [0, 365] */
  28130. tm.tm_isdst = 1; /* flag for daylight savings time */
  28131. strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
  28132. return (strcmp( t_buf, z ) != 0); }
  28133. _ACEOF
  28134. rm -f conftest$ac_exeext
  28135. if { (ac_try="$ac_link"
  28136. case "(($ac_try" in
  28137. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28138. *) ac_try_echo=$ac_try;;
  28139. esac
  28140. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28141. (eval "$ac_link") 2>&5
  28142. ac_status=$?
  28143. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28144. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  28145. { (case "(($ac_try" in
  28146. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28147. *) ac_try_echo=$ac_try;;
  28148. esac
  28149. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28150. (eval "$ac_try") 2>&5
  28151. ac_status=$?
  28152. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28153. (exit $ac_status); }; }; then
  28154. libopts_cv_run_strftime=yes
  28155. else
  28156. echo "$as_me: program exited with status $ac_status" >&5
  28157. echo "$as_me: failed program was:" >&5
  28158. sed 's/^/| /' conftest.$ac_ext >&5
  28159. ( exit $ac_status )
  28160. libopts_cv_run_strftime=no
  28161. fi
  28162. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  28163. fi
  28164. # end of TRY_RUN
  28165. fi
  28166. # end of AC_CACHE_VAL for libopts_cv_run_strftime
  28167. { echo "$as_me:$LINENO: result: ${libopts_cv_run_strftime}" >&5
  28168. echo "${ECHO_T}${libopts_cv_run_strftime}" >&6; }
  28169. if test "X${libopts_cv_run_strftime}" != Xno
  28170. then
  28171. cat >>confdefs.h <<\_ACEOF
  28172. #define HAVE_STRFTIME 1
  28173. _ACEOF
  28174. fi
  28175. # Check to see if fopen accepts "b" mode.
  28176. { echo "$as_me:$LINENO: checking whether fopen accepts \"b\" mode" >&5
  28177. echo $ECHO_N "checking whether fopen accepts \"b\" mode... $ECHO_C" >&6; }
  28178. if test "${libopts_cv_run_fopen_binary+set}" = set; then
  28179. echo $ECHO_N "(cached) $ECHO_C" >&6
  28180. else
  28181. if test "$cross_compiling" = yes; then
  28182. libopts_cv_run_fopen_binary=no
  28183. else
  28184. cat >conftest.$ac_ext <<_ACEOF
  28185. /* confdefs.h. */
  28186. _ACEOF
  28187. cat confdefs.h >>conftest.$ac_ext
  28188. cat >>conftest.$ac_ext <<_ACEOF
  28189. /* end confdefs.h. */
  28190. #include <stdio.h>
  28191. int main (int argc, char** argv) {
  28192. FILE* fp = fopen("conftest.$ac_ext", "rb");
  28193. return (fp == NULL) ? 1 : fclose(fp); }
  28194. _ACEOF
  28195. rm -f conftest$ac_exeext
  28196. if { (ac_try="$ac_link"
  28197. case "(($ac_try" in
  28198. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28199. *) ac_try_echo=$ac_try;;
  28200. esac
  28201. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28202. (eval "$ac_link") 2>&5
  28203. ac_status=$?
  28204. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28205. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  28206. { (case "(($ac_try" in
  28207. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28208. *) ac_try_echo=$ac_try;;
  28209. esac
  28210. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28211. (eval "$ac_try") 2>&5
  28212. ac_status=$?
  28213. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28214. (exit $ac_status); }; }; then
  28215. libopts_cv_run_fopen_binary=yes
  28216. else
  28217. echo "$as_me: program exited with status $ac_status" >&5
  28218. echo "$as_me: failed program was:" >&5
  28219. sed 's/^/| /' conftest.$ac_ext >&5
  28220. ( exit $ac_status )
  28221. libopts_cv_run_fopen_binary=no
  28222. fi
  28223. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  28224. fi
  28225. # end of TRY_RUN
  28226. fi
  28227. # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
  28228. { echo "$as_me:$LINENO: result: ${libopts_cv_run_fopen_binary}" >&5
  28229. echo "${ECHO_T}${libopts_cv_run_fopen_binary}" >&6; }
  28230. if test "X${libopts_cv_run_fopen_binary}" != Xno
  28231. then
  28232. cat >>confdefs.h <<\_ACEOF
  28233. #define FOPEN_BINARY_FLAG "b"
  28234. _ACEOF
  28235. else
  28236. cat >>confdefs.h <<\_ACEOF
  28237. #define FOPEN_BINARY_FLAG ""
  28238. _ACEOF
  28239. fi
  28240. # Check to see if fopen accepts "t" mode.
  28241. { echo "$as_me:$LINENO: checking whether fopen accepts \"t\" mode" >&5
  28242. echo $ECHO_N "checking whether fopen accepts \"t\" mode... $ECHO_C" >&6; }
  28243. if test "${libopts_cv_run_fopen_text+set}" = set; then
  28244. echo $ECHO_N "(cached) $ECHO_C" >&6
  28245. else
  28246. if test "$cross_compiling" = yes; then
  28247. libopts_cv_run_fopen_text=no
  28248. else
  28249. cat >conftest.$ac_ext <<_ACEOF
  28250. /* confdefs.h. */
  28251. _ACEOF
  28252. cat confdefs.h >>conftest.$ac_ext
  28253. cat >>conftest.$ac_ext <<_ACEOF
  28254. /* end confdefs.h. */
  28255. #include <stdio.h>
  28256. int main (int argc, char** argv) {
  28257. FILE* fp = fopen("conftest.$ac_ext", "rt");
  28258. return (fp == NULL) ? 1 : fclose(fp); }
  28259. _ACEOF
  28260. rm -f conftest$ac_exeext
  28261. if { (ac_try="$ac_link"
  28262. case "(($ac_try" in
  28263. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28264. *) ac_try_echo=$ac_try;;
  28265. esac
  28266. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28267. (eval "$ac_link") 2>&5
  28268. ac_status=$?
  28269. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28270. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  28271. { (case "(($ac_try" in
  28272. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28273. *) ac_try_echo=$ac_try;;
  28274. esac
  28275. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28276. (eval "$ac_try") 2>&5
  28277. ac_status=$?
  28278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28279. (exit $ac_status); }; }; then
  28280. libopts_cv_run_fopen_text=yes
  28281. else
  28282. echo "$as_me: program exited with status $ac_status" >&5
  28283. echo "$as_me: failed program was:" >&5
  28284. sed 's/^/| /' conftest.$ac_ext >&5
  28285. ( exit $ac_status )
  28286. libopts_cv_run_fopen_text=no
  28287. fi
  28288. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  28289. fi
  28290. # end of TRY_RUN
  28291. fi
  28292. # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
  28293. { echo "$as_me:$LINENO: result: ${libopts_cv_run_fopen_text}" >&5
  28294. echo "${ECHO_T}${libopts_cv_run_fopen_text}" >&6; }
  28295. if test "X${libopts_cv_run_fopen_text}" != Xno
  28296. then
  28297. cat >>confdefs.h <<\_ACEOF
  28298. #define FOPEN_TEXT_FLAG "t"
  28299. _ACEOF
  28300. else
  28301. cat >>confdefs.h <<\_ACEOF
  28302. #define FOPEN_TEXT_FLAG ""
  28303. _ACEOF
  28304. fi
  28305. # Check to see if not wanting optional option args.
  28306. # Check whether --enable-optional-args was given.
  28307. if test "${enable_optional_args+set}" = set; then
  28308. enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args}
  28309. else
  28310. { echo "$as_me:$LINENO: checking whether not wanting optional option args" >&5
  28311. echo $ECHO_N "checking whether not wanting optional option args... $ECHO_C" >&6; }
  28312. if test "${libopts_cv_enable_optional_args+set}" = set; then
  28313. echo $ECHO_N "(cached) $ECHO_C" >&6
  28314. else
  28315. libopts_cv_enable_optional_args=yes
  28316. fi
  28317. { echo "$as_me:$LINENO: result: $libopts_cv_enable_optional_args" >&5
  28318. echo "${ECHO_T}$libopts_cv_enable_optional_args" >&6; }
  28319. fi
  28320. # end of AC_ARG_ENABLE
  28321. if test "X${libopts_cv_enable_optional_args}" = Xno
  28322. then
  28323. cat >>confdefs.h <<\_ACEOF
  28324. #define NO_OPTIONAL_OPT_ARGS 1
  28325. _ACEOF
  28326. fi
  28327. else
  28328. if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
  28329. # =================
  28330. # AC_HEADER_STDC
  28331. # =================
  28332. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  28333. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  28334. if test "${ac_cv_header_stdc+set}" = set; then
  28335. echo $ECHO_N "(cached) $ECHO_C" >&6
  28336. else
  28337. cat >conftest.$ac_ext <<_ACEOF
  28338. /* confdefs.h. */
  28339. _ACEOF
  28340. cat confdefs.h >>conftest.$ac_ext
  28341. cat >>conftest.$ac_ext <<_ACEOF
  28342. /* end confdefs.h. */
  28343. #include <stdlib.h>
  28344. #include <stdarg.h>
  28345. #include <string.h>
  28346. #include <float.h>
  28347. int
  28348. main ()
  28349. {
  28350. ;
  28351. return 0;
  28352. }
  28353. _ACEOF
  28354. rm -f conftest.$ac_objext
  28355. if { (ac_try="$ac_compile"
  28356. case "(($ac_try" in
  28357. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28358. *) ac_try_echo=$ac_try;;
  28359. esac
  28360. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28361. (eval "$ac_compile") 2>conftest.er1
  28362. ac_status=$?
  28363. grep -v '^ *+' conftest.er1 >conftest.err
  28364. rm -f conftest.er1
  28365. cat conftest.err >&5
  28366. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28367. (exit $ac_status); } && {
  28368. test -z "$ac_c_werror_flag" ||
  28369. test ! -s conftest.err
  28370. } && test -s conftest.$ac_objext; then
  28371. ac_cv_header_stdc=yes
  28372. else
  28373. echo "$as_me: failed program was:" >&5
  28374. sed 's/^/| /' conftest.$ac_ext >&5
  28375. ac_cv_header_stdc=no
  28376. fi
  28377. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28378. if test $ac_cv_header_stdc = yes; then
  28379. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  28380. cat >conftest.$ac_ext <<_ACEOF
  28381. /* confdefs.h. */
  28382. _ACEOF
  28383. cat confdefs.h >>conftest.$ac_ext
  28384. cat >>conftest.$ac_ext <<_ACEOF
  28385. /* end confdefs.h. */
  28386. #include <string.h>
  28387. _ACEOF
  28388. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  28389. $EGREP "memchr" >/dev/null 2>&1; then
  28390. :
  28391. else
  28392. ac_cv_header_stdc=no
  28393. fi
  28394. rm -f conftest*
  28395. fi
  28396. if test $ac_cv_header_stdc = yes; then
  28397. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  28398. cat >conftest.$ac_ext <<_ACEOF
  28399. /* confdefs.h. */
  28400. _ACEOF
  28401. cat confdefs.h >>conftest.$ac_ext
  28402. cat >>conftest.$ac_ext <<_ACEOF
  28403. /* end confdefs.h. */
  28404. #include <stdlib.h>
  28405. _ACEOF
  28406. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  28407. $EGREP "free" >/dev/null 2>&1; then
  28408. :
  28409. else
  28410. ac_cv_header_stdc=no
  28411. fi
  28412. rm -f conftest*
  28413. fi
  28414. if test $ac_cv_header_stdc = yes; then
  28415. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  28416. if test "$cross_compiling" = yes; then
  28417. :
  28418. else
  28419. cat >conftest.$ac_ext <<_ACEOF
  28420. /* confdefs.h. */
  28421. _ACEOF
  28422. cat confdefs.h >>conftest.$ac_ext
  28423. cat >>conftest.$ac_ext <<_ACEOF
  28424. /* end confdefs.h. */
  28425. #include <ctype.h>
  28426. #include <stdlib.h>
  28427. #if ((' ' & 0x0FF) == 0x020)
  28428. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  28429. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  28430. #else
  28431. # define ISLOWER(c) \
  28432. (('a' <= (c) && (c) <= 'i') \
  28433. || ('j' <= (c) && (c) <= 'r') \
  28434. || ('s' <= (c) && (c) <= 'z'))
  28435. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  28436. #endif
  28437. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  28438. int
  28439. main ()
  28440. {
  28441. int i;
  28442. for (i = 0; i < 256; i++)
  28443. if (XOR (islower (i), ISLOWER (i))
  28444. || toupper (i) != TOUPPER (i))
  28445. return 2;
  28446. return 0;
  28447. }
  28448. _ACEOF
  28449. rm -f conftest$ac_exeext
  28450. if { (ac_try="$ac_link"
  28451. case "(($ac_try" in
  28452. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28453. *) ac_try_echo=$ac_try;;
  28454. esac
  28455. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28456. (eval "$ac_link") 2>&5
  28457. ac_status=$?
  28458. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28459. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  28460. { (case "(($ac_try" in
  28461. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28462. *) ac_try_echo=$ac_try;;
  28463. esac
  28464. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28465. (eval "$ac_try") 2>&5
  28466. ac_status=$?
  28467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28468. (exit $ac_status); }; }; then
  28469. :
  28470. else
  28471. echo "$as_me: program exited with status $ac_status" >&5
  28472. echo "$as_me: failed program was:" >&5
  28473. sed 's/^/| /' conftest.$ac_ext >&5
  28474. ( exit $ac_status )
  28475. ac_cv_header_stdc=no
  28476. fi
  28477. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  28478. fi
  28479. fi
  28480. fi
  28481. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  28482. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  28483. if test $ac_cv_header_stdc = yes; then
  28484. cat >>confdefs.h <<\_ACEOF
  28485. #define STDC_HEADERS 1
  28486. _ACEOF
  28487. fi
  28488. # =================
  28489. # AC_HEADER_DIRENT
  28490. # =================
  28491. ac_header_dirent=no
  28492. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  28493. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  28494. { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  28495. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
  28496. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28497. echo $ECHO_N "(cached) $ECHO_C" >&6
  28498. else
  28499. cat >conftest.$ac_ext <<_ACEOF
  28500. /* confdefs.h. */
  28501. _ACEOF
  28502. cat confdefs.h >>conftest.$ac_ext
  28503. cat >>conftest.$ac_ext <<_ACEOF
  28504. /* end confdefs.h. */
  28505. #include <sys/types.h>
  28506. #include <$ac_hdr>
  28507. int
  28508. main ()
  28509. {
  28510. if ((DIR *) 0)
  28511. return 0;
  28512. ;
  28513. return 0;
  28514. }
  28515. _ACEOF
  28516. rm -f conftest.$ac_objext
  28517. if { (ac_try="$ac_compile"
  28518. case "(($ac_try" in
  28519. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28520. *) ac_try_echo=$ac_try;;
  28521. esac
  28522. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28523. (eval "$ac_compile") 2>conftest.er1
  28524. ac_status=$?
  28525. grep -v '^ *+' conftest.er1 >conftest.err
  28526. rm -f conftest.er1
  28527. cat conftest.err >&5
  28528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28529. (exit $ac_status); } && {
  28530. test -z "$ac_c_werror_flag" ||
  28531. test ! -s conftest.err
  28532. } && test -s conftest.$ac_objext; then
  28533. eval "$as_ac_Header=yes"
  28534. else
  28535. echo "$as_me: failed program was:" >&5
  28536. sed 's/^/| /' conftest.$ac_ext >&5
  28537. eval "$as_ac_Header=no"
  28538. fi
  28539. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28540. fi
  28541. ac_res=`eval echo '${'$as_ac_Header'}'`
  28542. { echo "$as_me:$LINENO: result: $ac_res" >&5
  28543. echo "${ECHO_T}$ac_res" >&6; }
  28544. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  28545. cat >>confdefs.h <<_ACEOF
  28546. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  28547. _ACEOF
  28548. ac_header_dirent=$ac_hdr; break
  28549. fi
  28550. done
  28551. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  28552. if test $ac_header_dirent = dirent.h; then
  28553. { echo "$as_me:$LINENO: checking for library containing opendir" >&5
  28554. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
  28555. if test "${ac_cv_search_opendir+set}" = set; then
  28556. echo $ECHO_N "(cached) $ECHO_C" >&6
  28557. else
  28558. ac_func_search_save_LIBS=$LIBS
  28559. cat >conftest.$ac_ext <<_ACEOF
  28560. /* confdefs.h. */
  28561. _ACEOF
  28562. cat confdefs.h >>conftest.$ac_ext
  28563. cat >>conftest.$ac_ext <<_ACEOF
  28564. /* end confdefs.h. */
  28565. /* Override any GCC internal prototype to avoid an error.
  28566. Use char because int might match the return type of a GCC
  28567. builtin and then its argument prototype would still apply. */
  28568. #ifdef __cplusplus
  28569. extern "C"
  28570. #endif
  28571. char opendir ();
  28572. int
  28573. main ()
  28574. {
  28575. return opendir ();
  28576. ;
  28577. return 0;
  28578. }
  28579. _ACEOF
  28580. for ac_lib in '' dir; do
  28581. if test -z "$ac_lib"; then
  28582. ac_res="none required"
  28583. else
  28584. ac_res=-l$ac_lib
  28585. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  28586. fi
  28587. rm -f conftest.$ac_objext conftest$ac_exeext
  28588. if { (ac_try="$ac_link"
  28589. case "(($ac_try" in
  28590. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28591. *) ac_try_echo=$ac_try;;
  28592. esac
  28593. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28594. (eval "$ac_link") 2>conftest.er1
  28595. ac_status=$?
  28596. grep -v '^ *+' conftest.er1 >conftest.err
  28597. rm -f conftest.er1
  28598. cat conftest.err >&5
  28599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28600. (exit $ac_status); } && {
  28601. test -z "$ac_c_werror_flag" ||
  28602. test ! -s conftest.err
  28603. } && test -s conftest$ac_exeext &&
  28604. $as_test_x conftest$ac_exeext; then
  28605. ac_cv_search_opendir=$ac_res
  28606. else
  28607. echo "$as_me: failed program was:" >&5
  28608. sed 's/^/| /' conftest.$ac_ext >&5
  28609. fi
  28610. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28611. conftest$ac_exeext
  28612. if test "${ac_cv_search_opendir+set}" = set; then
  28613. break
  28614. fi
  28615. done
  28616. if test "${ac_cv_search_opendir+set}" = set; then
  28617. :
  28618. else
  28619. ac_cv_search_opendir=no
  28620. fi
  28621. rm conftest.$ac_ext
  28622. LIBS=$ac_func_search_save_LIBS
  28623. fi
  28624. { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  28625. echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
  28626. ac_res=$ac_cv_search_opendir
  28627. if test "$ac_res" != no; then
  28628. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  28629. fi
  28630. else
  28631. { echo "$as_me:$LINENO: checking for library containing opendir" >&5
  28632. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
  28633. if test "${ac_cv_search_opendir+set}" = set; then
  28634. echo $ECHO_N "(cached) $ECHO_C" >&6
  28635. else
  28636. ac_func_search_save_LIBS=$LIBS
  28637. cat >conftest.$ac_ext <<_ACEOF
  28638. /* confdefs.h. */
  28639. _ACEOF
  28640. cat confdefs.h >>conftest.$ac_ext
  28641. cat >>conftest.$ac_ext <<_ACEOF
  28642. /* end confdefs.h. */
  28643. /* Override any GCC internal prototype to avoid an error.
  28644. Use char because int might match the return type of a GCC
  28645. builtin and then its argument prototype would still apply. */
  28646. #ifdef __cplusplus
  28647. extern "C"
  28648. #endif
  28649. char opendir ();
  28650. int
  28651. main ()
  28652. {
  28653. return opendir ();
  28654. ;
  28655. return 0;
  28656. }
  28657. _ACEOF
  28658. for ac_lib in '' x; do
  28659. if test -z "$ac_lib"; then
  28660. ac_res="none required"
  28661. else
  28662. ac_res=-l$ac_lib
  28663. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  28664. fi
  28665. rm -f conftest.$ac_objext conftest$ac_exeext
  28666. if { (ac_try="$ac_link"
  28667. case "(($ac_try" in
  28668. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28669. *) ac_try_echo=$ac_try;;
  28670. esac
  28671. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28672. (eval "$ac_link") 2>conftest.er1
  28673. ac_status=$?
  28674. grep -v '^ *+' conftest.er1 >conftest.err
  28675. rm -f conftest.er1
  28676. cat conftest.err >&5
  28677. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28678. (exit $ac_status); } && {
  28679. test -z "$ac_c_werror_flag" ||
  28680. test ! -s conftest.err
  28681. } && test -s conftest$ac_exeext &&
  28682. $as_test_x conftest$ac_exeext; then
  28683. ac_cv_search_opendir=$ac_res
  28684. else
  28685. echo "$as_me: failed program was:" >&5
  28686. sed 's/^/| /' conftest.$ac_ext >&5
  28687. fi
  28688. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28689. conftest$ac_exeext
  28690. if test "${ac_cv_search_opendir+set}" = set; then
  28691. break
  28692. fi
  28693. done
  28694. if test "${ac_cv_search_opendir+set}" = set; then
  28695. :
  28696. else
  28697. ac_cv_search_opendir=no
  28698. fi
  28699. rm conftest.$ac_ext
  28700. LIBS=$ac_func_search_save_LIBS
  28701. fi
  28702. { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  28703. echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
  28704. ac_res=$ac_cv_search_opendir
  28705. if test "$ac_res" != no; then
  28706. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  28707. fi
  28708. fi
  28709. # =================
  28710. # AC_CHECK_HEADERS
  28711. # =================
  28712. for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
  28713. setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
  28714. sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h \
  28715. utime.h sysexits.h
  28716. do
  28717. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  28718. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28719. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  28720. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  28721. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28722. echo $ECHO_N "(cached) $ECHO_C" >&6
  28723. fi
  28724. ac_res=`eval echo '${'$as_ac_Header'}'`
  28725. { echo "$as_me:$LINENO: result: $ac_res" >&5
  28726. echo "${ECHO_T}$ac_res" >&6; }
  28727. else
  28728. # Is the header compilable?
  28729. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  28730. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  28731. cat >conftest.$ac_ext <<_ACEOF
  28732. /* confdefs.h. */
  28733. _ACEOF
  28734. cat confdefs.h >>conftest.$ac_ext
  28735. cat >>conftest.$ac_ext <<_ACEOF
  28736. /* end confdefs.h. */
  28737. $ac_includes_default
  28738. #include <$ac_header>
  28739. _ACEOF
  28740. rm -f conftest.$ac_objext
  28741. if { (ac_try="$ac_compile"
  28742. case "(($ac_try" in
  28743. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28744. *) ac_try_echo=$ac_try;;
  28745. esac
  28746. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28747. (eval "$ac_compile") 2>conftest.er1
  28748. ac_status=$?
  28749. grep -v '^ *+' conftest.er1 >conftest.err
  28750. rm -f conftest.er1
  28751. cat conftest.err >&5
  28752. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28753. (exit $ac_status); } && {
  28754. test -z "$ac_c_werror_flag" ||
  28755. test ! -s conftest.err
  28756. } && test -s conftest.$ac_objext; then
  28757. ac_header_compiler=yes
  28758. else
  28759. echo "$as_me: failed program was:" >&5
  28760. sed 's/^/| /' conftest.$ac_ext >&5
  28761. ac_header_compiler=no
  28762. fi
  28763. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28764. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  28765. echo "${ECHO_T}$ac_header_compiler" >&6; }
  28766. # Is the header present?
  28767. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  28768. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  28769. cat >conftest.$ac_ext <<_ACEOF
  28770. /* confdefs.h. */
  28771. _ACEOF
  28772. cat confdefs.h >>conftest.$ac_ext
  28773. cat >>conftest.$ac_ext <<_ACEOF
  28774. /* end confdefs.h. */
  28775. #include <$ac_header>
  28776. _ACEOF
  28777. if { (ac_try="$ac_cpp conftest.$ac_ext"
  28778. case "(($ac_try" in
  28779. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28780. *) ac_try_echo=$ac_try;;
  28781. esac
  28782. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28783. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  28784. ac_status=$?
  28785. grep -v '^ *+' conftest.er1 >conftest.err
  28786. rm -f conftest.er1
  28787. cat conftest.err >&5
  28788. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28789. (exit $ac_status); } >/dev/null && {
  28790. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  28791. test ! -s conftest.err
  28792. }; then
  28793. ac_header_preproc=yes
  28794. else
  28795. echo "$as_me: failed program was:" >&5
  28796. sed 's/^/| /' conftest.$ac_ext >&5
  28797. ac_header_preproc=no
  28798. fi
  28799. rm -f conftest.err conftest.$ac_ext
  28800. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  28801. echo "${ECHO_T}$ac_header_preproc" >&6; }
  28802. # So? What about this header?
  28803. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  28804. yes:no: )
  28805. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  28806. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  28807. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  28808. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  28809. ac_header_preproc=yes
  28810. ;;
  28811. no:yes:* )
  28812. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  28813. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  28814. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  28815. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  28816. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  28817. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  28818. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  28819. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  28820. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  28821. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  28822. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  28823. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  28824. ;;
  28825. esac
  28826. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  28827. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  28828. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28829. echo $ECHO_N "(cached) $ECHO_C" >&6
  28830. else
  28831. eval "$as_ac_Header=\$ac_header_preproc"
  28832. fi
  28833. ac_res=`eval echo '${'$as_ac_Header'}'`
  28834. { echo "$as_me:$LINENO: result: $ac_res" >&5
  28835. echo "${ECHO_T}$ac_res" >&6; }
  28836. fi
  28837. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  28838. cat >>confdefs.h <<_ACEOF
  28839. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  28840. _ACEOF
  28841. fi
  28842. done
  28843. # --------------------------------------------
  28844. # Verify certain entries from AC_CHECK_HEADERS
  28845. # --------------------------------------------
  28846. for f in sys_types sys_mman sys_param sys_stat sys_wait \
  28847. string errno stdlib memory setjmp
  28848. do eval as_ac_var=\${ac_cv_header_${f}_h+set}
  28849. test "${as_ac_var}" = set || \
  28850. { { echo "$as_me:$LINENO: error: You must have ${f}.h on your system" >&5
  28851. echo "$as_me: error: You must have ${f}.h on your system" >&2;}
  28852. { (exit 1); exit 1; }; }
  28853. done
  28854. # ================================================
  28855. # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
  28856. # if varargs.h is present define HAVE_VARARGS_H.
  28857. # ================================================
  28858. for ac_header in stdarg.h varargs.h
  28859. do
  28860. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  28861. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28862. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  28863. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  28864. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28865. echo $ECHO_N "(cached) $ECHO_C" >&6
  28866. fi
  28867. ac_res=`eval echo '${'$as_ac_Header'}'`
  28868. { echo "$as_me:$LINENO: result: $ac_res" >&5
  28869. echo "${ECHO_T}$ac_res" >&6; }
  28870. else
  28871. # Is the header compilable?
  28872. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  28873. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  28874. cat >conftest.$ac_ext <<_ACEOF
  28875. /* confdefs.h. */
  28876. _ACEOF
  28877. cat confdefs.h >>conftest.$ac_ext
  28878. cat >>conftest.$ac_ext <<_ACEOF
  28879. /* end confdefs.h. */
  28880. $ac_includes_default
  28881. #include <$ac_header>
  28882. _ACEOF
  28883. rm -f conftest.$ac_objext
  28884. if { (ac_try="$ac_compile"
  28885. case "(($ac_try" in
  28886. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28887. *) ac_try_echo=$ac_try;;
  28888. esac
  28889. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28890. (eval "$ac_compile") 2>conftest.er1
  28891. ac_status=$?
  28892. grep -v '^ *+' conftest.er1 >conftest.err
  28893. rm -f conftest.er1
  28894. cat conftest.err >&5
  28895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28896. (exit $ac_status); } && {
  28897. test -z "$ac_c_werror_flag" ||
  28898. test ! -s conftest.err
  28899. } && test -s conftest.$ac_objext; then
  28900. ac_header_compiler=yes
  28901. else
  28902. echo "$as_me: failed program was:" >&5
  28903. sed 's/^/| /' conftest.$ac_ext >&5
  28904. ac_header_compiler=no
  28905. fi
  28906. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28907. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  28908. echo "${ECHO_T}$ac_header_compiler" >&6; }
  28909. # Is the header present?
  28910. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  28911. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  28912. cat >conftest.$ac_ext <<_ACEOF
  28913. /* confdefs.h. */
  28914. _ACEOF
  28915. cat confdefs.h >>conftest.$ac_ext
  28916. cat >>conftest.$ac_ext <<_ACEOF
  28917. /* end confdefs.h. */
  28918. #include <$ac_header>
  28919. _ACEOF
  28920. if { (ac_try="$ac_cpp conftest.$ac_ext"
  28921. case "(($ac_try" in
  28922. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28923. *) ac_try_echo=$ac_try;;
  28924. esac
  28925. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28926. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  28927. ac_status=$?
  28928. grep -v '^ *+' conftest.er1 >conftest.err
  28929. rm -f conftest.er1
  28930. cat conftest.err >&5
  28931. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28932. (exit $ac_status); } >/dev/null && {
  28933. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  28934. test ! -s conftest.err
  28935. }; then
  28936. ac_header_preproc=yes
  28937. else
  28938. echo "$as_me: failed program was:" >&5
  28939. sed 's/^/| /' conftest.$ac_ext >&5
  28940. ac_header_preproc=no
  28941. fi
  28942. rm -f conftest.err conftest.$ac_ext
  28943. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  28944. echo "${ECHO_T}$ac_header_preproc" >&6; }
  28945. # So? What about this header?
  28946. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  28947. yes:no: )
  28948. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  28949. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  28950. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  28951. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  28952. ac_header_preproc=yes
  28953. ;;
  28954. no:yes:* )
  28955. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  28956. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  28957. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  28958. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  28959. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  28960. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  28961. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  28962. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  28963. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  28964. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  28965. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  28966. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  28967. ;;
  28968. esac
  28969. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  28970. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  28971. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28972. echo $ECHO_N "(cached) $ECHO_C" >&6
  28973. else
  28974. eval "$as_ac_Header=\$ac_header_preproc"
  28975. fi
  28976. ac_res=`eval echo '${'$as_ac_Header'}'`
  28977. { echo "$as_me:$LINENO: result: $ac_res" >&5
  28978. echo "${ECHO_T}$ac_res" >&6; }
  28979. fi
  28980. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  28981. cat >>confdefs.h <<_ACEOF
  28982. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  28983. _ACEOF
  28984. break
  28985. fi
  28986. done
  28987. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  28988. { { echo "$as_me:$LINENO: error: You must have stdarg.h or varargs.h on your system" >&5
  28989. echo "$as_me: error: You must have stdarg.h or varargs.h on your system" >&2;}
  28990. { (exit 1); exit 1; }; }
  28991. fi
  28992. # ================================================
  28993. # Similarly for the string.h and strings.h headers
  28994. # ================================================
  28995. for ac_header in string.h strings.h
  28996. do
  28997. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  28998. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28999. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  29000. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  29001. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  29002. echo $ECHO_N "(cached) $ECHO_C" >&6
  29003. fi
  29004. ac_res=`eval echo '${'$as_ac_Header'}'`
  29005. { echo "$as_me:$LINENO: result: $ac_res" >&5
  29006. echo "${ECHO_T}$ac_res" >&6; }
  29007. else
  29008. # Is the header compilable?
  29009. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  29010. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  29011. cat >conftest.$ac_ext <<_ACEOF
  29012. /* confdefs.h. */
  29013. _ACEOF
  29014. cat confdefs.h >>conftest.$ac_ext
  29015. cat >>conftest.$ac_ext <<_ACEOF
  29016. /* end confdefs.h. */
  29017. $ac_includes_default
  29018. #include <$ac_header>
  29019. _ACEOF
  29020. rm -f conftest.$ac_objext
  29021. if { (ac_try="$ac_compile"
  29022. case "(($ac_try" in
  29023. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29024. *) ac_try_echo=$ac_try;;
  29025. esac
  29026. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29027. (eval "$ac_compile") 2>conftest.er1
  29028. ac_status=$?
  29029. grep -v '^ *+' conftest.er1 >conftest.err
  29030. rm -f conftest.er1
  29031. cat conftest.err >&5
  29032. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29033. (exit $ac_status); } && {
  29034. test -z "$ac_c_werror_flag" ||
  29035. test ! -s conftest.err
  29036. } && test -s conftest.$ac_objext; then
  29037. ac_header_compiler=yes
  29038. else
  29039. echo "$as_me: failed program was:" >&5
  29040. sed 's/^/| /' conftest.$ac_ext >&5
  29041. ac_header_compiler=no
  29042. fi
  29043. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29044. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  29045. echo "${ECHO_T}$ac_header_compiler" >&6; }
  29046. # Is the header present?
  29047. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  29048. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  29049. cat >conftest.$ac_ext <<_ACEOF
  29050. /* confdefs.h. */
  29051. _ACEOF
  29052. cat confdefs.h >>conftest.$ac_ext
  29053. cat >>conftest.$ac_ext <<_ACEOF
  29054. /* end confdefs.h. */
  29055. #include <$ac_header>
  29056. _ACEOF
  29057. if { (ac_try="$ac_cpp conftest.$ac_ext"
  29058. case "(($ac_try" in
  29059. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29060. *) ac_try_echo=$ac_try;;
  29061. esac
  29062. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29063. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  29064. ac_status=$?
  29065. grep -v '^ *+' conftest.er1 >conftest.err
  29066. rm -f conftest.er1
  29067. cat conftest.err >&5
  29068. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29069. (exit $ac_status); } >/dev/null && {
  29070. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  29071. test ! -s conftest.err
  29072. }; then
  29073. ac_header_preproc=yes
  29074. else
  29075. echo "$as_me: failed program was:" >&5
  29076. sed 's/^/| /' conftest.$ac_ext >&5
  29077. ac_header_preproc=no
  29078. fi
  29079. rm -f conftest.err conftest.$ac_ext
  29080. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  29081. echo "${ECHO_T}$ac_header_preproc" >&6; }
  29082. # So? What about this header?
  29083. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  29084. yes:no: )
  29085. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  29086. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  29087. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  29088. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  29089. ac_header_preproc=yes
  29090. ;;
  29091. no:yes:* )
  29092. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  29093. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  29094. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  29095. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  29096. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  29097. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  29098. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  29099. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  29100. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  29101. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  29102. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  29103. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  29104. ;;
  29105. esac
  29106. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  29107. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  29108. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  29109. echo $ECHO_N "(cached) $ECHO_C" >&6
  29110. else
  29111. eval "$as_ac_Header=\$ac_header_preproc"
  29112. fi
  29113. ac_res=`eval echo '${'$as_ac_Header'}'`
  29114. { echo "$as_me:$LINENO: result: $ac_res" >&5
  29115. echo "${ECHO_T}$ac_res" >&6; }
  29116. fi
  29117. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  29118. cat >>confdefs.h <<_ACEOF
  29119. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  29120. _ACEOF
  29121. break
  29122. fi
  29123. done
  29124. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  29125. { { echo "$as_me:$LINENO: error: You must have string.h or strings.h on your system" >&5
  29126. echo "$as_me: error: You must have string.h or strings.h on your system" >&2;}
  29127. { (exit 1); exit 1; }; }
  29128. fi
  29129. # =====================
  29130. # ...and limits headers
  29131. # =====================
  29132. for ac_header in limits.h sys/limits.h values.h
  29133. do
  29134. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  29135. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  29136. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  29137. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  29138. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  29139. echo $ECHO_N "(cached) $ECHO_C" >&6
  29140. fi
  29141. ac_res=`eval echo '${'$as_ac_Header'}'`
  29142. { echo "$as_me:$LINENO: result: $ac_res" >&5
  29143. echo "${ECHO_T}$ac_res" >&6; }
  29144. else
  29145. # Is the header compilable?
  29146. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  29147. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  29148. cat >conftest.$ac_ext <<_ACEOF
  29149. /* confdefs.h. */
  29150. _ACEOF
  29151. cat confdefs.h >>conftest.$ac_ext
  29152. cat >>conftest.$ac_ext <<_ACEOF
  29153. /* end confdefs.h. */
  29154. $ac_includes_default
  29155. #include <$ac_header>
  29156. _ACEOF
  29157. rm -f conftest.$ac_objext
  29158. if { (ac_try="$ac_compile"
  29159. case "(($ac_try" in
  29160. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29161. *) ac_try_echo=$ac_try;;
  29162. esac
  29163. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29164. (eval "$ac_compile") 2>conftest.er1
  29165. ac_status=$?
  29166. grep -v '^ *+' conftest.er1 >conftest.err
  29167. rm -f conftest.er1
  29168. cat conftest.err >&5
  29169. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29170. (exit $ac_status); } && {
  29171. test -z "$ac_c_werror_flag" ||
  29172. test ! -s conftest.err
  29173. } && test -s conftest.$ac_objext; then
  29174. ac_header_compiler=yes
  29175. else
  29176. echo "$as_me: failed program was:" >&5
  29177. sed 's/^/| /' conftest.$ac_ext >&5
  29178. ac_header_compiler=no
  29179. fi
  29180. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29181. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  29182. echo "${ECHO_T}$ac_header_compiler" >&6; }
  29183. # Is the header present?
  29184. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  29185. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  29186. cat >conftest.$ac_ext <<_ACEOF
  29187. /* confdefs.h. */
  29188. _ACEOF
  29189. cat confdefs.h >>conftest.$ac_ext
  29190. cat >>conftest.$ac_ext <<_ACEOF
  29191. /* end confdefs.h. */
  29192. #include <$ac_header>
  29193. _ACEOF
  29194. if { (ac_try="$ac_cpp conftest.$ac_ext"
  29195. case "(($ac_try" in
  29196. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29197. *) ac_try_echo=$ac_try;;
  29198. esac
  29199. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29200. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  29201. ac_status=$?
  29202. grep -v '^ *+' conftest.er1 >conftest.err
  29203. rm -f conftest.er1
  29204. cat conftest.err >&5
  29205. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29206. (exit $ac_status); } >/dev/null && {
  29207. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  29208. test ! -s conftest.err
  29209. }; then
  29210. ac_header_preproc=yes
  29211. else
  29212. echo "$as_me: failed program was:" >&5
  29213. sed 's/^/| /' conftest.$ac_ext >&5
  29214. ac_header_preproc=no
  29215. fi
  29216. rm -f conftest.err conftest.$ac_ext
  29217. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  29218. echo "${ECHO_T}$ac_header_preproc" >&6; }
  29219. # So? What about this header?
  29220. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  29221. yes:no: )
  29222. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  29223. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  29224. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  29225. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  29226. ac_header_preproc=yes
  29227. ;;
  29228. no:yes:* )
  29229. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  29230. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  29231. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  29232. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  29233. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  29234. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  29235. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  29236. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  29237. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  29238. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  29239. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  29240. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  29241. ;;
  29242. esac
  29243. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  29244. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  29245. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  29246. echo $ECHO_N "(cached) $ECHO_C" >&6
  29247. else
  29248. eval "$as_ac_Header=\$ac_header_preproc"
  29249. fi
  29250. ac_res=`eval echo '${'$as_ac_Header'}'`
  29251. { echo "$as_me:$LINENO: result: $ac_res" >&5
  29252. echo "${ECHO_T}$ac_res" >&6; }
  29253. fi
  29254. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  29255. cat >>confdefs.h <<_ACEOF
  29256. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  29257. _ACEOF
  29258. break
  29259. fi
  29260. done
  29261. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  29262. { { echo "$as_me:$LINENO: error: You must have one of limits.h, sys/limits.h or values.h" >&5
  29263. echo "$as_me: error: You must have one of limits.h, sys/limits.h or values.h" >&2;}
  29264. { (exit 1); exit 1; }; }
  29265. fi
  29266. # ========================
  29267. # ...and int types headers
  29268. # ========================
  29269. for ac_header in stdint.h inttypes.h
  29270. do
  29271. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  29272. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  29273. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  29274. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  29275. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  29276. echo $ECHO_N "(cached) $ECHO_C" >&6
  29277. fi
  29278. ac_res=`eval echo '${'$as_ac_Header'}'`
  29279. { echo "$as_me:$LINENO: result: $ac_res" >&5
  29280. echo "${ECHO_T}$ac_res" >&6; }
  29281. else
  29282. # Is the header compilable?
  29283. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  29284. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  29285. cat >conftest.$ac_ext <<_ACEOF
  29286. /* confdefs.h. */
  29287. _ACEOF
  29288. cat confdefs.h >>conftest.$ac_ext
  29289. cat >>conftest.$ac_ext <<_ACEOF
  29290. /* end confdefs.h. */
  29291. $ac_includes_default
  29292. #include <$ac_header>
  29293. _ACEOF
  29294. rm -f conftest.$ac_objext
  29295. if { (ac_try="$ac_compile"
  29296. case "(($ac_try" in
  29297. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29298. *) ac_try_echo=$ac_try;;
  29299. esac
  29300. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29301. (eval "$ac_compile") 2>conftest.er1
  29302. ac_status=$?
  29303. grep -v '^ *+' conftest.er1 >conftest.err
  29304. rm -f conftest.er1
  29305. cat conftest.err >&5
  29306. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29307. (exit $ac_status); } && {
  29308. test -z "$ac_c_werror_flag" ||
  29309. test ! -s conftest.err
  29310. } && test -s conftest.$ac_objext; then
  29311. ac_header_compiler=yes
  29312. else
  29313. echo "$as_me: failed program was:" >&5
  29314. sed 's/^/| /' conftest.$ac_ext >&5
  29315. ac_header_compiler=no
  29316. fi
  29317. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29318. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  29319. echo "${ECHO_T}$ac_header_compiler" >&6; }
  29320. # Is the header present?
  29321. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  29322. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  29323. cat >conftest.$ac_ext <<_ACEOF
  29324. /* confdefs.h. */
  29325. _ACEOF
  29326. cat confdefs.h >>conftest.$ac_ext
  29327. cat >>conftest.$ac_ext <<_ACEOF
  29328. /* end confdefs.h. */
  29329. #include <$ac_header>
  29330. _ACEOF
  29331. if { (ac_try="$ac_cpp conftest.$ac_ext"
  29332. case "(($ac_try" in
  29333. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29334. *) ac_try_echo=$ac_try;;
  29335. esac
  29336. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29337. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  29338. ac_status=$?
  29339. grep -v '^ *+' conftest.er1 >conftest.err
  29340. rm -f conftest.er1
  29341. cat conftest.err >&5
  29342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29343. (exit $ac_status); } >/dev/null && {
  29344. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  29345. test ! -s conftest.err
  29346. }; then
  29347. ac_header_preproc=yes
  29348. else
  29349. echo "$as_me: failed program was:" >&5
  29350. sed 's/^/| /' conftest.$ac_ext >&5
  29351. ac_header_preproc=no
  29352. fi
  29353. rm -f conftest.err conftest.$ac_ext
  29354. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  29355. echo "${ECHO_T}$ac_header_preproc" >&6; }
  29356. # So? What about this header?
  29357. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  29358. yes:no: )
  29359. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  29360. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  29361. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  29362. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  29363. ac_header_preproc=yes
  29364. ;;
  29365. no:yes:* )
  29366. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  29367. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  29368. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  29369. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  29370. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  29371. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  29372. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  29373. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  29374. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  29375. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  29376. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  29377. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  29378. ;;
  29379. esac
  29380. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  29381. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  29382. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  29383. echo $ECHO_N "(cached) $ECHO_C" >&6
  29384. else
  29385. eval "$as_ac_Header=\$ac_header_preproc"
  29386. fi
  29387. ac_res=`eval echo '${'$as_ac_Header'}'`
  29388. { echo "$as_me:$LINENO: result: $ac_res" >&5
  29389. echo "${ECHO_T}$ac_res" >&6; }
  29390. fi
  29391. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  29392. cat >>confdefs.h <<_ACEOF
  29393. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  29394. _ACEOF
  29395. break
  29396. fi
  29397. done
  29398. { echo "$as_me:$LINENO: checking for int8_t" >&5
  29399. echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
  29400. if test "${ac_cv_type_int8_t+set}" = set; then
  29401. echo $ECHO_N "(cached) $ECHO_C" >&6
  29402. else
  29403. cat >conftest.$ac_ext <<_ACEOF
  29404. /* confdefs.h. */
  29405. _ACEOF
  29406. cat confdefs.h >>conftest.$ac_ext
  29407. cat >>conftest.$ac_ext <<_ACEOF
  29408. /* end confdefs.h. */
  29409. $ac_includes_default
  29410. typedef int8_t ac__type_new_;
  29411. int
  29412. main ()
  29413. {
  29414. if ((ac__type_new_ *) 0)
  29415. return 0;
  29416. if (sizeof (ac__type_new_))
  29417. return 0;
  29418. ;
  29419. return 0;
  29420. }
  29421. _ACEOF
  29422. rm -f conftest.$ac_objext
  29423. if { (ac_try="$ac_compile"
  29424. case "(($ac_try" in
  29425. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29426. *) ac_try_echo=$ac_try;;
  29427. esac
  29428. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29429. (eval "$ac_compile") 2>conftest.er1
  29430. ac_status=$?
  29431. grep -v '^ *+' conftest.er1 >conftest.err
  29432. rm -f conftest.er1
  29433. cat conftest.err >&5
  29434. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29435. (exit $ac_status); } && {
  29436. test -z "$ac_c_werror_flag" ||
  29437. test ! -s conftest.err
  29438. } && test -s conftest.$ac_objext; then
  29439. ac_cv_type_int8_t=yes
  29440. else
  29441. echo "$as_me: failed program was:" >&5
  29442. sed 's/^/| /' conftest.$ac_ext >&5
  29443. ac_cv_type_int8_t=no
  29444. fi
  29445. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29446. fi
  29447. { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
  29448. echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
  29449. if test $ac_cv_type_int8_t = yes; then
  29450. cat >>confdefs.h <<_ACEOF
  29451. #define HAVE_INT8_T 1
  29452. _ACEOF
  29453. fi
  29454. { echo "$as_me:$LINENO: checking for uint8_t" >&5
  29455. echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
  29456. if test "${ac_cv_type_uint8_t+set}" = set; then
  29457. echo $ECHO_N "(cached) $ECHO_C" >&6
  29458. else
  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. typedef uint8_t ac__type_new_;
  29467. int
  29468. main ()
  29469. {
  29470. if ((ac__type_new_ *) 0)
  29471. return 0;
  29472. if (sizeof (ac__type_new_))
  29473. return 0;
  29474. ;
  29475. return 0;
  29476. }
  29477. _ACEOF
  29478. rm -f conftest.$ac_objext
  29479. if { (ac_try="$ac_compile"
  29480. case "(($ac_try" in
  29481. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29482. *) ac_try_echo=$ac_try;;
  29483. esac
  29484. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29485. (eval "$ac_compile") 2>conftest.er1
  29486. ac_status=$?
  29487. grep -v '^ *+' conftest.er1 >conftest.err
  29488. rm -f conftest.er1
  29489. cat conftest.err >&5
  29490. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29491. (exit $ac_status); } && {
  29492. test -z "$ac_c_werror_flag" ||
  29493. test ! -s conftest.err
  29494. } && test -s conftest.$ac_objext; then
  29495. ac_cv_type_uint8_t=yes
  29496. else
  29497. echo "$as_me: failed program was:" >&5
  29498. sed 's/^/| /' conftest.$ac_ext >&5
  29499. ac_cv_type_uint8_t=no
  29500. fi
  29501. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29502. fi
  29503. { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
  29504. echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
  29505. if test $ac_cv_type_uint8_t = yes; then
  29506. cat >>confdefs.h <<_ACEOF
  29507. #define HAVE_UINT8_T 1
  29508. _ACEOF
  29509. fi
  29510. { echo "$as_me:$LINENO: checking for int16_t" >&5
  29511. echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
  29512. if test "${ac_cv_type_int16_t+set}" = set; then
  29513. echo $ECHO_N "(cached) $ECHO_C" >&6
  29514. else
  29515. cat >conftest.$ac_ext <<_ACEOF
  29516. /* confdefs.h. */
  29517. _ACEOF
  29518. cat confdefs.h >>conftest.$ac_ext
  29519. cat >>conftest.$ac_ext <<_ACEOF
  29520. /* end confdefs.h. */
  29521. $ac_includes_default
  29522. typedef int16_t ac__type_new_;
  29523. int
  29524. main ()
  29525. {
  29526. if ((ac__type_new_ *) 0)
  29527. return 0;
  29528. if (sizeof (ac__type_new_))
  29529. return 0;
  29530. ;
  29531. return 0;
  29532. }
  29533. _ACEOF
  29534. rm -f conftest.$ac_objext
  29535. if { (ac_try="$ac_compile"
  29536. case "(($ac_try" in
  29537. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29538. *) ac_try_echo=$ac_try;;
  29539. esac
  29540. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29541. (eval "$ac_compile") 2>conftest.er1
  29542. ac_status=$?
  29543. grep -v '^ *+' conftest.er1 >conftest.err
  29544. rm -f conftest.er1
  29545. cat conftest.err >&5
  29546. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29547. (exit $ac_status); } && {
  29548. test -z "$ac_c_werror_flag" ||
  29549. test ! -s conftest.err
  29550. } && test -s conftest.$ac_objext; then
  29551. ac_cv_type_int16_t=yes
  29552. else
  29553. echo "$as_me: failed program was:" >&5
  29554. sed 's/^/| /' conftest.$ac_ext >&5
  29555. ac_cv_type_int16_t=no
  29556. fi
  29557. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29558. fi
  29559. { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
  29560. echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
  29561. if test $ac_cv_type_int16_t = yes; then
  29562. cat >>confdefs.h <<_ACEOF
  29563. #define HAVE_INT16_T 1
  29564. _ACEOF
  29565. fi
  29566. { echo "$as_me:$LINENO: checking for uint16_t" >&5
  29567. echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
  29568. if test "${ac_cv_type_uint16_t+set}" = set; then
  29569. echo $ECHO_N "(cached) $ECHO_C" >&6
  29570. else
  29571. cat >conftest.$ac_ext <<_ACEOF
  29572. /* confdefs.h. */
  29573. _ACEOF
  29574. cat confdefs.h >>conftest.$ac_ext
  29575. cat >>conftest.$ac_ext <<_ACEOF
  29576. /* end confdefs.h. */
  29577. $ac_includes_default
  29578. typedef uint16_t ac__type_new_;
  29579. int
  29580. main ()
  29581. {
  29582. if ((ac__type_new_ *) 0)
  29583. return 0;
  29584. if (sizeof (ac__type_new_))
  29585. return 0;
  29586. ;
  29587. return 0;
  29588. }
  29589. _ACEOF
  29590. rm -f conftest.$ac_objext
  29591. if { (ac_try="$ac_compile"
  29592. case "(($ac_try" in
  29593. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29594. *) ac_try_echo=$ac_try;;
  29595. esac
  29596. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29597. (eval "$ac_compile") 2>conftest.er1
  29598. ac_status=$?
  29599. grep -v '^ *+' conftest.er1 >conftest.err
  29600. rm -f conftest.er1
  29601. cat conftest.err >&5
  29602. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29603. (exit $ac_status); } && {
  29604. test -z "$ac_c_werror_flag" ||
  29605. test ! -s conftest.err
  29606. } && test -s conftest.$ac_objext; then
  29607. ac_cv_type_uint16_t=yes
  29608. else
  29609. echo "$as_me: failed program was:" >&5
  29610. sed 's/^/| /' conftest.$ac_ext >&5
  29611. ac_cv_type_uint16_t=no
  29612. fi
  29613. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29614. fi
  29615. { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
  29616. echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
  29617. if test $ac_cv_type_uint16_t = yes; then
  29618. cat >>confdefs.h <<_ACEOF
  29619. #define HAVE_UINT16_T 1
  29620. _ACEOF
  29621. fi
  29622. { echo "$as_me:$LINENO: checking for int32_t" >&5
  29623. echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
  29624. if test "${ac_cv_type_int32_t+set}" = set; then
  29625. echo $ECHO_N "(cached) $ECHO_C" >&6
  29626. else
  29627. cat >conftest.$ac_ext <<_ACEOF
  29628. /* confdefs.h. */
  29629. _ACEOF
  29630. cat confdefs.h >>conftest.$ac_ext
  29631. cat >>conftest.$ac_ext <<_ACEOF
  29632. /* end confdefs.h. */
  29633. $ac_includes_default
  29634. typedef int32_t ac__type_new_;
  29635. int
  29636. main ()
  29637. {
  29638. if ((ac__type_new_ *) 0)
  29639. return 0;
  29640. if (sizeof (ac__type_new_))
  29641. return 0;
  29642. ;
  29643. return 0;
  29644. }
  29645. _ACEOF
  29646. rm -f conftest.$ac_objext
  29647. if { (ac_try="$ac_compile"
  29648. case "(($ac_try" in
  29649. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29650. *) ac_try_echo=$ac_try;;
  29651. esac
  29652. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29653. (eval "$ac_compile") 2>conftest.er1
  29654. ac_status=$?
  29655. grep -v '^ *+' conftest.er1 >conftest.err
  29656. rm -f conftest.er1
  29657. cat conftest.err >&5
  29658. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29659. (exit $ac_status); } && {
  29660. test -z "$ac_c_werror_flag" ||
  29661. test ! -s conftest.err
  29662. } && test -s conftest.$ac_objext; then
  29663. ac_cv_type_int32_t=yes
  29664. else
  29665. echo "$as_me: failed program was:" >&5
  29666. sed 's/^/| /' conftest.$ac_ext >&5
  29667. ac_cv_type_int32_t=no
  29668. fi
  29669. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29670. fi
  29671. { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
  29672. echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
  29673. if test $ac_cv_type_int32_t = yes; then
  29674. cat >>confdefs.h <<_ACEOF
  29675. #define HAVE_INT32_T 1
  29676. _ACEOF
  29677. fi
  29678. { echo "$as_me:$LINENO: checking for uint32_t" >&5
  29679. echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
  29680. if test "${ac_cv_type_uint32_t+set}" = set; then
  29681. echo $ECHO_N "(cached) $ECHO_C" >&6
  29682. else
  29683. cat >conftest.$ac_ext <<_ACEOF
  29684. /* confdefs.h. */
  29685. _ACEOF
  29686. cat confdefs.h >>conftest.$ac_ext
  29687. cat >>conftest.$ac_ext <<_ACEOF
  29688. /* end confdefs.h. */
  29689. $ac_includes_default
  29690. typedef uint32_t ac__type_new_;
  29691. int
  29692. main ()
  29693. {
  29694. if ((ac__type_new_ *) 0)
  29695. return 0;
  29696. if (sizeof (ac__type_new_))
  29697. return 0;
  29698. ;
  29699. return 0;
  29700. }
  29701. _ACEOF
  29702. rm -f conftest.$ac_objext
  29703. if { (ac_try="$ac_compile"
  29704. case "(($ac_try" in
  29705. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29706. *) ac_try_echo=$ac_try;;
  29707. esac
  29708. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29709. (eval "$ac_compile") 2>conftest.er1
  29710. ac_status=$?
  29711. grep -v '^ *+' conftest.er1 >conftest.err
  29712. rm -f conftest.er1
  29713. cat conftest.err >&5
  29714. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29715. (exit $ac_status); } && {
  29716. test -z "$ac_c_werror_flag" ||
  29717. test ! -s conftest.err
  29718. } && test -s conftest.$ac_objext; then
  29719. ac_cv_type_uint32_t=yes
  29720. else
  29721. echo "$as_me: failed program was:" >&5
  29722. sed 's/^/| /' conftest.$ac_ext >&5
  29723. ac_cv_type_uint32_t=no
  29724. fi
  29725. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29726. fi
  29727. { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
  29728. echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
  29729. if test $ac_cv_type_uint32_t = yes; then
  29730. cat >>confdefs.h <<_ACEOF
  29731. #define HAVE_UINT32_T 1
  29732. _ACEOF
  29733. fi
  29734. { echo "$as_me:$LINENO: checking for intptr_t" >&5
  29735. echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
  29736. if test "${ac_cv_type_intptr_t+set}" = set; then
  29737. echo $ECHO_N "(cached) $ECHO_C" >&6
  29738. else
  29739. cat >conftest.$ac_ext <<_ACEOF
  29740. /* confdefs.h. */
  29741. _ACEOF
  29742. cat confdefs.h >>conftest.$ac_ext
  29743. cat >>conftest.$ac_ext <<_ACEOF
  29744. /* end confdefs.h. */
  29745. $ac_includes_default
  29746. typedef intptr_t ac__type_new_;
  29747. int
  29748. main ()
  29749. {
  29750. if ((ac__type_new_ *) 0)
  29751. return 0;
  29752. if (sizeof (ac__type_new_))
  29753. return 0;
  29754. ;
  29755. return 0;
  29756. }
  29757. _ACEOF
  29758. rm -f conftest.$ac_objext
  29759. if { (ac_try="$ac_compile"
  29760. case "(($ac_try" in
  29761. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29762. *) ac_try_echo=$ac_try;;
  29763. esac
  29764. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29765. (eval "$ac_compile") 2>conftest.er1
  29766. ac_status=$?
  29767. grep -v '^ *+' conftest.er1 >conftest.err
  29768. rm -f conftest.er1
  29769. cat conftest.err >&5
  29770. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29771. (exit $ac_status); } && {
  29772. test -z "$ac_c_werror_flag" ||
  29773. test ! -s conftest.err
  29774. } && test -s conftest.$ac_objext; then
  29775. ac_cv_type_intptr_t=yes
  29776. else
  29777. echo "$as_me: failed program was:" >&5
  29778. sed 's/^/| /' conftest.$ac_ext >&5
  29779. ac_cv_type_intptr_t=no
  29780. fi
  29781. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29782. fi
  29783. { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
  29784. echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
  29785. if test $ac_cv_type_intptr_t = yes; then
  29786. cat >>confdefs.h <<_ACEOF
  29787. #define HAVE_INTPTR_T 1
  29788. _ACEOF
  29789. fi
  29790. { echo "$as_me:$LINENO: checking for uint_t" >&5
  29791. echo $ECHO_N "checking for uint_t... $ECHO_C" >&6; }
  29792. if test "${ac_cv_type_uint_t+set}" = set; then
  29793. echo $ECHO_N "(cached) $ECHO_C" >&6
  29794. else
  29795. cat >conftest.$ac_ext <<_ACEOF
  29796. /* confdefs.h. */
  29797. _ACEOF
  29798. cat confdefs.h >>conftest.$ac_ext
  29799. cat >>conftest.$ac_ext <<_ACEOF
  29800. /* end confdefs.h. */
  29801. $ac_includes_default
  29802. typedef uint_t ac__type_new_;
  29803. int
  29804. main ()
  29805. {
  29806. if ((ac__type_new_ *) 0)
  29807. return 0;
  29808. if (sizeof (ac__type_new_))
  29809. return 0;
  29810. ;
  29811. return 0;
  29812. }
  29813. _ACEOF
  29814. rm -f conftest.$ac_objext
  29815. if { (ac_try="$ac_compile"
  29816. case "(($ac_try" in
  29817. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29818. *) ac_try_echo=$ac_try;;
  29819. esac
  29820. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29821. (eval "$ac_compile") 2>conftest.er1
  29822. ac_status=$?
  29823. grep -v '^ *+' conftest.er1 >conftest.err
  29824. rm -f conftest.er1
  29825. cat conftest.err >&5
  29826. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29827. (exit $ac_status); } && {
  29828. test -z "$ac_c_werror_flag" ||
  29829. test ! -s conftest.err
  29830. } && test -s conftest.$ac_objext; then
  29831. ac_cv_type_uint_t=yes
  29832. else
  29833. echo "$as_me: failed program was:" >&5
  29834. sed 's/^/| /' conftest.$ac_ext >&5
  29835. ac_cv_type_uint_t=no
  29836. fi
  29837. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29838. fi
  29839. { echo "$as_me:$LINENO: result: $ac_cv_type_uint_t" >&5
  29840. echo "${ECHO_T}$ac_cv_type_uint_t" >&6; }
  29841. if test $ac_cv_type_uint_t = yes; then
  29842. cat >>confdefs.h <<_ACEOF
  29843. #define HAVE_UINT_T 1
  29844. _ACEOF
  29845. fi
  29846. # ====================
  29847. # uintptr type & sizes
  29848. # ====================
  29849. { echo "$as_me:$LINENO: checking for uintptr_t" >&5
  29850. echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
  29851. if test "${ac_cv_type_uintptr_t+set}" = set; then
  29852. echo $ECHO_N "(cached) $ECHO_C" >&6
  29853. else
  29854. cat >conftest.$ac_ext <<_ACEOF
  29855. /* confdefs.h. */
  29856. _ACEOF
  29857. cat confdefs.h >>conftest.$ac_ext
  29858. cat >>conftest.$ac_ext <<_ACEOF
  29859. /* end confdefs.h. */
  29860. $ac_includes_default
  29861. typedef uintptr_t ac__type_new_;
  29862. int
  29863. main ()
  29864. {
  29865. if ((ac__type_new_ *) 0)
  29866. return 0;
  29867. if (sizeof (ac__type_new_))
  29868. return 0;
  29869. ;
  29870. return 0;
  29871. }
  29872. _ACEOF
  29873. rm -f conftest.$ac_objext
  29874. if { (ac_try="$ac_compile"
  29875. case "(($ac_try" in
  29876. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29877. *) ac_try_echo=$ac_try;;
  29878. esac
  29879. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29880. (eval "$ac_compile") 2>conftest.er1
  29881. ac_status=$?
  29882. grep -v '^ *+' conftest.er1 >conftest.err
  29883. rm -f conftest.er1
  29884. cat conftest.err >&5
  29885. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29886. (exit $ac_status); } && {
  29887. test -z "$ac_c_werror_flag" ||
  29888. test ! -s conftest.err
  29889. } && test -s conftest.$ac_objext; then
  29890. ac_cv_type_uintptr_t=yes
  29891. else
  29892. echo "$as_me: failed program was:" >&5
  29893. sed 's/^/| /' conftest.$ac_ext >&5
  29894. ac_cv_type_uintptr_t=no
  29895. fi
  29896. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29897. fi
  29898. { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
  29899. echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
  29900. if test $ac_cv_type_uintptr_t = yes; then
  29901. cat >>confdefs.h <<_ACEOF
  29902. #define HAVE_UINTPTR_T 1
  29903. _ACEOF
  29904. else
  29905. cat >>confdefs.h <<\_ACEOF
  29906. #define uintptr_t unsigned long
  29907. _ACEOF
  29908. fi
  29909. { echo "$as_me:$LINENO: checking for char*" >&5
  29910. echo $ECHO_N "checking for char*... $ECHO_C" >&6; }
  29911. if test "${ac_cv_type_charp+set}" = set; then
  29912. echo $ECHO_N "(cached) $ECHO_C" >&6
  29913. else
  29914. cat >conftest.$ac_ext <<_ACEOF
  29915. /* confdefs.h. */
  29916. _ACEOF
  29917. cat confdefs.h >>conftest.$ac_ext
  29918. cat >>conftest.$ac_ext <<_ACEOF
  29919. /* end confdefs.h. */
  29920. $ac_includes_default
  29921. typedef char* ac__type_new_;
  29922. int
  29923. main ()
  29924. {
  29925. if ((ac__type_new_ *) 0)
  29926. return 0;
  29927. if (sizeof (ac__type_new_))
  29928. return 0;
  29929. ;
  29930. return 0;
  29931. }
  29932. _ACEOF
  29933. rm -f conftest.$ac_objext
  29934. if { (ac_try="$ac_compile"
  29935. case "(($ac_try" in
  29936. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29937. *) ac_try_echo=$ac_try;;
  29938. esac
  29939. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29940. (eval "$ac_compile") 2>conftest.er1
  29941. ac_status=$?
  29942. grep -v '^ *+' conftest.er1 >conftest.err
  29943. rm -f conftest.er1
  29944. cat conftest.err >&5
  29945. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29946. (exit $ac_status); } && {
  29947. test -z "$ac_c_werror_flag" ||
  29948. test ! -s conftest.err
  29949. } && test -s conftest.$ac_objext; then
  29950. ac_cv_type_charp=yes
  29951. else
  29952. echo "$as_me: failed program was:" >&5
  29953. sed 's/^/| /' conftest.$ac_ext >&5
  29954. ac_cv_type_charp=no
  29955. fi
  29956. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29957. fi
  29958. { echo "$as_me:$LINENO: result: $ac_cv_type_charp" >&5
  29959. echo "${ECHO_T}$ac_cv_type_charp" >&6; }
  29960. # The cast to long int works around a bug in the HP C Compiler
  29961. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  29962. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  29963. # This bug is HP SR number 8606223364.
  29964. { echo "$as_me:$LINENO: checking size of char*" >&5
  29965. echo $ECHO_N "checking size of char*... $ECHO_C" >&6; }
  29966. if test "${ac_cv_sizeof_charp+set}" = set; then
  29967. echo $ECHO_N "(cached) $ECHO_C" >&6
  29968. else
  29969. if test "$cross_compiling" = yes; then
  29970. # Depending upon the size, compute the lo and hi bounds.
  29971. cat >conftest.$ac_ext <<_ACEOF
  29972. /* confdefs.h. */
  29973. _ACEOF
  29974. cat confdefs.h >>conftest.$ac_ext
  29975. cat >>conftest.$ac_ext <<_ACEOF
  29976. /* end confdefs.h. */
  29977. $ac_includes_default
  29978. typedef char* ac__type_sizeof_;
  29979. int
  29980. main ()
  29981. {
  29982. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  29983. test_array [0] = 0
  29984. ;
  29985. return 0;
  29986. }
  29987. _ACEOF
  29988. rm -f conftest.$ac_objext
  29989. if { (ac_try="$ac_compile"
  29990. case "(($ac_try" in
  29991. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29992. *) ac_try_echo=$ac_try;;
  29993. esac
  29994. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29995. (eval "$ac_compile") 2>conftest.er1
  29996. ac_status=$?
  29997. grep -v '^ *+' conftest.er1 >conftest.err
  29998. rm -f conftest.er1
  29999. cat conftest.err >&5
  30000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30001. (exit $ac_status); } && {
  30002. test -z "$ac_c_werror_flag" ||
  30003. test ! -s conftest.err
  30004. } && test -s conftest.$ac_objext; then
  30005. ac_lo=0 ac_mid=0
  30006. while :; do
  30007. cat >conftest.$ac_ext <<_ACEOF
  30008. /* confdefs.h. */
  30009. _ACEOF
  30010. cat confdefs.h >>conftest.$ac_ext
  30011. cat >>conftest.$ac_ext <<_ACEOF
  30012. /* end confdefs.h. */
  30013. $ac_includes_default
  30014. typedef char* ac__type_sizeof_;
  30015. int
  30016. main ()
  30017. {
  30018. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  30019. test_array [0] = 0
  30020. ;
  30021. return 0;
  30022. }
  30023. _ACEOF
  30024. rm -f conftest.$ac_objext
  30025. if { (ac_try="$ac_compile"
  30026. case "(($ac_try" in
  30027. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30028. *) ac_try_echo=$ac_try;;
  30029. esac
  30030. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30031. (eval "$ac_compile") 2>conftest.er1
  30032. ac_status=$?
  30033. grep -v '^ *+' conftest.er1 >conftest.err
  30034. rm -f conftest.er1
  30035. cat conftest.err >&5
  30036. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30037. (exit $ac_status); } && {
  30038. test -z "$ac_c_werror_flag" ||
  30039. test ! -s conftest.err
  30040. } && test -s conftest.$ac_objext; then
  30041. ac_hi=$ac_mid; break
  30042. else
  30043. echo "$as_me: failed program was:" >&5
  30044. sed 's/^/| /' conftest.$ac_ext >&5
  30045. ac_lo=`expr $ac_mid + 1`
  30046. if test $ac_lo -le $ac_mid; then
  30047. ac_lo= ac_hi=
  30048. break
  30049. fi
  30050. ac_mid=`expr 2 '*' $ac_mid + 1`
  30051. fi
  30052. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30053. done
  30054. else
  30055. echo "$as_me: failed program was:" >&5
  30056. sed 's/^/| /' conftest.$ac_ext >&5
  30057. cat >conftest.$ac_ext <<_ACEOF
  30058. /* confdefs.h. */
  30059. _ACEOF
  30060. cat confdefs.h >>conftest.$ac_ext
  30061. cat >>conftest.$ac_ext <<_ACEOF
  30062. /* end confdefs.h. */
  30063. $ac_includes_default
  30064. typedef char* ac__type_sizeof_;
  30065. int
  30066. main ()
  30067. {
  30068. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  30069. test_array [0] = 0
  30070. ;
  30071. return 0;
  30072. }
  30073. _ACEOF
  30074. rm -f conftest.$ac_objext
  30075. if { (ac_try="$ac_compile"
  30076. case "(($ac_try" in
  30077. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30078. *) ac_try_echo=$ac_try;;
  30079. esac
  30080. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30081. (eval "$ac_compile") 2>conftest.er1
  30082. ac_status=$?
  30083. grep -v '^ *+' conftest.er1 >conftest.err
  30084. rm -f conftest.er1
  30085. cat conftest.err >&5
  30086. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30087. (exit $ac_status); } && {
  30088. test -z "$ac_c_werror_flag" ||
  30089. test ! -s conftest.err
  30090. } && test -s conftest.$ac_objext; then
  30091. ac_hi=-1 ac_mid=-1
  30092. while :; do
  30093. cat >conftest.$ac_ext <<_ACEOF
  30094. /* confdefs.h. */
  30095. _ACEOF
  30096. cat confdefs.h >>conftest.$ac_ext
  30097. cat >>conftest.$ac_ext <<_ACEOF
  30098. /* end confdefs.h. */
  30099. $ac_includes_default
  30100. typedef char* ac__type_sizeof_;
  30101. int
  30102. main ()
  30103. {
  30104. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  30105. test_array [0] = 0
  30106. ;
  30107. return 0;
  30108. }
  30109. _ACEOF
  30110. rm -f conftest.$ac_objext
  30111. if { (ac_try="$ac_compile"
  30112. case "(($ac_try" in
  30113. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30114. *) ac_try_echo=$ac_try;;
  30115. esac
  30116. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30117. (eval "$ac_compile") 2>conftest.er1
  30118. ac_status=$?
  30119. grep -v '^ *+' conftest.er1 >conftest.err
  30120. rm -f conftest.er1
  30121. cat conftest.err >&5
  30122. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30123. (exit $ac_status); } && {
  30124. test -z "$ac_c_werror_flag" ||
  30125. test ! -s conftest.err
  30126. } && test -s conftest.$ac_objext; then
  30127. ac_lo=$ac_mid; break
  30128. else
  30129. echo "$as_me: failed program was:" >&5
  30130. sed 's/^/| /' conftest.$ac_ext >&5
  30131. ac_hi=`expr '(' $ac_mid ')' - 1`
  30132. if test $ac_mid -le $ac_hi; then
  30133. ac_lo= ac_hi=
  30134. break
  30135. fi
  30136. ac_mid=`expr 2 '*' $ac_mid`
  30137. fi
  30138. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30139. done
  30140. else
  30141. echo "$as_me: failed program was:" >&5
  30142. sed 's/^/| /' conftest.$ac_ext >&5
  30143. ac_lo= ac_hi=
  30144. fi
  30145. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30146. fi
  30147. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30148. # Binary search between lo and hi bounds.
  30149. while test "x$ac_lo" != "x$ac_hi"; do
  30150. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  30151. cat >conftest.$ac_ext <<_ACEOF
  30152. /* confdefs.h. */
  30153. _ACEOF
  30154. cat confdefs.h >>conftest.$ac_ext
  30155. cat >>conftest.$ac_ext <<_ACEOF
  30156. /* end confdefs.h. */
  30157. $ac_includes_default
  30158. typedef char* ac__type_sizeof_;
  30159. int
  30160. main ()
  30161. {
  30162. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  30163. test_array [0] = 0
  30164. ;
  30165. return 0;
  30166. }
  30167. _ACEOF
  30168. rm -f conftest.$ac_objext
  30169. if { (ac_try="$ac_compile"
  30170. case "(($ac_try" in
  30171. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30172. *) ac_try_echo=$ac_try;;
  30173. esac
  30174. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30175. (eval "$ac_compile") 2>conftest.er1
  30176. ac_status=$?
  30177. grep -v '^ *+' conftest.er1 >conftest.err
  30178. rm -f conftest.er1
  30179. cat conftest.err >&5
  30180. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30181. (exit $ac_status); } && {
  30182. test -z "$ac_c_werror_flag" ||
  30183. test ! -s conftest.err
  30184. } && test -s conftest.$ac_objext; then
  30185. ac_hi=$ac_mid
  30186. else
  30187. echo "$as_me: failed program was:" >&5
  30188. sed 's/^/| /' conftest.$ac_ext >&5
  30189. ac_lo=`expr '(' $ac_mid ')' + 1`
  30190. fi
  30191. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30192. done
  30193. case $ac_lo in
  30194. ?*) ac_cv_sizeof_charp=$ac_lo;;
  30195. '') if test "$ac_cv_type_charp" = yes; then
  30196. { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*)
  30197. See \`config.log' for more details." >&5
  30198. echo "$as_me: error: cannot compute sizeof (char*)
  30199. See \`config.log' for more details." >&2;}
  30200. { (exit 77); exit 77; }; }
  30201. else
  30202. ac_cv_sizeof_charp=0
  30203. fi ;;
  30204. esac
  30205. else
  30206. cat >conftest.$ac_ext <<_ACEOF
  30207. /* confdefs.h. */
  30208. _ACEOF
  30209. cat confdefs.h >>conftest.$ac_ext
  30210. cat >>conftest.$ac_ext <<_ACEOF
  30211. /* end confdefs.h. */
  30212. $ac_includes_default
  30213. typedef char* ac__type_sizeof_;
  30214. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  30215. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  30216. #include <stdio.h>
  30217. #include <stdlib.h>
  30218. int
  30219. main ()
  30220. {
  30221. FILE *f = fopen ("conftest.val", "w");
  30222. if (! f)
  30223. return 1;
  30224. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  30225. {
  30226. long int i = longval ();
  30227. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  30228. return 1;
  30229. fprintf (f, "%ld\n", i);
  30230. }
  30231. else
  30232. {
  30233. unsigned long int i = ulongval ();
  30234. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  30235. return 1;
  30236. fprintf (f, "%lu\n", i);
  30237. }
  30238. return ferror (f) || fclose (f) != 0;
  30239. ;
  30240. return 0;
  30241. }
  30242. _ACEOF
  30243. rm -f conftest$ac_exeext
  30244. if { (ac_try="$ac_link"
  30245. case "(($ac_try" in
  30246. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30247. *) ac_try_echo=$ac_try;;
  30248. esac
  30249. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30250. (eval "$ac_link") 2>&5
  30251. ac_status=$?
  30252. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30253. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  30254. { (case "(($ac_try" in
  30255. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30256. *) ac_try_echo=$ac_try;;
  30257. esac
  30258. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30259. (eval "$ac_try") 2>&5
  30260. ac_status=$?
  30261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30262. (exit $ac_status); }; }; then
  30263. ac_cv_sizeof_charp=`cat conftest.val`
  30264. else
  30265. echo "$as_me: program exited with status $ac_status" >&5
  30266. echo "$as_me: failed program was:" >&5
  30267. sed 's/^/| /' conftest.$ac_ext >&5
  30268. ( exit $ac_status )
  30269. if test "$ac_cv_type_charp" = yes; then
  30270. { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*)
  30271. See \`config.log' for more details." >&5
  30272. echo "$as_me: error: cannot compute sizeof (char*)
  30273. See \`config.log' for more details." >&2;}
  30274. { (exit 77); exit 77; }; }
  30275. else
  30276. ac_cv_sizeof_charp=0
  30277. fi
  30278. fi
  30279. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  30280. fi
  30281. rm -f conftest.val
  30282. fi
  30283. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_charp" >&5
  30284. echo "${ECHO_T}$ac_cv_sizeof_charp" >&6; }
  30285. cat >>confdefs.h <<_ACEOF
  30286. #define SIZEOF_CHARP $ac_cv_sizeof_charp
  30287. _ACEOF
  30288. { echo "$as_me:$LINENO: checking for int" >&5
  30289. echo $ECHO_N "checking for int... $ECHO_C" >&6; }
  30290. if test "${ac_cv_type_int+set}" = set; then
  30291. echo $ECHO_N "(cached) $ECHO_C" >&6
  30292. else
  30293. cat >conftest.$ac_ext <<_ACEOF
  30294. /* confdefs.h. */
  30295. _ACEOF
  30296. cat confdefs.h >>conftest.$ac_ext
  30297. cat >>conftest.$ac_ext <<_ACEOF
  30298. /* end confdefs.h. */
  30299. $ac_includes_default
  30300. typedef int ac__type_new_;
  30301. int
  30302. main ()
  30303. {
  30304. if ((ac__type_new_ *) 0)
  30305. return 0;
  30306. if (sizeof (ac__type_new_))
  30307. return 0;
  30308. ;
  30309. return 0;
  30310. }
  30311. _ACEOF
  30312. rm -f conftest.$ac_objext
  30313. if { (ac_try="$ac_compile"
  30314. case "(($ac_try" in
  30315. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30316. *) ac_try_echo=$ac_try;;
  30317. esac
  30318. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30319. (eval "$ac_compile") 2>conftest.er1
  30320. ac_status=$?
  30321. grep -v '^ *+' conftest.er1 >conftest.err
  30322. rm -f conftest.er1
  30323. cat conftest.err >&5
  30324. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30325. (exit $ac_status); } && {
  30326. test -z "$ac_c_werror_flag" ||
  30327. test ! -s conftest.err
  30328. } && test -s conftest.$ac_objext; then
  30329. ac_cv_type_int=yes
  30330. else
  30331. echo "$as_me: failed program was:" >&5
  30332. sed 's/^/| /' conftest.$ac_ext >&5
  30333. ac_cv_type_int=no
  30334. fi
  30335. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30336. fi
  30337. { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  30338. echo "${ECHO_T}$ac_cv_type_int" >&6; }
  30339. # The cast to long int works around a bug in the HP C Compiler
  30340. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  30341. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  30342. # This bug is HP SR number 8606223364.
  30343. { echo "$as_me:$LINENO: checking size of int" >&5
  30344. echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
  30345. if test "${ac_cv_sizeof_int+set}" = set; then
  30346. echo $ECHO_N "(cached) $ECHO_C" >&6
  30347. else
  30348. if test "$cross_compiling" = yes; then
  30349. # Depending upon the size, compute the lo and hi bounds.
  30350. cat >conftest.$ac_ext <<_ACEOF
  30351. /* confdefs.h. */
  30352. _ACEOF
  30353. cat confdefs.h >>conftest.$ac_ext
  30354. cat >>conftest.$ac_ext <<_ACEOF
  30355. /* end confdefs.h. */
  30356. $ac_includes_default
  30357. typedef int ac__type_sizeof_;
  30358. int
  30359. main ()
  30360. {
  30361. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  30362. test_array [0] = 0
  30363. ;
  30364. return 0;
  30365. }
  30366. _ACEOF
  30367. rm -f conftest.$ac_objext
  30368. if { (ac_try="$ac_compile"
  30369. case "(($ac_try" in
  30370. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30371. *) ac_try_echo=$ac_try;;
  30372. esac
  30373. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30374. (eval "$ac_compile") 2>conftest.er1
  30375. ac_status=$?
  30376. grep -v '^ *+' conftest.er1 >conftest.err
  30377. rm -f conftest.er1
  30378. cat conftest.err >&5
  30379. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30380. (exit $ac_status); } && {
  30381. test -z "$ac_c_werror_flag" ||
  30382. test ! -s conftest.err
  30383. } && test -s conftest.$ac_objext; then
  30384. ac_lo=0 ac_mid=0
  30385. while :; do
  30386. cat >conftest.$ac_ext <<_ACEOF
  30387. /* confdefs.h. */
  30388. _ACEOF
  30389. cat confdefs.h >>conftest.$ac_ext
  30390. cat >>conftest.$ac_ext <<_ACEOF
  30391. /* end confdefs.h. */
  30392. $ac_includes_default
  30393. typedef int ac__type_sizeof_;
  30394. int
  30395. main ()
  30396. {
  30397. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  30398. test_array [0] = 0
  30399. ;
  30400. return 0;
  30401. }
  30402. _ACEOF
  30403. rm -f conftest.$ac_objext
  30404. if { (ac_try="$ac_compile"
  30405. case "(($ac_try" in
  30406. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30407. *) ac_try_echo=$ac_try;;
  30408. esac
  30409. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30410. (eval "$ac_compile") 2>conftest.er1
  30411. ac_status=$?
  30412. grep -v '^ *+' conftest.er1 >conftest.err
  30413. rm -f conftest.er1
  30414. cat conftest.err >&5
  30415. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30416. (exit $ac_status); } && {
  30417. test -z "$ac_c_werror_flag" ||
  30418. test ! -s conftest.err
  30419. } && test -s conftest.$ac_objext; then
  30420. ac_hi=$ac_mid; break
  30421. else
  30422. echo "$as_me: failed program was:" >&5
  30423. sed 's/^/| /' conftest.$ac_ext >&5
  30424. ac_lo=`expr $ac_mid + 1`
  30425. if test $ac_lo -le $ac_mid; then
  30426. ac_lo= ac_hi=
  30427. break
  30428. fi
  30429. ac_mid=`expr 2 '*' $ac_mid + 1`
  30430. fi
  30431. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30432. done
  30433. else
  30434. echo "$as_me: failed program was:" >&5
  30435. sed 's/^/| /' conftest.$ac_ext >&5
  30436. cat >conftest.$ac_ext <<_ACEOF
  30437. /* confdefs.h. */
  30438. _ACEOF
  30439. cat confdefs.h >>conftest.$ac_ext
  30440. cat >>conftest.$ac_ext <<_ACEOF
  30441. /* end confdefs.h. */
  30442. $ac_includes_default
  30443. typedef int ac__type_sizeof_;
  30444. int
  30445. main ()
  30446. {
  30447. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  30448. test_array [0] = 0
  30449. ;
  30450. return 0;
  30451. }
  30452. _ACEOF
  30453. rm -f conftest.$ac_objext
  30454. if { (ac_try="$ac_compile"
  30455. case "(($ac_try" in
  30456. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30457. *) ac_try_echo=$ac_try;;
  30458. esac
  30459. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30460. (eval "$ac_compile") 2>conftest.er1
  30461. ac_status=$?
  30462. grep -v '^ *+' conftest.er1 >conftest.err
  30463. rm -f conftest.er1
  30464. cat conftest.err >&5
  30465. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30466. (exit $ac_status); } && {
  30467. test -z "$ac_c_werror_flag" ||
  30468. test ! -s conftest.err
  30469. } && test -s conftest.$ac_objext; then
  30470. ac_hi=-1 ac_mid=-1
  30471. while :; do
  30472. cat >conftest.$ac_ext <<_ACEOF
  30473. /* confdefs.h. */
  30474. _ACEOF
  30475. cat confdefs.h >>conftest.$ac_ext
  30476. cat >>conftest.$ac_ext <<_ACEOF
  30477. /* end confdefs.h. */
  30478. $ac_includes_default
  30479. typedef int ac__type_sizeof_;
  30480. int
  30481. main ()
  30482. {
  30483. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  30484. test_array [0] = 0
  30485. ;
  30486. return 0;
  30487. }
  30488. _ACEOF
  30489. rm -f conftest.$ac_objext
  30490. if { (ac_try="$ac_compile"
  30491. case "(($ac_try" in
  30492. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30493. *) ac_try_echo=$ac_try;;
  30494. esac
  30495. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30496. (eval "$ac_compile") 2>conftest.er1
  30497. ac_status=$?
  30498. grep -v '^ *+' conftest.er1 >conftest.err
  30499. rm -f conftest.er1
  30500. cat conftest.err >&5
  30501. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30502. (exit $ac_status); } && {
  30503. test -z "$ac_c_werror_flag" ||
  30504. test ! -s conftest.err
  30505. } && test -s conftest.$ac_objext; then
  30506. ac_lo=$ac_mid; break
  30507. else
  30508. echo "$as_me: failed program was:" >&5
  30509. sed 's/^/| /' conftest.$ac_ext >&5
  30510. ac_hi=`expr '(' $ac_mid ')' - 1`
  30511. if test $ac_mid -le $ac_hi; then
  30512. ac_lo= ac_hi=
  30513. break
  30514. fi
  30515. ac_mid=`expr 2 '*' $ac_mid`
  30516. fi
  30517. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30518. done
  30519. else
  30520. echo "$as_me: failed program was:" >&5
  30521. sed 's/^/| /' conftest.$ac_ext >&5
  30522. ac_lo= ac_hi=
  30523. fi
  30524. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30525. fi
  30526. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30527. # Binary search between lo and hi bounds.
  30528. while test "x$ac_lo" != "x$ac_hi"; do
  30529. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  30530. cat >conftest.$ac_ext <<_ACEOF
  30531. /* confdefs.h. */
  30532. _ACEOF
  30533. cat confdefs.h >>conftest.$ac_ext
  30534. cat >>conftest.$ac_ext <<_ACEOF
  30535. /* end confdefs.h. */
  30536. $ac_includes_default
  30537. typedef int ac__type_sizeof_;
  30538. int
  30539. main ()
  30540. {
  30541. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  30542. test_array [0] = 0
  30543. ;
  30544. return 0;
  30545. }
  30546. _ACEOF
  30547. rm -f conftest.$ac_objext
  30548. if { (ac_try="$ac_compile"
  30549. case "(($ac_try" in
  30550. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30551. *) ac_try_echo=$ac_try;;
  30552. esac
  30553. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30554. (eval "$ac_compile") 2>conftest.er1
  30555. ac_status=$?
  30556. grep -v '^ *+' conftest.er1 >conftest.err
  30557. rm -f conftest.er1
  30558. cat conftest.err >&5
  30559. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30560. (exit $ac_status); } && {
  30561. test -z "$ac_c_werror_flag" ||
  30562. test ! -s conftest.err
  30563. } && test -s conftest.$ac_objext; then
  30564. ac_hi=$ac_mid
  30565. else
  30566. echo "$as_me: failed program was:" >&5
  30567. sed 's/^/| /' conftest.$ac_ext >&5
  30568. ac_lo=`expr '(' $ac_mid ')' + 1`
  30569. fi
  30570. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30571. done
  30572. case $ac_lo in
  30573. ?*) ac_cv_sizeof_int=$ac_lo;;
  30574. '') if test "$ac_cv_type_int" = yes; then
  30575. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  30576. See \`config.log' for more details." >&5
  30577. echo "$as_me: error: cannot compute sizeof (int)
  30578. See \`config.log' for more details." >&2;}
  30579. { (exit 77); exit 77; }; }
  30580. else
  30581. ac_cv_sizeof_int=0
  30582. fi ;;
  30583. esac
  30584. else
  30585. cat >conftest.$ac_ext <<_ACEOF
  30586. /* confdefs.h. */
  30587. _ACEOF
  30588. cat confdefs.h >>conftest.$ac_ext
  30589. cat >>conftest.$ac_ext <<_ACEOF
  30590. /* end confdefs.h. */
  30591. $ac_includes_default
  30592. typedef int ac__type_sizeof_;
  30593. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  30594. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  30595. #include <stdio.h>
  30596. #include <stdlib.h>
  30597. int
  30598. main ()
  30599. {
  30600. FILE *f = fopen ("conftest.val", "w");
  30601. if (! f)
  30602. return 1;
  30603. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  30604. {
  30605. long int i = longval ();
  30606. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  30607. return 1;
  30608. fprintf (f, "%ld\n", i);
  30609. }
  30610. else
  30611. {
  30612. unsigned long int i = ulongval ();
  30613. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  30614. return 1;
  30615. fprintf (f, "%lu\n", i);
  30616. }
  30617. return ferror (f) || fclose (f) != 0;
  30618. ;
  30619. return 0;
  30620. }
  30621. _ACEOF
  30622. rm -f conftest$ac_exeext
  30623. if { (ac_try="$ac_link"
  30624. case "(($ac_try" in
  30625. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30626. *) ac_try_echo=$ac_try;;
  30627. esac
  30628. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30629. (eval "$ac_link") 2>&5
  30630. ac_status=$?
  30631. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30632. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  30633. { (case "(($ac_try" in
  30634. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30635. *) ac_try_echo=$ac_try;;
  30636. esac
  30637. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30638. (eval "$ac_try") 2>&5
  30639. ac_status=$?
  30640. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30641. (exit $ac_status); }; }; then
  30642. ac_cv_sizeof_int=`cat conftest.val`
  30643. else
  30644. echo "$as_me: program exited with status $ac_status" >&5
  30645. echo "$as_me: failed program was:" >&5
  30646. sed 's/^/| /' conftest.$ac_ext >&5
  30647. ( exit $ac_status )
  30648. if test "$ac_cv_type_int" = yes; then
  30649. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  30650. See \`config.log' for more details." >&5
  30651. echo "$as_me: error: cannot compute sizeof (int)
  30652. See \`config.log' for more details." >&2;}
  30653. { (exit 77); exit 77; }; }
  30654. else
  30655. ac_cv_sizeof_int=0
  30656. fi
  30657. fi
  30658. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  30659. fi
  30660. rm -f conftest.val
  30661. fi
  30662. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  30663. echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
  30664. cat >>confdefs.h <<_ACEOF
  30665. #define SIZEOF_INT $ac_cv_sizeof_int
  30666. _ACEOF
  30667. { echo "$as_me:$LINENO: checking for long" >&5
  30668. echo $ECHO_N "checking for long... $ECHO_C" >&6; }
  30669. if test "${ac_cv_type_long+set}" = set; then
  30670. echo $ECHO_N "(cached) $ECHO_C" >&6
  30671. else
  30672. cat >conftest.$ac_ext <<_ACEOF
  30673. /* confdefs.h. */
  30674. _ACEOF
  30675. cat confdefs.h >>conftest.$ac_ext
  30676. cat >>conftest.$ac_ext <<_ACEOF
  30677. /* end confdefs.h. */
  30678. $ac_includes_default
  30679. typedef long ac__type_new_;
  30680. int
  30681. main ()
  30682. {
  30683. if ((ac__type_new_ *) 0)
  30684. return 0;
  30685. if (sizeof (ac__type_new_))
  30686. return 0;
  30687. ;
  30688. return 0;
  30689. }
  30690. _ACEOF
  30691. rm -f conftest.$ac_objext
  30692. if { (ac_try="$ac_compile"
  30693. case "(($ac_try" in
  30694. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30695. *) ac_try_echo=$ac_try;;
  30696. esac
  30697. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30698. (eval "$ac_compile") 2>conftest.er1
  30699. ac_status=$?
  30700. grep -v '^ *+' conftest.er1 >conftest.err
  30701. rm -f conftest.er1
  30702. cat conftest.err >&5
  30703. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30704. (exit $ac_status); } && {
  30705. test -z "$ac_c_werror_flag" ||
  30706. test ! -s conftest.err
  30707. } && test -s conftest.$ac_objext; then
  30708. ac_cv_type_long=yes
  30709. else
  30710. echo "$as_me: failed program was:" >&5
  30711. sed 's/^/| /' conftest.$ac_ext >&5
  30712. ac_cv_type_long=no
  30713. fi
  30714. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30715. fi
  30716. { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  30717. echo "${ECHO_T}$ac_cv_type_long" >&6; }
  30718. # The cast to long int works around a bug in the HP C Compiler
  30719. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  30720. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  30721. # This bug is HP SR number 8606223364.
  30722. { echo "$as_me:$LINENO: checking size of long" >&5
  30723. echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
  30724. if test "${ac_cv_sizeof_long+set}" = set; then
  30725. echo $ECHO_N "(cached) $ECHO_C" >&6
  30726. else
  30727. if test "$cross_compiling" = yes; then
  30728. # Depending upon the size, compute the lo and hi bounds.
  30729. cat >conftest.$ac_ext <<_ACEOF
  30730. /* confdefs.h. */
  30731. _ACEOF
  30732. cat confdefs.h >>conftest.$ac_ext
  30733. cat >>conftest.$ac_ext <<_ACEOF
  30734. /* end confdefs.h. */
  30735. $ac_includes_default
  30736. typedef long ac__type_sizeof_;
  30737. int
  30738. main ()
  30739. {
  30740. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  30741. test_array [0] = 0
  30742. ;
  30743. return 0;
  30744. }
  30745. _ACEOF
  30746. rm -f conftest.$ac_objext
  30747. if { (ac_try="$ac_compile"
  30748. case "(($ac_try" in
  30749. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30750. *) ac_try_echo=$ac_try;;
  30751. esac
  30752. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30753. (eval "$ac_compile") 2>conftest.er1
  30754. ac_status=$?
  30755. grep -v '^ *+' conftest.er1 >conftest.err
  30756. rm -f conftest.er1
  30757. cat conftest.err >&5
  30758. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30759. (exit $ac_status); } && {
  30760. test -z "$ac_c_werror_flag" ||
  30761. test ! -s conftest.err
  30762. } && test -s conftest.$ac_objext; then
  30763. ac_lo=0 ac_mid=0
  30764. while :; do
  30765. cat >conftest.$ac_ext <<_ACEOF
  30766. /* confdefs.h. */
  30767. _ACEOF
  30768. cat confdefs.h >>conftest.$ac_ext
  30769. cat >>conftest.$ac_ext <<_ACEOF
  30770. /* end confdefs.h. */
  30771. $ac_includes_default
  30772. typedef long ac__type_sizeof_;
  30773. int
  30774. main ()
  30775. {
  30776. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  30777. test_array [0] = 0
  30778. ;
  30779. return 0;
  30780. }
  30781. _ACEOF
  30782. rm -f conftest.$ac_objext
  30783. if { (ac_try="$ac_compile"
  30784. case "(($ac_try" in
  30785. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30786. *) ac_try_echo=$ac_try;;
  30787. esac
  30788. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30789. (eval "$ac_compile") 2>conftest.er1
  30790. ac_status=$?
  30791. grep -v '^ *+' conftest.er1 >conftest.err
  30792. rm -f conftest.er1
  30793. cat conftest.err >&5
  30794. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30795. (exit $ac_status); } && {
  30796. test -z "$ac_c_werror_flag" ||
  30797. test ! -s conftest.err
  30798. } && test -s conftest.$ac_objext; then
  30799. ac_hi=$ac_mid; break
  30800. else
  30801. echo "$as_me: failed program was:" >&5
  30802. sed 's/^/| /' conftest.$ac_ext >&5
  30803. ac_lo=`expr $ac_mid + 1`
  30804. if test $ac_lo -le $ac_mid; then
  30805. ac_lo= ac_hi=
  30806. break
  30807. fi
  30808. ac_mid=`expr 2 '*' $ac_mid + 1`
  30809. fi
  30810. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30811. done
  30812. else
  30813. echo "$as_me: failed program was:" >&5
  30814. sed 's/^/| /' conftest.$ac_ext >&5
  30815. cat >conftest.$ac_ext <<_ACEOF
  30816. /* confdefs.h. */
  30817. _ACEOF
  30818. cat confdefs.h >>conftest.$ac_ext
  30819. cat >>conftest.$ac_ext <<_ACEOF
  30820. /* end confdefs.h. */
  30821. $ac_includes_default
  30822. typedef long ac__type_sizeof_;
  30823. int
  30824. main ()
  30825. {
  30826. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  30827. test_array [0] = 0
  30828. ;
  30829. return 0;
  30830. }
  30831. _ACEOF
  30832. rm -f conftest.$ac_objext
  30833. if { (ac_try="$ac_compile"
  30834. case "(($ac_try" in
  30835. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30836. *) ac_try_echo=$ac_try;;
  30837. esac
  30838. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30839. (eval "$ac_compile") 2>conftest.er1
  30840. ac_status=$?
  30841. grep -v '^ *+' conftest.er1 >conftest.err
  30842. rm -f conftest.er1
  30843. cat conftest.err >&5
  30844. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30845. (exit $ac_status); } && {
  30846. test -z "$ac_c_werror_flag" ||
  30847. test ! -s conftest.err
  30848. } && test -s conftest.$ac_objext; then
  30849. ac_hi=-1 ac_mid=-1
  30850. while :; do
  30851. cat >conftest.$ac_ext <<_ACEOF
  30852. /* confdefs.h. */
  30853. _ACEOF
  30854. cat confdefs.h >>conftest.$ac_ext
  30855. cat >>conftest.$ac_ext <<_ACEOF
  30856. /* end confdefs.h. */
  30857. $ac_includes_default
  30858. typedef long ac__type_sizeof_;
  30859. int
  30860. main ()
  30861. {
  30862. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  30863. test_array [0] = 0
  30864. ;
  30865. return 0;
  30866. }
  30867. _ACEOF
  30868. rm -f conftest.$ac_objext
  30869. if { (ac_try="$ac_compile"
  30870. case "(($ac_try" in
  30871. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30872. *) ac_try_echo=$ac_try;;
  30873. esac
  30874. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30875. (eval "$ac_compile") 2>conftest.er1
  30876. ac_status=$?
  30877. grep -v '^ *+' conftest.er1 >conftest.err
  30878. rm -f conftest.er1
  30879. cat conftest.err >&5
  30880. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30881. (exit $ac_status); } && {
  30882. test -z "$ac_c_werror_flag" ||
  30883. test ! -s conftest.err
  30884. } && test -s conftest.$ac_objext; then
  30885. ac_lo=$ac_mid; break
  30886. else
  30887. echo "$as_me: failed program was:" >&5
  30888. sed 's/^/| /' conftest.$ac_ext >&5
  30889. ac_hi=`expr '(' $ac_mid ')' - 1`
  30890. if test $ac_mid -le $ac_hi; then
  30891. ac_lo= ac_hi=
  30892. break
  30893. fi
  30894. ac_mid=`expr 2 '*' $ac_mid`
  30895. fi
  30896. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30897. done
  30898. else
  30899. echo "$as_me: failed program was:" >&5
  30900. sed 's/^/| /' conftest.$ac_ext >&5
  30901. ac_lo= ac_hi=
  30902. fi
  30903. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30904. fi
  30905. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30906. # Binary search between lo and hi bounds.
  30907. while test "x$ac_lo" != "x$ac_hi"; do
  30908. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  30909. cat >conftest.$ac_ext <<_ACEOF
  30910. /* confdefs.h. */
  30911. _ACEOF
  30912. cat confdefs.h >>conftest.$ac_ext
  30913. cat >>conftest.$ac_ext <<_ACEOF
  30914. /* end confdefs.h. */
  30915. $ac_includes_default
  30916. typedef long ac__type_sizeof_;
  30917. int
  30918. main ()
  30919. {
  30920. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  30921. test_array [0] = 0
  30922. ;
  30923. return 0;
  30924. }
  30925. _ACEOF
  30926. rm -f conftest.$ac_objext
  30927. if { (ac_try="$ac_compile"
  30928. case "(($ac_try" in
  30929. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30930. *) ac_try_echo=$ac_try;;
  30931. esac
  30932. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30933. (eval "$ac_compile") 2>conftest.er1
  30934. ac_status=$?
  30935. grep -v '^ *+' conftest.er1 >conftest.err
  30936. rm -f conftest.er1
  30937. cat conftest.err >&5
  30938. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30939. (exit $ac_status); } && {
  30940. test -z "$ac_c_werror_flag" ||
  30941. test ! -s conftest.err
  30942. } && test -s conftest.$ac_objext; then
  30943. ac_hi=$ac_mid
  30944. else
  30945. echo "$as_me: failed program was:" >&5
  30946. sed 's/^/| /' conftest.$ac_ext >&5
  30947. ac_lo=`expr '(' $ac_mid ')' + 1`
  30948. fi
  30949. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30950. done
  30951. case $ac_lo in
  30952. ?*) ac_cv_sizeof_long=$ac_lo;;
  30953. '') if test "$ac_cv_type_long" = yes; then
  30954. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  30955. See \`config.log' for more details." >&5
  30956. echo "$as_me: error: cannot compute sizeof (long)
  30957. See \`config.log' for more details." >&2;}
  30958. { (exit 77); exit 77; }; }
  30959. else
  30960. ac_cv_sizeof_long=0
  30961. fi ;;
  30962. esac
  30963. else
  30964. cat >conftest.$ac_ext <<_ACEOF
  30965. /* confdefs.h. */
  30966. _ACEOF
  30967. cat confdefs.h >>conftest.$ac_ext
  30968. cat >>conftest.$ac_ext <<_ACEOF
  30969. /* end confdefs.h. */
  30970. $ac_includes_default
  30971. typedef long ac__type_sizeof_;
  30972. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  30973. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  30974. #include <stdio.h>
  30975. #include <stdlib.h>
  30976. int
  30977. main ()
  30978. {
  30979. FILE *f = fopen ("conftest.val", "w");
  30980. if (! f)
  30981. return 1;
  30982. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  30983. {
  30984. long int i = longval ();
  30985. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  30986. return 1;
  30987. fprintf (f, "%ld\n", i);
  30988. }
  30989. else
  30990. {
  30991. unsigned long int i = ulongval ();
  30992. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  30993. return 1;
  30994. fprintf (f, "%lu\n", i);
  30995. }
  30996. return ferror (f) || fclose (f) != 0;
  30997. ;
  30998. return 0;
  30999. }
  31000. _ACEOF
  31001. rm -f conftest$ac_exeext
  31002. if { (ac_try="$ac_link"
  31003. case "(($ac_try" in
  31004. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31005. *) ac_try_echo=$ac_try;;
  31006. esac
  31007. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31008. (eval "$ac_link") 2>&5
  31009. ac_status=$?
  31010. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31011. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  31012. { (case "(($ac_try" in
  31013. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31014. *) ac_try_echo=$ac_try;;
  31015. esac
  31016. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31017. (eval "$ac_try") 2>&5
  31018. ac_status=$?
  31019. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31020. (exit $ac_status); }; }; then
  31021. ac_cv_sizeof_long=`cat conftest.val`
  31022. else
  31023. echo "$as_me: program exited with status $ac_status" >&5
  31024. echo "$as_me: failed program was:" >&5
  31025. sed 's/^/| /' conftest.$ac_ext >&5
  31026. ( exit $ac_status )
  31027. if test "$ac_cv_type_long" = yes; then
  31028. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  31029. See \`config.log' for more details." >&5
  31030. echo "$as_me: error: cannot compute sizeof (long)
  31031. See \`config.log' for more details." >&2;}
  31032. { (exit 77); exit 77; }; }
  31033. else
  31034. ac_cv_sizeof_long=0
  31035. fi
  31036. fi
  31037. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  31038. fi
  31039. rm -f conftest.val
  31040. fi
  31041. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  31042. echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
  31043. cat >>confdefs.h <<_ACEOF
  31044. #define SIZEOF_LONG $ac_cv_sizeof_long
  31045. _ACEOF
  31046. { echo "$as_me:$LINENO: checking for short" >&5
  31047. echo $ECHO_N "checking for short... $ECHO_C" >&6; }
  31048. if test "${ac_cv_type_short+set}" = set; then
  31049. echo $ECHO_N "(cached) $ECHO_C" >&6
  31050. else
  31051. cat >conftest.$ac_ext <<_ACEOF
  31052. /* confdefs.h. */
  31053. _ACEOF
  31054. cat confdefs.h >>conftest.$ac_ext
  31055. cat >>conftest.$ac_ext <<_ACEOF
  31056. /* end confdefs.h. */
  31057. $ac_includes_default
  31058. typedef short ac__type_new_;
  31059. int
  31060. main ()
  31061. {
  31062. if ((ac__type_new_ *) 0)
  31063. return 0;
  31064. if (sizeof (ac__type_new_))
  31065. return 0;
  31066. ;
  31067. return 0;
  31068. }
  31069. _ACEOF
  31070. rm -f conftest.$ac_objext
  31071. if { (ac_try="$ac_compile"
  31072. case "(($ac_try" in
  31073. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31074. *) ac_try_echo=$ac_try;;
  31075. esac
  31076. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31077. (eval "$ac_compile") 2>conftest.er1
  31078. ac_status=$?
  31079. grep -v '^ *+' conftest.er1 >conftest.err
  31080. rm -f conftest.er1
  31081. cat conftest.err >&5
  31082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31083. (exit $ac_status); } && {
  31084. test -z "$ac_c_werror_flag" ||
  31085. test ! -s conftest.err
  31086. } && test -s conftest.$ac_objext; then
  31087. ac_cv_type_short=yes
  31088. else
  31089. echo "$as_me: failed program was:" >&5
  31090. sed 's/^/| /' conftest.$ac_ext >&5
  31091. ac_cv_type_short=no
  31092. fi
  31093. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31094. fi
  31095. { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  31096. echo "${ECHO_T}$ac_cv_type_short" >&6; }
  31097. # The cast to long int works around a bug in the HP C Compiler
  31098. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  31099. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  31100. # This bug is HP SR number 8606223364.
  31101. { echo "$as_me:$LINENO: checking size of short" >&5
  31102. echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
  31103. if test "${ac_cv_sizeof_short+set}" = set; then
  31104. echo $ECHO_N "(cached) $ECHO_C" >&6
  31105. else
  31106. if test "$cross_compiling" = yes; then
  31107. # Depending upon the size, compute the lo and hi bounds.
  31108. cat >conftest.$ac_ext <<_ACEOF
  31109. /* confdefs.h. */
  31110. _ACEOF
  31111. cat confdefs.h >>conftest.$ac_ext
  31112. cat >>conftest.$ac_ext <<_ACEOF
  31113. /* end confdefs.h. */
  31114. $ac_includes_default
  31115. typedef short ac__type_sizeof_;
  31116. int
  31117. main ()
  31118. {
  31119. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  31120. test_array [0] = 0
  31121. ;
  31122. return 0;
  31123. }
  31124. _ACEOF
  31125. rm -f conftest.$ac_objext
  31126. if { (ac_try="$ac_compile"
  31127. case "(($ac_try" in
  31128. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31129. *) ac_try_echo=$ac_try;;
  31130. esac
  31131. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31132. (eval "$ac_compile") 2>conftest.er1
  31133. ac_status=$?
  31134. grep -v '^ *+' conftest.er1 >conftest.err
  31135. rm -f conftest.er1
  31136. cat conftest.err >&5
  31137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31138. (exit $ac_status); } && {
  31139. test -z "$ac_c_werror_flag" ||
  31140. test ! -s conftest.err
  31141. } && test -s conftest.$ac_objext; then
  31142. ac_lo=0 ac_mid=0
  31143. while :; do
  31144. cat >conftest.$ac_ext <<_ACEOF
  31145. /* confdefs.h. */
  31146. _ACEOF
  31147. cat confdefs.h >>conftest.$ac_ext
  31148. cat >>conftest.$ac_ext <<_ACEOF
  31149. /* end confdefs.h. */
  31150. $ac_includes_default
  31151. typedef short ac__type_sizeof_;
  31152. int
  31153. main ()
  31154. {
  31155. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  31156. test_array [0] = 0
  31157. ;
  31158. return 0;
  31159. }
  31160. _ACEOF
  31161. rm -f conftest.$ac_objext
  31162. if { (ac_try="$ac_compile"
  31163. case "(($ac_try" in
  31164. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31165. *) ac_try_echo=$ac_try;;
  31166. esac
  31167. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31168. (eval "$ac_compile") 2>conftest.er1
  31169. ac_status=$?
  31170. grep -v '^ *+' conftest.er1 >conftest.err
  31171. rm -f conftest.er1
  31172. cat conftest.err >&5
  31173. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31174. (exit $ac_status); } && {
  31175. test -z "$ac_c_werror_flag" ||
  31176. test ! -s conftest.err
  31177. } && test -s conftest.$ac_objext; then
  31178. ac_hi=$ac_mid; break
  31179. else
  31180. echo "$as_me: failed program was:" >&5
  31181. sed 's/^/| /' conftest.$ac_ext >&5
  31182. ac_lo=`expr $ac_mid + 1`
  31183. if test $ac_lo -le $ac_mid; then
  31184. ac_lo= ac_hi=
  31185. break
  31186. fi
  31187. ac_mid=`expr 2 '*' $ac_mid + 1`
  31188. fi
  31189. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31190. done
  31191. else
  31192. echo "$as_me: failed program was:" >&5
  31193. sed 's/^/| /' conftest.$ac_ext >&5
  31194. cat >conftest.$ac_ext <<_ACEOF
  31195. /* confdefs.h. */
  31196. _ACEOF
  31197. cat confdefs.h >>conftest.$ac_ext
  31198. cat >>conftest.$ac_ext <<_ACEOF
  31199. /* end confdefs.h. */
  31200. $ac_includes_default
  31201. typedef short ac__type_sizeof_;
  31202. int
  31203. main ()
  31204. {
  31205. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  31206. test_array [0] = 0
  31207. ;
  31208. return 0;
  31209. }
  31210. _ACEOF
  31211. rm -f conftest.$ac_objext
  31212. if { (ac_try="$ac_compile"
  31213. case "(($ac_try" in
  31214. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31215. *) ac_try_echo=$ac_try;;
  31216. esac
  31217. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31218. (eval "$ac_compile") 2>conftest.er1
  31219. ac_status=$?
  31220. grep -v '^ *+' conftest.er1 >conftest.err
  31221. rm -f conftest.er1
  31222. cat conftest.err >&5
  31223. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31224. (exit $ac_status); } && {
  31225. test -z "$ac_c_werror_flag" ||
  31226. test ! -s conftest.err
  31227. } && test -s conftest.$ac_objext; then
  31228. ac_hi=-1 ac_mid=-1
  31229. while :; do
  31230. cat >conftest.$ac_ext <<_ACEOF
  31231. /* confdefs.h. */
  31232. _ACEOF
  31233. cat confdefs.h >>conftest.$ac_ext
  31234. cat >>conftest.$ac_ext <<_ACEOF
  31235. /* end confdefs.h. */
  31236. $ac_includes_default
  31237. typedef short ac__type_sizeof_;
  31238. int
  31239. main ()
  31240. {
  31241. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  31242. test_array [0] = 0
  31243. ;
  31244. return 0;
  31245. }
  31246. _ACEOF
  31247. rm -f conftest.$ac_objext
  31248. if { (ac_try="$ac_compile"
  31249. case "(($ac_try" in
  31250. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31251. *) ac_try_echo=$ac_try;;
  31252. esac
  31253. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31254. (eval "$ac_compile") 2>conftest.er1
  31255. ac_status=$?
  31256. grep -v '^ *+' conftest.er1 >conftest.err
  31257. rm -f conftest.er1
  31258. cat conftest.err >&5
  31259. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31260. (exit $ac_status); } && {
  31261. test -z "$ac_c_werror_flag" ||
  31262. test ! -s conftest.err
  31263. } && test -s conftest.$ac_objext; then
  31264. ac_lo=$ac_mid; break
  31265. else
  31266. echo "$as_me: failed program was:" >&5
  31267. sed 's/^/| /' conftest.$ac_ext >&5
  31268. ac_hi=`expr '(' $ac_mid ')' - 1`
  31269. if test $ac_mid -le $ac_hi; then
  31270. ac_lo= ac_hi=
  31271. break
  31272. fi
  31273. ac_mid=`expr 2 '*' $ac_mid`
  31274. fi
  31275. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31276. done
  31277. else
  31278. echo "$as_me: failed program was:" >&5
  31279. sed 's/^/| /' conftest.$ac_ext >&5
  31280. ac_lo= ac_hi=
  31281. fi
  31282. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31283. fi
  31284. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31285. # Binary search between lo and hi bounds.
  31286. while test "x$ac_lo" != "x$ac_hi"; do
  31287. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  31288. cat >conftest.$ac_ext <<_ACEOF
  31289. /* confdefs.h. */
  31290. _ACEOF
  31291. cat confdefs.h >>conftest.$ac_ext
  31292. cat >>conftest.$ac_ext <<_ACEOF
  31293. /* end confdefs.h. */
  31294. $ac_includes_default
  31295. typedef short ac__type_sizeof_;
  31296. int
  31297. main ()
  31298. {
  31299. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  31300. test_array [0] = 0
  31301. ;
  31302. return 0;
  31303. }
  31304. _ACEOF
  31305. rm -f conftest.$ac_objext
  31306. if { (ac_try="$ac_compile"
  31307. case "(($ac_try" in
  31308. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31309. *) ac_try_echo=$ac_try;;
  31310. esac
  31311. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31312. (eval "$ac_compile") 2>conftest.er1
  31313. ac_status=$?
  31314. grep -v '^ *+' conftest.er1 >conftest.err
  31315. rm -f conftest.er1
  31316. cat conftest.err >&5
  31317. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31318. (exit $ac_status); } && {
  31319. test -z "$ac_c_werror_flag" ||
  31320. test ! -s conftest.err
  31321. } && test -s conftest.$ac_objext; then
  31322. ac_hi=$ac_mid
  31323. else
  31324. echo "$as_me: failed program was:" >&5
  31325. sed 's/^/| /' conftest.$ac_ext >&5
  31326. ac_lo=`expr '(' $ac_mid ')' + 1`
  31327. fi
  31328. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31329. done
  31330. case $ac_lo in
  31331. ?*) ac_cv_sizeof_short=$ac_lo;;
  31332. '') if test "$ac_cv_type_short" = yes; then
  31333. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  31334. See \`config.log' for more details." >&5
  31335. echo "$as_me: error: cannot compute sizeof (short)
  31336. See \`config.log' for more details." >&2;}
  31337. { (exit 77); exit 77; }; }
  31338. else
  31339. ac_cv_sizeof_short=0
  31340. fi ;;
  31341. esac
  31342. else
  31343. cat >conftest.$ac_ext <<_ACEOF
  31344. /* confdefs.h. */
  31345. _ACEOF
  31346. cat confdefs.h >>conftest.$ac_ext
  31347. cat >>conftest.$ac_ext <<_ACEOF
  31348. /* end confdefs.h. */
  31349. $ac_includes_default
  31350. typedef short ac__type_sizeof_;
  31351. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  31352. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  31353. #include <stdio.h>
  31354. #include <stdlib.h>
  31355. int
  31356. main ()
  31357. {
  31358. FILE *f = fopen ("conftest.val", "w");
  31359. if (! f)
  31360. return 1;
  31361. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  31362. {
  31363. long int i = longval ();
  31364. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  31365. return 1;
  31366. fprintf (f, "%ld\n", i);
  31367. }
  31368. else
  31369. {
  31370. unsigned long int i = ulongval ();
  31371. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  31372. return 1;
  31373. fprintf (f, "%lu\n", i);
  31374. }
  31375. return ferror (f) || fclose (f) != 0;
  31376. ;
  31377. return 0;
  31378. }
  31379. _ACEOF
  31380. rm -f conftest$ac_exeext
  31381. if { (ac_try="$ac_link"
  31382. case "(($ac_try" in
  31383. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31384. *) ac_try_echo=$ac_try;;
  31385. esac
  31386. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31387. (eval "$ac_link") 2>&5
  31388. ac_status=$?
  31389. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31390. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  31391. { (case "(($ac_try" in
  31392. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31393. *) ac_try_echo=$ac_try;;
  31394. esac
  31395. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31396. (eval "$ac_try") 2>&5
  31397. ac_status=$?
  31398. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31399. (exit $ac_status); }; }; then
  31400. ac_cv_sizeof_short=`cat conftest.val`
  31401. else
  31402. echo "$as_me: program exited with status $ac_status" >&5
  31403. echo "$as_me: failed program was:" >&5
  31404. sed 's/^/| /' conftest.$ac_ext >&5
  31405. ( exit $ac_status )
  31406. if test "$ac_cv_type_short" = yes; then
  31407. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  31408. See \`config.log' for more details." >&5
  31409. echo "$as_me: error: cannot compute sizeof (short)
  31410. See \`config.log' for more details." >&2;}
  31411. { (exit 77); exit 77; }; }
  31412. else
  31413. ac_cv_sizeof_short=0
  31414. fi
  31415. fi
  31416. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  31417. fi
  31418. rm -f conftest.val
  31419. fi
  31420. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  31421. echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
  31422. cat >>confdefs.h <<_ACEOF
  31423. #define SIZEOF_SHORT $ac_cv_sizeof_short
  31424. _ACEOF
  31425. # ----------------------------------------------------------------------
  31426. # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
  31427. # ----------------------------------------------------------------------
  31428. { echo "$as_me:$LINENO: checking for pathfind in -lgen" >&5
  31429. echo $ECHO_N "checking for pathfind in -lgen... $ECHO_C" >&6; }
  31430. if test "${ac_cv_lib_gen_pathfind+set}" = set; then
  31431. echo $ECHO_N "(cached) $ECHO_C" >&6
  31432. else
  31433. ac_check_lib_save_LIBS=$LIBS
  31434. LIBS="-lgen $LIBS"
  31435. cat >conftest.$ac_ext <<_ACEOF
  31436. /* confdefs.h. */
  31437. _ACEOF
  31438. cat confdefs.h >>conftest.$ac_ext
  31439. cat >>conftest.$ac_ext <<_ACEOF
  31440. /* end confdefs.h. */
  31441. /* Override any GCC internal prototype to avoid an error.
  31442. Use char because int might match the return type of a GCC
  31443. builtin and then its argument prototype would still apply. */
  31444. #ifdef __cplusplus
  31445. extern "C"
  31446. #endif
  31447. char pathfind ();
  31448. int
  31449. main ()
  31450. {
  31451. return pathfind ();
  31452. ;
  31453. return 0;
  31454. }
  31455. _ACEOF
  31456. rm -f conftest.$ac_objext conftest$ac_exeext
  31457. if { (ac_try="$ac_link"
  31458. case "(($ac_try" in
  31459. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31460. *) ac_try_echo=$ac_try;;
  31461. esac
  31462. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31463. (eval "$ac_link") 2>conftest.er1
  31464. ac_status=$?
  31465. grep -v '^ *+' conftest.er1 >conftest.err
  31466. rm -f conftest.er1
  31467. cat conftest.err >&5
  31468. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31469. (exit $ac_status); } && {
  31470. test -z "$ac_c_werror_flag" ||
  31471. test ! -s conftest.err
  31472. } && test -s conftest$ac_exeext &&
  31473. $as_test_x conftest$ac_exeext; then
  31474. ac_cv_lib_gen_pathfind=yes
  31475. else
  31476. echo "$as_me: failed program was:" >&5
  31477. sed 's/^/| /' conftest.$ac_ext >&5
  31478. ac_cv_lib_gen_pathfind=no
  31479. fi
  31480. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  31481. conftest$ac_exeext conftest.$ac_ext
  31482. LIBS=$ac_check_lib_save_LIBS
  31483. fi
  31484. { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_pathfind" >&5
  31485. echo "${ECHO_T}$ac_cv_lib_gen_pathfind" >&6; }
  31486. if test $ac_cv_lib_gen_pathfind = yes; then
  31487. cat >>confdefs.h <<_ACEOF
  31488. #define HAVE_LIBGEN 1
  31489. _ACEOF
  31490. LIBS="-lgen $LIBS"
  31491. fi
  31492. for ac_func in vprintf
  31493. do
  31494. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  31495. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  31496. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  31497. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  31498. echo $ECHO_N "(cached) $ECHO_C" >&6
  31499. else
  31500. cat >conftest.$ac_ext <<_ACEOF
  31501. /* confdefs.h. */
  31502. _ACEOF
  31503. cat confdefs.h >>conftest.$ac_ext
  31504. cat >>conftest.$ac_ext <<_ACEOF
  31505. /* end confdefs.h. */
  31506. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  31507. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  31508. #define $ac_func innocuous_$ac_func
  31509. /* System header to define __stub macros and hopefully few prototypes,
  31510. which can conflict with char $ac_func (); below.
  31511. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  31512. <limits.h> exists even on freestanding compilers. */
  31513. #ifdef __STDC__
  31514. # include <limits.h>
  31515. #else
  31516. # include <assert.h>
  31517. #endif
  31518. #undef $ac_func
  31519. /* Override any GCC internal prototype to avoid an error.
  31520. Use char because int might match the return type of a GCC
  31521. builtin and then its argument prototype would still apply. */
  31522. #ifdef __cplusplus
  31523. extern "C"
  31524. #endif
  31525. char $ac_func ();
  31526. /* The GNU C library defines this for functions which it implements
  31527. to always fail with ENOSYS. Some functions are actually named
  31528. something starting with __ and the normal name is an alias. */
  31529. #if defined __stub_$ac_func || defined __stub___$ac_func
  31530. choke me
  31531. #endif
  31532. int
  31533. main ()
  31534. {
  31535. return $ac_func ();
  31536. ;
  31537. return 0;
  31538. }
  31539. _ACEOF
  31540. rm -f conftest.$ac_objext conftest$ac_exeext
  31541. if { (ac_try="$ac_link"
  31542. case "(($ac_try" in
  31543. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31544. *) ac_try_echo=$ac_try;;
  31545. esac
  31546. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31547. (eval "$ac_link") 2>conftest.er1
  31548. ac_status=$?
  31549. grep -v '^ *+' conftest.er1 >conftest.err
  31550. rm -f conftest.er1
  31551. cat conftest.err >&5
  31552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31553. (exit $ac_status); } && {
  31554. test -z "$ac_c_werror_flag" ||
  31555. test ! -s conftest.err
  31556. } && test -s conftest$ac_exeext &&
  31557. $as_test_x conftest$ac_exeext; then
  31558. eval "$as_ac_var=yes"
  31559. else
  31560. echo "$as_me: failed program was:" >&5
  31561. sed 's/^/| /' conftest.$ac_ext >&5
  31562. eval "$as_ac_var=no"
  31563. fi
  31564. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  31565. conftest$ac_exeext conftest.$ac_ext
  31566. fi
  31567. ac_res=`eval echo '${'$as_ac_var'}'`
  31568. { echo "$as_me:$LINENO: result: $ac_res" >&5
  31569. echo "${ECHO_T}$ac_res" >&6; }
  31570. if test `eval echo '${'$as_ac_var'}'` = yes; then
  31571. cat >>confdefs.h <<_ACEOF
  31572. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  31573. _ACEOF
  31574. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  31575. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  31576. if test "${ac_cv_func__doprnt+set}" = set; then
  31577. echo $ECHO_N "(cached) $ECHO_C" >&6
  31578. else
  31579. cat >conftest.$ac_ext <<_ACEOF
  31580. /* confdefs.h. */
  31581. _ACEOF
  31582. cat confdefs.h >>conftest.$ac_ext
  31583. cat >>conftest.$ac_ext <<_ACEOF
  31584. /* end confdefs.h. */
  31585. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  31586. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  31587. #define _doprnt innocuous__doprnt
  31588. /* System header to define __stub macros and hopefully few prototypes,
  31589. which can conflict with char _doprnt (); below.
  31590. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  31591. <limits.h> exists even on freestanding compilers. */
  31592. #ifdef __STDC__
  31593. # include <limits.h>
  31594. #else
  31595. # include <assert.h>
  31596. #endif
  31597. #undef _doprnt
  31598. /* Override any GCC internal prototype to avoid an error.
  31599. Use char because int might match the return type of a GCC
  31600. builtin and then its argument prototype would still apply. */
  31601. #ifdef __cplusplus
  31602. extern "C"
  31603. #endif
  31604. char _doprnt ();
  31605. /* The GNU C library defines this for functions which it implements
  31606. to always fail with ENOSYS. Some functions are actually named
  31607. something starting with __ and the normal name is an alias. */
  31608. #if defined __stub__doprnt || defined __stub____doprnt
  31609. choke me
  31610. #endif
  31611. int
  31612. main ()
  31613. {
  31614. return _doprnt ();
  31615. ;
  31616. return 0;
  31617. }
  31618. _ACEOF
  31619. rm -f conftest.$ac_objext conftest$ac_exeext
  31620. if { (ac_try="$ac_link"
  31621. case "(($ac_try" in
  31622. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31623. *) ac_try_echo=$ac_try;;
  31624. esac
  31625. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31626. (eval "$ac_link") 2>conftest.er1
  31627. ac_status=$?
  31628. grep -v '^ *+' conftest.er1 >conftest.err
  31629. rm -f conftest.er1
  31630. cat conftest.err >&5
  31631. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31632. (exit $ac_status); } && {
  31633. test -z "$ac_c_werror_flag" ||
  31634. test ! -s conftest.err
  31635. } && test -s conftest$ac_exeext &&
  31636. $as_test_x conftest$ac_exeext; then
  31637. ac_cv_func__doprnt=yes
  31638. else
  31639. echo "$as_me: failed program was:" >&5
  31640. sed 's/^/| /' conftest.$ac_ext >&5
  31641. ac_cv_func__doprnt=no
  31642. fi
  31643. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  31644. conftest$ac_exeext conftest.$ac_ext
  31645. fi
  31646. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  31647. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  31648. if test $ac_cv_func__doprnt = yes; then
  31649. cat >>confdefs.h <<\_ACEOF
  31650. #define HAVE_DOPRNT 1
  31651. _ACEOF
  31652. fi
  31653. fi
  31654. done
  31655. for ac_func in strsignal mmap canonicalize_file_name snprintf strdup strchr strrchr
  31656. do
  31657. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  31658. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  31659. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  31660. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  31661. echo $ECHO_N "(cached) $ECHO_C" >&6
  31662. else
  31663. cat >conftest.$ac_ext <<_ACEOF
  31664. /* confdefs.h. */
  31665. _ACEOF
  31666. cat confdefs.h >>conftest.$ac_ext
  31667. cat >>conftest.$ac_ext <<_ACEOF
  31668. /* end confdefs.h. */
  31669. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  31670. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  31671. #define $ac_func innocuous_$ac_func
  31672. /* System header to define __stub macros and hopefully few prototypes,
  31673. which can conflict with char $ac_func (); below.
  31674. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  31675. <limits.h> exists even on freestanding compilers. */
  31676. #ifdef __STDC__
  31677. # include <limits.h>
  31678. #else
  31679. # include <assert.h>
  31680. #endif
  31681. #undef $ac_func
  31682. /* Override any GCC internal prototype to avoid an error.
  31683. Use char because int might match the return type of a GCC
  31684. builtin and then its argument prototype would still apply. */
  31685. #ifdef __cplusplus
  31686. extern "C"
  31687. #endif
  31688. char $ac_func ();
  31689. /* The GNU C library defines this for functions which it implements
  31690. to always fail with ENOSYS. Some functions are actually named
  31691. something starting with __ and the normal name is an alias. */
  31692. #if defined __stub_$ac_func || defined __stub___$ac_func
  31693. choke me
  31694. #endif
  31695. int
  31696. main ()
  31697. {
  31698. return $ac_func ();
  31699. ;
  31700. return 0;
  31701. }
  31702. _ACEOF
  31703. rm -f conftest.$ac_objext conftest$ac_exeext
  31704. if { (ac_try="$ac_link"
  31705. case "(($ac_try" in
  31706. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31707. *) ac_try_echo=$ac_try;;
  31708. esac
  31709. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31710. (eval "$ac_link") 2>conftest.er1
  31711. ac_status=$?
  31712. grep -v '^ *+' conftest.er1 >conftest.err
  31713. rm -f conftest.er1
  31714. cat conftest.err >&5
  31715. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31716. (exit $ac_status); } && {
  31717. test -z "$ac_c_werror_flag" ||
  31718. test ! -s conftest.err
  31719. } && test -s conftest$ac_exeext &&
  31720. $as_test_x conftest$ac_exeext; then
  31721. eval "$as_ac_var=yes"
  31722. else
  31723. echo "$as_me: failed program was:" >&5
  31724. sed 's/^/| /' conftest.$ac_ext >&5
  31725. eval "$as_ac_var=no"
  31726. fi
  31727. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  31728. conftest$ac_exeext conftest.$ac_ext
  31729. fi
  31730. ac_res=`eval echo '${'$as_ac_var'}'`
  31731. { echo "$as_me:$LINENO: result: $ac_res" >&5
  31732. echo "${ECHO_T}$ac_res" >&6; }
  31733. if test `eval echo '${'$as_ac_var'}'` = yes; then
  31734. cat >>confdefs.h <<_ACEOF
  31735. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  31736. _ACEOF
  31737. fi
  31738. done
  31739. INVOKE_LIBOPTS_MACROS_FIRST_done=yes
  31740. fi
  31741. fi
  31742. # end of AC_DEFUN of LIBOPTS_CHECK
  31743. ac_config_files="$ac_config_files Makefile doxygen.cfg lib/Makefile docs/Makefile src/Makefile src/common/Makefile src/tcpedit/Makefile src/defines.h test/Makefile test/config scripts/Makefile tcpreplay.spec"
  31744. cat >confcache <<\_ACEOF
  31745. # This file is a shell script that caches the results of configure
  31746. # tests run on this system so they can be shared between configure
  31747. # scripts and configure runs, see configure's option --config-cache.
  31748. # It is not useful on other systems. If it contains results you don't
  31749. # want to keep, you may remove or edit it.
  31750. #
  31751. # config.status only pays attention to the cache file if you give it
  31752. # the --recheck option to rerun configure.
  31753. #
  31754. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  31755. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  31756. # following values.
  31757. _ACEOF
  31758. # The following way of writing the cache mishandles newlines in values,
  31759. # but we know of no workaround that is simple, portable, and efficient.
  31760. # So, we kill variables containing newlines.
  31761. # Ultrix sh set writes to stderr and can't be redirected directly,
  31762. # and sets the high bit in the cache file unless we assign to the vars.
  31763. (
  31764. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  31765. eval ac_val=\$$ac_var
  31766. case $ac_val in #(
  31767. *${as_nl}*)
  31768. case $ac_var in #(
  31769. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  31770. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  31771. esac
  31772. case $ac_var in #(
  31773. _ | IFS | as_nl) ;; #(
  31774. *) $as_unset $ac_var ;;
  31775. esac ;;
  31776. esac
  31777. done
  31778. (set) 2>&1 |
  31779. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  31780. *${as_nl}ac_space=\ *)
  31781. # `set' does not quote correctly, so add quotes (double-quote
  31782. # substitution turns \\\\ into \\, and sed turns \\ into \).
  31783. sed -n \
  31784. "s/'/'\\\\''/g;
  31785. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  31786. ;; #(
  31787. *)
  31788. # `set' quotes correctly as required by POSIX, so do not add quotes.
  31789. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  31790. ;;
  31791. esac |
  31792. sort
  31793. ) |
  31794. sed '
  31795. /^ac_cv_env_/b end
  31796. t clear
  31797. :clear
  31798. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  31799. t end
  31800. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  31801. :end' >>confcache
  31802. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  31803. if test -w "$cache_file"; then
  31804. test "x$cache_file" != "x/dev/null" &&
  31805. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  31806. echo "$as_me: updating cache $cache_file" >&6;}
  31807. cat confcache >$cache_file
  31808. else
  31809. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  31810. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  31811. fi
  31812. fi
  31813. rm -f confcache
  31814. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  31815. # Let make expand exec_prefix.
  31816. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  31817. DEFS=-DHAVE_CONFIG_H
  31818. ac_libobjs=
  31819. ac_ltlibobjs=
  31820. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  31821. # 1. Remove the extension, and $U if already installed.
  31822. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  31823. ac_i=`echo "$ac_i" | sed "$ac_script"`
  31824. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  31825. # will be set to the directory where LIBOBJS objects are built.
  31826. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  31827. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  31828. done
  31829. LIBOBJS=$ac_libobjs
  31830. LTLIBOBJS=$ac_ltlibobjs
  31831. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  31832. { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  31833. Usually this means the macro was only invoked conditionally." >&5
  31834. echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  31835. Usually this means the macro was only invoked conditionally." >&2;}
  31836. { (exit 1); exit 1; }; }
  31837. fi
  31838. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  31839. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  31840. Usually this means the macro was only invoked conditionally." >&5
  31841. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  31842. Usually this means the macro was only invoked conditionally." >&2;}
  31843. { (exit 1); exit 1; }; }
  31844. fi
  31845. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  31846. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  31847. Usually this means the macro was only invoked conditionally." >&5
  31848. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  31849. Usually this means the macro was only invoked conditionally." >&2;}
  31850. { (exit 1); exit 1; }; }
  31851. fi
  31852. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  31853. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  31854. Usually this means the macro was only invoked conditionally." >&5
  31855. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  31856. Usually this means the macro was only invoked conditionally." >&2;}
  31857. { (exit 1); exit 1; }; }
  31858. fi
  31859. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  31860. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  31861. Usually this means the macro was only invoked conditionally." >&5
  31862. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  31863. Usually this means the macro was only invoked conditionally." >&2;}
  31864. { (exit 1); exit 1; }; }
  31865. fi
  31866. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  31867. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  31868. Usually this means the macro was only invoked conditionally." >&5
  31869. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  31870. Usually this means the macro was only invoked conditionally." >&2;}
  31871. { (exit 1); exit 1; }; }
  31872. fi
  31873. if test -z "${SYSTEM_STRLCPY_TRUE}" && test -z "${SYSTEM_STRLCPY_FALSE}"; then
  31874. { { echo "$as_me:$LINENO: error: conditional \"SYSTEM_STRLCPY\" was never defined.
  31875. Usually this means the macro was only invoked conditionally." >&5
  31876. echo "$as_me: error: conditional \"SYSTEM_STRLCPY\" was never defined.
  31877. Usually this means the macro was only invoked conditionally." >&2;}
  31878. { (exit 1); exit 1; }; }
  31879. fi
  31880. if test -z "${WORDS_BIGENDIAN_TRUE}" && test -z "${WORDS_BIGENDIAN_FALSE}"; then
  31881. { { echo "$as_me:$LINENO: error: conditional \"WORDS_BIGENDIAN\" was never defined.
  31882. Usually this means the macro was only invoked conditionally." >&5
  31883. echo "$as_me: error: conditional \"WORDS_BIGENDIAN\" was never defined.
  31884. Usually this means the macro was only invoked conditionally." >&2;}
  31885. { (exit 1); exit 1; }; }
  31886. fi
  31887. if test -z "${ENABLE_TCPREPLAY_EDIT_TRUE}" && test -z "${ENABLE_TCPREPLAY_EDIT_FALSE}"; then
  31888. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCPREPLAY_EDIT\" was never defined.
  31889. Usually this means the macro was only invoked conditionally." >&5
  31890. echo "$as_me: error: conditional \"ENABLE_TCPREPLAY_EDIT\" was never defined.
  31891. Usually this means the macro was only invoked conditionally." >&2;}
  31892. { (exit 1); exit 1; }; }
  31893. fi
  31894. if test -z "${ENABLE_TCPDUMP_TRUE}" && test -z "${ENABLE_TCPDUMP_FALSE}"; then
  31895. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCPDUMP\" was never defined.
  31896. Usually this means the macro was only invoked conditionally." >&5
  31897. echo "$as_me: error: conditional \"ENABLE_TCPDUMP\" was never defined.
  31898. Usually this means the macro was only invoked conditionally." >&2;}
  31899. { (exit 1); exit 1; }; }
  31900. fi
  31901. if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
  31902. { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBOPTS\" was never defined.
  31903. Usually this means the macro was only invoked conditionally." >&5
  31904. echo "$as_me: error: conditional \"INSTALL_LIBOPTS\" was never defined.
  31905. Usually this means the macro was only invoked conditionally." >&2;}
  31906. { (exit 1); exit 1; }; }
  31907. fi
  31908. if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
  31909. { { echo "$as_me:$LINENO: error: conditional \"NEED_LIBOPTS\" was never defined.
  31910. Usually this means the macro was only invoked conditionally." >&5
  31911. echo "$as_me: error: conditional \"NEED_LIBOPTS\" was never defined.
  31912. Usually this means the macro was only invoked conditionally." >&2;}
  31913. { (exit 1); exit 1; }; }
  31914. fi
  31915. : ${CONFIG_STATUS=./config.status}
  31916. ac_clean_files_save=$ac_clean_files
  31917. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  31918. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  31919. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  31920. cat >$CONFIG_STATUS <<_ACEOF
  31921. #! $SHELL
  31922. # Generated by $as_me.
  31923. # Run this file to recreate the current configuration.
  31924. # Compiler output produced by configure, useful for debugging
  31925. # configure, is in config.log if it exists.
  31926. debug=false
  31927. ac_cs_recheck=false
  31928. ac_cs_silent=false
  31929. SHELL=\${CONFIG_SHELL-$SHELL}
  31930. _ACEOF
  31931. cat >>$CONFIG_STATUS <<\_ACEOF
  31932. ## --------------------- ##
  31933. ## M4sh Initialization. ##
  31934. ## --------------------- ##
  31935. # Be more Bourne compatible
  31936. DUALCASE=1; export DUALCASE # for MKS sh
  31937. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  31938. emulate sh
  31939. NULLCMD=:
  31940. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  31941. # is contrary to our usage. Disable this feature.
  31942. alias -g '${1+"$@"}'='"$@"'
  31943. setopt NO_GLOB_SUBST
  31944. else
  31945. case `(set -o) 2>/dev/null` in
  31946. *posix*) set -o posix ;;
  31947. esac
  31948. fi
  31949. # PATH needs CR
  31950. # Avoid depending upon Character Ranges.
  31951. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  31952. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  31953. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  31954. as_cr_digits='0123456789'
  31955. as_cr_alnum=$as_cr_Letters$as_cr_digits
  31956. # The user is always right.
  31957. if test "${PATH_SEPARATOR+set}" != set; then
  31958. echo "#! /bin/sh" >conf$$.sh
  31959. echo "exit 0" >>conf$$.sh
  31960. chmod +x conf$$.sh
  31961. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  31962. PATH_SEPARATOR=';'
  31963. else
  31964. PATH_SEPARATOR=:
  31965. fi
  31966. rm -f conf$$.sh
  31967. fi
  31968. # Support unset when possible.
  31969. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  31970. as_unset=unset
  31971. else
  31972. as_unset=false
  31973. fi
  31974. # IFS
  31975. # We need space, tab and new line, in precisely that order. Quoting is
  31976. # there to prevent editors from complaining about space-tab.
  31977. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  31978. # splitting by setting IFS to empty value.)
  31979. as_nl='
  31980. '
  31981. IFS=" "" $as_nl"
  31982. # Find who we are. Look in the path if we contain no directory separator.
  31983. case $0 in
  31984. *[\\/]* ) as_myself=$0 ;;
  31985. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  31986. for as_dir in $PATH
  31987. do
  31988. IFS=$as_save_IFS
  31989. test -z "$as_dir" && as_dir=.
  31990. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  31991. done
  31992. IFS=$as_save_IFS
  31993. ;;
  31994. esac
  31995. # We did not find ourselves, most probably we were run as `sh COMMAND'
  31996. # in which case we are not to be found in the path.
  31997. if test "x$as_myself" = x; then
  31998. as_myself=$0
  31999. fi
  32000. if test ! -f "$as_myself"; then
  32001. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  32002. { (exit 1); exit 1; }
  32003. fi
  32004. # Work around bugs in pre-3.0 UWIN ksh.
  32005. for as_var in ENV MAIL MAILPATH
  32006. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  32007. done
  32008. PS1='$ '
  32009. PS2='> '
  32010. PS4='+ '
  32011. # NLS nuisances.
  32012. for as_var in \
  32013. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  32014. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  32015. LC_TELEPHONE LC_TIME
  32016. do
  32017. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  32018. eval $as_var=C; export $as_var
  32019. else
  32020. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  32021. fi
  32022. done
  32023. # Required to use basename.
  32024. if expr a : '\(a\)' >/dev/null 2>&1 &&
  32025. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  32026. as_expr=expr
  32027. else
  32028. as_expr=false
  32029. fi
  32030. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  32031. as_basename=basename
  32032. else
  32033. as_basename=false
  32034. fi
  32035. # Name of the executable.
  32036. as_me=`$as_basename -- "$0" ||
  32037. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  32038. X"$0" : 'X\(//\)$' \| \
  32039. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  32040. echo X/"$0" |
  32041. sed '/^.*\/\([^/][^/]*\)\/*$/{
  32042. s//\1/
  32043. q
  32044. }
  32045. /^X\/\(\/\/\)$/{
  32046. s//\1/
  32047. q
  32048. }
  32049. /^X\/\(\/\).*/{
  32050. s//\1/
  32051. q
  32052. }
  32053. s/.*/./; q'`
  32054. # CDPATH.
  32055. $as_unset CDPATH
  32056. as_lineno_1=$LINENO
  32057. as_lineno_2=$LINENO
  32058. test "x$as_lineno_1" != "x$as_lineno_2" &&
  32059. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  32060. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  32061. # uniformly replaced by the line number. The first 'sed' inserts a
  32062. # line-number line after each line using $LINENO; the second 'sed'
  32063. # does the real work. The second script uses 'N' to pair each
  32064. # line-number line with the line containing $LINENO, and appends
  32065. # trailing '-' during substitution so that $LINENO is not a special
  32066. # case at line end.
  32067. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  32068. # scripts with optimization help from Paolo Bonzini. Blame Lee
  32069. # E. McMahon (1931-1989) for sed's syntax. :-)
  32070. sed -n '
  32071. p
  32072. /[$]LINENO/=
  32073. ' <$as_myself |
  32074. sed '
  32075. s/[$]LINENO.*/&-/
  32076. t lineno
  32077. b
  32078. :lineno
  32079. N
  32080. :loop
  32081. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  32082. t loop
  32083. s/-\n.*//
  32084. ' >$as_me.lineno &&
  32085. chmod +x "$as_me.lineno" ||
  32086. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  32087. { (exit 1); exit 1; }; }
  32088. # Don't try to exec as it changes $[0], causing all sort of problems
  32089. # (the dirname of $[0] is not the place where we might find the
  32090. # original and so on. Autoconf is especially sensitive to this).
  32091. . "./$as_me.lineno"
  32092. # Exit status is that of the last command.
  32093. exit
  32094. }
  32095. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  32096. as_dirname=dirname
  32097. else
  32098. as_dirname=false
  32099. fi
  32100. ECHO_C= ECHO_N= ECHO_T=
  32101. case `echo -n x` in
  32102. -n*)
  32103. case `echo 'x\c'` in
  32104. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  32105. *) ECHO_C='\c';;
  32106. esac;;
  32107. *)
  32108. ECHO_N='-n';;
  32109. esac
  32110. if expr a : '\(a\)' >/dev/null 2>&1 &&
  32111. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  32112. as_expr=expr
  32113. else
  32114. as_expr=false
  32115. fi
  32116. rm -f conf$$ conf$$.exe conf$$.file
  32117. if test -d conf$$.dir; then
  32118. rm -f conf$$.dir/conf$$.file
  32119. else
  32120. rm -f conf$$.dir
  32121. mkdir conf$$.dir
  32122. fi
  32123. echo >conf$$.file
  32124. if ln -s conf$$.file conf$$ 2>/dev/null; then
  32125. as_ln_s='ln -s'
  32126. # ... but there are two gotchas:
  32127. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  32128. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  32129. # In both cases, we have to default to `cp -p'.
  32130. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  32131. as_ln_s='cp -p'
  32132. elif ln conf$$.file conf$$ 2>/dev/null; then
  32133. as_ln_s=ln
  32134. else
  32135. as_ln_s='cp -p'
  32136. fi
  32137. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  32138. rmdir conf$$.dir 2>/dev/null
  32139. if mkdir -p . 2>/dev/null; then
  32140. as_mkdir_p=:
  32141. else
  32142. test -d ./-p && rmdir ./-p
  32143. as_mkdir_p=false
  32144. fi
  32145. if test -x / >/dev/null 2>&1; then
  32146. as_test_x='test -x'
  32147. else
  32148. if ls -dL / >/dev/null 2>&1; then
  32149. as_ls_L_option=L
  32150. else
  32151. as_ls_L_option=
  32152. fi
  32153. as_test_x='
  32154. eval sh -c '\''
  32155. if test -d "$1"; then
  32156. test -d "$1/.";
  32157. else
  32158. case $1 in
  32159. -*)set "./$1";;
  32160. esac;
  32161. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  32162. ???[sx]*):;;*)false;;esac;fi
  32163. '\'' sh
  32164. '
  32165. fi
  32166. as_executable_p=$as_test_x
  32167. # Sed expression to map a string onto a valid CPP name.
  32168. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  32169. # Sed expression to map a string onto a valid variable name.
  32170. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  32171. exec 6>&1
  32172. # Save the log message, to keep $[0] and so on meaningful, and to
  32173. # report actual input values of CONFIG_FILES etc. instead of their
  32174. # values after options handling.
  32175. ac_log="
  32176. This file was extended by $as_me, which was
  32177. generated by GNU Autoconf 2.61. Invocation command line was
  32178. CONFIG_FILES = $CONFIG_FILES
  32179. CONFIG_HEADERS = $CONFIG_HEADERS
  32180. CONFIG_LINKS = $CONFIG_LINKS
  32181. CONFIG_COMMANDS = $CONFIG_COMMANDS
  32182. $ $0 $@
  32183. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  32184. "
  32185. _ACEOF
  32186. cat >>$CONFIG_STATUS <<_ACEOF
  32187. # Files that config.status was made for.
  32188. config_files="$ac_config_files"
  32189. config_headers="$ac_config_headers"
  32190. config_commands="$ac_config_commands"
  32191. _ACEOF
  32192. cat >>$CONFIG_STATUS <<\_ACEOF
  32193. ac_cs_usage="\
  32194. \`$as_me' instantiates files from templates according to the
  32195. current configuration.
  32196. Usage: $0 [OPTIONS] [FILE]...
  32197. -h, --help print this help, then exit
  32198. -V, --version print version number and configuration settings, then exit
  32199. -q, --quiet do not print progress messages
  32200. -d, --debug don't remove temporary files
  32201. --recheck update $as_me by reconfiguring in the same conditions
  32202. --file=FILE[:TEMPLATE]
  32203. instantiate the configuration file FILE
  32204. --header=FILE[:TEMPLATE]
  32205. instantiate the configuration header FILE
  32206. Configuration files:
  32207. $config_files
  32208. Configuration headers:
  32209. $config_headers
  32210. Configuration commands:
  32211. $config_commands
  32212. Report bugs to <bug-autoconf@gnu.org>."
  32213. _ACEOF
  32214. cat >>$CONFIG_STATUS <<_ACEOF
  32215. ac_cs_version="\\
  32216. config.status
  32217. configured by $0, generated by GNU Autoconf 2.61,
  32218. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  32219. Copyright (C) 2006 Free Software Foundation, Inc.
  32220. This config.status script is free software; the Free Software Foundation
  32221. gives unlimited permission to copy, distribute and modify it."
  32222. ac_pwd='$ac_pwd'
  32223. srcdir='$srcdir'
  32224. INSTALL='$INSTALL'
  32225. MKDIR_P='$MKDIR_P'
  32226. _ACEOF
  32227. cat >>$CONFIG_STATUS <<\_ACEOF
  32228. # If no file are specified by the user, then we need to provide default
  32229. # value. By we need to know if files were specified by the user.
  32230. ac_need_defaults=:
  32231. while test $# != 0
  32232. do
  32233. case $1 in
  32234. --*=*)
  32235. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  32236. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  32237. ac_shift=:
  32238. ;;
  32239. *)
  32240. ac_option=$1
  32241. ac_optarg=$2
  32242. ac_shift=shift
  32243. ;;
  32244. esac
  32245. case $ac_option in
  32246. # Handling of the options.
  32247. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  32248. ac_cs_recheck=: ;;
  32249. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  32250. echo "$ac_cs_version"; exit ;;
  32251. --debug | --debu | --deb | --de | --d | -d )
  32252. debug=: ;;
  32253. --file | --fil | --fi | --f )
  32254. $ac_shift
  32255. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  32256. ac_need_defaults=false;;
  32257. --header | --heade | --head | --hea )
  32258. $ac_shift
  32259. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  32260. ac_need_defaults=false;;
  32261. --he | --h)
  32262. # Conflict between --help and --header
  32263. { echo "$as_me: error: ambiguous option: $1
  32264. Try \`$0 --help' for more information." >&2
  32265. { (exit 1); exit 1; }; };;
  32266. --help | --hel | -h )
  32267. echo "$ac_cs_usage"; exit ;;
  32268. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  32269. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  32270. ac_cs_silent=: ;;
  32271. # This is an error.
  32272. -*) { echo "$as_me: error: unrecognized option: $1
  32273. Try \`$0 --help' for more information." >&2
  32274. { (exit 1); exit 1; }; } ;;
  32275. *) ac_config_targets="$ac_config_targets $1"
  32276. ac_need_defaults=false ;;
  32277. esac
  32278. shift
  32279. done
  32280. ac_configure_extra_args=
  32281. if $ac_cs_silent; then
  32282. exec 6>/dev/null
  32283. ac_configure_extra_args="$ac_configure_extra_args --silent"
  32284. fi
  32285. _ACEOF
  32286. cat >>$CONFIG_STATUS <<_ACEOF
  32287. if \$ac_cs_recheck; then
  32288. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  32289. CONFIG_SHELL=$SHELL
  32290. export CONFIG_SHELL
  32291. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  32292. fi
  32293. _ACEOF
  32294. cat >>$CONFIG_STATUS <<\_ACEOF
  32295. exec 5>>config.log
  32296. {
  32297. echo
  32298. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  32299. ## Running $as_me. ##
  32300. _ASBOX
  32301. echo "$ac_log"
  32302. } >&5
  32303. _ACEOF
  32304. cat >>$CONFIG_STATUS <<_ACEOF
  32305. #
  32306. # INIT-COMMANDS
  32307. #
  32308. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  32309. _ACEOF
  32310. cat >>$CONFIG_STATUS <<\_ACEOF
  32311. # Handling of arguments.
  32312. for ac_config_target in $ac_config_targets
  32313. do
  32314. case $ac_config_target in
  32315. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  32316. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  32317. "libopts/Makefile") CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;;
  32318. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  32319. "doxygen.cfg") CONFIG_FILES="$CONFIG_FILES doxygen.cfg" ;;
  32320. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  32321. "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
  32322. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  32323. "src/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;;
  32324. "src/tcpedit/Makefile") CONFIG_FILES="$CONFIG_FILES src/tcpedit/Makefile" ;;
  32325. "src/defines.h") CONFIG_FILES="$CONFIG_FILES src/defines.h" ;;
  32326. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  32327. "test/config") CONFIG_FILES="$CONFIG_FILES test/config" ;;
  32328. "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
  32329. "tcpreplay.spec") CONFIG_FILES="$CONFIG_FILES tcpreplay.spec" ;;
  32330. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  32331. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  32332. { (exit 1); exit 1; }; };;
  32333. esac
  32334. done
  32335. # If the user did not use the arguments to specify the items to instantiate,
  32336. # then the envvar interface is used. Set only those that are not.
  32337. # We use the long form for the default assignment because of an extremely
  32338. # bizarre bug on SunOS 4.1.3.
  32339. if $ac_need_defaults; then
  32340. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  32341. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  32342. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  32343. fi
  32344. # Have a temporary directory for convenience. Make it in the build tree
  32345. # simply because there is no reason against having it here, and in addition,
  32346. # creating and moving files from /tmp can sometimes cause problems.
  32347. # Hook for its removal unless debugging.
  32348. # Note that there is a small window in which the directory will not be cleaned:
  32349. # after its creation but before its name has been assigned to `$tmp'.
  32350. $debug ||
  32351. {
  32352. tmp=
  32353. trap 'exit_status=$?
  32354. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  32355. ' 0
  32356. trap '{ (exit 1); exit 1; }' 1 2 13 15
  32357. }
  32358. # Create a (secure) tmp directory for tmp files.
  32359. {
  32360. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  32361. test -n "$tmp" && test -d "$tmp"
  32362. } ||
  32363. {
  32364. tmp=./conf$$-$RANDOM
  32365. (umask 077 && mkdir "$tmp")
  32366. } ||
  32367. {
  32368. echo "$me: cannot create a temporary directory in ." >&2
  32369. { (exit 1); exit 1; }
  32370. }
  32371. #
  32372. # Set up the sed scripts for CONFIG_FILES section.
  32373. #
  32374. # No need to generate the scripts if there are no CONFIG_FILES.
  32375. # This happens for instance when ./config.status config.h
  32376. if test -n "$CONFIG_FILES"; then
  32377. _ACEOF
  32378. ac_delim='%!_!# '
  32379. for ac_last_try in false false false false false :; do
  32380. cat >conf$$subs.sed <<_ACEOF
  32381. SHELL!$SHELL$ac_delim
  32382. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  32383. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  32384. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  32385. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  32386. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  32387. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  32388. exec_prefix!$exec_prefix$ac_delim
  32389. prefix!$prefix$ac_delim
  32390. program_transform_name!$program_transform_name$ac_delim
  32391. bindir!$bindir$ac_delim
  32392. sbindir!$sbindir$ac_delim
  32393. libexecdir!$libexecdir$ac_delim
  32394. datarootdir!$datarootdir$ac_delim
  32395. datadir!$datadir$ac_delim
  32396. sysconfdir!$sysconfdir$ac_delim
  32397. sharedstatedir!$sharedstatedir$ac_delim
  32398. localstatedir!$localstatedir$ac_delim
  32399. includedir!$includedir$ac_delim
  32400. oldincludedir!$oldincludedir$ac_delim
  32401. docdir!$docdir$ac_delim
  32402. infodir!$infodir$ac_delim
  32403. htmldir!$htmldir$ac_delim
  32404. dvidir!$dvidir$ac_delim
  32405. pdfdir!$pdfdir$ac_delim
  32406. psdir!$psdir$ac_delim
  32407. libdir!$libdir$ac_delim
  32408. localedir!$localedir$ac_delim
  32409. mandir!$mandir$ac_delim
  32410. DEFS!$DEFS$ac_delim
  32411. ECHO_C!$ECHO_C$ac_delim
  32412. ECHO_N!$ECHO_N$ac_delim
  32413. ECHO_T!$ECHO_T$ac_delim
  32414. LIBS!$LIBS$ac_delim
  32415. build_alias!$build_alias$ac_delim
  32416. host_alias!$host_alias$ac_delim
  32417. target_alias!$target_alias$ac_delim
  32418. MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
  32419. MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
  32420. MAINT!$MAINT$ac_delim
  32421. TCPREPLAY_VERSION!$TCPREPLAY_VERSION$ac_delim
  32422. TCPREPLAY_RELEASE!$TCPREPLAY_RELEASE$ac_delim
  32423. build!$build$ac_delim
  32424. build_cpu!$build_cpu$ac_delim
  32425. build_vendor!$build_vendor$ac_delim
  32426. build_os!$build_os$ac_delim
  32427. host!$host$ac_delim
  32428. host_cpu!$host_cpu$ac_delim
  32429. host_vendor!$host_vendor$ac_delim
  32430. host_os!$host_os$ac_delim
  32431. target!$target$ac_delim
  32432. target_cpu!$target_cpu$ac_delim
  32433. target_vendor!$target_vendor$ac_delim
  32434. target_os!$target_os$ac_delim
  32435. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  32436. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  32437. INSTALL_DATA!$INSTALL_DATA$ac_delim
  32438. am__isrc!$am__isrc$ac_delim
  32439. CYGPATH_W!$CYGPATH_W$ac_delim
  32440. PACKAGE!$PACKAGE$ac_delim
  32441. VERSION!$VERSION$ac_delim
  32442. ACLOCAL!$ACLOCAL$ac_delim
  32443. AUTOCONF!$AUTOCONF$ac_delim
  32444. AUTOMAKE!$AUTOMAKE$ac_delim
  32445. AUTOHEADER!$AUTOHEADER$ac_delim
  32446. MAKEINFO!$MAKEINFO$ac_delim
  32447. install_sh!$install_sh$ac_delim
  32448. STRIP!$STRIP$ac_delim
  32449. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  32450. mkdir_p!$mkdir_p$ac_delim
  32451. AWK!$AWK$ac_delim
  32452. SET_MAKE!$SET_MAKE$ac_delim
  32453. am__leading_dot!$am__leading_dot$ac_delim
  32454. AMTAR!$AMTAR$ac_delim
  32455. am__tar!$am__tar$ac_delim
  32456. am__untar!$am__untar$ac_delim
  32457. CC!$CC$ac_delim
  32458. CFLAGS!$CFLAGS$ac_delim
  32459. LDFLAGS!$LDFLAGS$ac_delim
  32460. CPPFLAGS!$CPPFLAGS$ac_delim
  32461. ac_ct_CC!$ac_ct_CC$ac_delim
  32462. EXEEXT!$EXEEXT$ac_delim
  32463. OBJEXT!$OBJEXT$ac_delim
  32464. DEPDIR!$DEPDIR$ac_delim
  32465. am__include!$am__include$ac_delim
  32466. am__quote!$am__quote$ac_delim
  32467. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  32468. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  32469. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  32470. CCDEPMODE!$CCDEPMODE$ac_delim
  32471. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  32472. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  32473. SED!$SED$ac_delim
  32474. GREP!$GREP$ac_delim
  32475. EGREP!$EGREP$ac_delim
  32476. LN_S!$LN_S$ac_delim
  32477. ECHO!$ECHO$ac_delim
  32478. _ACEOF
  32479. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  32480. break
  32481. elif $ac_last_try; then
  32482. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  32483. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  32484. { (exit 1); exit 1; }; }
  32485. else
  32486. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  32487. fi
  32488. done
  32489. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  32490. if test -n "$ac_eof"; then
  32491. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  32492. ac_eof=`expr $ac_eof + 1`
  32493. fi
  32494. cat >>$CONFIG_STATUS <<_ACEOF
  32495. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  32496. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  32497. _ACEOF
  32498. sed '
  32499. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  32500. s/^/s,@/; s/!/@,|#_!!_#|/
  32501. :n
  32502. t n
  32503. s/'"$ac_delim"'$/,g/; t
  32504. s/$/\\/; p
  32505. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  32506. ' >>$CONFIG_STATUS <conf$$subs.sed
  32507. rm -f conf$$subs.sed
  32508. cat >>$CONFIG_STATUS <<_ACEOF
  32509. CEOF$ac_eof
  32510. _ACEOF
  32511. ac_delim='%!_!# '
  32512. for ac_last_try in false false false false false :; do
  32513. cat >conf$$subs.sed <<_ACEOF
  32514. AR!$AR$ac_delim
  32515. RANLIB!$RANLIB$ac_delim
  32516. CPP!$CPP$ac_delim
  32517. CXX!$CXX$ac_delim
  32518. CXXFLAGS!$CXXFLAGS$ac_delim
  32519. ac_ct_CXX!$ac_ct_CXX$ac_delim
  32520. CXXDEPMODE!$CXXDEPMODE$ac_delim
  32521. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  32522. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  32523. CXXCPP!$CXXCPP$ac_delim
  32524. F77!$F77$ac_delim
  32525. FFLAGS!$FFLAGS$ac_delim
  32526. ac_ct_F77!$ac_ct_F77$ac_delim
  32527. LIBTOOL!$LIBTOOL$ac_delim
  32528. PRINTF!$PRINTF$ac_delim
  32529. AUTOGEN!$AUTOGEN$ac_delim
  32530. LIBOBJS!$LIBOBJS$ac_delim
  32531. SYSTEM_STRLCPY_TRUE!$SYSTEM_STRLCPY_TRUE$ac_delim
  32532. SYSTEM_STRLCPY_FALSE!$SYSTEM_STRLCPY_FALSE$ac_delim
  32533. WORDS_BIGENDIAN_TRUE!$WORDS_BIGENDIAN_TRUE$ac_delim
  32534. WORDS_BIGENDIAN_FALSE!$WORDS_BIGENDIAN_FALSE$ac_delim
  32535. debug_flag!$debug_flag$ac_delim
  32536. ENABLE_TCPREPLAY_EDIT_TRUE!$ENABLE_TCPREPLAY_EDIT_TRUE$ac_delim
  32537. ENABLE_TCPREPLAY_EDIT_FALSE!$ENABLE_TCPREPLAY_EDIT_FALSE$ac_delim
  32538. LNETINC!$LNETINC$ac_delim
  32539. LNETLIB!$LNETLIB$ac_delim
  32540. LPCAPINC!$LPCAPINC$ac_delim
  32541. LPCAPLIB!$LPCAPLIB$ac_delim
  32542. PCAP_BPF_H_FILE!$PCAP_BPF_H_FILE$ac_delim
  32543. pcncfg!$pcncfg$ac_delim
  32544. LNAVLIB!$LNAVLIB$ac_delim
  32545. LNAV_CFLAGS!$LNAV_CFLAGS$ac_delim
  32546. tcpdump_path!$tcpdump_path$ac_delim
  32547. ENABLE_TCPDUMP_TRUE!$ENABLE_TCPDUMP_TRUE$ac_delim
  32548. ENABLE_TCPDUMP_FALSE!$ENABLE_TCPDUMP_FALSE$ac_delim
  32549. nic1!$nic1$ac_delim
  32550. nic2!$nic2$ac_delim
  32551. LIBOPTS_DIR!$LIBOPTS_DIR$ac_delim
  32552. INSTALL_LIBOPTS_TRUE!$INSTALL_LIBOPTS_TRUE$ac_delim
  32553. INSTALL_LIBOPTS_FALSE!$INSTALL_LIBOPTS_FALSE$ac_delim
  32554. NEED_LIBOPTS_TRUE!$NEED_LIBOPTS_TRUE$ac_delim
  32555. NEED_LIBOPTS_FALSE!$NEED_LIBOPTS_FALSE$ac_delim
  32556. LIBOPTS_LDADD!$LIBOPTS_LDADD$ac_delim
  32557. LIBOPTS_CFLAGS!$LIBOPTS_CFLAGS$ac_delim
  32558. LTLIBOBJS!$LTLIBOBJS$ac_delim
  32559. _ACEOF
  32560. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 45; then
  32561. break
  32562. elif $ac_last_try; then
  32563. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  32564. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  32565. { (exit 1); exit 1; }; }
  32566. else
  32567. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  32568. fi
  32569. done
  32570. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  32571. if test -n "$ac_eof"; then
  32572. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  32573. ac_eof=`expr $ac_eof + 1`
  32574. fi
  32575. cat >>$CONFIG_STATUS <<_ACEOF
  32576. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  32577. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  32578. _ACEOF
  32579. sed '
  32580. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  32581. s/^/s,@/; s/!/@,|#_!!_#|/
  32582. :n
  32583. t n
  32584. s/'"$ac_delim"'$/,g/; t
  32585. s/$/\\/; p
  32586. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  32587. ' >>$CONFIG_STATUS <conf$$subs.sed
  32588. rm -f conf$$subs.sed
  32589. cat >>$CONFIG_STATUS <<_ACEOF
  32590. :end
  32591. s/|#_!!_#|//g
  32592. CEOF$ac_eof
  32593. _ACEOF
  32594. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  32595. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  32596. # trailing colons and then remove the whole line if VPATH becomes empty
  32597. # (actually we leave an empty line to preserve line numbers).
  32598. if test "x$srcdir" = x.; then
  32599. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  32600. s/:*\$(srcdir):*/:/
  32601. s/:*\${srcdir}:*/:/
  32602. s/:*@srcdir@:*/:/
  32603. s/^\([^=]*=[ ]*\):*/\1/
  32604. s/:*$//
  32605. s/^[^=]*=[ ]*$//
  32606. }'
  32607. fi
  32608. cat >>$CONFIG_STATUS <<\_ACEOF
  32609. fi # test -n "$CONFIG_FILES"
  32610. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  32611. do
  32612. case $ac_tag in
  32613. :[FHLC]) ac_mode=$ac_tag; continue;;
  32614. esac
  32615. case $ac_mode$ac_tag in
  32616. :[FHL]*:*);;
  32617. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  32618. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  32619. { (exit 1); exit 1; }; };;
  32620. :[FH]-) ac_tag=-:-;;
  32621. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  32622. esac
  32623. ac_save_IFS=$IFS
  32624. IFS=:
  32625. set x $ac_tag
  32626. IFS=$ac_save_IFS
  32627. shift
  32628. ac_file=$1
  32629. shift
  32630. case $ac_mode in
  32631. :L) ac_source=$1;;
  32632. :[FH])
  32633. ac_file_inputs=
  32634. for ac_f
  32635. do
  32636. case $ac_f in
  32637. -) ac_f="$tmp/stdin";;
  32638. *) # Look for the file first in the build tree, then in the source tree
  32639. # (if the path is not absolute). The absolute path cannot be DOS-style,
  32640. # because $ac_f cannot contain `:'.
  32641. test -f "$ac_f" ||
  32642. case $ac_f in
  32643. [\\/$]*) false;;
  32644. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  32645. esac ||
  32646. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  32647. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  32648. { (exit 1); exit 1; }; };;
  32649. esac
  32650. ac_file_inputs="$ac_file_inputs $ac_f"
  32651. done
  32652. # Let's still pretend it is `configure' which instantiates (i.e., don't
  32653. # use $as_me), people would be surprised to read:
  32654. # /* config.h. Generated by config.status. */
  32655. configure_input="Generated from "`IFS=:
  32656. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  32657. if test x"$ac_file" != x-; then
  32658. configure_input="$ac_file. $configure_input"
  32659. { echo "$as_me:$LINENO: creating $ac_file" >&5
  32660. echo "$as_me: creating $ac_file" >&6;}
  32661. fi
  32662. case $ac_tag in
  32663. *:-:* | *:-) cat >"$tmp/stdin";;
  32664. esac
  32665. ;;
  32666. esac
  32667. ac_dir=`$as_dirname -- "$ac_file" ||
  32668. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  32669. X"$ac_file" : 'X\(//\)[^/]' \| \
  32670. X"$ac_file" : 'X\(//\)$' \| \
  32671. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  32672. echo X"$ac_file" |
  32673. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  32674. s//\1/
  32675. q
  32676. }
  32677. /^X\(\/\/\)[^/].*/{
  32678. s//\1/
  32679. q
  32680. }
  32681. /^X\(\/\/\)$/{
  32682. s//\1/
  32683. q
  32684. }
  32685. /^X\(\/\).*/{
  32686. s//\1/
  32687. q
  32688. }
  32689. s/.*/./; q'`
  32690. { as_dir="$ac_dir"
  32691. case $as_dir in #(
  32692. -*) as_dir=./$as_dir;;
  32693. esac
  32694. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  32695. as_dirs=
  32696. while :; do
  32697. case $as_dir in #(
  32698. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  32699. *) as_qdir=$as_dir;;
  32700. esac
  32701. as_dirs="'$as_qdir' $as_dirs"
  32702. as_dir=`$as_dirname -- "$as_dir" ||
  32703. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  32704. X"$as_dir" : 'X\(//\)[^/]' \| \
  32705. X"$as_dir" : 'X\(//\)$' \| \
  32706. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  32707. echo X"$as_dir" |
  32708. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  32709. s//\1/
  32710. q
  32711. }
  32712. /^X\(\/\/\)[^/].*/{
  32713. s//\1/
  32714. q
  32715. }
  32716. /^X\(\/\/\)$/{
  32717. s//\1/
  32718. q
  32719. }
  32720. /^X\(\/\).*/{
  32721. s//\1/
  32722. q
  32723. }
  32724. s/.*/./; q'`
  32725. test -d "$as_dir" && break
  32726. done
  32727. test -z "$as_dirs" || eval "mkdir $as_dirs"
  32728. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  32729. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  32730. { (exit 1); exit 1; }; }; }
  32731. ac_builddir=.
  32732. case "$ac_dir" in
  32733. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  32734. *)
  32735. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  32736. # A ".." for each directory in $ac_dir_suffix.
  32737. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  32738. case $ac_top_builddir_sub in
  32739. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  32740. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  32741. esac ;;
  32742. esac
  32743. ac_abs_top_builddir=$ac_pwd
  32744. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  32745. # for backward compatibility:
  32746. ac_top_builddir=$ac_top_build_prefix
  32747. case $srcdir in
  32748. .) # We are building in place.
  32749. ac_srcdir=.
  32750. ac_top_srcdir=$ac_top_builddir_sub
  32751. ac_abs_top_srcdir=$ac_pwd ;;
  32752. [\\/]* | ?:[\\/]* ) # Absolute name.
  32753. ac_srcdir=$srcdir$ac_dir_suffix;
  32754. ac_top_srcdir=$srcdir
  32755. ac_abs_top_srcdir=$srcdir ;;
  32756. *) # Relative name.
  32757. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  32758. ac_top_srcdir=$ac_top_build_prefix$srcdir
  32759. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  32760. esac
  32761. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  32762. case $ac_mode in
  32763. :F)
  32764. #
  32765. # CONFIG_FILE
  32766. #
  32767. case $INSTALL in
  32768. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  32769. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  32770. esac
  32771. ac_MKDIR_P=$MKDIR_P
  32772. case $MKDIR_P in
  32773. [\\/$]* | ?:[\\/]* ) ;;
  32774. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  32775. esac
  32776. _ACEOF
  32777. cat >>$CONFIG_STATUS <<\_ACEOF
  32778. # If the template does not know about datarootdir, expand it.
  32779. # FIXME: This hack should be removed a few years after 2.60.
  32780. ac_datarootdir_hack=; ac_datarootdir_seen=
  32781. case `sed -n '/datarootdir/ {
  32782. p
  32783. q
  32784. }
  32785. /@datadir@/p
  32786. /@docdir@/p
  32787. /@infodir@/p
  32788. /@localedir@/p
  32789. /@mandir@/p
  32790. ' $ac_file_inputs` in
  32791. *datarootdir*) ac_datarootdir_seen=yes;;
  32792. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  32793. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  32794. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  32795. _ACEOF
  32796. cat >>$CONFIG_STATUS <<_ACEOF
  32797. ac_datarootdir_hack='
  32798. s&@datadir@&$datadir&g
  32799. s&@docdir@&$docdir&g
  32800. s&@infodir@&$infodir&g
  32801. s&@localedir@&$localedir&g
  32802. s&@mandir@&$mandir&g
  32803. s&\\\${datarootdir}&$datarootdir&g' ;;
  32804. esac
  32805. _ACEOF
  32806. # Neutralize VPATH when `$srcdir' = `.'.
  32807. # Shell code in configure.ac might set extrasub.
  32808. # FIXME: do we really want to maintain this feature?
  32809. cat >>$CONFIG_STATUS <<_ACEOF
  32810. sed "$ac_vpsub
  32811. $extrasub
  32812. _ACEOF
  32813. cat >>$CONFIG_STATUS <<\_ACEOF
  32814. :t
  32815. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  32816. s&@configure_input@&$configure_input&;t t
  32817. s&@top_builddir@&$ac_top_builddir_sub&;t t
  32818. s&@srcdir@&$ac_srcdir&;t t
  32819. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  32820. s&@top_srcdir@&$ac_top_srcdir&;t t
  32821. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  32822. s&@builddir@&$ac_builddir&;t t
  32823. s&@abs_builddir@&$ac_abs_builddir&;t t
  32824. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  32825. s&@INSTALL@&$ac_INSTALL&;t t
  32826. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  32827. $ac_datarootdir_hack
  32828. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  32829. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  32830. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  32831. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  32832. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  32833. which seems to be undefined. Please make sure it is defined." >&5
  32834. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  32835. which seems to be undefined. Please make sure it is defined." >&2;}
  32836. rm -f "$tmp/stdin"
  32837. case $ac_file in
  32838. -) cat "$tmp/out"; rm -f "$tmp/out";;
  32839. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  32840. esac
  32841. ;;
  32842. :H)
  32843. #
  32844. # CONFIG_HEADER
  32845. #
  32846. _ACEOF
  32847. # Transform confdefs.h into a sed script `conftest.defines', that
  32848. # substitutes the proper values into config.h.in to produce config.h.
  32849. rm -f conftest.defines conftest.tail
  32850. # First, append a space to every undef/define line, to ease matching.
  32851. echo 's/$/ /' >conftest.defines
  32852. # Then, protect against being on the right side of a sed subst, or in
  32853. # an unquoted here document, in config.status. If some macros were
  32854. # called several times there might be several #defines for the same
  32855. # symbol, which is useless. But do not sort them, since the last
  32856. # AC_DEFINE must be honored.
  32857. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  32858. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  32859. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  32860. # PARAMS is the parameter list in the macro definition--in most cases, it's
  32861. # just an empty string.
  32862. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  32863. ac_dB='\\)[ (].*,\\1define\\2'
  32864. ac_dC=' '
  32865. ac_dD=' ,'
  32866. uniq confdefs.h |
  32867. sed -n '
  32868. t rset
  32869. :rset
  32870. s/^[ ]*#[ ]*define[ ][ ]*//
  32871. t ok
  32872. d
  32873. :ok
  32874. s/[\\&,]/\\&/g
  32875. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  32876. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  32877. ' >>conftest.defines
  32878. # Remove the space that was appended to ease matching.
  32879. # Then replace #undef with comments. This is necessary, for
  32880. # example, in the case of _POSIX_SOURCE, which is predefined and required
  32881. # on some systems where configure will not decide to define it.
  32882. # (The regexp can be short, since the line contains either #define or #undef.)
  32883. echo 's/ $//
  32884. s,^[ #]*u.*,/* & */,' >>conftest.defines
  32885. # Break up conftest.defines:
  32886. ac_max_sed_lines=50
  32887. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  32888. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  32889. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  32890. # et cetera.
  32891. ac_in='$ac_file_inputs'
  32892. ac_out='"$tmp/out1"'
  32893. ac_nxt='"$tmp/out2"'
  32894. while :
  32895. do
  32896. # Write a here document:
  32897. cat >>$CONFIG_STATUS <<_ACEOF
  32898. # First, check the format of the line:
  32899. cat >"\$tmp/defines.sed" <<\\CEOF
  32900. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  32901. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  32902. b
  32903. :def
  32904. _ACEOF
  32905. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  32906. echo 'CEOF
  32907. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  32908. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  32909. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  32910. grep . conftest.tail >/dev/null || break
  32911. rm -f conftest.defines
  32912. mv conftest.tail conftest.defines
  32913. done
  32914. rm -f conftest.defines conftest.tail
  32915. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  32916. cat >>$CONFIG_STATUS <<\_ACEOF
  32917. if test x"$ac_file" != x-; then
  32918. echo "/* $configure_input */" >"$tmp/config.h"
  32919. cat "$ac_result" >>"$tmp/config.h"
  32920. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  32921. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  32922. echo "$as_me: $ac_file is unchanged" >&6;}
  32923. else
  32924. rm -f $ac_file
  32925. mv "$tmp/config.h" $ac_file
  32926. fi
  32927. else
  32928. echo "/* $configure_input */"
  32929. cat "$ac_result"
  32930. fi
  32931. rm -f "$tmp/out12"
  32932. # Compute $ac_file's index in $config_headers.
  32933. _am_stamp_count=1
  32934. for _am_header in $config_headers :; do
  32935. case $_am_header in
  32936. $ac_file | $ac_file:* )
  32937. break ;;
  32938. * )
  32939. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  32940. esac
  32941. done
  32942. echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
  32943. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  32944. X$ac_file : 'X\(//\)[^/]' \| \
  32945. X$ac_file : 'X\(//\)$' \| \
  32946. X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
  32947. echo X$ac_file |
  32948. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  32949. s//\1/
  32950. q
  32951. }
  32952. /^X\(\/\/\)[^/].*/{
  32953. s//\1/
  32954. q
  32955. }
  32956. /^X\(\/\/\)$/{
  32957. s//\1/
  32958. q
  32959. }
  32960. /^X\(\/\).*/{
  32961. s//\1/
  32962. q
  32963. }
  32964. s/.*/./; q'`/stamp-h$_am_stamp_count
  32965. ;;
  32966. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  32967. echo "$as_me: executing $ac_file commands" >&6;}
  32968. ;;
  32969. esac
  32970. case $ac_file$ac_mode in
  32971. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  32972. # Strip MF so we end up with the name of the file.
  32973. mf=`echo "$mf" | sed -e 's/:.*$//'`
  32974. # Check whether this is an Automake generated Makefile or not.
  32975. # We used to match only the files named `Makefile.in', but
  32976. # some people rename them; so instead we look at the file content.
  32977. # Grep'ing the first line is not enough: some people post-process
  32978. # each Makefile.in and add a new line on top of each file to say so.
  32979. # Grep'ing the whole file is not good either: AIX grep has a line
  32980. # limit of 2048, but all sed's we know have understand at least 4000.
  32981. if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
  32982. dirpart=`$as_dirname -- "$mf" ||
  32983. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  32984. X"$mf" : 'X\(//\)[^/]' \| \
  32985. X"$mf" : 'X\(//\)$' \| \
  32986. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  32987. echo X"$mf" |
  32988. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  32989. s//\1/
  32990. q
  32991. }
  32992. /^X\(\/\/\)[^/].*/{
  32993. s//\1/
  32994. q
  32995. }
  32996. /^X\(\/\/\)$/{
  32997. s//\1/
  32998. q
  32999. }
  33000. /^X\(\/\).*/{
  33001. s//\1/
  33002. q
  33003. }
  33004. s/.*/./; q'`
  33005. else
  33006. continue
  33007. fi
  33008. # Extract the definition of DEPDIR, am__include, and am__quote
  33009. # from the Makefile without running `make'.
  33010. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  33011. test -z "$DEPDIR" && continue
  33012. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  33013. test -z "am__include" && continue
  33014. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  33015. # When using ansi2knr, U may be empty or an underscore; expand it
  33016. U=`sed -n 's/^U = //p' < "$mf"`
  33017. # Find all dependency output files, they are included files with
  33018. # $(DEPDIR) in their names. We invoke sed twice because it is the
  33019. # simplest approach to changing $(DEPDIR) to its actual value in the
  33020. # expansion.
  33021. for file in `sed -n "
  33022. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  33023. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  33024. # Make sure the directory exists.
  33025. test -f "$dirpart/$file" && continue
  33026. fdir=`$as_dirname -- "$file" ||
  33027. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  33028. X"$file" : 'X\(//\)[^/]' \| \
  33029. X"$file" : 'X\(//\)$' \| \
  33030. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  33031. echo X"$file" |
  33032. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  33033. s//\1/
  33034. q
  33035. }
  33036. /^X\(\/\/\)[^/].*/{
  33037. s//\1/
  33038. q
  33039. }
  33040. /^X\(\/\/\)$/{
  33041. s//\1/
  33042. q
  33043. }
  33044. /^X\(\/\).*/{
  33045. s//\1/
  33046. q
  33047. }
  33048. s/.*/./; q'`
  33049. { as_dir=$dirpart/$fdir
  33050. case $as_dir in #(
  33051. -*) as_dir=./$as_dir;;
  33052. esac
  33053. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  33054. as_dirs=
  33055. while :; do
  33056. case $as_dir in #(
  33057. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  33058. *) as_qdir=$as_dir;;
  33059. esac
  33060. as_dirs="'$as_qdir' $as_dirs"
  33061. as_dir=`$as_dirname -- "$as_dir" ||
  33062. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  33063. X"$as_dir" : 'X\(//\)[^/]' \| \
  33064. X"$as_dir" : 'X\(//\)$' \| \
  33065. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  33066. echo X"$as_dir" |
  33067. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  33068. s//\1/
  33069. q
  33070. }
  33071. /^X\(\/\/\)[^/].*/{
  33072. s//\1/
  33073. q
  33074. }
  33075. /^X\(\/\/\)$/{
  33076. s//\1/
  33077. q
  33078. }
  33079. /^X\(\/\).*/{
  33080. s//\1/
  33081. q
  33082. }
  33083. s/.*/./; q'`
  33084. test -d "$as_dir" && break
  33085. done
  33086. test -z "$as_dirs" || eval "mkdir $as_dirs"
  33087. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  33088. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  33089. { (exit 1); exit 1; }; }; }
  33090. # echo "creating $dirpart/$file"
  33091. echo '# dummy' > "$dirpart/$file"
  33092. done
  33093. done
  33094. ;;
  33095. esac
  33096. done # for ac_tag
  33097. { (exit 0); exit 0; }
  33098. _ACEOF
  33099. chmod +x $CONFIG_STATUS
  33100. ac_clean_files=$ac_clean_files_save
  33101. # configure is writing to config.log, and then calls config.status.
  33102. # config.status does its own redirection, appending to config.log.
  33103. # Unfortunately, on DOS this fails, as config.log is still kept open
  33104. # by configure, so config.status won't be able to write to it; its
  33105. # output is simply discarded. So we exec the FD to /dev/null,
  33106. # effectively closing config.log, so it can be properly (re)opened and
  33107. # appended to by config.status. When coming back to configure, we
  33108. # need to make the FD available again.
  33109. if test "$no_create" != yes; then
  33110. ac_cs_success=:
  33111. ac_config_status_args=
  33112. test "$silent" = yes &&
  33113. ac_config_status_args="$ac_config_status_args --quiet"
  33114. exec 5>/dev/null
  33115. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  33116. exec 5>>config.log
  33117. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  33118. # would make configure fail if this is the last instruction.
  33119. $ac_cs_success || { (exit 1); exit 1; }
  33120. fi
  33121. # Configuration results
  33122. { echo "$as_me:$LINENO: result: ##########################################################################
  33123. TCPREPLAY Suite Configuration Results (${TCPREPLAY_VERSION})
  33124. ##########################################################################
  33125. libpcap: ${foundpcap} (${libpcap_version})
  33126. libnet: ${foundnet}
  33127. autogen: ${AUTOGEN}
  33128. 64bit counter support: ${use64bit_counters}
  33129. tcpdump binary path: ${tcpdump_path}
  33130. tcpreplay edit support: ${tcpreplay_edit}
  33131. tcpbridge support: ${enable_tcpbridge}
  33132. Supported Packet Injection Methods (*):
  33133. Linux PF_PACKET: ${have_pf}
  33134. BSD BPF: ${have_bpf}
  33135. libnet: ${have_libnet}
  33136. pcap_inject: ${have_pcap_inject}
  33137. pcap_sendpacket: ${have_pcap_sendpacket}
  33138. * In order of preference; see configure --help to override
  33139. " >&5
  33140. echo "${ECHO_T}##########################################################################
  33141. TCPREPLAY Suite Configuration Results (${TCPREPLAY_VERSION})
  33142. ##########################################################################
  33143. libpcap: ${foundpcap} (${libpcap_version})
  33144. libnet: ${foundnet}
  33145. autogen: ${AUTOGEN}
  33146. 64bit counter support: ${use64bit_counters}
  33147. tcpdump binary path: ${tcpdump_path}
  33148. tcpreplay edit support: ${tcpreplay_edit}
  33149. tcpbridge support: ${enable_tcpbridge}
  33150. Supported Packet Injection Methods (*):
  33151. Linux PF_PACKET: ${have_pf}
  33152. BSD BPF: ${have_bpf}
  33153. libnet: ${have_libnet}
  33154. pcap_inject: ${have_pcap_inject}
  33155. pcap_sendpacket: ${have_pcap_sendpacket}
  33156. * In order of preference; see configure --help to override
  33157. " >&6; }
  33158. case $host in
  33159. *-apple-darwin*)
  33160. { echo "$as_me:$LINENO: WARNING: Apple OS X versions prior to 10.5 (Leopard) has a serious problem!
  33161. Please see: http://tcpreplay.synfin.net/trac/ticket/142 for more details" >&5
  33162. echo "$as_me: WARNING: Apple OS X versions prior to 10.5 (Leopard) has a serious problem!
  33163. Please see: http://tcpreplay.synfin.net/trac/ticket/142 for more details" >&2;}
  33164. ;;
  33165. *-*-cygwin)
  33166. { echo "$as_me:$LINENO: WARNING: Windows/Cygwin support is still somewhat experimental. Please report any bugs!
  33167. http://tcpreplay.synfin.net/trac/newticket" >&5
  33168. echo "$as_me: WARNING: Windows/Cygwin support is still somewhat experimental. Please report any bugs!
  33169. http://tcpreplay.synfin.net/trac/newticket" >&2;}
  33170. ;;
  33171. esac