1
0

configure 1.1 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.62.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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. # Pre-4.2 versions of Zsh do 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. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  41. as_echo='printf %s\n'
  42. as_echo_n='printf %s'
  43. else
  44. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  45. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  46. as_echo_n='/usr/ucb/echo -n'
  47. else
  48. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  49. as_echo_n_body='eval
  50. arg=$1;
  51. case $arg in
  52. *"$as_nl"*)
  53. expr "X$arg" : "X\\(.*\\)$as_nl";
  54. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  55. esac;
  56. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  57. '
  58. export as_echo_n_body
  59. as_echo_n='sh -c $as_echo_n_body as_echo'
  60. fi
  61. export as_echo_body
  62. as_echo='sh -c $as_echo_body as_echo'
  63. fi
  64. # The user is always right.
  65. if test "${PATH_SEPARATOR+set}" != set; then
  66. PATH_SEPARATOR=:
  67. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  68. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  69. PATH_SEPARATOR=';'
  70. }
  71. fi
  72. # Support unset when possible.
  73. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  74. as_unset=unset
  75. else
  76. as_unset=false
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. case $0 in
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. { (exit 1); exit 1; }
  105. fi
  106. # Work around bugs in pre-3.0 UWIN ksh.
  107. for as_var in ENV MAIL MAILPATH
  108. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  109. done
  110. PS1='$ '
  111. PS2='> '
  112. PS4='+ '
  113. # NLS nuisances.
  114. LC_ALL=C
  115. export LC_ALL
  116. LANGUAGE=C
  117. export LANGUAGE
  118. # Required to use basename.
  119. if expr a : '\(a\)' >/dev/null 2>&1 &&
  120. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  121. as_expr=expr
  122. else
  123. as_expr=false
  124. fi
  125. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  126. as_basename=basename
  127. else
  128. as_basename=false
  129. fi
  130. # Name of the executable.
  131. as_me=`$as_basename -- "$0" ||
  132. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  133. X"$0" : 'X\(//\)$' \| \
  134. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  135. $as_echo X/"$0" |
  136. sed '/^.*\/\([^/][^/]*\)\/*$/{
  137. s//\1/
  138. q
  139. }
  140. /^X\/\(\/\/\)$/{
  141. s//\1/
  142. q
  143. }
  144. /^X\/\(\/\).*/{
  145. s//\1/
  146. q
  147. }
  148. s/.*/./; q'`
  149. # CDPATH.
  150. $as_unset CDPATH
  151. if test "x$CONFIG_SHELL" = x; then
  152. if (eval ":") 2>/dev/null; then
  153. as_have_required=yes
  154. else
  155. as_have_required=no
  156. fi
  157. if test $as_have_required = yes && (eval ":
  158. (as_func_return () {
  159. (exit \$1)
  160. }
  161. as_func_success () {
  162. as_func_return 0
  163. }
  164. as_func_failure () {
  165. as_func_return 1
  166. }
  167. as_func_ret_success () {
  168. return 0
  169. }
  170. as_func_ret_failure () {
  171. return 1
  172. }
  173. exitcode=0
  174. if as_func_success; then
  175. :
  176. else
  177. exitcode=1
  178. echo as_func_success failed.
  179. fi
  180. if as_func_failure; then
  181. exitcode=1
  182. echo as_func_failure succeeded.
  183. fi
  184. if as_func_ret_success; then
  185. :
  186. else
  187. exitcode=1
  188. echo as_func_ret_success failed.
  189. fi
  190. if as_func_ret_failure; then
  191. exitcode=1
  192. echo as_func_ret_failure succeeded.
  193. fi
  194. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  195. :
  196. else
  197. exitcode=1
  198. echo positional parameters were not saved.
  199. fi
  200. test \$exitcode = 0) || { (exit 1); exit 1; }
  201. (
  202. as_lineno_1=\$LINENO
  203. as_lineno_2=\$LINENO
  204. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  205. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  206. ") 2> /dev/null; then
  207. :
  208. else
  209. as_candidate_shells=
  210. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  211. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  212. do
  213. IFS=$as_save_IFS
  214. test -z "$as_dir" && as_dir=.
  215. case $as_dir in
  216. /*)
  217. for as_base in sh bash ksh sh5; do
  218. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  219. done;;
  220. esac
  221. done
  222. IFS=$as_save_IFS
  223. for as_shell in $as_candidate_shells $SHELL; do
  224. # Try only shells that exist, to save several forks.
  225. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  226. { ("$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. # Pre-4.2 versions of Zsh do 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. _ASEOF
  241. }; then
  242. CONFIG_SHELL=$as_shell
  243. as_have_required=yes
  244. if { "$as_shell" 2> /dev/null <<\_ASEOF
  245. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  246. emulate sh
  247. NULLCMD=:
  248. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  249. # is contrary to our usage. Disable this feature.
  250. alias -g '${1+"$@"}'='"$@"'
  251. setopt NO_GLOB_SUBST
  252. else
  253. case `(set -o) 2>/dev/null` in
  254. *posix*) set -o posix ;;
  255. esac
  256. fi
  257. :
  258. (as_func_return () {
  259. (exit $1)
  260. }
  261. as_func_success () {
  262. as_func_return 0
  263. }
  264. as_func_failure () {
  265. as_func_return 1
  266. }
  267. as_func_ret_success () {
  268. return 0
  269. }
  270. as_func_ret_failure () {
  271. return 1
  272. }
  273. exitcode=0
  274. if as_func_success; then
  275. :
  276. else
  277. exitcode=1
  278. echo as_func_success failed.
  279. fi
  280. if as_func_failure; then
  281. exitcode=1
  282. echo as_func_failure succeeded.
  283. fi
  284. if as_func_ret_success; then
  285. :
  286. else
  287. exitcode=1
  288. echo as_func_ret_success failed.
  289. fi
  290. if as_func_ret_failure; then
  291. exitcode=1
  292. echo as_func_ret_failure succeeded.
  293. fi
  294. if ( set x; as_func_ret_success y && test x = "$1" ); then
  295. :
  296. else
  297. exitcode=1
  298. echo positional parameters were not saved.
  299. fi
  300. test $exitcode = 0) || { (exit 1); exit 1; }
  301. (
  302. as_lineno_1=$LINENO
  303. as_lineno_2=$LINENO
  304. test "x$as_lineno_1" != "x$as_lineno_2" &&
  305. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  306. _ASEOF
  307. }; then
  308. break
  309. fi
  310. fi
  311. done
  312. if test "x$CONFIG_SHELL" != x; then
  313. for as_var in BASH_ENV ENV
  314. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  315. done
  316. export CONFIG_SHELL
  317. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  318. fi
  319. if test $as_have_required = no; then
  320. echo This script requires a shell more modern than all the
  321. echo shells that I found on your system. Please install a
  322. echo modern shell, or manually run the script under such a
  323. echo shell if you do have one.
  324. { (exit 1); exit 1; }
  325. fi
  326. fi
  327. fi
  328. (eval "as_func_return () {
  329. (exit \$1)
  330. }
  331. as_func_success () {
  332. as_func_return 0
  333. }
  334. as_func_failure () {
  335. as_func_return 1
  336. }
  337. as_func_ret_success () {
  338. return 0
  339. }
  340. as_func_ret_failure () {
  341. return 1
  342. }
  343. exitcode=0
  344. if as_func_success; then
  345. :
  346. else
  347. exitcode=1
  348. echo as_func_success failed.
  349. fi
  350. if as_func_failure; then
  351. exitcode=1
  352. echo as_func_failure succeeded.
  353. fi
  354. if as_func_ret_success; then
  355. :
  356. else
  357. exitcode=1
  358. echo as_func_ret_success failed.
  359. fi
  360. if as_func_ret_failure; then
  361. exitcode=1
  362. echo as_func_ret_failure succeeded.
  363. fi
  364. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  365. :
  366. else
  367. exitcode=1
  368. echo positional parameters were not saved.
  369. fi
  370. test \$exitcode = 0") || {
  371. echo No shell found that supports shell functions.
  372. echo Please tell bug-autoconf@gnu.org about your system,
  373. echo including any error possibly output before this message.
  374. echo This can help us improve future autoconf versions.
  375. echo Configuration will now proceed without shell functions.
  376. }
  377. as_lineno_1=$LINENO
  378. as_lineno_2=$LINENO
  379. test "x$as_lineno_1" != "x$as_lineno_2" &&
  380. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  381. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  382. # uniformly replaced by the line number. The first 'sed' inserts a
  383. # line-number line after each line using $LINENO; the second 'sed'
  384. # does the real work. The second script uses 'N' to pair each
  385. # line-number line with the line containing $LINENO, and appends
  386. # trailing '-' during substitution so that $LINENO is not a special
  387. # case at line end.
  388. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  389. # scripts with optimization help from Paolo Bonzini. Blame Lee
  390. # E. McMahon (1931-1989) for sed's syntax. :-)
  391. sed -n '
  392. p
  393. /[$]LINENO/=
  394. ' <$as_myself |
  395. sed '
  396. s/[$]LINENO.*/&-/
  397. t lineno
  398. b
  399. :lineno
  400. N
  401. :loop
  402. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  403. t loop
  404. s/-\n.*//
  405. ' >$as_me.lineno &&
  406. chmod +x "$as_me.lineno" ||
  407. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  408. { (exit 1); exit 1; }; }
  409. # Don't try to exec as it changes $[0], causing all sort of problems
  410. # (the dirname of $[0] is not the place where we might find the
  411. # original and so on. Autoconf is especially sensitive to this).
  412. . "./$as_me.lineno"
  413. # Exit status is that of the last command.
  414. exit
  415. }
  416. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  417. as_dirname=dirname
  418. else
  419. as_dirname=false
  420. fi
  421. ECHO_C= ECHO_N= ECHO_T=
  422. case `echo -n x` in
  423. -n*)
  424. case `echo 'x\c'` in
  425. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  426. *) ECHO_C='\c';;
  427. esac;;
  428. *)
  429. ECHO_N='-n';;
  430. esac
  431. if expr a : '\(a\)' >/dev/null 2>&1 &&
  432. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  433. as_expr=expr
  434. else
  435. as_expr=false
  436. fi
  437. rm -f conf$$ conf$$.exe conf$$.file
  438. if test -d conf$$.dir; then
  439. rm -f conf$$.dir/conf$$.file
  440. else
  441. rm -f conf$$.dir
  442. mkdir conf$$.dir 2>/dev/null
  443. fi
  444. if (echo >conf$$.file) 2>/dev/null; then
  445. if ln -s conf$$.file conf$$ 2>/dev/null; then
  446. as_ln_s='ln -s'
  447. # ... but there are two gotchas:
  448. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  449. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  450. # In both cases, we have to default to `cp -p'.
  451. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  452. as_ln_s='cp -p'
  453. elif ln conf$$.file conf$$ 2>/dev/null; then
  454. as_ln_s=ln
  455. else
  456. as_ln_s='cp -p'
  457. fi
  458. else
  459. as_ln_s='cp -p'
  460. fi
  461. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  462. rmdir conf$$.dir 2>/dev/null
  463. if mkdir -p . 2>/dev/null; then
  464. as_mkdir_p=:
  465. else
  466. test -d ./-p && rmdir ./-p
  467. as_mkdir_p=false
  468. fi
  469. if test -x / >/dev/null 2>&1; then
  470. as_test_x='test -x'
  471. else
  472. if ls -dL / >/dev/null 2>&1; then
  473. as_ls_L_option=L
  474. else
  475. as_ls_L_option=
  476. fi
  477. as_test_x='
  478. eval sh -c '\''
  479. if test -d "$1"; then
  480. test -d "$1/.";
  481. else
  482. case $1 in
  483. -*)set "./$1";;
  484. esac;
  485. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  486. ???[sx]*):;;*)false;;esac;fi
  487. '\'' sh
  488. '
  489. fi
  490. as_executable_p=$as_test_x
  491. # Sed expression to map a string onto a valid CPP name.
  492. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  493. # Sed expression to map a string onto a valid variable name.
  494. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  495. # Check that we are running under the correct shell.
  496. SHELL=${CONFIG_SHELL-/bin/sh}
  497. case X$ECHO in
  498. X*--fallback-echo)
  499. # Remove one level of quotation (which was required for Make).
  500. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  501. ;;
  502. esac
  503. echo=${ECHO-echo}
  504. if test "X$1" = X--no-reexec; then
  505. # Discard the --no-reexec flag, and continue.
  506. shift
  507. elif test "X$1" = X--fallback-echo; then
  508. # Avoid inline document here, it may be left over
  509. :
  510. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  511. # Yippee, $echo works!
  512. :
  513. else
  514. # Restart under the correct shell.
  515. exec $SHELL "$0" --no-reexec ${1+"$@"}
  516. fi
  517. if test "X$1" = X--fallback-echo; then
  518. # used as fallback echo
  519. shift
  520. cat <<EOF
  521. $*
  522. EOF
  523. exit 0
  524. fi
  525. # The HP-UX ksh and POSIX shell print the target directory to stdout
  526. # if CDPATH is set.
  527. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  528. if test -z "$ECHO"; then
  529. if test "X${echo_test_string+set}" != Xset; then
  530. # find a string as large as possible, as long as the shell can cope with it
  531. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  532. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  533. if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  534. echo_test_string=`eval $cmd` &&
  535. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  536. then
  537. break
  538. fi
  539. done
  540. fi
  541. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  542. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  543. test "X$echo_testing_string" = "X$echo_test_string"; then
  544. :
  545. else
  546. # The Solaris, AIX, and Digital Unix default echo programs unquote
  547. # backslashes. This makes it impossible to quote backslashes using
  548. # echo "$something" | sed 's/\\/\\\\/g'
  549. #
  550. # So, first we look for a working echo in the user's PATH.
  551. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  552. for dir in $PATH /usr/ucb; do
  553. IFS="$lt_save_ifs"
  554. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  555. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  556. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  557. test "X$echo_testing_string" = "X$echo_test_string"; then
  558. echo="$dir/echo"
  559. break
  560. fi
  561. done
  562. IFS="$lt_save_ifs"
  563. if test "X$echo" = Xecho; then
  564. # We didn't find a better echo, so look for alternatives.
  565. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  566. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  567. test "X$echo_testing_string" = "X$echo_test_string"; then
  568. # This shell has a builtin print -r that does the trick.
  569. echo='print -r'
  570. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  571. test "X$CONFIG_SHELL" != X/bin/ksh; then
  572. # If we have ksh, try running configure again with it.
  573. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  574. export ORIGINAL_CONFIG_SHELL
  575. CONFIG_SHELL=/bin/ksh
  576. export CONFIG_SHELL
  577. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  578. else
  579. # Try using printf.
  580. echo='printf %s\n'
  581. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  582. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  583. test "X$echo_testing_string" = "X$echo_test_string"; then
  584. # Cool, printf works
  585. :
  586. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  587. test "X$echo_testing_string" = 'X\t' &&
  588. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  589. test "X$echo_testing_string" = "X$echo_test_string"; then
  590. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  591. export CONFIG_SHELL
  592. SHELL="$CONFIG_SHELL"
  593. export SHELL
  594. echo="$CONFIG_SHELL $0 --fallback-echo"
  595. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  596. test "X$echo_testing_string" = 'X\t' &&
  597. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  598. test "X$echo_testing_string" = "X$echo_test_string"; then
  599. echo="$CONFIG_SHELL $0 --fallback-echo"
  600. else
  601. # maybe with a smaller string...
  602. prev=:
  603. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  604. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  605. then
  606. break
  607. fi
  608. prev="$cmd"
  609. done
  610. if test "$prev" != 'sed 50q "$0"'; then
  611. echo_test_string=`eval $prev`
  612. export echo_test_string
  613. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  614. else
  615. # Oops. We lost completely, so just stick with echo.
  616. echo=echo
  617. fi
  618. fi
  619. fi
  620. fi
  621. fi
  622. fi
  623. # Copy echo and quote the copy suitably for passing to libtool from
  624. # the Makefile, instead of quoting the original, which is used later.
  625. ECHO=$echo
  626. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  627. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  628. fi
  629. tagnames=${tagnames+${tagnames},}CXX
  630. tagnames=${tagnames+${tagnames},}F77
  631. exec 7<&0 </dev/null 6>&1
  632. # Name of the host.
  633. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  634. # so uname gets run too.
  635. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  636. #
  637. # Initializations.
  638. #
  639. ac_default_prefix=/usr/local
  640. ac_clean_files=
  641. ac_config_libobj_dir=.
  642. LIBOBJS=
  643. cross_compiling=no
  644. subdirs=
  645. MFLAGS=
  646. MAKEFLAGS=
  647. SHELL=${CONFIG_SHELL-/bin/sh}
  648. # Identity of this package.
  649. PACKAGE_NAME=
  650. PACKAGE_TARNAME=
  651. PACKAGE_VERSION=
  652. PACKAGE_STRING=
  653. PACKAGE_BUGREPORT=
  654. ac_unique_file="tcpreplay"
  655. ac_unique_file="src/tcpreplay.c"
  656. # Factoring default headers for most tests.
  657. ac_includes_default="\
  658. #include <stdio.h>
  659. #ifdef HAVE_SYS_TYPES_H
  660. # include <sys/types.h>
  661. #endif
  662. #ifdef HAVE_SYS_STAT_H
  663. # include <sys/stat.h>
  664. #endif
  665. #ifdef STDC_HEADERS
  666. # include <stdlib.h>
  667. # include <stddef.h>
  668. #else
  669. # ifdef HAVE_STDLIB_H
  670. # include <stdlib.h>
  671. # endif
  672. #endif
  673. #ifdef HAVE_STRING_H
  674. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  675. # include <memory.h>
  676. # endif
  677. # include <string.h>
  678. #endif
  679. #ifdef HAVE_STRINGS_H
  680. # include <strings.h>
  681. #endif
  682. #ifdef HAVE_INTTYPES_H
  683. # include <inttypes.h>
  684. #endif
  685. #ifdef HAVE_STDINT_H
  686. # include <stdint.h>
  687. #endif
  688. #ifdef HAVE_UNISTD_H
  689. # include <unistd.h>
  690. #endif"
  691. ac_subst_vars='SHELL
  692. PATH_SEPARATOR
  693. PACKAGE_NAME
  694. PACKAGE_TARNAME
  695. PACKAGE_VERSION
  696. PACKAGE_STRING
  697. PACKAGE_BUGREPORT
  698. exec_prefix
  699. prefix
  700. program_transform_name
  701. bindir
  702. sbindir
  703. libexecdir
  704. datarootdir
  705. datadir
  706. sysconfdir
  707. sharedstatedir
  708. localstatedir
  709. includedir
  710. oldincludedir
  711. docdir
  712. infodir
  713. htmldir
  714. dvidir
  715. pdfdir
  716. psdir
  717. libdir
  718. localedir
  719. mandir
  720. DEFS
  721. ECHO_C
  722. ECHO_N
  723. ECHO_T
  724. LIBS
  725. build_alias
  726. host_alias
  727. target_alias
  728. MAINTAINER_MODE_TRUE
  729. MAINTAINER_MODE_FALSE
  730. MAINT
  731. TCPREPLAY_VERSION
  732. TCPREPLAY_RELEASE
  733. build
  734. build_cpu
  735. build_vendor
  736. build_os
  737. host
  738. host_cpu
  739. host_vendor
  740. host_os
  741. target
  742. target_cpu
  743. target_vendor
  744. target_os
  745. INSTALL_PROGRAM
  746. INSTALL_SCRIPT
  747. INSTALL_DATA
  748. am__isrc
  749. CYGPATH_W
  750. PACKAGE
  751. VERSION
  752. ACLOCAL
  753. AUTOCONF
  754. AUTOMAKE
  755. AUTOHEADER
  756. MAKEINFO
  757. install_sh
  758. STRIP
  759. INSTALL_STRIP_PROGRAM
  760. MKDIR_P
  761. mkdir_p
  762. AWK
  763. SET_MAKE
  764. am__leading_dot
  765. AMTAR
  766. am__tar
  767. am__untar
  768. CC
  769. CFLAGS
  770. LDFLAGS
  771. CPPFLAGS
  772. ac_ct_CC
  773. EXEEXT
  774. OBJEXT
  775. DEPDIR
  776. am__include
  777. am__quote
  778. AMDEP_TRUE
  779. AMDEP_FALSE
  780. AMDEPBACKSLASH
  781. CCDEPMODE
  782. am__fastdepCC_TRUE
  783. am__fastdepCC_FALSE
  784. SED
  785. GREP
  786. EGREP
  787. LN_S
  788. ECHO
  789. AR
  790. RANLIB
  791. DSYMUTIL
  792. NMEDIT
  793. CPP
  794. CXX
  795. CXXFLAGS
  796. ac_ct_CXX
  797. CXXDEPMODE
  798. am__fastdepCXX_TRUE
  799. am__fastdepCXX_FALSE
  800. CXXCPP
  801. F77
  802. FFLAGS
  803. ac_ct_F77
  804. LIBTOOL
  805. PRINTF
  806. CUT
  807. AUTOGEN
  808. LIBOBJS
  809. SYSTEM_STRLCPY_TRUE
  810. SYSTEM_STRLCPY_FALSE
  811. WORDS_BIGENDIAN_TRUE
  812. WORDS_BIGENDIAN_FALSE
  813. debug_flag
  814. DMALLOC_LIB
  815. ENABLE_TCPREPLAY_EDIT_TRUE
  816. ENABLE_TCPREPLAY_EDIT_FALSE
  817. LNETINC
  818. LNETLIB
  819. LPCAPINC
  820. LPCAPLIB
  821. PCAP_BPF_H_FILE
  822. LDNETINC
  823. LDNETLIB
  824. COMPILE_FRAGROUTE_TRUE
  825. COMPILE_FRAGROUTE_FALSE
  826. pcncfg
  827. LNAVLIB
  828. LNAV_CFLAGS
  829. tcpdump_path
  830. ENABLE_TCPDUMP_TRUE
  831. ENABLE_TCPDUMP_FALSE
  832. ENABLE_OSX_FRAMEWORKS_TRUE
  833. ENABLE_OSX_FRAMEWORKS_FALSE
  834. nic1
  835. nic2
  836. LIBOPTS_DIR
  837. INSTALL_LIBOPTS_TRUE
  838. INSTALL_LIBOPTS_FALSE
  839. NEED_LIBOPTS_TRUE
  840. NEED_LIBOPTS_FALSE
  841. LIBOPTS_LDADD
  842. LIBOPTS_CFLAGS
  843. LTLIBOBJS'
  844. ac_subst_files=''
  845. ac_user_opts='
  846. enable_option_checking
  847. enable_maintainer_mode
  848. with_dmalloc
  849. enable_shared
  850. enable_static
  851. enable_fast_install
  852. enable_dependency_tracking
  853. with_gnu_ld
  854. enable_libtool_lock
  855. with_pic
  856. with_tags
  857. enable_largefile
  858. enable_debug
  859. enable_dmalloc
  860. enable_pedantic
  861. enable_efence
  862. enable_gprof
  863. enable_64bits
  864. enable_force_bpf
  865. enable_force_pf
  866. enable_force_libnet
  867. enable_force_inject
  868. enable_force_sendpacket
  869. enable_tcpreplay_edit
  870. enable_dynamic_link
  871. enable_libnet
  872. with_libnet
  873. with_libpcap
  874. with_libdnet
  875. with_pcapnav_config
  876. with_tcpdump
  877. with_testnic
  878. with_testnic2
  879. enable_local_libopts
  880. enable_libopts_install
  881. with_autoopts_config
  882. with_regex_header
  883. with_libregex
  884. with_libregex_cflags
  885. with_libregex_libs
  886. enable_optional_args
  887. '
  888. ac_precious_vars='build_alias
  889. host_alias
  890. target_alias
  891. CC
  892. CFLAGS
  893. LDFLAGS
  894. LIBS
  895. CPPFLAGS
  896. CPP
  897. CXX
  898. CXXFLAGS
  899. CCC
  900. CXXCPP
  901. F77
  902. FFLAGS'
  903. # Initialize some variables set by options.
  904. ac_init_help=
  905. ac_init_version=false
  906. ac_unrecognized_opts=
  907. ac_unrecognized_sep=
  908. # The variables have the same names as the options, with
  909. # dashes changed to underlines.
  910. cache_file=/dev/null
  911. exec_prefix=NONE
  912. no_create=
  913. no_recursion=
  914. prefix=NONE
  915. program_prefix=NONE
  916. program_suffix=NONE
  917. program_transform_name=s,x,x,
  918. silent=
  919. site=
  920. srcdir=
  921. verbose=
  922. x_includes=NONE
  923. x_libraries=NONE
  924. # Installation directory options.
  925. # These are left unexpanded so users can "make install exec_prefix=/foo"
  926. # and all the variables that are supposed to be based on exec_prefix
  927. # by default will actually change.
  928. # Use braces instead of parens because sh, perl, etc. also accept them.
  929. # (The list follows the same order as the GNU Coding Standards.)
  930. bindir='${exec_prefix}/bin'
  931. sbindir='${exec_prefix}/sbin'
  932. libexecdir='${exec_prefix}/libexec'
  933. datarootdir='${prefix}/share'
  934. datadir='${datarootdir}'
  935. sysconfdir='${prefix}/etc'
  936. sharedstatedir='${prefix}/com'
  937. localstatedir='${prefix}/var'
  938. includedir='${prefix}/include'
  939. oldincludedir='/usr/include'
  940. docdir='${datarootdir}/doc/${PACKAGE}'
  941. infodir='${datarootdir}/info'
  942. htmldir='${docdir}'
  943. dvidir='${docdir}'
  944. pdfdir='${docdir}'
  945. psdir='${docdir}'
  946. libdir='${exec_prefix}/lib'
  947. localedir='${datarootdir}/locale'
  948. mandir='${datarootdir}/man'
  949. ac_prev=
  950. ac_dashdash=
  951. for ac_option
  952. do
  953. # If the previous option needs an argument, assign it.
  954. if test -n "$ac_prev"; then
  955. eval $ac_prev=\$ac_option
  956. ac_prev=
  957. continue
  958. fi
  959. case $ac_option in
  960. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  961. *) ac_optarg=yes ;;
  962. esac
  963. # Accept the important Cygnus configure options, so we can diagnose typos.
  964. case $ac_dashdash$ac_option in
  965. --)
  966. ac_dashdash=yes ;;
  967. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  968. ac_prev=bindir ;;
  969. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  970. bindir=$ac_optarg ;;
  971. -build | --build | --buil | --bui | --bu)
  972. ac_prev=build_alias ;;
  973. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  974. build_alias=$ac_optarg ;;
  975. -cache-file | --cache-file | --cache-fil | --cache-fi \
  976. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  977. ac_prev=cache_file ;;
  978. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  979. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  980. cache_file=$ac_optarg ;;
  981. --config-cache | -C)
  982. cache_file=config.cache ;;
  983. -datadir | --datadir | --datadi | --datad)
  984. ac_prev=datadir ;;
  985. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  986. datadir=$ac_optarg ;;
  987. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  988. | --dataroo | --dataro | --datar)
  989. ac_prev=datarootdir ;;
  990. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  991. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  992. datarootdir=$ac_optarg ;;
  993. -disable-* | --disable-*)
  994. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  995. # Reject names that are not valid shell variable names.
  996. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  997. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  998. { (exit 1); exit 1; }; }
  999. ac_useropt_orig=$ac_useropt
  1000. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1001. case $ac_user_opts in
  1002. *"
  1003. "enable_$ac_useropt"
  1004. "*) ;;
  1005. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1006. ac_unrecognized_sep=', ';;
  1007. esac
  1008. eval enable_$ac_useropt=no ;;
  1009. -docdir | --docdir | --docdi | --doc | --do)
  1010. ac_prev=docdir ;;
  1011. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1012. docdir=$ac_optarg ;;
  1013. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1014. ac_prev=dvidir ;;
  1015. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1016. dvidir=$ac_optarg ;;
  1017. -enable-* | --enable-*)
  1018. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1019. # Reject names that are not valid shell variable names.
  1020. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1021. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  1022. { (exit 1); exit 1; }; }
  1023. ac_useropt_orig=$ac_useropt
  1024. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1025. case $ac_user_opts in
  1026. *"
  1027. "enable_$ac_useropt"
  1028. "*) ;;
  1029. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1030. ac_unrecognized_sep=', ';;
  1031. esac
  1032. eval enable_$ac_useropt=\$ac_optarg ;;
  1033. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1034. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1035. | --exec | --exe | --ex)
  1036. ac_prev=exec_prefix ;;
  1037. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1038. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1039. | --exec=* | --exe=* | --ex=*)
  1040. exec_prefix=$ac_optarg ;;
  1041. -gas | --gas | --ga | --g)
  1042. # Obsolete; use --with-gas.
  1043. with_gas=yes ;;
  1044. -help | --help | --hel | --he | -h)
  1045. ac_init_help=long ;;
  1046. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1047. ac_init_help=recursive ;;
  1048. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1049. ac_init_help=short ;;
  1050. -host | --host | --hos | --ho)
  1051. ac_prev=host_alias ;;
  1052. -host=* | --host=* | --hos=* | --ho=*)
  1053. host_alias=$ac_optarg ;;
  1054. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1055. ac_prev=htmldir ;;
  1056. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1057. | --ht=*)
  1058. htmldir=$ac_optarg ;;
  1059. -includedir | --includedir | --includedi | --included | --include \
  1060. | --includ | --inclu | --incl | --inc)
  1061. ac_prev=includedir ;;
  1062. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1063. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1064. includedir=$ac_optarg ;;
  1065. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1066. ac_prev=infodir ;;
  1067. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1068. infodir=$ac_optarg ;;
  1069. -libdir | --libdir | --libdi | --libd)
  1070. ac_prev=libdir ;;
  1071. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1072. libdir=$ac_optarg ;;
  1073. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1074. | --libexe | --libex | --libe)
  1075. ac_prev=libexecdir ;;
  1076. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1077. | --libexe=* | --libex=* | --libe=*)
  1078. libexecdir=$ac_optarg ;;
  1079. -localedir | --localedir | --localedi | --localed | --locale)
  1080. ac_prev=localedir ;;
  1081. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1082. localedir=$ac_optarg ;;
  1083. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1084. | --localstate | --localstat | --localsta | --localst | --locals)
  1085. ac_prev=localstatedir ;;
  1086. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1087. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1088. localstatedir=$ac_optarg ;;
  1089. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1090. ac_prev=mandir ;;
  1091. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1092. mandir=$ac_optarg ;;
  1093. -nfp | --nfp | --nf)
  1094. # Obsolete; use --without-fp.
  1095. with_fp=no ;;
  1096. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1097. | --no-cr | --no-c | -n)
  1098. no_create=yes ;;
  1099. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1100. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1101. no_recursion=yes ;;
  1102. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1103. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1104. | --oldin | --oldi | --old | --ol | --o)
  1105. ac_prev=oldincludedir ;;
  1106. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1107. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1108. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1109. oldincludedir=$ac_optarg ;;
  1110. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1111. ac_prev=prefix ;;
  1112. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1113. prefix=$ac_optarg ;;
  1114. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1115. | --program-pre | --program-pr | --program-p)
  1116. ac_prev=program_prefix ;;
  1117. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1118. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1119. program_prefix=$ac_optarg ;;
  1120. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1121. | --program-suf | --program-su | --program-s)
  1122. ac_prev=program_suffix ;;
  1123. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1124. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1125. program_suffix=$ac_optarg ;;
  1126. -program-transform-name | --program-transform-name \
  1127. | --program-transform-nam | --program-transform-na \
  1128. | --program-transform-n | --program-transform- \
  1129. | --program-transform | --program-transfor \
  1130. | --program-transfo | --program-transf \
  1131. | --program-trans | --program-tran \
  1132. | --progr-tra | --program-tr | --program-t)
  1133. ac_prev=program_transform_name ;;
  1134. -program-transform-name=* | --program-transform-name=* \
  1135. | --program-transform-nam=* | --program-transform-na=* \
  1136. | --program-transform-n=* | --program-transform-=* \
  1137. | --program-transform=* | --program-transfor=* \
  1138. | --program-transfo=* | --program-transf=* \
  1139. | --program-trans=* | --program-tran=* \
  1140. | --progr-tra=* | --program-tr=* | --program-t=*)
  1141. program_transform_name=$ac_optarg ;;
  1142. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1143. ac_prev=pdfdir ;;
  1144. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1145. pdfdir=$ac_optarg ;;
  1146. -psdir | --psdir | --psdi | --psd | --ps)
  1147. ac_prev=psdir ;;
  1148. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1149. psdir=$ac_optarg ;;
  1150. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1151. | -silent | --silent | --silen | --sile | --sil)
  1152. silent=yes ;;
  1153. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1154. ac_prev=sbindir ;;
  1155. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1156. | --sbi=* | --sb=*)
  1157. sbindir=$ac_optarg ;;
  1158. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1159. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1160. | --sharedst | --shareds | --shared | --share | --shar \
  1161. | --sha | --sh)
  1162. ac_prev=sharedstatedir ;;
  1163. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1164. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1165. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1166. | --sha=* | --sh=*)
  1167. sharedstatedir=$ac_optarg ;;
  1168. -site | --site | --sit)
  1169. ac_prev=site ;;
  1170. -site=* | --site=* | --sit=*)
  1171. site=$ac_optarg ;;
  1172. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1173. ac_prev=srcdir ;;
  1174. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1175. srcdir=$ac_optarg ;;
  1176. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1177. | --syscon | --sysco | --sysc | --sys | --sy)
  1178. ac_prev=sysconfdir ;;
  1179. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1180. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1181. sysconfdir=$ac_optarg ;;
  1182. -target | --target | --targe | --targ | --tar | --ta | --t)
  1183. ac_prev=target_alias ;;
  1184. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1185. target_alias=$ac_optarg ;;
  1186. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1187. verbose=yes ;;
  1188. -version | --version | --versio | --versi | --vers | -V)
  1189. ac_init_version=: ;;
  1190. -with-* | --with-*)
  1191. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1192. # Reject names that are not valid shell variable names.
  1193. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1194. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1195. { (exit 1); exit 1; }; }
  1196. ac_useropt_orig=$ac_useropt
  1197. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1198. case $ac_user_opts in
  1199. *"
  1200. "with_$ac_useropt"
  1201. "*) ;;
  1202. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1203. ac_unrecognized_sep=', ';;
  1204. esac
  1205. eval with_$ac_useropt=\$ac_optarg ;;
  1206. -without-* | --without-*)
  1207. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1208. # Reject names that are not valid shell variable names.
  1209. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1210. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1211. { (exit 1); exit 1; }; }
  1212. ac_useropt_orig=$ac_useropt
  1213. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1214. case $ac_user_opts in
  1215. *"
  1216. "with_$ac_useropt"
  1217. "*) ;;
  1218. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1219. ac_unrecognized_sep=', ';;
  1220. esac
  1221. eval with_$ac_useropt=no ;;
  1222. --x)
  1223. # Obsolete; use --with-x.
  1224. with_x=yes ;;
  1225. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1226. | --x-incl | --x-inc | --x-in | --x-i)
  1227. ac_prev=x_includes ;;
  1228. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1229. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1230. x_includes=$ac_optarg ;;
  1231. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1232. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1233. ac_prev=x_libraries ;;
  1234. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1235. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1236. x_libraries=$ac_optarg ;;
  1237. -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  1238. Try \`$0 --help' for more information." >&2
  1239. { (exit 1); exit 1; }; }
  1240. ;;
  1241. *=*)
  1242. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1243. # Reject names that are not valid shell variable names.
  1244. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1245. { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1246. { (exit 1); exit 1; }; }
  1247. eval $ac_envvar=\$ac_optarg
  1248. export $ac_envvar ;;
  1249. *)
  1250. # FIXME: should be removed in autoconf 3.0.
  1251. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1252. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1253. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1254. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1255. ;;
  1256. esac
  1257. done
  1258. if test -n "$ac_prev"; then
  1259. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1260. { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1261. { (exit 1); exit 1; }; }
  1262. fi
  1263. if test -n "$ac_unrecognized_opts"; then
  1264. case $enable_option_checking in
  1265. no) ;;
  1266. fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
  1267. { (exit 1); exit 1; }; } ;;
  1268. *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1269. esac
  1270. fi
  1271. # Check all directory arguments for consistency.
  1272. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1273. datadir sysconfdir sharedstatedir localstatedir includedir \
  1274. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1275. libdir localedir mandir
  1276. do
  1277. eval ac_val=\$$ac_var
  1278. # Remove trailing slashes.
  1279. case $ac_val in
  1280. */ )
  1281. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1282. eval $ac_var=\$ac_val;;
  1283. esac
  1284. # Be sure to have absolute directory names.
  1285. case $ac_val in
  1286. [\\/$]* | ?:[\\/]* ) continue;;
  1287. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1288. esac
  1289. { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1290. { (exit 1); exit 1; }; }
  1291. done
  1292. # There might be people who depend on the old broken behavior: `$host'
  1293. # used to hold the argument of --host etc.
  1294. # FIXME: To remove some day.
  1295. build=$build_alias
  1296. host=$host_alias
  1297. target=$target_alias
  1298. # FIXME: To remove some day.
  1299. if test "x$host_alias" != x; then
  1300. if test "x$build_alias" = x; then
  1301. cross_compiling=maybe
  1302. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1303. If a cross compiler is detected then cross compile mode will be used." >&2
  1304. elif test "x$build_alias" != "x$host_alias"; then
  1305. cross_compiling=yes
  1306. fi
  1307. fi
  1308. ac_tool_prefix=
  1309. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1310. test "$silent" = yes && exec 6>/dev/null
  1311. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1312. ac_ls_di=`ls -di .` &&
  1313. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1314. { $as_echo "$as_me: error: Working directory cannot be determined" >&2
  1315. { (exit 1); exit 1; }; }
  1316. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1317. { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1318. { (exit 1); exit 1; }; }
  1319. # Find the source files, if location was not specified.
  1320. if test -z "$srcdir"; then
  1321. ac_srcdir_defaulted=yes
  1322. # Try the directory containing this script, then the parent directory.
  1323. ac_confdir=`$as_dirname -- "$as_myself" ||
  1324. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1325. X"$as_myself" : 'X\(//\)[^/]' \| \
  1326. X"$as_myself" : 'X\(//\)$' \| \
  1327. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1328. $as_echo X"$as_myself" |
  1329. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1330. s//\1/
  1331. q
  1332. }
  1333. /^X\(\/\/\)[^/].*/{
  1334. s//\1/
  1335. q
  1336. }
  1337. /^X\(\/\/\)$/{
  1338. s//\1/
  1339. q
  1340. }
  1341. /^X\(\/\).*/{
  1342. s//\1/
  1343. q
  1344. }
  1345. s/.*/./; q'`
  1346. srcdir=$ac_confdir
  1347. if test ! -r "$srcdir/$ac_unique_file"; then
  1348. srcdir=..
  1349. fi
  1350. else
  1351. ac_srcdir_defaulted=no
  1352. fi
  1353. if test ! -r "$srcdir/$ac_unique_file"; then
  1354. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1355. { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1356. { (exit 1); exit 1; }; }
  1357. fi
  1358. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1359. ac_abs_confdir=`(
  1360. cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1361. { (exit 1); exit 1; }; }
  1362. pwd)`
  1363. # When building in place, set srcdir=.
  1364. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1365. srcdir=.
  1366. fi
  1367. # Remove unnecessary trailing slashes from srcdir.
  1368. # Double slashes in file names in object file debugging info
  1369. # mess up M-x gdb in Emacs.
  1370. case $srcdir in
  1371. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1372. esac
  1373. for ac_var in $ac_precious_vars; do
  1374. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1375. eval ac_env_${ac_var}_value=\$${ac_var}
  1376. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1377. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1378. done
  1379. #
  1380. # Report the --help message.
  1381. #
  1382. if test "$ac_init_help" = "long"; then
  1383. # Omit some internal or obsolete options to make the list less imposing.
  1384. # This message is too long to be a string in the A/UX 3.1 sh.
  1385. cat <<_ACEOF
  1386. \`configure' configures this package to adapt to many kinds of systems.
  1387. Usage: $0 [OPTION]... [VAR=VALUE]...
  1388. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1389. VAR=VALUE. See below for descriptions of some of the useful variables.
  1390. Defaults for the options are specified in brackets.
  1391. Configuration:
  1392. -h, --help display this help and exit
  1393. --help=short display options specific to this package
  1394. --help=recursive display the short help of all the included packages
  1395. -V, --version display version information and exit
  1396. -q, --quiet, --silent do not print \`checking...' messages
  1397. --cache-file=FILE cache test results in FILE [disabled]
  1398. -C, --config-cache alias for \`--cache-file=config.cache'
  1399. -n, --no-create do not create output files
  1400. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1401. Installation directories:
  1402. --prefix=PREFIX install architecture-independent files in PREFIX
  1403. [$ac_default_prefix]
  1404. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1405. [PREFIX]
  1406. By default, \`make install' will install all the files in
  1407. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1408. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1409. for instance \`--prefix=\$HOME'.
  1410. For better control, use the options below.
  1411. Fine tuning of the installation directories:
  1412. --bindir=DIR user executables [EPREFIX/bin]
  1413. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1414. --libexecdir=DIR program executables [EPREFIX/libexec]
  1415. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1416. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1417. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1418. --libdir=DIR object code libraries [EPREFIX/lib]
  1419. --includedir=DIR C header files [PREFIX/include]
  1420. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1421. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1422. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1423. --infodir=DIR info documentation [DATAROOTDIR/info]
  1424. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1425. --mandir=DIR man documentation [DATAROOTDIR/man]
  1426. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1427. --htmldir=DIR html documentation [DOCDIR]
  1428. --dvidir=DIR dvi documentation [DOCDIR]
  1429. --pdfdir=DIR pdf documentation [DOCDIR]
  1430. --psdir=DIR ps documentation [DOCDIR]
  1431. _ACEOF
  1432. cat <<\_ACEOF
  1433. Program names:
  1434. --program-prefix=PREFIX prepend PREFIX to installed program names
  1435. --program-suffix=SUFFIX append SUFFIX to installed program names
  1436. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1437. System types:
  1438. --build=BUILD configure for building on BUILD [guessed]
  1439. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1440. --target=TARGET configure for building compilers for TARGET [HOST]
  1441. _ACEOF
  1442. fi
  1443. if test -n "$ac_init_help"; then
  1444. cat <<\_ACEOF
  1445. Optional Features:
  1446. --disable-option-checking ignore unrecognized --enable/--with options
  1447. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1448. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1449. --enable-maintainer-mode enable make rules and dependencies not useful
  1450. (and sometimes confusing) to the casual installer
  1451. --enable-shared[=PKGS] build shared libraries [default=yes]
  1452. --enable-static[=PKGS] build static libraries [default=yes]
  1453. --enable-fast-install[=PKGS]
  1454. optimize for fast installation [default=yes]
  1455. --disable-dependency-tracking speeds up one-time build
  1456. --enable-dependency-tracking do not reject slow dependency extractors
  1457. --disable-libtool-lock avoid locking (might break parallel builds)
  1458. --disable-largefile omit support for large files
  1459. --enable-debug Enable debugging code and support for the -d option
  1460. --enable-dmalloc Enable linking to dmalloc for better memory
  1461. debugging
  1462. --enable-pedantic Enable gcc's -pedantic option
  1463. --enable-efence Enable Electric Fence memory debugger
  1464. --enable-gprof Enable GNU Profiler
  1465. --disable-64bits Do not use 64bit packet counters
  1466. --enable-force-bpf Force using BPF for sending packets
  1467. --enable-force-pf Force using Linux's PF_PACKET for sending packets
  1468. --enable-force-libnet Force using libnet for sending packets
  1469. --enable-force-inject Force using libpcap's pcap_inject() for sending
  1470. packets
  1471. --enable-force-sendpacket
  1472. Force using libpcap's pcap_sendpacket() for sending
  1473. packets
  1474. --enable-tcpreplay-edit Link packet editing code with tcpreplay
  1475. --enable-dynamic-link Dynamically link libraries
  1476. --enable-libnet Enable using the libnet 1.1.x library (deprecated)
  1477. --enable-local-libopts Force using the supplied libopts tearoff code
  1478. --disable-libopts-install
  1479. Do not install libopts with client installation
  1480. --disable-optional-args not wanting optional option args
  1481. Optional Packages:
  1482. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1483. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1484. --with-dmalloc use dmalloc, as in
  1485. http://www.dmalloc.com/dmalloc.tar.gz
  1486. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1487. --with-pic try to use only PIC/non-PIC objects [default=use
  1488. both]
  1489. --with-tags[=TAGS] include additional configurations [automatic]
  1490. --with-libnet=DIR Use libnet in DIR
  1491. --with-libpcap=DIR Use libpcap in DIR
  1492. --with-libdnet=DIR Use libdnet in DIR
  1493. --with-pcapnav-config=FILE
  1494. Use given pcapnav-config
  1495. --with-tcpdump=FILE Path to tcpdump binary
  1496. --with-testnic=NIC Select which network card to use for testing
  1497. --with-testnic2=NIC2 Select an optional 2nd network card to use for
  1498. testing
  1499. --with-autoopts-config specify the config-info script
  1500. --with-regex-header a reg expr header is specified
  1501. --with-libregex libregex installation prefix
  1502. --with-libregex-cflags libregex compile flags
  1503. --with-libregex-libs libregex link command arguments
  1504. Some influential environment variables:
  1505. CC C compiler command
  1506. CFLAGS C compiler flags
  1507. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1508. nonstandard directory <lib dir>
  1509. LIBS libraries to pass to the linker, e.g. -l<library>
  1510. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1511. you have headers in a nonstandard directory <include dir>
  1512. CPP C preprocessor
  1513. CXX C++ compiler command
  1514. CXXFLAGS C++ compiler flags
  1515. CXXCPP C++ preprocessor
  1516. F77 Fortran 77 compiler command
  1517. FFLAGS Fortran 77 compiler flags
  1518. Use these variables to override the choices made by `configure' or to help
  1519. it to find libraries and programs with nonstandard names/locations.
  1520. _ACEOF
  1521. ac_status=$?
  1522. fi
  1523. if test "$ac_init_help" = "recursive"; then
  1524. # If there are subdirs, report their specific --help.
  1525. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1526. test -d "$ac_dir" ||
  1527. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1528. continue
  1529. ac_builddir=.
  1530. case "$ac_dir" in
  1531. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1532. *)
  1533. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1534. # A ".." for each directory in $ac_dir_suffix.
  1535. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1536. case $ac_top_builddir_sub in
  1537. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1538. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1539. esac ;;
  1540. esac
  1541. ac_abs_top_builddir=$ac_pwd
  1542. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1543. # for backward compatibility:
  1544. ac_top_builddir=$ac_top_build_prefix
  1545. case $srcdir in
  1546. .) # We are building in place.
  1547. ac_srcdir=.
  1548. ac_top_srcdir=$ac_top_builddir_sub
  1549. ac_abs_top_srcdir=$ac_pwd ;;
  1550. [\\/]* | ?:[\\/]* ) # Absolute name.
  1551. ac_srcdir=$srcdir$ac_dir_suffix;
  1552. ac_top_srcdir=$srcdir
  1553. ac_abs_top_srcdir=$srcdir ;;
  1554. *) # Relative name.
  1555. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1556. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1557. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1558. esac
  1559. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1560. cd "$ac_dir" || { ac_status=$?; continue; }
  1561. # Check for guested configure.
  1562. if test -f "$ac_srcdir/configure.gnu"; then
  1563. echo &&
  1564. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1565. elif test -f "$ac_srcdir/configure"; then
  1566. echo &&
  1567. $SHELL "$ac_srcdir/configure" --help=recursive
  1568. else
  1569. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1570. fi || ac_status=$?
  1571. cd "$ac_pwd" || { ac_status=$?; break; }
  1572. done
  1573. fi
  1574. test -n "$ac_init_help" && exit $ac_status
  1575. if $ac_init_version; then
  1576. cat <<\_ACEOF
  1577. configure
  1578. generated by GNU Autoconf 2.62
  1579. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1580. 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1581. This configure script is free software; the Free Software Foundation
  1582. gives unlimited permission to copy, distribute and modify it.
  1583. _ACEOF
  1584. exit
  1585. fi
  1586. cat >config.log <<_ACEOF
  1587. This file contains any messages produced by compilers while
  1588. running configure, to aid debugging if configure makes a mistake.
  1589. It was created by $as_me, which was
  1590. generated by GNU Autoconf 2.62. Invocation command line was
  1591. $ $0 $@
  1592. _ACEOF
  1593. exec 5>>config.log
  1594. {
  1595. cat <<_ASUNAME
  1596. ## --------- ##
  1597. ## Platform. ##
  1598. ## --------- ##
  1599. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1600. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1601. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1602. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1603. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1604. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1605. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1606. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1607. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1608. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1609. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1610. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1611. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1612. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1613. _ASUNAME
  1614. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1615. for as_dir in $PATH
  1616. do
  1617. IFS=$as_save_IFS
  1618. test -z "$as_dir" && as_dir=.
  1619. $as_echo "PATH: $as_dir"
  1620. done
  1621. IFS=$as_save_IFS
  1622. } >&5
  1623. cat >&5 <<_ACEOF
  1624. ## ----------- ##
  1625. ## Core tests. ##
  1626. ## ----------- ##
  1627. _ACEOF
  1628. # Keep a trace of the command line.
  1629. # Strip out --no-create and --no-recursion so they do not pile up.
  1630. # Strip out --silent because we don't want to record it for future runs.
  1631. # Also quote any args containing shell meta-characters.
  1632. # Make two passes to allow for proper duplicate-argument suppression.
  1633. ac_configure_args=
  1634. ac_configure_args0=
  1635. ac_configure_args1=
  1636. ac_must_keep_next=false
  1637. for ac_pass in 1 2
  1638. do
  1639. for ac_arg
  1640. do
  1641. case $ac_arg in
  1642. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1643. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1644. | -silent | --silent | --silen | --sile | --sil)
  1645. continue ;;
  1646. *\'*)
  1647. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1648. esac
  1649. case $ac_pass in
  1650. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1651. 2)
  1652. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1653. if test $ac_must_keep_next = true; then
  1654. ac_must_keep_next=false # Got value, back to normal.
  1655. else
  1656. case $ac_arg in
  1657. *=* | --config-cache | -C | -disable-* | --disable-* \
  1658. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1659. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1660. | -with-* | --with-* | -without-* | --without-* | --x)
  1661. case "$ac_configure_args0 " in
  1662. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1663. esac
  1664. ;;
  1665. -* ) ac_must_keep_next=true ;;
  1666. esac
  1667. fi
  1668. ac_configure_args="$ac_configure_args '$ac_arg'"
  1669. ;;
  1670. esac
  1671. done
  1672. done
  1673. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1674. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1675. # When interrupted or exit'd, cleanup temporary files, and complete
  1676. # config.log. We remove comments because anyway the quotes in there
  1677. # would cause problems or look ugly.
  1678. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1679. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1680. trap 'exit_status=$?
  1681. # Save into config.log some information that might help in debugging.
  1682. {
  1683. echo
  1684. cat <<\_ASBOX
  1685. ## ---------------- ##
  1686. ## Cache variables. ##
  1687. ## ---------------- ##
  1688. _ASBOX
  1689. echo
  1690. # The following way of writing the cache mishandles newlines in values,
  1691. (
  1692. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1693. eval ac_val=\$$ac_var
  1694. case $ac_val in #(
  1695. *${as_nl}*)
  1696. case $ac_var in #(
  1697. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1698. $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1699. esac
  1700. case $ac_var in #(
  1701. _ | IFS | as_nl) ;; #(
  1702. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1703. *) $as_unset $ac_var ;;
  1704. esac ;;
  1705. esac
  1706. done
  1707. (set) 2>&1 |
  1708. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1709. *${as_nl}ac_space=\ *)
  1710. sed -n \
  1711. "s/'\''/'\''\\\\'\'''\''/g;
  1712. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1713. ;; #(
  1714. *)
  1715. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1716. ;;
  1717. esac |
  1718. sort
  1719. )
  1720. echo
  1721. cat <<\_ASBOX
  1722. ## ----------------- ##
  1723. ## Output variables. ##
  1724. ## ----------------- ##
  1725. _ASBOX
  1726. echo
  1727. for ac_var in $ac_subst_vars
  1728. do
  1729. eval ac_val=\$$ac_var
  1730. case $ac_val in
  1731. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1732. esac
  1733. $as_echo "$ac_var='\''$ac_val'\''"
  1734. done | sort
  1735. echo
  1736. if test -n "$ac_subst_files"; then
  1737. cat <<\_ASBOX
  1738. ## ------------------- ##
  1739. ## File substitutions. ##
  1740. ## ------------------- ##
  1741. _ASBOX
  1742. echo
  1743. for ac_var in $ac_subst_files
  1744. do
  1745. eval ac_val=\$$ac_var
  1746. case $ac_val in
  1747. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1748. esac
  1749. $as_echo "$ac_var='\''$ac_val'\''"
  1750. done | sort
  1751. echo
  1752. fi
  1753. if test -s confdefs.h; then
  1754. cat <<\_ASBOX
  1755. ## ----------- ##
  1756. ## confdefs.h. ##
  1757. ## ----------- ##
  1758. _ASBOX
  1759. echo
  1760. cat confdefs.h
  1761. echo
  1762. fi
  1763. test "$ac_signal" != 0 &&
  1764. $as_echo "$as_me: caught signal $ac_signal"
  1765. $as_echo "$as_me: exit $exit_status"
  1766. } >&5
  1767. rm -f core *.core core.conftest.* &&
  1768. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1769. exit $exit_status
  1770. ' 0
  1771. for ac_signal in 1 2 13 15; do
  1772. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1773. done
  1774. ac_signal=0
  1775. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1776. rm -f -r conftest* confdefs.h
  1777. # Predefined preprocessor variables.
  1778. cat >>confdefs.h <<_ACEOF
  1779. #define PACKAGE_NAME "$PACKAGE_NAME"
  1780. _ACEOF
  1781. cat >>confdefs.h <<_ACEOF
  1782. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1783. _ACEOF
  1784. cat >>confdefs.h <<_ACEOF
  1785. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1786. _ACEOF
  1787. cat >>confdefs.h <<_ACEOF
  1788. #define PACKAGE_STRING "$PACKAGE_STRING"
  1789. _ACEOF
  1790. cat >>confdefs.h <<_ACEOF
  1791. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1792. _ACEOF
  1793. # Let the site file select an alternate cache file if it wants to.
  1794. # Prefer an explicitly selected file to automatically selected ones.
  1795. ac_site_file1=NONE
  1796. ac_site_file2=NONE
  1797. if test -n "$CONFIG_SITE"; then
  1798. ac_site_file1=$CONFIG_SITE
  1799. elif test "x$prefix" != xNONE; then
  1800. ac_site_file1=$prefix/share/config.site
  1801. ac_site_file2=$prefix/etc/config.site
  1802. else
  1803. ac_site_file1=$ac_default_prefix/share/config.site
  1804. ac_site_file2=$ac_default_prefix/etc/config.site
  1805. fi
  1806. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1807. do
  1808. test "x$ac_site_file" = xNONE && continue
  1809. if test -r "$ac_site_file"; then
  1810. { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1811. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1812. sed 's/^/| /' "$ac_site_file" >&5
  1813. . "$ac_site_file"
  1814. fi
  1815. done
  1816. if test -r "$cache_file"; then
  1817. # Some versions of bash will fail to source /dev/null (special
  1818. # files actually), so we avoid doing that.
  1819. if test -f "$cache_file"; then
  1820. { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1821. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1822. case $cache_file in
  1823. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1824. *) . "./$cache_file";;
  1825. esac
  1826. fi
  1827. else
  1828. { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1829. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1830. >$cache_file
  1831. fi
  1832. # Check that the precious variables saved in the cache have kept the same
  1833. # value.
  1834. ac_cache_corrupted=false
  1835. for ac_var in $ac_precious_vars; do
  1836. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1837. eval ac_new_set=\$ac_env_${ac_var}_set
  1838. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1839. eval ac_new_val=\$ac_env_${ac_var}_value
  1840. case $ac_old_set,$ac_new_set in
  1841. set,)
  1842. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1843. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1844. ac_cache_corrupted=: ;;
  1845. ,set)
  1846. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1847. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1848. ac_cache_corrupted=: ;;
  1849. ,);;
  1850. *)
  1851. if test "x$ac_old_val" != "x$ac_new_val"; then
  1852. # differences in whitespace do not lead to failure.
  1853. ac_old_val_w=`echo x $ac_old_val`
  1854. ac_new_val_w=`echo x $ac_new_val`
  1855. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1856. { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1857. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1858. ac_cache_corrupted=:
  1859. else
  1860. { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1861. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1862. eval $ac_var=\$ac_old_val
  1863. fi
  1864. { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  1865. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1866. { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  1867. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1868. fi;;
  1869. esac
  1870. # Pass precious variables to config.status.
  1871. if test "$ac_new_set" = set; then
  1872. case $ac_new_val in
  1873. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1874. *) ac_arg=$ac_var=$ac_new_val ;;
  1875. esac
  1876. case " $ac_configure_args " in
  1877. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1878. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1879. esac
  1880. fi
  1881. done
  1882. if $ac_cache_corrupted; then
  1883. { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1884. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1885. { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1886. $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1887. { (exit 1); exit 1; }; }
  1888. fi
  1889. ac_ext=c
  1890. ac_cpp='$CPP $CPPFLAGS'
  1891. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1892. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1893. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1894. ac_config_headers="$ac_config_headers src/config.h"
  1895. ac_aux_dir=
  1896. for ac_dir in config "$srcdir"/config; do
  1897. if test -f "$ac_dir/install-sh"; then
  1898. ac_aux_dir=$ac_dir
  1899. ac_install_sh="$ac_aux_dir/install-sh -c"
  1900. break
  1901. elif test -f "$ac_dir/install.sh"; then
  1902. ac_aux_dir=$ac_dir
  1903. ac_install_sh="$ac_aux_dir/install.sh -c"
  1904. break
  1905. elif test -f "$ac_dir/shtool"; then
  1906. ac_aux_dir=$ac_dir
  1907. ac_install_sh="$ac_aux_dir/shtool install -c"
  1908. break
  1909. fi
  1910. done
  1911. if test -z "$ac_aux_dir"; then
  1912. { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
  1913. $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
  1914. { (exit 1); exit 1; }; }
  1915. fi
  1916. # These three variables are undocumented and unsupported,
  1917. # and are intended to be withdrawn in a future Autoconf release.
  1918. # They can cause serious problems if a builder's source tree is in a directory
  1919. # whose full name contains unusual characters.
  1920. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1921. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1922. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1923. { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  1924. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  1925. # Check whether --enable-maintainer-mode was given.
  1926. if test "${enable_maintainer_mode+set}" = set; then
  1927. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  1928. else
  1929. USE_MAINTAINER_MODE=no
  1930. fi
  1931. { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  1932. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  1933. if test $USE_MAINTAINER_MODE = yes; then
  1934. MAINTAINER_MODE_TRUE=
  1935. MAINTAINER_MODE_FALSE='#'
  1936. else
  1937. MAINTAINER_MODE_TRUE='#'
  1938. MAINTAINER_MODE_FALSE=
  1939. fi
  1940. MAINT=$MAINTAINER_MODE_TRUE
  1941. { $as_echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
  1942. $as_echo_n "checking if malloc debugging is wanted... " >&6; }
  1943. # Check whether --with-dmalloc was given.
  1944. if test "${with_dmalloc+set}" = set; then
  1945. withval=$with_dmalloc; if test "$withval" = yes; then
  1946. { $as_echo "$as_me:$LINENO: result: yes" >&5
  1947. $as_echo "yes" >&6; }
  1948. cat >>confdefs.h <<\_ACEOF
  1949. #define WITH_DMALLOC 1
  1950. _ACEOF
  1951. LIBS="$LIBS -ldmalloc"
  1952. LDFLAGS="$LDFLAGS -g"
  1953. else
  1954. { $as_echo "$as_me:$LINENO: result: no" >&5
  1955. $as_echo "no" >&6; }
  1956. fi
  1957. else
  1958. { $as_echo "$as_me:$LINENO: result: no" >&5
  1959. $as_echo "no" >&6; }
  1960. fi
  1961. MAINTAINER_AUTOGEN_VERSION=5.9.2
  1962. MAJOR_VERSION=3
  1963. MINOR_VERSION=3
  1964. MICRO_VERSION=1
  1965. TCPREPLAY_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION
  1966. TCPREPLAY_RELEASE=1
  1967. cat >>confdefs.h <<\_ACEOF
  1968. #define PACKAGE tcpreplay
  1969. _ACEOF
  1970. cat >>confdefs.h <<_ACEOF
  1971. #define VERSION "$TCPREPLAY_VERSION"
  1972. _ACEOF
  1973. USER_CFLAGS=$CFLAGS
  1974. CFLAGS="${CFLAGS} -Wall -O3 -std=gnu99"
  1975. # Make sure we can run config.sub.
  1976. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1977. { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1978. $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1979. { (exit 1); exit 1; }; }
  1980. { $as_echo "$as_me:$LINENO: checking build system type" >&5
  1981. $as_echo_n "checking build system type... " >&6; }
  1982. if test "${ac_cv_build+set}" = set; then
  1983. $as_echo_n "(cached) " >&6
  1984. else
  1985. ac_build_alias=$build_alias
  1986. test "x$ac_build_alias" = x &&
  1987. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1988. test "x$ac_build_alias" = x &&
  1989. { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1990. $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1991. { (exit 1); exit 1; }; }
  1992. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1993. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1994. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1995. { (exit 1); exit 1; }; }
  1996. fi
  1997. { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1998. $as_echo "$ac_cv_build" >&6; }
  1999. case $ac_cv_build in
  2000. *-*-*) ;;
  2001. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  2002. $as_echo "$as_me: error: invalid value of canonical build" >&2;}
  2003. { (exit 1); exit 1; }; };;
  2004. esac
  2005. build=$ac_cv_build
  2006. ac_save_IFS=$IFS; IFS='-'
  2007. set x $ac_cv_build
  2008. shift
  2009. build_cpu=$1
  2010. build_vendor=$2
  2011. shift; shift
  2012. # Remember, the first character of IFS is used to create $*,
  2013. # except with old shells:
  2014. build_os=$*
  2015. IFS=$ac_save_IFS
  2016. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2017. { $as_echo "$as_me:$LINENO: checking host system type" >&5
  2018. $as_echo_n "checking host system type... " >&6; }
  2019. if test "${ac_cv_host+set}" = set; then
  2020. $as_echo_n "(cached) " >&6
  2021. else
  2022. if test "x$host_alias" = x; then
  2023. ac_cv_host=$ac_cv_build
  2024. else
  2025. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2026. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  2027. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  2028. { (exit 1); exit 1; }; }
  2029. fi
  2030. fi
  2031. { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  2032. $as_echo "$ac_cv_host" >&6; }
  2033. case $ac_cv_host in
  2034. *-*-*) ;;
  2035. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  2036. $as_echo "$as_me: error: invalid value of canonical host" >&2;}
  2037. { (exit 1); exit 1; }; };;
  2038. esac
  2039. host=$ac_cv_host
  2040. ac_save_IFS=$IFS; IFS='-'
  2041. set x $ac_cv_host
  2042. shift
  2043. host_cpu=$1
  2044. host_vendor=$2
  2045. shift; shift
  2046. # Remember, the first character of IFS is used to create $*,
  2047. # except with old shells:
  2048. host_os=$*
  2049. IFS=$ac_save_IFS
  2050. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2051. { $as_echo "$as_me:$LINENO: checking target system type" >&5
  2052. $as_echo_n "checking target system type... " >&6; }
  2053. if test "${ac_cv_target+set}" = set; then
  2054. $as_echo_n "(cached) " >&6
  2055. else
  2056. if test "x$target_alias" = x; then
  2057. ac_cv_target=$ac_cv_host
  2058. else
  2059. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2060. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  2061. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  2062. { (exit 1); exit 1; }; }
  2063. fi
  2064. fi
  2065. { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  2066. $as_echo "$ac_cv_target" >&6; }
  2067. case $ac_cv_target in
  2068. *-*-*) ;;
  2069. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  2070. $as_echo "$as_me: error: invalid value of canonical target" >&2;}
  2071. { (exit 1); exit 1; }; };;
  2072. esac
  2073. target=$ac_cv_target
  2074. ac_save_IFS=$IFS; IFS='-'
  2075. set x $ac_cv_target
  2076. shift
  2077. target_cpu=$1
  2078. target_vendor=$2
  2079. shift; shift
  2080. # Remember, the first character of IFS is used to create $*,
  2081. # except with old shells:
  2082. target_os=$*
  2083. IFS=$ac_save_IFS
  2084. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2085. # The aliases save the names the user supplied, while $host etc.
  2086. # will get canonicalized.
  2087. test -n "$target_alias" &&
  2088. test "$program_prefix$program_suffix$program_transform_name" = \
  2089. NONENONEs,x,x, &&
  2090. program_prefix=${target_alias}-
  2091. { $as_echo "$as_me:$LINENO: checking for cygwin development environment" >&5
  2092. $as_echo_n "checking for cygwin development environment... " >&6; }
  2093. if test `echo $target | grep -c cygwin` -gt 0 ; then
  2094. cat >>confdefs.h <<\_ACEOF
  2095. #define HAVE_WIN32 1
  2096. _ACEOF
  2097. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2098. $as_echo "yes" >&6; }
  2099. else
  2100. { $as_echo "$as_me:$LINENO: result: no" >&5
  2101. $as_echo "no" >&6; }
  2102. fi
  2103. am__api_version='1.10'
  2104. # Find a good install program. We prefer a C program (faster),
  2105. # so one script is as good as another. But avoid the broken or
  2106. # incompatible versions:
  2107. # SysV /etc/install, /usr/sbin/install
  2108. # SunOS /usr/etc/install
  2109. # IRIX /sbin/install
  2110. # AIX /bin/install
  2111. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2112. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2113. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2114. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2115. # OS/2's system install, which has a completely different semantic
  2116. # ./install, which can be erroneously created by make from ./install.sh.
  2117. # Reject install programs that cannot install multiple files.
  2118. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  2119. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2120. if test -z "$INSTALL"; then
  2121. if test "${ac_cv_path_install+set}" = set; then
  2122. $as_echo_n "(cached) " >&6
  2123. else
  2124. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2125. for as_dir in $PATH
  2126. do
  2127. IFS=$as_save_IFS
  2128. test -z "$as_dir" && as_dir=.
  2129. # Account for people who put trailing slashes in PATH elements.
  2130. case $as_dir/ in
  2131. ./ | .// | /cC/* | \
  2132. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2133. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2134. /usr/ucb/* ) ;;
  2135. *)
  2136. # OSF1 and SCO ODT 3.0 have their own names for install.
  2137. # Don't use installbsd from OSF since it installs stuff as root
  2138. # by default.
  2139. for ac_prog in ginstall scoinst install; do
  2140. for ac_exec_ext in '' $ac_executable_extensions; do
  2141. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2142. if test $ac_prog = install &&
  2143. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2144. # AIX install. It has an incompatible calling convention.
  2145. :
  2146. elif test $ac_prog = install &&
  2147. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2148. # program-specific install script used by HP pwplus--don't use.
  2149. :
  2150. else
  2151. rm -rf conftest.one conftest.two conftest.dir
  2152. echo one > conftest.one
  2153. echo two > conftest.two
  2154. mkdir conftest.dir
  2155. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2156. test -s conftest.one && test -s conftest.two &&
  2157. test -s conftest.dir/conftest.one &&
  2158. test -s conftest.dir/conftest.two
  2159. then
  2160. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2161. break 3
  2162. fi
  2163. fi
  2164. fi
  2165. done
  2166. done
  2167. ;;
  2168. esac
  2169. done
  2170. IFS=$as_save_IFS
  2171. rm -rf conftest.one conftest.two conftest.dir
  2172. fi
  2173. if test "${ac_cv_path_install+set}" = set; then
  2174. INSTALL=$ac_cv_path_install
  2175. else
  2176. # As a last resort, use the slow shell script. Don't cache a
  2177. # value for INSTALL within a source directory, because that will
  2178. # break other packages using the cache if that directory is
  2179. # removed, or if the value is a relative name.
  2180. INSTALL=$ac_install_sh
  2181. fi
  2182. fi
  2183. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  2184. $as_echo "$INSTALL" >&6; }
  2185. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2186. # It thinks the first close brace ends the variable substitution.
  2187. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2188. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2189. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2190. { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  2191. $as_echo_n "checking whether build environment is sane... " >&6; }
  2192. # Just in case
  2193. sleep 1
  2194. echo timestamp > conftest.file
  2195. # Do `set' in a subshell so we don't clobber the current shell's
  2196. # arguments. Must try -L first in case configure is actually a
  2197. # symlink; some systems play weird games with the mod time of symlinks
  2198. # (eg FreeBSD returns the mod time of the symlink's containing
  2199. # directory).
  2200. if (
  2201. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  2202. if test "$*" = "X"; then
  2203. # -L didn't work.
  2204. set X `ls -t $srcdir/configure conftest.file`
  2205. fi
  2206. rm -f conftest.file
  2207. if test "$*" != "X $srcdir/configure conftest.file" \
  2208. && test "$*" != "X conftest.file $srcdir/configure"; then
  2209. # If neither matched, then we have a broken ls. This can happen
  2210. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2211. # broken ls alias from the environment. This has actually
  2212. # happened. Such a system could not be considered "sane".
  2213. { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  2214. alias in your environment" >&5
  2215. $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  2216. alias in your environment" >&2;}
  2217. { (exit 1); exit 1; }; }
  2218. fi
  2219. test "$2" = conftest.file
  2220. )
  2221. then
  2222. # Ok.
  2223. :
  2224. else
  2225. { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  2226. Check your system clock" >&5
  2227. $as_echo "$as_me: error: newly created file is older than distributed files!
  2228. Check your system clock" >&2;}
  2229. { (exit 1); exit 1; }; }
  2230. fi
  2231. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2232. $as_echo "yes" >&6; }
  2233. test "$program_prefix" != NONE &&
  2234. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2235. # Use a double $ so make ignores it.
  2236. test "$program_suffix" != NONE &&
  2237. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2238. # Double any \ or $.
  2239. # By default was `s,x,x', remove it if useless.
  2240. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2241. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2242. # expand $ac_aux_dir to an absolute path
  2243. am_aux_dir=`cd $ac_aux_dir && pwd`
  2244. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  2245. # Use eval to expand $SHELL
  2246. if eval "$MISSING --run true"; then
  2247. am_missing_run="$MISSING --run "
  2248. else
  2249. am_missing_run=
  2250. { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2251. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2252. fi
  2253. { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  2254. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2255. if test -z "$MKDIR_P"; then
  2256. if test "${ac_cv_path_mkdir+set}" = set; then
  2257. $as_echo_n "(cached) " >&6
  2258. else
  2259. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2260. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2261. do
  2262. IFS=$as_save_IFS
  2263. test -z "$as_dir" && as_dir=.
  2264. for ac_prog in mkdir gmkdir; do
  2265. for ac_exec_ext in '' $ac_executable_extensions; do
  2266. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2267. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2268. 'mkdir (GNU coreutils) '* | \
  2269. 'mkdir (coreutils) '* | \
  2270. 'mkdir (fileutils) '4.1*)
  2271. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2272. break 3;;
  2273. esac
  2274. done
  2275. done
  2276. done
  2277. IFS=$as_save_IFS
  2278. fi
  2279. if test "${ac_cv_path_mkdir+set}" = set; then
  2280. MKDIR_P="$ac_cv_path_mkdir -p"
  2281. else
  2282. # As a last resort, use the slow shell script. Don't cache a
  2283. # value for MKDIR_P within a source directory, because that will
  2284. # break other packages using the cache if that directory is
  2285. # removed, or if the value is a relative name.
  2286. test -d ./--version && rmdir ./--version
  2287. MKDIR_P="$ac_install_sh -d"
  2288. fi
  2289. fi
  2290. { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  2291. $as_echo "$MKDIR_P" >&6; }
  2292. mkdir_p="$MKDIR_P"
  2293. case $mkdir_p in
  2294. [\\/$]* | ?:[\\/]*) ;;
  2295. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2296. esac
  2297. for ac_prog in gawk mawk nawk awk
  2298. do
  2299. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2300. set dummy $ac_prog; ac_word=$2
  2301. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2302. $as_echo_n "checking for $ac_word... " >&6; }
  2303. if test "${ac_cv_prog_AWK+set}" = set; then
  2304. $as_echo_n "(cached) " >&6
  2305. else
  2306. if test -n "$AWK"; then
  2307. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2308. else
  2309. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2310. for as_dir in $PATH
  2311. do
  2312. IFS=$as_save_IFS
  2313. test -z "$as_dir" && as_dir=.
  2314. for ac_exec_ext in '' $ac_executable_extensions; do
  2315. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2316. ac_cv_prog_AWK="$ac_prog"
  2317. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2318. break 2
  2319. fi
  2320. done
  2321. done
  2322. IFS=$as_save_IFS
  2323. fi
  2324. fi
  2325. AWK=$ac_cv_prog_AWK
  2326. if test -n "$AWK"; then
  2327. { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  2328. $as_echo "$AWK" >&6; }
  2329. else
  2330. { $as_echo "$as_me:$LINENO: result: no" >&5
  2331. $as_echo "no" >&6; }
  2332. fi
  2333. test -n "$AWK" && break
  2334. done
  2335. { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2336. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2337. set x ${MAKE-make}
  2338. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2339. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2340. $as_echo_n "(cached) " >&6
  2341. else
  2342. cat >conftest.make <<\_ACEOF
  2343. SHELL = /bin/sh
  2344. all:
  2345. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2346. _ACEOF
  2347. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2348. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2349. *@@@%%%=?*=@@@%%%*)
  2350. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2351. *)
  2352. eval ac_cv_prog_make_${ac_make}_set=no;;
  2353. esac
  2354. rm -f conftest.make
  2355. fi
  2356. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2357. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2358. $as_echo "yes" >&6; }
  2359. SET_MAKE=
  2360. else
  2361. { $as_echo "$as_me:$LINENO: result: no" >&5
  2362. $as_echo "no" >&6; }
  2363. SET_MAKE="MAKE=${MAKE-make}"
  2364. fi
  2365. rm -rf .tst 2>/dev/null
  2366. mkdir .tst 2>/dev/null
  2367. if test -d .tst; then
  2368. am__leading_dot=.
  2369. else
  2370. am__leading_dot=_
  2371. fi
  2372. rmdir .tst 2>/dev/null
  2373. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2374. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2375. # is not polluted with repeated "-I."
  2376. am__isrc=' -I$(srcdir)'
  2377. # test to see if srcdir already configured
  2378. if test -f $srcdir/config.status; then
  2379. { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2380. $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2381. { (exit 1); exit 1; }; }
  2382. fi
  2383. fi
  2384. # test whether we have cygpath
  2385. if test -z "$CYGPATH_W"; then
  2386. if (cygpath --version) >/dev/null 2>/dev/null; then
  2387. CYGPATH_W='cygpath -w'
  2388. else
  2389. CYGPATH_W=echo
  2390. fi
  2391. fi
  2392. # Define the identity of the package.
  2393. PACKAGE=tcpreplay
  2394. VERSION=$TCPREPLAY_VERSION
  2395. # Some tools Automake needs.
  2396. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2397. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2398. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2399. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2400. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2401. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  2402. # Installed binaries are usually stripped using `strip' when the user
  2403. # run `make install-strip'. However `strip' might not be the right
  2404. # tool to use in cross-compilation environments, therefore Automake
  2405. # will honor the `STRIP' environment variable to overrule this program.
  2406. if test "$cross_compiling" != no; then
  2407. if test -n "$ac_tool_prefix"; then
  2408. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2409. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2410. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2411. $as_echo_n "checking for $ac_word... " >&6; }
  2412. if test "${ac_cv_prog_STRIP+set}" = set; then
  2413. $as_echo_n "(cached) " >&6
  2414. else
  2415. if test -n "$STRIP"; then
  2416. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2417. else
  2418. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2419. for as_dir in $PATH
  2420. do
  2421. IFS=$as_save_IFS
  2422. test -z "$as_dir" && as_dir=.
  2423. for ac_exec_ext in '' $ac_executable_extensions; do
  2424. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2425. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2426. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2427. break 2
  2428. fi
  2429. done
  2430. done
  2431. IFS=$as_save_IFS
  2432. fi
  2433. fi
  2434. STRIP=$ac_cv_prog_STRIP
  2435. if test -n "$STRIP"; then
  2436. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  2437. $as_echo "$STRIP" >&6; }
  2438. else
  2439. { $as_echo "$as_me:$LINENO: result: no" >&5
  2440. $as_echo "no" >&6; }
  2441. fi
  2442. fi
  2443. if test -z "$ac_cv_prog_STRIP"; then
  2444. ac_ct_STRIP=$STRIP
  2445. # Extract the first word of "strip", so it can be a program name with args.
  2446. set dummy strip; ac_word=$2
  2447. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2448. $as_echo_n "checking for $ac_word... " >&6; }
  2449. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2450. $as_echo_n "(cached) " >&6
  2451. else
  2452. if test -n "$ac_ct_STRIP"; then
  2453. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2454. else
  2455. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2456. for as_dir in $PATH
  2457. do
  2458. IFS=$as_save_IFS
  2459. test -z "$as_dir" && as_dir=.
  2460. for ac_exec_ext in '' $ac_executable_extensions; do
  2461. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2462. ac_cv_prog_ac_ct_STRIP="strip"
  2463. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2464. break 2
  2465. fi
  2466. done
  2467. done
  2468. IFS=$as_save_IFS
  2469. fi
  2470. fi
  2471. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2472. if test -n "$ac_ct_STRIP"; then
  2473. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2474. $as_echo "$ac_ct_STRIP" >&6; }
  2475. else
  2476. { $as_echo "$as_me:$LINENO: result: no" >&5
  2477. $as_echo "no" >&6; }
  2478. fi
  2479. if test "x$ac_ct_STRIP" = x; then
  2480. STRIP=":"
  2481. else
  2482. case $cross_compiling:$ac_tool_warned in
  2483. yes:)
  2484. { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2485. whose name does not start with the host triplet. If you think this
  2486. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2487. $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2488. whose name does not start with the host triplet. If you think this
  2489. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2490. ac_tool_warned=yes ;;
  2491. esac
  2492. STRIP=$ac_ct_STRIP
  2493. fi
  2494. else
  2495. STRIP="$ac_cv_prog_STRIP"
  2496. fi
  2497. fi
  2498. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2499. # We need awk for the "check" target. The system "awk" is bad on
  2500. # some platforms.
  2501. # Always define AMTAR for backward compatibility.
  2502. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2503. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2504. # Find a good install program. We prefer a C program (faster),
  2505. # so one script is as good as another. But avoid the broken or
  2506. # incompatible versions:
  2507. # SysV /etc/install, /usr/sbin/install
  2508. # SunOS /usr/etc/install
  2509. # IRIX /sbin/install
  2510. # AIX /bin/install
  2511. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2512. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2513. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2514. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2515. # OS/2's system install, which has a completely different semantic
  2516. # ./install, which can be erroneously created by make from ./install.sh.
  2517. # Reject install programs that cannot install multiple files.
  2518. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  2519. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2520. if test -z "$INSTALL"; then
  2521. if test "${ac_cv_path_install+set}" = set; then
  2522. $as_echo_n "(cached) " >&6
  2523. else
  2524. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2525. for as_dir in $PATH
  2526. do
  2527. IFS=$as_save_IFS
  2528. test -z "$as_dir" && as_dir=.
  2529. # Account for people who put trailing slashes in PATH elements.
  2530. case $as_dir/ in
  2531. ./ | .// | /cC/* | \
  2532. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2533. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2534. /usr/ucb/* ) ;;
  2535. *)
  2536. # OSF1 and SCO ODT 3.0 have their own names for install.
  2537. # Don't use installbsd from OSF since it installs stuff as root
  2538. # by default.
  2539. for ac_prog in ginstall scoinst install; do
  2540. for ac_exec_ext in '' $ac_executable_extensions; do
  2541. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2542. if test $ac_prog = install &&
  2543. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2544. # AIX install. It has an incompatible calling convention.
  2545. :
  2546. elif test $ac_prog = install &&
  2547. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2548. # program-specific install script used by HP pwplus--don't use.
  2549. :
  2550. else
  2551. rm -rf conftest.one conftest.two conftest.dir
  2552. echo one > conftest.one
  2553. echo two > conftest.two
  2554. mkdir conftest.dir
  2555. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2556. test -s conftest.one && test -s conftest.two &&
  2557. test -s conftest.dir/conftest.one &&
  2558. test -s conftest.dir/conftest.two
  2559. then
  2560. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2561. break 3
  2562. fi
  2563. fi
  2564. fi
  2565. done
  2566. done
  2567. ;;
  2568. esac
  2569. done
  2570. IFS=$as_save_IFS
  2571. rm -rf conftest.one conftest.two conftest.dir
  2572. fi
  2573. if test "${ac_cv_path_install+set}" = set; then
  2574. INSTALL=$ac_cv_path_install
  2575. else
  2576. # As a last resort, use the slow shell script. Don't cache a
  2577. # value for INSTALL within a source directory, because that will
  2578. # break other packages using the cache if that directory is
  2579. # removed, or if the value is a relative name.
  2580. INSTALL=$ac_install_sh
  2581. fi
  2582. fi
  2583. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  2584. $as_echo "$INSTALL" >&6; }
  2585. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2586. # It thinks the first close brace ends the variable substitution.
  2587. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2588. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2589. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2590. # Check whether --enable-shared was given.
  2591. if test "${enable_shared+set}" = set; then
  2592. enableval=$enable_shared; p=${PACKAGE-default}
  2593. case $enableval in
  2594. yes) enable_shared=yes ;;
  2595. no) enable_shared=no ;;
  2596. *)
  2597. enable_shared=no
  2598. # Look at the argument we got. We use all the common list separators.
  2599. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2600. for pkg in $enableval; do
  2601. IFS="$lt_save_ifs"
  2602. if test "X$pkg" = "X$p"; then
  2603. enable_shared=yes
  2604. fi
  2605. done
  2606. IFS="$lt_save_ifs"
  2607. ;;
  2608. esac
  2609. else
  2610. enable_shared=yes
  2611. fi
  2612. # Check whether --enable-static was given.
  2613. if test "${enable_static+set}" = set; then
  2614. enableval=$enable_static; p=${PACKAGE-default}
  2615. case $enableval in
  2616. yes) enable_static=yes ;;
  2617. no) enable_static=no ;;
  2618. *)
  2619. enable_static=no
  2620. # Look at the argument we got. We use all the common list separators.
  2621. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2622. for pkg in $enableval; do
  2623. IFS="$lt_save_ifs"
  2624. if test "X$pkg" = "X$p"; then
  2625. enable_static=yes
  2626. fi
  2627. done
  2628. IFS="$lt_save_ifs"
  2629. ;;
  2630. esac
  2631. else
  2632. enable_static=yes
  2633. fi
  2634. # Check whether --enable-fast-install was given.
  2635. if test "${enable_fast_install+set}" = set; then
  2636. enableval=$enable_fast_install; p=${PACKAGE-default}
  2637. case $enableval in
  2638. yes) enable_fast_install=yes ;;
  2639. no) enable_fast_install=no ;;
  2640. *)
  2641. enable_fast_install=no
  2642. # Look at the argument we got. We use all the common list separators.
  2643. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2644. for pkg in $enableval; do
  2645. IFS="$lt_save_ifs"
  2646. if test "X$pkg" = "X$p"; then
  2647. enable_fast_install=yes
  2648. fi
  2649. done
  2650. IFS="$lt_save_ifs"
  2651. ;;
  2652. esac
  2653. else
  2654. enable_fast_install=yes
  2655. fi
  2656. DEPDIR="${am__leading_dot}deps"
  2657. ac_config_commands="$ac_config_commands depfiles"
  2658. am_make=${MAKE-make}
  2659. cat > confinc << 'END'
  2660. am__doit:
  2661. @echo done
  2662. .PHONY: am__doit
  2663. END
  2664. # If we don't find an include directive, just comment out the code.
  2665. { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2666. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2667. am__include="#"
  2668. am__quote=
  2669. _am_result=none
  2670. # First try GNU make style include.
  2671. echo "include confinc" > confmf
  2672. # We grep out `Entering directory' and `Leaving directory'
  2673. # messages which can occur if `w' ends up in MAKEFLAGS.
  2674. # In particular we don't look at `^make:' because GNU make might
  2675. # be invoked under some other name (usually "gmake"), in which
  2676. # case it prints its new name instead of `make'.
  2677. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2678. am__include=include
  2679. am__quote=
  2680. _am_result=GNU
  2681. fi
  2682. # Now try BSD make style include.
  2683. if test "$am__include" = "#"; then
  2684. echo '.include "confinc"' > confmf
  2685. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2686. am__include=.include
  2687. am__quote="\""
  2688. _am_result=BSD
  2689. fi
  2690. fi
  2691. { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
  2692. $as_echo "$_am_result" >&6; }
  2693. rm -f confinc confmf
  2694. # Check whether --enable-dependency-tracking was given.
  2695. if test "${enable_dependency_tracking+set}" = set; then
  2696. enableval=$enable_dependency_tracking;
  2697. fi
  2698. if test "x$enable_dependency_tracking" != xno; then
  2699. am_depcomp="$ac_aux_dir/depcomp"
  2700. AMDEPBACKSLASH='\'
  2701. fi
  2702. if test "x$enable_dependency_tracking" != xno; then
  2703. AMDEP_TRUE=
  2704. AMDEP_FALSE='#'
  2705. else
  2706. AMDEP_TRUE='#'
  2707. AMDEP_FALSE=
  2708. fi
  2709. ac_ext=c
  2710. ac_cpp='$CPP $CPPFLAGS'
  2711. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2712. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2713. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2714. if test -n "$ac_tool_prefix"; then
  2715. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2716. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2717. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2718. $as_echo_n "checking for $ac_word... " >&6; }
  2719. if test "${ac_cv_prog_CC+set}" = set; then
  2720. $as_echo_n "(cached) " >&6
  2721. else
  2722. if test -n "$CC"; then
  2723. ac_cv_prog_CC="$CC" # Let the user override the test.
  2724. else
  2725. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2726. for as_dir in $PATH
  2727. do
  2728. IFS=$as_save_IFS
  2729. test -z "$as_dir" && as_dir=.
  2730. for ac_exec_ext in '' $ac_executable_extensions; do
  2731. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2732. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2733. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2734. break 2
  2735. fi
  2736. done
  2737. done
  2738. IFS=$as_save_IFS
  2739. fi
  2740. fi
  2741. CC=$ac_cv_prog_CC
  2742. if test -n "$CC"; then
  2743. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2744. $as_echo "$CC" >&6; }
  2745. else
  2746. { $as_echo "$as_me:$LINENO: result: no" >&5
  2747. $as_echo "no" >&6; }
  2748. fi
  2749. fi
  2750. if test -z "$ac_cv_prog_CC"; then
  2751. ac_ct_CC=$CC
  2752. # Extract the first word of "gcc", so it can be a program name with args.
  2753. set dummy gcc; ac_word=$2
  2754. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2755. $as_echo_n "checking for $ac_word... " >&6; }
  2756. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2757. $as_echo_n "(cached) " >&6
  2758. else
  2759. if test -n "$ac_ct_CC"; then
  2760. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2761. else
  2762. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2763. for as_dir in $PATH
  2764. do
  2765. IFS=$as_save_IFS
  2766. test -z "$as_dir" && as_dir=.
  2767. for ac_exec_ext in '' $ac_executable_extensions; do
  2768. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2769. ac_cv_prog_ac_ct_CC="gcc"
  2770. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2771. break 2
  2772. fi
  2773. done
  2774. done
  2775. IFS=$as_save_IFS
  2776. fi
  2777. fi
  2778. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2779. if test -n "$ac_ct_CC"; then
  2780. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2781. $as_echo "$ac_ct_CC" >&6; }
  2782. else
  2783. { $as_echo "$as_me:$LINENO: result: no" >&5
  2784. $as_echo "no" >&6; }
  2785. fi
  2786. if test "x$ac_ct_CC" = x; then
  2787. CC=""
  2788. else
  2789. case $cross_compiling:$ac_tool_warned in
  2790. yes:)
  2791. { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2792. whose name does not start with the host triplet. If you think this
  2793. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2794. $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2795. whose name does not start with the host triplet. If you think this
  2796. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2797. ac_tool_warned=yes ;;
  2798. esac
  2799. CC=$ac_ct_CC
  2800. fi
  2801. else
  2802. CC="$ac_cv_prog_CC"
  2803. fi
  2804. if test -z "$CC"; then
  2805. if test -n "$ac_tool_prefix"; then
  2806. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2807. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2808. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2809. $as_echo_n "checking for $ac_word... " >&6; }
  2810. if test "${ac_cv_prog_CC+set}" = set; then
  2811. $as_echo_n "(cached) " >&6
  2812. else
  2813. if test -n "$CC"; then
  2814. ac_cv_prog_CC="$CC" # Let the user override the test.
  2815. else
  2816. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2817. for as_dir in $PATH
  2818. do
  2819. IFS=$as_save_IFS
  2820. test -z "$as_dir" && as_dir=.
  2821. for ac_exec_ext in '' $ac_executable_extensions; do
  2822. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2823. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2824. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2825. break 2
  2826. fi
  2827. done
  2828. done
  2829. IFS=$as_save_IFS
  2830. fi
  2831. fi
  2832. CC=$ac_cv_prog_CC
  2833. if test -n "$CC"; then
  2834. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2835. $as_echo "$CC" >&6; }
  2836. else
  2837. { $as_echo "$as_me:$LINENO: result: no" >&5
  2838. $as_echo "no" >&6; }
  2839. fi
  2840. fi
  2841. fi
  2842. if test -z "$CC"; then
  2843. # Extract the first word of "cc", so it can be a program name with args.
  2844. set dummy cc; ac_word=$2
  2845. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2846. $as_echo_n "checking for $ac_word... " >&6; }
  2847. if test "${ac_cv_prog_CC+set}" = set; then
  2848. $as_echo_n "(cached) " >&6
  2849. else
  2850. if test -n "$CC"; then
  2851. ac_cv_prog_CC="$CC" # Let the user override the test.
  2852. else
  2853. ac_prog_rejected=no
  2854. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2855. for as_dir in $PATH
  2856. do
  2857. IFS=$as_save_IFS
  2858. test -z "$as_dir" && as_dir=.
  2859. for ac_exec_ext in '' $ac_executable_extensions; do
  2860. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2861. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2862. ac_prog_rejected=yes
  2863. continue
  2864. fi
  2865. ac_cv_prog_CC="cc"
  2866. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2867. break 2
  2868. fi
  2869. done
  2870. done
  2871. IFS=$as_save_IFS
  2872. if test $ac_prog_rejected = yes; then
  2873. # We found a bogon in the path, so make sure we never use it.
  2874. set dummy $ac_cv_prog_CC
  2875. shift
  2876. if test $# != 0; then
  2877. # We chose a different compiler from the bogus one.
  2878. # However, it has the same basename, so the bogon will be chosen
  2879. # first if we set CC to just the basename; use the full file name.
  2880. shift
  2881. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2882. fi
  2883. fi
  2884. fi
  2885. fi
  2886. CC=$ac_cv_prog_CC
  2887. if test -n "$CC"; then
  2888. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2889. $as_echo "$CC" >&6; }
  2890. else
  2891. { $as_echo "$as_me:$LINENO: result: no" >&5
  2892. $as_echo "no" >&6; }
  2893. fi
  2894. fi
  2895. if test -z "$CC"; then
  2896. if test -n "$ac_tool_prefix"; then
  2897. for ac_prog in cl.exe
  2898. do
  2899. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2900. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2901. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2902. $as_echo_n "checking for $ac_word... " >&6; }
  2903. if test "${ac_cv_prog_CC+set}" = set; then
  2904. $as_echo_n "(cached) " >&6
  2905. else
  2906. if test -n "$CC"; then
  2907. ac_cv_prog_CC="$CC" # Let the user override the test.
  2908. else
  2909. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2910. for as_dir in $PATH
  2911. do
  2912. IFS=$as_save_IFS
  2913. test -z "$as_dir" && as_dir=.
  2914. for ac_exec_ext in '' $ac_executable_extensions; do
  2915. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2916. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2917. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2918. break 2
  2919. fi
  2920. done
  2921. done
  2922. IFS=$as_save_IFS
  2923. fi
  2924. fi
  2925. CC=$ac_cv_prog_CC
  2926. if test -n "$CC"; then
  2927. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2928. $as_echo "$CC" >&6; }
  2929. else
  2930. { $as_echo "$as_me:$LINENO: result: no" >&5
  2931. $as_echo "no" >&6; }
  2932. fi
  2933. test -n "$CC" && break
  2934. done
  2935. fi
  2936. if test -z "$CC"; then
  2937. ac_ct_CC=$CC
  2938. for ac_prog in cl.exe
  2939. do
  2940. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2941. set dummy $ac_prog; ac_word=$2
  2942. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2943. $as_echo_n "checking for $ac_word... " >&6; }
  2944. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2945. $as_echo_n "(cached) " >&6
  2946. else
  2947. if test -n "$ac_ct_CC"; then
  2948. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2949. else
  2950. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2951. for as_dir in $PATH
  2952. do
  2953. IFS=$as_save_IFS
  2954. test -z "$as_dir" && as_dir=.
  2955. for ac_exec_ext in '' $ac_executable_extensions; do
  2956. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2957. ac_cv_prog_ac_ct_CC="$ac_prog"
  2958. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2959. break 2
  2960. fi
  2961. done
  2962. done
  2963. IFS=$as_save_IFS
  2964. fi
  2965. fi
  2966. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2967. if test -n "$ac_ct_CC"; then
  2968. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2969. $as_echo "$ac_ct_CC" >&6; }
  2970. else
  2971. { $as_echo "$as_me:$LINENO: result: no" >&5
  2972. $as_echo "no" >&6; }
  2973. fi
  2974. test -n "$ac_ct_CC" && break
  2975. done
  2976. if test "x$ac_ct_CC" = x; then
  2977. CC=""
  2978. else
  2979. case $cross_compiling:$ac_tool_warned in
  2980. yes:)
  2981. { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2982. whose name does not start with the host triplet. If you think this
  2983. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2984. $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2985. whose name does not start with the host triplet. If you think this
  2986. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2987. ac_tool_warned=yes ;;
  2988. esac
  2989. CC=$ac_ct_CC
  2990. fi
  2991. fi
  2992. fi
  2993. test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2994. See \`config.log' for more details." >&5
  2995. $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  2996. See \`config.log' for more details." >&2;}
  2997. { (exit 1); exit 1; }; }
  2998. # Provide some information about the compiler.
  2999. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  3000. set X $ac_compile
  3001. ac_compiler=$2
  3002. { (ac_try="$ac_compiler --version >&5"
  3003. case "(($ac_try" in
  3004. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3005. *) ac_try_echo=$ac_try;;
  3006. esac
  3007. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3008. $as_echo "$ac_try_echo") >&5
  3009. (eval "$ac_compiler --version >&5") 2>&5
  3010. ac_status=$?
  3011. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3012. (exit $ac_status); }
  3013. { (ac_try="$ac_compiler -v >&5"
  3014. case "(($ac_try" in
  3015. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3016. *) ac_try_echo=$ac_try;;
  3017. esac
  3018. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3019. $as_echo "$ac_try_echo") >&5
  3020. (eval "$ac_compiler -v >&5") 2>&5
  3021. ac_status=$?
  3022. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3023. (exit $ac_status); }
  3024. { (ac_try="$ac_compiler -V >&5"
  3025. case "(($ac_try" in
  3026. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3027. *) ac_try_echo=$ac_try;;
  3028. esac
  3029. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3030. $as_echo "$ac_try_echo") >&5
  3031. (eval "$ac_compiler -V >&5") 2>&5
  3032. ac_status=$?
  3033. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3034. (exit $ac_status); }
  3035. cat >conftest.$ac_ext <<_ACEOF
  3036. /* confdefs.h. */
  3037. _ACEOF
  3038. cat confdefs.h >>conftest.$ac_ext
  3039. cat >>conftest.$ac_ext <<_ACEOF
  3040. /* end confdefs.h. */
  3041. int
  3042. main ()
  3043. {
  3044. ;
  3045. return 0;
  3046. }
  3047. _ACEOF
  3048. ac_clean_files_save=$ac_clean_files
  3049. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3050. # Try to create an executable without -o first, disregard a.out.
  3051. # It will help us diagnose broken compilers, and finding out an intuition
  3052. # of exeext.
  3053. { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  3054. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3055. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3056. # The possible output files:
  3057. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3058. ac_rmfiles=
  3059. for ac_file in $ac_files
  3060. do
  3061. case $ac_file in
  3062. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3063. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3064. esac
  3065. done
  3066. rm -f $ac_rmfiles
  3067. if { (ac_try="$ac_link_default"
  3068. case "(($ac_try" in
  3069. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3070. *) ac_try_echo=$ac_try;;
  3071. esac
  3072. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3073. $as_echo "$ac_try_echo") >&5
  3074. (eval "$ac_link_default") 2>&5
  3075. ac_status=$?
  3076. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3077. (exit $ac_status); }; then
  3078. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3079. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3080. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3081. # so that the user can short-circuit this test for compilers unknown to
  3082. # Autoconf.
  3083. for ac_file in $ac_files ''
  3084. do
  3085. test -f "$ac_file" || continue
  3086. case $ac_file in
  3087. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3088. ;;
  3089. [ab].out )
  3090. # We found the default executable, but exeext='' is most
  3091. # certainly right.
  3092. break;;
  3093. *.* )
  3094. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3095. then :; else
  3096. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3097. fi
  3098. # We set ac_cv_exeext here because the later test for it is not
  3099. # safe: cross compilers may not add the suffix if given an `-o'
  3100. # argument, so we may need to know it at that point already.
  3101. # Even if this section looks crufty: it has the advantage of
  3102. # actually working.
  3103. break;;
  3104. * )
  3105. break;;
  3106. esac
  3107. done
  3108. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3109. else
  3110. ac_file=''
  3111. fi
  3112. { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  3113. $as_echo "$ac_file" >&6; }
  3114. if test -z "$ac_file"; then
  3115. $as_echo "$as_me: failed program was:" >&5
  3116. sed 's/^/| /' conftest.$ac_ext >&5
  3117. { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
  3118. See \`config.log' for more details." >&5
  3119. $as_echo "$as_me: error: C compiler cannot create executables
  3120. See \`config.log' for more details." >&2;}
  3121. { (exit 77); exit 77; }; }
  3122. fi
  3123. ac_exeext=$ac_cv_exeext
  3124. # Check that the compiler produces executables we can run. If not, either
  3125. # the compiler is broken, or we cross compile.
  3126. { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  3127. $as_echo_n "checking whether the C compiler works... " >&6; }
  3128. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  3129. # If not cross compiling, check that we can run a simple program.
  3130. if test "$cross_compiling" != yes; then
  3131. if { ac_try='./$ac_file'
  3132. { (case "(($ac_try" in
  3133. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3134. *) ac_try_echo=$ac_try;;
  3135. esac
  3136. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3137. $as_echo "$ac_try_echo") >&5
  3138. (eval "$ac_try") 2>&5
  3139. ac_status=$?
  3140. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3141. (exit $ac_status); }; }; then
  3142. cross_compiling=no
  3143. else
  3144. if test "$cross_compiling" = maybe; then
  3145. cross_compiling=yes
  3146. else
  3147. { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
  3148. If you meant to cross compile, use \`--host'.
  3149. See \`config.log' for more details." >&5
  3150. $as_echo "$as_me: error: cannot run C compiled programs.
  3151. If you meant to cross compile, use \`--host'.
  3152. See \`config.log' for more details." >&2;}
  3153. { (exit 1); exit 1; }; }
  3154. fi
  3155. fi
  3156. fi
  3157. { $as_echo "$as_me:$LINENO: result: yes" >&5
  3158. $as_echo "yes" >&6; }
  3159. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3160. ac_clean_files=$ac_clean_files_save
  3161. # Check that the compiler produces executables we can run. If not, either
  3162. # the compiler is broken, or we cross compile.
  3163. { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  3164. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3165. { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  3166. $as_echo "$cross_compiling" >&6; }
  3167. { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  3168. $as_echo_n "checking for suffix of executables... " >&6; }
  3169. if { (ac_try="$ac_link"
  3170. case "(($ac_try" in
  3171. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3172. *) ac_try_echo=$ac_try;;
  3173. esac
  3174. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3175. $as_echo "$ac_try_echo") >&5
  3176. (eval "$ac_link") 2>&5
  3177. ac_status=$?
  3178. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3179. (exit $ac_status); }; then
  3180. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3181. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3182. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3183. # `rm'.
  3184. for ac_file in conftest.exe conftest conftest.*; do
  3185. test -f "$ac_file" || continue
  3186. case $ac_file in
  3187. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3188. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3189. break;;
  3190. * ) break;;
  3191. esac
  3192. done
  3193. else
  3194. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  3195. See \`config.log' for more details." >&5
  3196. $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  3197. See \`config.log' for more details." >&2;}
  3198. { (exit 1); exit 1; }; }
  3199. fi
  3200. rm -f conftest$ac_cv_exeext
  3201. { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  3202. $as_echo "$ac_cv_exeext" >&6; }
  3203. rm -f conftest.$ac_ext
  3204. EXEEXT=$ac_cv_exeext
  3205. ac_exeext=$EXEEXT
  3206. { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  3207. $as_echo_n "checking for suffix of object files... " >&6; }
  3208. if test "${ac_cv_objext+set}" = set; then
  3209. $as_echo_n "(cached) " >&6
  3210. else
  3211. cat >conftest.$ac_ext <<_ACEOF
  3212. /* confdefs.h. */
  3213. _ACEOF
  3214. cat confdefs.h >>conftest.$ac_ext
  3215. cat >>conftest.$ac_ext <<_ACEOF
  3216. /* end confdefs.h. */
  3217. int
  3218. main ()
  3219. {
  3220. ;
  3221. return 0;
  3222. }
  3223. _ACEOF
  3224. rm -f conftest.o conftest.obj
  3225. if { (ac_try="$ac_compile"
  3226. case "(($ac_try" in
  3227. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3228. *) ac_try_echo=$ac_try;;
  3229. esac
  3230. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3231. $as_echo "$ac_try_echo") >&5
  3232. (eval "$ac_compile") 2>&5
  3233. ac_status=$?
  3234. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3235. (exit $ac_status); }; then
  3236. for ac_file in conftest.o conftest.obj conftest.*; do
  3237. test -f "$ac_file" || continue;
  3238. case $ac_file in
  3239. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3240. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3241. break;;
  3242. esac
  3243. done
  3244. else
  3245. $as_echo "$as_me: failed program was:" >&5
  3246. sed 's/^/| /' conftest.$ac_ext >&5
  3247. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  3248. See \`config.log' for more details." >&5
  3249. $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  3250. See \`config.log' for more details." >&2;}
  3251. { (exit 1); exit 1; }; }
  3252. fi
  3253. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3254. fi
  3255. { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  3256. $as_echo "$ac_cv_objext" >&6; }
  3257. OBJEXT=$ac_cv_objext
  3258. ac_objext=$OBJEXT
  3259. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3260. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3261. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3262. $as_echo_n "(cached) " >&6
  3263. else
  3264. cat >conftest.$ac_ext <<_ACEOF
  3265. /* confdefs.h. */
  3266. _ACEOF
  3267. cat confdefs.h >>conftest.$ac_ext
  3268. cat >>conftest.$ac_ext <<_ACEOF
  3269. /* end confdefs.h. */
  3270. int
  3271. main ()
  3272. {
  3273. #ifndef __GNUC__
  3274. choke me
  3275. #endif
  3276. ;
  3277. return 0;
  3278. }
  3279. _ACEOF
  3280. rm -f conftest.$ac_objext
  3281. if { (ac_try="$ac_compile"
  3282. case "(($ac_try" in
  3283. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3284. *) ac_try_echo=$ac_try;;
  3285. esac
  3286. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3287. $as_echo "$ac_try_echo") >&5
  3288. (eval "$ac_compile") 2>conftest.er1
  3289. ac_status=$?
  3290. grep -v '^ *+' conftest.er1 >conftest.err
  3291. rm -f conftest.er1
  3292. cat conftest.err >&5
  3293. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3294. (exit $ac_status); } && {
  3295. test -z "$ac_c_werror_flag" ||
  3296. test ! -s conftest.err
  3297. } && test -s conftest.$ac_objext; then
  3298. ac_compiler_gnu=yes
  3299. else
  3300. $as_echo "$as_me: failed program was:" >&5
  3301. sed 's/^/| /' conftest.$ac_ext >&5
  3302. ac_compiler_gnu=no
  3303. fi
  3304. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3305. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3306. fi
  3307. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3308. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3309. if test $ac_compiler_gnu = yes; then
  3310. GCC=yes
  3311. else
  3312. GCC=
  3313. fi
  3314. ac_test_CFLAGS=${CFLAGS+set}
  3315. ac_save_CFLAGS=$CFLAGS
  3316. { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3317. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3318. if test "${ac_cv_prog_cc_g+set}" = set; then
  3319. $as_echo_n "(cached) " >&6
  3320. else
  3321. ac_save_c_werror_flag=$ac_c_werror_flag
  3322. ac_c_werror_flag=yes
  3323. ac_cv_prog_cc_g=no
  3324. CFLAGS="-g"
  3325. cat >conftest.$ac_ext <<_ACEOF
  3326. /* confdefs.h. */
  3327. _ACEOF
  3328. cat confdefs.h >>conftest.$ac_ext
  3329. cat >>conftest.$ac_ext <<_ACEOF
  3330. /* end confdefs.h. */
  3331. int
  3332. main ()
  3333. {
  3334. ;
  3335. return 0;
  3336. }
  3337. _ACEOF
  3338. rm -f conftest.$ac_objext
  3339. if { (ac_try="$ac_compile"
  3340. case "(($ac_try" in
  3341. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3342. *) ac_try_echo=$ac_try;;
  3343. esac
  3344. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3345. $as_echo "$ac_try_echo") >&5
  3346. (eval "$ac_compile") 2>conftest.er1
  3347. ac_status=$?
  3348. grep -v '^ *+' conftest.er1 >conftest.err
  3349. rm -f conftest.er1
  3350. cat conftest.err >&5
  3351. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3352. (exit $ac_status); } && {
  3353. test -z "$ac_c_werror_flag" ||
  3354. test ! -s conftest.err
  3355. } && test -s conftest.$ac_objext; then
  3356. ac_cv_prog_cc_g=yes
  3357. else
  3358. $as_echo "$as_me: failed program was:" >&5
  3359. sed 's/^/| /' conftest.$ac_ext >&5
  3360. CFLAGS=""
  3361. cat >conftest.$ac_ext <<_ACEOF
  3362. /* confdefs.h. */
  3363. _ACEOF
  3364. cat confdefs.h >>conftest.$ac_ext
  3365. cat >>conftest.$ac_ext <<_ACEOF
  3366. /* end confdefs.h. */
  3367. int
  3368. main ()
  3369. {
  3370. ;
  3371. return 0;
  3372. }
  3373. _ACEOF
  3374. rm -f conftest.$ac_objext
  3375. if { (ac_try="$ac_compile"
  3376. case "(($ac_try" in
  3377. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3378. *) ac_try_echo=$ac_try;;
  3379. esac
  3380. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3381. $as_echo "$ac_try_echo") >&5
  3382. (eval "$ac_compile") 2>conftest.er1
  3383. ac_status=$?
  3384. grep -v '^ *+' conftest.er1 >conftest.err
  3385. rm -f conftest.er1
  3386. cat conftest.err >&5
  3387. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3388. (exit $ac_status); } && {
  3389. test -z "$ac_c_werror_flag" ||
  3390. test ! -s conftest.err
  3391. } && test -s conftest.$ac_objext; then
  3392. :
  3393. else
  3394. $as_echo "$as_me: failed program was:" >&5
  3395. sed 's/^/| /' conftest.$ac_ext >&5
  3396. ac_c_werror_flag=$ac_save_c_werror_flag
  3397. CFLAGS="-g"
  3398. cat >conftest.$ac_ext <<_ACEOF
  3399. /* confdefs.h. */
  3400. _ACEOF
  3401. cat confdefs.h >>conftest.$ac_ext
  3402. cat >>conftest.$ac_ext <<_ACEOF
  3403. /* end confdefs.h. */
  3404. int
  3405. main ()
  3406. {
  3407. ;
  3408. return 0;
  3409. }
  3410. _ACEOF
  3411. rm -f conftest.$ac_objext
  3412. if { (ac_try="$ac_compile"
  3413. case "(($ac_try" in
  3414. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3415. *) ac_try_echo=$ac_try;;
  3416. esac
  3417. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3418. $as_echo "$ac_try_echo") >&5
  3419. (eval "$ac_compile") 2>conftest.er1
  3420. ac_status=$?
  3421. grep -v '^ *+' conftest.er1 >conftest.err
  3422. rm -f conftest.er1
  3423. cat conftest.err >&5
  3424. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3425. (exit $ac_status); } && {
  3426. test -z "$ac_c_werror_flag" ||
  3427. test ! -s conftest.err
  3428. } && test -s conftest.$ac_objext; then
  3429. ac_cv_prog_cc_g=yes
  3430. else
  3431. $as_echo "$as_me: failed program was:" >&5
  3432. sed 's/^/| /' conftest.$ac_ext >&5
  3433. fi
  3434. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3435. fi
  3436. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3437. fi
  3438. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3439. ac_c_werror_flag=$ac_save_c_werror_flag
  3440. fi
  3441. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3442. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3443. if test "$ac_test_CFLAGS" = set; then
  3444. CFLAGS=$ac_save_CFLAGS
  3445. elif test $ac_cv_prog_cc_g = yes; then
  3446. if test "$GCC" = yes; then
  3447. CFLAGS="-g -O2"
  3448. else
  3449. CFLAGS="-g"
  3450. fi
  3451. else
  3452. if test "$GCC" = yes; then
  3453. CFLAGS="-O2"
  3454. else
  3455. CFLAGS=
  3456. fi
  3457. fi
  3458. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3459. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3460. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3461. $as_echo_n "(cached) " >&6
  3462. else
  3463. ac_cv_prog_cc_c89=no
  3464. ac_save_CC=$CC
  3465. cat >conftest.$ac_ext <<_ACEOF
  3466. /* confdefs.h. */
  3467. _ACEOF
  3468. cat confdefs.h >>conftest.$ac_ext
  3469. cat >>conftest.$ac_ext <<_ACEOF
  3470. /* end confdefs.h. */
  3471. #include <stdarg.h>
  3472. #include <stdio.h>
  3473. #include <sys/types.h>
  3474. #include <sys/stat.h>
  3475. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3476. struct buf { int x; };
  3477. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3478. static char *e (p, i)
  3479. char **p;
  3480. int i;
  3481. {
  3482. return p[i];
  3483. }
  3484. static char *f (char * (*g) (char **, int), char **p, ...)
  3485. {
  3486. char *s;
  3487. va_list v;
  3488. va_start (v,p);
  3489. s = g (p, va_arg (v,int));
  3490. va_end (v);
  3491. return s;
  3492. }
  3493. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3494. function prototypes and stuff, but not '\xHH' hex character constants.
  3495. These don't provoke an error unfortunately, instead are silently treated
  3496. as 'x'. The following induces an error, until -std is added to get
  3497. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3498. array size at least. It's necessary to write '\x00'==0 to get something
  3499. that's true only with -std. */
  3500. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3501. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3502. inside strings and character constants. */
  3503. #define FOO(x) 'x'
  3504. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3505. int test (int i, double x);
  3506. struct s1 {int (*f) (int a);};
  3507. struct s2 {int (*f) (double a);};
  3508. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3509. int argc;
  3510. char **argv;
  3511. int
  3512. main ()
  3513. {
  3514. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3515. ;
  3516. return 0;
  3517. }
  3518. _ACEOF
  3519. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3520. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3521. do
  3522. CC="$ac_save_CC $ac_arg"
  3523. rm -f conftest.$ac_objext
  3524. if { (ac_try="$ac_compile"
  3525. case "(($ac_try" in
  3526. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3527. *) ac_try_echo=$ac_try;;
  3528. esac
  3529. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3530. $as_echo "$ac_try_echo") >&5
  3531. (eval "$ac_compile") 2>conftest.er1
  3532. ac_status=$?
  3533. grep -v '^ *+' conftest.er1 >conftest.err
  3534. rm -f conftest.er1
  3535. cat conftest.err >&5
  3536. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3537. (exit $ac_status); } && {
  3538. test -z "$ac_c_werror_flag" ||
  3539. test ! -s conftest.err
  3540. } && test -s conftest.$ac_objext; then
  3541. ac_cv_prog_cc_c89=$ac_arg
  3542. else
  3543. $as_echo "$as_me: failed program was:" >&5
  3544. sed 's/^/| /' conftest.$ac_ext >&5
  3545. fi
  3546. rm -f core conftest.err conftest.$ac_objext
  3547. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3548. done
  3549. rm -f conftest.$ac_ext
  3550. CC=$ac_save_CC
  3551. fi
  3552. # AC_CACHE_VAL
  3553. case "x$ac_cv_prog_cc_c89" in
  3554. x)
  3555. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  3556. $as_echo "none needed" >&6; } ;;
  3557. xno)
  3558. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  3559. $as_echo "unsupported" >&6; } ;;
  3560. *)
  3561. CC="$CC $ac_cv_prog_cc_c89"
  3562. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3563. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3564. esac
  3565. ac_ext=c
  3566. ac_cpp='$CPP $CPPFLAGS'
  3567. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3568. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3569. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3570. depcc="$CC" am_compiler_list=
  3571. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3572. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3573. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3574. $as_echo_n "(cached) " >&6
  3575. else
  3576. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3577. # We make a subdir and do the tests there. Otherwise we can end up
  3578. # making bogus files that we don't know about and never remove. For
  3579. # instance it was reported that on HP-UX the gcc test will end up
  3580. # making a dummy file named `D' -- because `-MD' means `put the output
  3581. # in D'.
  3582. mkdir conftest.dir
  3583. # Copy depcomp to subdir because otherwise we won't find it if we're
  3584. # using a relative directory.
  3585. cp "$am_depcomp" conftest.dir
  3586. cd conftest.dir
  3587. # We will build objects and dependencies in a subdirectory because
  3588. # it helps to detect inapplicable dependency modes. For instance
  3589. # both Tru64's cc and ICC support -MD to output dependencies as a
  3590. # side effect of compilation, but ICC will put the dependencies in
  3591. # the current directory while Tru64 will put them in the object
  3592. # directory.
  3593. mkdir sub
  3594. am_cv_CC_dependencies_compiler_type=none
  3595. if test "$am_compiler_list" = ""; then
  3596. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3597. fi
  3598. for depmode in $am_compiler_list; do
  3599. # Setup a source with many dependencies, because some compilers
  3600. # like to wrap large dependency lists on column 80 (with \), and
  3601. # we should not choose a depcomp mode which is confused by this.
  3602. #
  3603. # We need to recreate these files for each test, as the compiler may
  3604. # overwrite some of them when testing with obscure command lines.
  3605. # This happens at least with the AIX C compiler.
  3606. : > sub/conftest.c
  3607. for i in 1 2 3 4 5 6; do
  3608. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3609. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3610. # Solaris 8's {/usr,}/bin/sh.
  3611. touch sub/conftst$i.h
  3612. done
  3613. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3614. case $depmode in
  3615. nosideeffect)
  3616. # after this tag, mechanisms are not by side-effect, so they'll
  3617. # only be used when explicitly requested
  3618. if test "x$enable_dependency_tracking" = xyes; then
  3619. continue
  3620. else
  3621. break
  3622. fi
  3623. ;;
  3624. none) break ;;
  3625. esac
  3626. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3627. # mode. It turns out that the SunPro C++ compiler does not properly
  3628. # handle `-M -o', and we need to detect this.
  3629. if depmode=$depmode \
  3630. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3631. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3632. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3633. >/dev/null 2>conftest.err &&
  3634. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3635. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3636. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3637. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3638. # icc doesn't choke on unknown options, it will just issue warnings
  3639. # or remarks (even with -Werror). So we grep stderr for any message
  3640. # that says an option was ignored or not supported.
  3641. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3642. # icc: Command line warning: ignoring option '-M'; no argument required
  3643. # The diagnosis changed in icc 8.0:
  3644. # icc: Command line remark: option '-MP' not supported
  3645. if (grep 'ignoring option' conftest.err ||
  3646. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3647. am_cv_CC_dependencies_compiler_type=$depmode
  3648. break
  3649. fi
  3650. fi
  3651. done
  3652. cd ..
  3653. rm -rf conftest.dir
  3654. else
  3655. am_cv_CC_dependencies_compiler_type=none
  3656. fi
  3657. fi
  3658. { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3659. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3660. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3661. if
  3662. test "x$enable_dependency_tracking" != xno \
  3663. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3664. am__fastdepCC_TRUE=
  3665. am__fastdepCC_FALSE='#'
  3666. else
  3667. am__fastdepCC_TRUE='#'
  3668. am__fastdepCC_FALSE=
  3669. fi
  3670. { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  3671. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3672. if test "${lt_cv_path_SED+set}" = set; then
  3673. $as_echo_n "(cached) " >&6
  3674. else
  3675. # Loop through the user's path and test for sed and gsed.
  3676. # Then use that list of sed's as ones to test for truncation.
  3677. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3678. for as_dir in $PATH
  3679. do
  3680. IFS=$as_save_IFS
  3681. test -z "$as_dir" && as_dir=.
  3682. for lt_ac_prog in sed gsed; do
  3683. for ac_exec_ext in '' $ac_executable_extensions; do
  3684. if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
  3685. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  3686. fi
  3687. done
  3688. done
  3689. done
  3690. IFS=$as_save_IFS
  3691. lt_ac_max=0
  3692. lt_ac_count=0
  3693. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  3694. # along with /bin/sed that truncates output.
  3695. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  3696. test ! -f $lt_ac_sed && continue
  3697. cat /dev/null > conftest.in
  3698. lt_ac_count=0
  3699. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  3700. # Check for GNU sed and select it if it is found.
  3701. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  3702. lt_cv_path_SED=$lt_ac_sed
  3703. break
  3704. fi
  3705. while true; do
  3706. cat conftest.in conftest.in >conftest.tmp
  3707. mv conftest.tmp conftest.in
  3708. cp conftest.in conftest.nl
  3709. echo >>conftest.nl
  3710. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  3711. cmp -s conftest.out conftest.nl || break
  3712. # 10000 chars as input seems more than enough
  3713. test $lt_ac_count -gt 10 && break
  3714. lt_ac_count=`expr $lt_ac_count + 1`
  3715. if test $lt_ac_count -gt $lt_ac_max; then
  3716. lt_ac_max=$lt_ac_count
  3717. lt_cv_path_SED=$lt_ac_sed
  3718. fi
  3719. done
  3720. done
  3721. fi
  3722. SED=$lt_cv_path_SED
  3723. { $as_echo "$as_me:$LINENO: result: $SED" >&5
  3724. $as_echo "$SED" >&6; }
  3725. { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  3726. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3727. if test "${ac_cv_path_GREP+set}" = set; then
  3728. $as_echo_n "(cached) " >&6
  3729. else
  3730. if test -z "$GREP"; then
  3731. ac_path_GREP_found=false
  3732. # Loop through the user's path and test for each of PROGNAME-LIST
  3733. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3734. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3735. do
  3736. IFS=$as_save_IFS
  3737. test -z "$as_dir" && as_dir=.
  3738. for ac_prog in grep ggrep; do
  3739. for ac_exec_ext in '' $ac_executable_extensions; do
  3740. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3741. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3742. # Check for GNU ac_path_GREP and select it if it is found.
  3743. # Check for GNU $ac_path_GREP
  3744. case `"$ac_path_GREP" --version 2>&1` in
  3745. *GNU*)
  3746. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3747. *)
  3748. ac_count=0
  3749. $as_echo_n 0123456789 >"conftest.in"
  3750. while :
  3751. do
  3752. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3753. mv "conftest.tmp" "conftest.in"
  3754. cp "conftest.in" "conftest.nl"
  3755. $as_echo 'GREP' >> "conftest.nl"
  3756. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3757. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3758. ac_count=`expr $ac_count + 1`
  3759. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3760. # Best one so far, save it but keep looking for a better one
  3761. ac_cv_path_GREP="$ac_path_GREP"
  3762. ac_path_GREP_max=$ac_count
  3763. fi
  3764. # 10*(2^10) chars as input seems more than enough
  3765. test $ac_count -gt 10 && break
  3766. done
  3767. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3768. esac
  3769. $ac_path_GREP_found && break 3
  3770. done
  3771. done
  3772. done
  3773. IFS=$as_save_IFS
  3774. if test -z "$ac_cv_path_GREP"; then
  3775. { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3776. $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3777. { (exit 1); exit 1; }; }
  3778. fi
  3779. else
  3780. ac_cv_path_GREP=$GREP
  3781. fi
  3782. fi
  3783. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  3784. $as_echo "$ac_cv_path_GREP" >&6; }
  3785. GREP="$ac_cv_path_GREP"
  3786. { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  3787. $as_echo_n "checking for egrep... " >&6; }
  3788. if test "${ac_cv_path_EGREP+set}" = set; then
  3789. $as_echo_n "(cached) " >&6
  3790. else
  3791. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3792. then ac_cv_path_EGREP="$GREP -E"
  3793. else
  3794. if test -z "$EGREP"; then
  3795. ac_path_EGREP_found=false
  3796. # Loop through the user's path and test for each of PROGNAME-LIST
  3797. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3798. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3799. do
  3800. IFS=$as_save_IFS
  3801. test -z "$as_dir" && as_dir=.
  3802. for ac_prog in egrep; do
  3803. for ac_exec_ext in '' $ac_executable_extensions; do
  3804. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3805. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3806. # Check for GNU ac_path_EGREP and select it if it is found.
  3807. # Check for GNU $ac_path_EGREP
  3808. case `"$ac_path_EGREP" --version 2>&1` in
  3809. *GNU*)
  3810. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3811. *)
  3812. ac_count=0
  3813. $as_echo_n 0123456789 >"conftest.in"
  3814. while :
  3815. do
  3816. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3817. mv "conftest.tmp" "conftest.in"
  3818. cp "conftest.in" "conftest.nl"
  3819. $as_echo 'EGREP' >> "conftest.nl"
  3820. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3821. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3822. ac_count=`expr $ac_count + 1`
  3823. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3824. # Best one so far, save it but keep looking for a better one
  3825. ac_cv_path_EGREP="$ac_path_EGREP"
  3826. ac_path_EGREP_max=$ac_count
  3827. fi
  3828. # 10*(2^10) chars as input seems more than enough
  3829. test $ac_count -gt 10 && break
  3830. done
  3831. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3832. esac
  3833. $ac_path_EGREP_found && break 3
  3834. done
  3835. done
  3836. done
  3837. IFS=$as_save_IFS
  3838. if test -z "$ac_cv_path_EGREP"; then
  3839. { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3840. $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3841. { (exit 1); exit 1; }; }
  3842. fi
  3843. else
  3844. ac_cv_path_EGREP=$EGREP
  3845. fi
  3846. fi
  3847. fi
  3848. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  3849. $as_echo "$ac_cv_path_EGREP" >&6; }
  3850. EGREP="$ac_cv_path_EGREP"
  3851. # Check whether --with-gnu-ld was given.
  3852. if test "${with_gnu_ld+set}" = set; then
  3853. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3854. else
  3855. with_gnu_ld=no
  3856. fi
  3857. ac_prog=ld
  3858. if test "$GCC" = yes; then
  3859. # Check if gcc -print-prog-name=ld gives a path.
  3860. { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  3861. $as_echo_n "checking for ld used by $CC... " >&6; }
  3862. case $host in
  3863. *-*-mingw*)
  3864. # gcc leaves a trailing carriage return which upsets mingw
  3865. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3866. *)
  3867. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3868. esac
  3869. case $ac_prog in
  3870. # Accept absolute paths.
  3871. [\\/]* | ?:[\\/]*)
  3872. re_direlt='/[^/][^/]*/\.\./'
  3873. # Canonicalize the pathname of ld
  3874. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3875. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3876. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3877. done
  3878. test -z "$LD" && LD="$ac_prog"
  3879. ;;
  3880. "")
  3881. # If it fails, then pretend we aren't using GCC.
  3882. ac_prog=ld
  3883. ;;
  3884. *)
  3885. # If it is relative, then search for the first ld in PATH.
  3886. with_gnu_ld=unknown
  3887. ;;
  3888. esac
  3889. elif test "$with_gnu_ld" = yes; then
  3890. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  3891. $as_echo_n "checking for GNU ld... " >&6; }
  3892. else
  3893. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  3894. $as_echo_n "checking for non-GNU ld... " >&6; }
  3895. fi
  3896. if test "${lt_cv_path_LD+set}" = set; then
  3897. $as_echo_n "(cached) " >&6
  3898. else
  3899. if test -z "$LD"; then
  3900. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3901. for ac_dir in $PATH; do
  3902. IFS="$lt_save_ifs"
  3903. test -z "$ac_dir" && ac_dir=.
  3904. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3905. lt_cv_path_LD="$ac_dir/$ac_prog"
  3906. # Check to see if the program is GNU ld. I'd rather use --version,
  3907. # but apparently some variants of GNU ld only accept -v.
  3908. # Break only if it was the GNU/non-GNU ld that we prefer.
  3909. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3910. *GNU* | *'with BFD'*)
  3911. test "$with_gnu_ld" != no && break
  3912. ;;
  3913. *)
  3914. test "$with_gnu_ld" != yes && break
  3915. ;;
  3916. esac
  3917. fi
  3918. done
  3919. IFS="$lt_save_ifs"
  3920. else
  3921. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3922. fi
  3923. fi
  3924. LD="$lt_cv_path_LD"
  3925. if test -n "$LD"; then
  3926. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  3927. $as_echo "$LD" >&6; }
  3928. else
  3929. { $as_echo "$as_me:$LINENO: result: no" >&5
  3930. $as_echo "no" >&6; }
  3931. fi
  3932. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  3933. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  3934. { (exit 1); exit 1; }; }
  3935. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  3936. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3937. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  3938. $as_echo_n "(cached) " >&6
  3939. else
  3940. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3941. case `$LD -v 2>&1 </dev/null` in
  3942. *GNU* | *'with BFD'*)
  3943. lt_cv_prog_gnu_ld=yes
  3944. ;;
  3945. *)
  3946. lt_cv_prog_gnu_ld=no
  3947. ;;
  3948. esac
  3949. fi
  3950. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  3951. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3952. with_gnu_ld=$lt_cv_prog_gnu_ld
  3953. { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  3954. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  3955. if test "${lt_cv_ld_reload_flag+set}" = set; then
  3956. $as_echo_n "(cached) " >&6
  3957. else
  3958. lt_cv_ld_reload_flag='-r'
  3959. fi
  3960. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  3961. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  3962. reload_flag=$lt_cv_ld_reload_flag
  3963. case $reload_flag in
  3964. "" | " "*) ;;
  3965. *) reload_flag=" $reload_flag" ;;
  3966. esac
  3967. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3968. case $host_os in
  3969. darwin*)
  3970. if test "$GCC" = yes; then
  3971. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  3972. else
  3973. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3974. fi
  3975. ;;
  3976. esac
  3977. { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  3978. $as_echo_n "checking for BSD-compatible nm... " >&6; }
  3979. if test "${lt_cv_path_NM+set}" = set; then
  3980. $as_echo_n "(cached) " >&6
  3981. else
  3982. if test -n "$NM"; then
  3983. # Let the user override the test.
  3984. lt_cv_path_NM="$NM"
  3985. else
  3986. lt_nm_to_check="${ac_tool_prefix}nm"
  3987. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3988. lt_nm_to_check="$lt_nm_to_check nm"
  3989. fi
  3990. for lt_tmp_nm in $lt_nm_to_check; do
  3991. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3992. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3993. IFS="$lt_save_ifs"
  3994. test -z "$ac_dir" && ac_dir=.
  3995. tmp_nm="$ac_dir/$lt_tmp_nm"
  3996. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3997. # Check to see if the nm accepts a BSD-compat flag.
  3998. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3999. # nm: unknown option "B" ignored
  4000. # Tru64's nm complains that /dev/null is an invalid object file
  4001. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4002. */dev/null* | *'Invalid file or object type'*)
  4003. lt_cv_path_NM="$tmp_nm -B"
  4004. break
  4005. ;;
  4006. *)
  4007. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4008. */dev/null*)
  4009. lt_cv_path_NM="$tmp_nm -p"
  4010. break
  4011. ;;
  4012. *)
  4013. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4014. continue # so that we can try to find one that supports BSD flags
  4015. ;;
  4016. esac
  4017. ;;
  4018. esac
  4019. fi
  4020. done
  4021. IFS="$lt_save_ifs"
  4022. done
  4023. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  4024. fi
  4025. fi
  4026. { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  4027. $as_echo "$lt_cv_path_NM" >&6; }
  4028. NM="$lt_cv_path_NM"
  4029. { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
  4030. $as_echo_n "checking whether ln -s works... " >&6; }
  4031. LN_S=$as_ln_s
  4032. if test "$LN_S" = "ln -s"; then
  4033. { $as_echo "$as_me:$LINENO: result: yes" >&5
  4034. $as_echo "yes" >&6; }
  4035. else
  4036. { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  4037. $as_echo "no, using $LN_S" >&6; }
  4038. fi
  4039. { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  4040. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4041. if test "${lt_cv_deplibs_check_method+set}" = set; then
  4042. $as_echo_n "(cached) " >&6
  4043. else
  4044. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4045. lt_cv_file_magic_test_file=
  4046. lt_cv_deplibs_check_method='unknown'
  4047. # Need to set the preceding variable on all platforms that support
  4048. # interlibrary dependencies.
  4049. # 'none' -- dependencies not supported.
  4050. # `unknown' -- same as none, but documents that we really don't know.
  4051. # 'pass_all' -- all dependencies passed with no checks.
  4052. # 'test_compile' -- check by making test program.
  4053. # 'file_magic [[regex]]' -- check by looking for files in library path
  4054. # which responds to the $file_magic_cmd with a given extended regex.
  4055. # If you have `file' or equivalent on your system and you're not sure
  4056. # whether `pass_all' will *always* work, you probably want this one.
  4057. case $host_os in
  4058. aix[4-9]*)
  4059. lt_cv_deplibs_check_method=pass_all
  4060. ;;
  4061. beos*)
  4062. lt_cv_deplibs_check_method=pass_all
  4063. ;;
  4064. bsdi[45]*)
  4065. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4066. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4067. lt_cv_file_magic_test_file=/shlib/libc.so
  4068. ;;
  4069. cygwin*)
  4070. # func_win32_libid is a shell function defined in ltmain.sh
  4071. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4072. lt_cv_file_magic_cmd='func_win32_libid'
  4073. ;;
  4074. mingw* | pw32*)
  4075. # Base MSYS/MinGW do not provide the 'file' command needed by
  4076. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4077. # unless we find 'file', for example because we are cross-compiling.
  4078. if ( file / ) >/dev/null 2>&1; then
  4079. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4080. lt_cv_file_magic_cmd='func_win32_libid'
  4081. else
  4082. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4083. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4084. fi
  4085. ;;
  4086. darwin* | rhapsody*)
  4087. lt_cv_deplibs_check_method=pass_all
  4088. ;;
  4089. freebsd* | dragonfly*)
  4090. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4091. case $host_cpu in
  4092. i*86 )
  4093. # Not sure whether the presence of OpenBSD here was a mistake.
  4094. # Let's accept both of them until this is cleared up.
  4095. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4096. lt_cv_file_magic_cmd=/usr/bin/file
  4097. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4098. ;;
  4099. esac
  4100. else
  4101. lt_cv_deplibs_check_method=pass_all
  4102. fi
  4103. ;;
  4104. gnu*)
  4105. lt_cv_deplibs_check_method=pass_all
  4106. ;;
  4107. hpux10.20* | hpux11*)
  4108. lt_cv_file_magic_cmd=/usr/bin/file
  4109. case $host_cpu in
  4110. ia64*)
  4111. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4112. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4113. ;;
  4114. hppa*64*)
  4115. 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]'
  4116. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4117. ;;
  4118. *)
  4119. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  4120. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4121. ;;
  4122. esac
  4123. ;;
  4124. interix[3-9]*)
  4125. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4126. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4127. ;;
  4128. irix5* | irix6* | nonstopux*)
  4129. case $LD in
  4130. *-32|*"-32 ") libmagic=32-bit;;
  4131. *-n32|*"-n32 ") libmagic=N32;;
  4132. *-64|*"-64 ") libmagic=64-bit;;
  4133. *) libmagic=never-match;;
  4134. esac
  4135. lt_cv_deplibs_check_method=pass_all
  4136. ;;
  4137. # This must be Linux ELF.
  4138. linux* | k*bsd*-gnu)
  4139. lt_cv_deplibs_check_method=pass_all
  4140. ;;
  4141. netbsd*)
  4142. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4143. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4144. else
  4145. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4146. fi
  4147. ;;
  4148. newos6*)
  4149. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4150. lt_cv_file_magic_cmd=/usr/bin/file
  4151. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4152. ;;
  4153. nto-qnx*)
  4154. lt_cv_deplibs_check_method=unknown
  4155. ;;
  4156. openbsd*)
  4157. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4158. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4159. else
  4160. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4161. fi
  4162. ;;
  4163. osf3* | osf4* | osf5*)
  4164. lt_cv_deplibs_check_method=pass_all
  4165. ;;
  4166. rdos*)
  4167. lt_cv_deplibs_check_method=pass_all
  4168. ;;
  4169. solaris*)
  4170. lt_cv_deplibs_check_method=pass_all
  4171. ;;
  4172. sysv4 | sysv4.3*)
  4173. case $host_vendor in
  4174. motorola)
  4175. 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]'
  4176. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4177. ;;
  4178. ncr)
  4179. lt_cv_deplibs_check_method=pass_all
  4180. ;;
  4181. sequent)
  4182. lt_cv_file_magic_cmd='/bin/file'
  4183. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4184. ;;
  4185. sni)
  4186. lt_cv_file_magic_cmd='/bin/file'
  4187. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4188. lt_cv_file_magic_test_file=/lib/libc.so
  4189. ;;
  4190. siemens)
  4191. lt_cv_deplibs_check_method=pass_all
  4192. ;;
  4193. pc)
  4194. lt_cv_deplibs_check_method=pass_all
  4195. ;;
  4196. esac
  4197. ;;
  4198. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4199. lt_cv_deplibs_check_method=pass_all
  4200. ;;
  4201. esac
  4202. fi
  4203. { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  4204. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4205. file_magic_cmd=$lt_cv_file_magic_cmd
  4206. deplibs_check_method=$lt_cv_deplibs_check_method
  4207. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4208. # If no C compiler was specified, use CC.
  4209. LTCC=${LTCC-"$CC"}
  4210. # If no C compiler flags were specified, use CFLAGS.
  4211. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4212. # Allow CC to be a program name with arguments.
  4213. compiler=$CC
  4214. # Check whether --enable-libtool-lock was given.
  4215. if test "${enable_libtool_lock+set}" = set; then
  4216. enableval=$enable_libtool_lock;
  4217. fi
  4218. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  4219. # Some flags need to be propagated to the compiler or linker for good
  4220. # libtool support.
  4221. case $host in
  4222. ia64-*-hpux*)
  4223. # Find out which ABI we are using.
  4224. echo 'int i;' > conftest.$ac_ext
  4225. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4226. (eval $ac_compile) 2>&5
  4227. ac_status=$?
  4228. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4229. (exit $ac_status); }; then
  4230. case `/usr/bin/file conftest.$ac_objext` in
  4231. *ELF-32*)
  4232. HPUX_IA64_MODE="32"
  4233. ;;
  4234. *ELF-64*)
  4235. HPUX_IA64_MODE="64"
  4236. ;;
  4237. esac
  4238. fi
  4239. rm -rf conftest*
  4240. ;;
  4241. *-*-irix6*)
  4242. # Find out which ABI we are using.
  4243. echo '#line 4742 "configure"' > conftest.$ac_ext
  4244. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4245. (eval $ac_compile) 2>&5
  4246. ac_status=$?
  4247. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4248. (exit $ac_status); }; then
  4249. if test "$lt_cv_prog_gnu_ld" = yes; then
  4250. case `/usr/bin/file conftest.$ac_objext` in
  4251. *32-bit*)
  4252. LD="${LD-ld} -melf32bsmip"
  4253. ;;
  4254. *N32*)
  4255. LD="${LD-ld} -melf32bmipn32"
  4256. ;;
  4257. *64-bit*)
  4258. LD="${LD-ld} -melf64bmip"
  4259. ;;
  4260. esac
  4261. else
  4262. case `/usr/bin/file conftest.$ac_objext` in
  4263. *32-bit*)
  4264. LD="${LD-ld} -32"
  4265. ;;
  4266. *N32*)
  4267. LD="${LD-ld} -n32"
  4268. ;;
  4269. *64-bit*)
  4270. LD="${LD-ld} -64"
  4271. ;;
  4272. esac
  4273. fi
  4274. fi
  4275. rm -rf conftest*
  4276. ;;
  4277. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  4278. s390*-*linux*|sparc*-*linux*)
  4279. # Find out which ABI we are using.
  4280. echo 'int i;' > conftest.$ac_ext
  4281. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4282. (eval $ac_compile) 2>&5
  4283. ac_status=$?
  4284. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4285. (exit $ac_status); }; then
  4286. case `/usr/bin/file conftest.o` in
  4287. *32-bit*)
  4288. case $host in
  4289. x86_64-*kfreebsd*-gnu)
  4290. LD="${LD-ld} -m elf_i386_fbsd"
  4291. ;;
  4292. x86_64-*linux*)
  4293. LD="${LD-ld} -m elf_i386"
  4294. ;;
  4295. ppc64-*linux*|powerpc64-*linux*)
  4296. LD="${LD-ld} -m elf32ppclinux"
  4297. ;;
  4298. s390x-*linux*)
  4299. LD="${LD-ld} -m elf_s390"
  4300. ;;
  4301. sparc64-*linux*)
  4302. LD="${LD-ld} -m elf32_sparc"
  4303. ;;
  4304. esac
  4305. ;;
  4306. *64-bit*)
  4307. case $host in
  4308. x86_64-*kfreebsd*-gnu)
  4309. LD="${LD-ld} -m elf_x86_64_fbsd"
  4310. ;;
  4311. x86_64-*linux*)
  4312. LD="${LD-ld} -m elf_x86_64"
  4313. ;;
  4314. ppc*-*linux*|powerpc*-*linux*)
  4315. LD="${LD-ld} -m elf64ppc"
  4316. ;;
  4317. s390*-*linux*)
  4318. LD="${LD-ld} -m elf64_s390"
  4319. ;;
  4320. sparc*-*linux*)
  4321. LD="${LD-ld} -m elf64_sparc"
  4322. ;;
  4323. esac
  4324. ;;
  4325. esac
  4326. fi
  4327. rm -rf conftest*
  4328. ;;
  4329. *-*-sco3.2v5*)
  4330. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  4331. SAVE_CFLAGS="$CFLAGS"
  4332. CFLAGS="$CFLAGS -belf"
  4333. { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  4334. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  4335. if test "${lt_cv_cc_needs_belf+set}" = set; then
  4336. $as_echo_n "(cached) " >&6
  4337. else
  4338. ac_ext=c
  4339. ac_cpp='$CPP $CPPFLAGS'
  4340. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4341. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4342. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4343. cat >conftest.$ac_ext <<_ACEOF
  4344. /* confdefs.h. */
  4345. _ACEOF
  4346. cat confdefs.h >>conftest.$ac_ext
  4347. cat >>conftest.$ac_ext <<_ACEOF
  4348. /* end confdefs.h. */
  4349. int
  4350. main ()
  4351. {
  4352. ;
  4353. return 0;
  4354. }
  4355. _ACEOF
  4356. rm -f conftest.$ac_objext conftest$ac_exeext
  4357. if { (ac_try="$ac_link"
  4358. case "(($ac_try" in
  4359. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4360. *) ac_try_echo=$ac_try;;
  4361. esac
  4362. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4363. $as_echo "$ac_try_echo") >&5
  4364. (eval "$ac_link") 2>conftest.er1
  4365. ac_status=$?
  4366. grep -v '^ *+' conftest.er1 >conftest.err
  4367. rm -f conftest.er1
  4368. cat conftest.err >&5
  4369. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4370. (exit $ac_status); } && {
  4371. test -z "$ac_c_werror_flag" ||
  4372. test ! -s conftest.err
  4373. } && test -s conftest$ac_exeext && {
  4374. test "$cross_compiling" = yes ||
  4375. $as_test_x conftest$ac_exeext
  4376. }; then
  4377. lt_cv_cc_needs_belf=yes
  4378. else
  4379. $as_echo "$as_me: failed program was:" >&5
  4380. sed 's/^/| /' conftest.$ac_ext >&5
  4381. lt_cv_cc_needs_belf=no
  4382. fi
  4383. rm -rf conftest.dSYM
  4384. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4385. conftest$ac_exeext conftest.$ac_ext
  4386. ac_ext=c
  4387. ac_cpp='$CPP $CPPFLAGS'
  4388. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4389. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4390. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4391. fi
  4392. { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  4393. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  4394. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  4395. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  4396. CFLAGS="$SAVE_CFLAGS"
  4397. fi
  4398. ;;
  4399. sparc*-*solaris*)
  4400. # Find out which ABI we are using.
  4401. echo 'int i;' > conftest.$ac_ext
  4402. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4403. (eval $ac_compile) 2>&5
  4404. ac_status=$?
  4405. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4406. (exit $ac_status); }; then
  4407. case `/usr/bin/file conftest.o` in
  4408. *64-bit*)
  4409. case $lt_cv_prog_gnu_ld in
  4410. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  4411. *)
  4412. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  4413. LD="${LD-ld} -64"
  4414. fi
  4415. ;;
  4416. esac
  4417. ;;
  4418. esac
  4419. fi
  4420. rm -rf conftest*
  4421. ;;
  4422. esac
  4423. need_locks="$enable_libtool_lock"
  4424. ac_ext=c
  4425. ac_cpp='$CPP $CPPFLAGS'
  4426. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4427. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4428. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4429. { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4430. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4431. # On Suns, sometimes $CPP names a directory.
  4432. if test -n "$CPP" && test -d "$CPP"; then
  4433. CPP=
  4434. fi
  4435. if test -z "$CPP"; then
  4436. if test "${ac_cv_prog_CPP+set}" = set; then
  4437. $as_echo_n "(cached) " >&6
  4438. else
  4439. # Double quotes because CPP needs to be expanded
  4440. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4441. do
  4442. ac_preproc_ok=false
  4443. for ac_c_preproc_warn_flag in '' yes
  4444. do
  4445. # Use a header file that comes with gcc, so configuring glibc
  4446. # with a fresh cross-compiler works.
  4447. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4448. # <limits.h> exists even on freestanding compilers.
  4449. # On the NeXT, cc -E runs the code through the compiler's parser,
  4450. # not just through cpp. "Syntax error" is here to catch this case.
  4451. cat >conftest.$ac_ext <<_ACEOF
  4452. /* confdefs.h. */
  4453. _ACEOF
  4454. cat confdefs.h >>conftest.$ac_ext
  4455. cat >>conftest.$ac_ext <<_ACEOF
  4456. /* end confdefs.h. */
  4457. #ifdef __STDC__
  4458. # include <limits.h>
  4459. #else
  4460. # include <assert.h>
  4461. #endif
  4462. Syntax error
  4463. _ACEOF
  4464. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4465. case "(($ac_try" in
  4466. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4467. *) ac_try_echo=$ac_try;;
  4468. esac
  4469. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4470. $as_echo "$ac_try_echo") >&5
  4471. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4472. ac_status=$?
  4473. grep -v '^ *+' conftest.er1 >conftest.err
  4474. rm -f conftest.er1
  4475. cat conftest.err >&5
  4476. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4477. (exit $ac_status); } >/dev/null && {
  4478. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4479. test ! -s conftest.err
  4480. }; then
  4481. :
  4482. else
  4483. $as_echo "$as_me: failed program was:" >&5
  4484. sed 's/^/| /' conftest.$ac_ext >&5
  4485. # Broken: fails on valid input.
  4486. continue
  4487. fi
  4488. rm -f conftest.err conftest.$ac_ext
  4489. # OK, works on sane cases. Now check whether nonexistent headers
  4490. # can be detected and how.
  4491. cat >conftest.$ac_ext <<_ACEOF
  4492. /* confdefs.h. */
  4493. _ACEOF
  4494. cat confdefs.h >>conftest.$ac_ext
  4495. cat >>conftest.$ac_ext <<_ACEOF
  4496. /* end confdefs.h. */
  4497. #include <ac_nonexistent.h>
  4498. _ACEOF
  4499. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4500. case "(($ac_try" in
  4501. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4502. *) ac_try_echo=$ac_try;;
  4503. esac
  4504. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4505. $as_echo "$ac_try_echo") >&5
  4506. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4507. ac_status=$?
  4508. grep -v '^ *+' conftest.er1 >conftest.err
  4509. rm -f conftest.er1
  4510. cat conftest.err >&5
  4511. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4512. (exit $ac_status); } >/dev/null && {
  4513. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4514. test ! -s conftest.err
  4515. }; then
  4516. # Broken: success on invalid input.
  4517. continue
  4518. else
  4519. $as_echo "$as_me: failed program was:" >&5
  4520. sed 's/^/| /' conftest.$ac_ext >&5
  4521. # Passes both tests.
  4522. ac_preproc_ok=:
  4523. break
  4524. fi
  4525. rm -f conftest.err conftest.$ac_ext
  4526. done
  4527. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4528. rm -f conftest.err conftest.$ac_ext
  4529. if $ac_preproc_ok; then
  4530. break
  4531. fi
  4532. done
  4533. ac_cv_prog_CPP=$CPP
  4534. fi
  4535. CPP=$ac_cv_prog_CPP
  4536. else
  4537. ac_cv_prog_CPP=$CPP
  4538. fi
  4539. { $as_echo "$as_me:$LINENO: result: $CPP" >&5
  4540. $as_echo "$CPP" >&6; }
  4541. ac_preproc_ok=false
  4542. for ac_c_preproc_warn_flag in '' yes
  4543. do
  4544. # Use a header file that comes with gcc, so configuring glibc
  4545. # with a fresh cross-compiler works.
  4546. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4547. # <limits.h> exists even on freestanding compilers.
  4548. # On the NeXT, cc -E runs the code through the compiler's parser,
  4549. # not just through cpp. "Syntax error" is here to catch this case.
  4550. cat >conftest.$ac_ext <<_ACEOF
  4551. /* confdefs.h. */
  4552. _ACEOF
  4553. cat confdefs.h >>conftest.$ac_ext
  4554. cat >>conftest.$ac_ext <<_ACEOF
  4555. /* end confdefs.h. */
  4556. #ifdef __STDC__
  4557. # include <limits.h>
  4558. #else
  4559. # include <assert.h>
  4560. #endif
  4561. Syntax error
  4562. _ACEOF
  4563. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4564. case "(($ac_try" in
  4565. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4566. *) ac_try_echo=$ac_try;;
  4567. esac
  4568. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4569. $as_echo "$ac_try_echo") >&5
  4570. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4571. ac_status=$?
  4572. grep -v '^ *+' conftest.er1 >conftest.err
  4573. rm -f conftest.er1
  4574. cat conftest.err >&5
  4575. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4576. (exit $ac_status); } >/dev/null && {
  4577. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4578. test ! -s conftest.err
  4579. }; then
  4580. :
  4581. else
  4582. $as_echo "$as_me: failed program was:" >&5
  4583. sed 's/^/| /' conftest.$ac_ext >&5
  4584. # Broken: fails on valid input.
  4585. continue
  4586. fi
  4587. rm -f conftest.err conftest.$ac_ext
  4588. # OK, works on sane cases. Now check whether nonexistent headers
  4589. # can be detected and how.
  4590. cat >conftest.$ac_ext <<_ACEOF
  4591. /* confdefs.h. */
  4592. _ACEOF
  4593. cat confdefs.h >>conftest.$ac_ext
  4594. cat >>conftest.$ac_ext <<_ACEOF
  4595. /* end confdefs.h. */
  4596. #include <ac_nonexistent.h>
  4597. _ACEOF
  4598. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4599. case "(($ac_try" in
  4600. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4601. *) ac_try_echo=$ac_try;;
  4602. esac
  4603. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4604. $as_echo "$ac_try_echo") >&5
  4605. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4606. ac_status=$?
  4607. grep -v '^ *+' conftest.er1 >conftest.err
  4608. rm -f conftest.er1
  4609. cat conftest.err >&5
  4610. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4611. (exit $ac_status); } >/dev/null && {
  4612. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4613. test ! -s conftest.err
  4614. }; then
  4615. # Broken: success on invalid input.
  4616. continue
  4617. else
  4618. $as_echo "$as_me: failed program was:" >&5
  4619. sed 's/^/| /' conftest.$ac_ext >&5
  4620. # Passes both tests.
  4621. ac_preproc_ok=:
  4622. break
  4623. fi
  4624. rm -f conftest.err conftest.$ac_ext
  4625. done
  4626. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4627. rm -f conftest.err conftest.$ac_ext
  4628. if $ac_preproc_ok; then
  4629. :
  4630. else
  4631. { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4632. See \`config.log' for more details." >&5
  4633. $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4634. See \`config.log' for more details." >&2;}
  4635. { (exit 1); exit 1; }; }
  4636. fi
  4637. ac_ext=c
  4638. ac_cpp='$CPP $CPPFLAGS'
  4639. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4640. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4641. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4642. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4643. $as_echo_n "checking for ANSI C header files... " >&6; }
  4644. if test "${ac_cv_header_stdc+set}" = set; then
  4645. $as_echo_n "(cached) " >&6
  4646. else
  4647. cat >conftest.$ac_ext <<_ACEOF
  4648. /* confdefs.h. */
  4649. _ACEOF
  4650. cat confdefs.h >>conftest.$ac_ext
  4651. cat >>conftest.$ac_ext <<_ACEOF
  4652. /* end confdefs.h. */
  4653. #include <stdlib.h>
  4654. #include <stdarg.h>
  4655. #include <string.h>
  4656. #include <float.h>
  4657. int
  4658. main ()
  4659. {
  4660. ;
  4661. return 0;
  4662. }
  4663. _ACEOF
  4664. rm -f conftest.$ac_objext
  4665. if { (ac_try="$ac_compile"
  4666. case "(($ac_try" in
  4667. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4668. *) ac_try_echo=$ac_try;;
  4669. esac
  4670. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4671. $as_echo "$ac_try_echo") >&5
  4672. (eval "$ac_compile") 2>conftest.er1
  4673. ac_status=$?
  4674. grep -v '^ *+' conftest.er1 >conftest.err
  4675. rm -f conftest.er1
  4676. cat conftest.err >&5
  4677. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4678. (exit $ac_status); } && {
  4679. test -z "$ac_c_werror_flag" ||
  4680. test ! -s conftest.err
  4681. } && test -s conftest.$ac_objext; then
  4682. ac_cv_header_stdc=yes
  4683. else
  4684. $as_echo "$as_me: failed program was:" >&5
  4685. sed 's/^/| /' conftest.$ac_ext >&5
  4686. ac_cv_header_stdc=no
  4687. fi
  4688. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4689. if test $ac_cv_header_stdc = yes; then
  4690. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4691. cat >conftest.$ac_ext <<_ACEOF
  4692. /* confdefs.h. */
  4693. _ACEOF
  4694. cat confdefs.h >>conftest.$ac_ext
  4695. cat >>conftest.$ac_ext <<_ACEOF
  4696. /* end confdefs.h. */
  4697. #include <string.h>
  4698. _ACEOF
  4699. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4700. $EGREP "memchr" >/dev/null 2>&1; then
  4701. :
  4702. else
  4703. ac_cv_header_stdc=no
  4704. fi
  4705. rm -f conftest*
  4706. fi
  4707. if test $ac_cv_header_stdc = yes; then
  4708. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4709. cat >conftest.$ac_ext <<_ACEOF
  4710. /* confdefs.h. */
  4711. _ACEOF
  4712. cat confdefs.h >>conftest.$ac_ext
  4713. cat >>conftest.$ac_ext <<_ACEOF
  4714. /* end confdefs.h. */
  4715. #include <stdlib.h>
  4716. _ACEOF
  4717. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4718. $EGREP "free" >/dev/null 2>&1; then
  4719. :
  4720. else
  4721. ac_cv_header_stdc=no
  4722. fi
  4723. rm -f conftest*
  4724. fi
  4725. if test $ac_cv_header_stdc = yes; then
  4726. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4727. if test "$cross_compiling" = yes; then
  4728. :
  4729. else
  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 <ctype.h>
  4737. #include <stdlib.h>
  4738. #if ((' ' & 0x0FF) == 0x020)
  4739. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4740. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4741. #else
  4742. # define ISLOWER(c) \
  4743. (('a' <= (c) && (c) <= 'i') \
  4744. || ('j' <= (c) && (c) <= 'r') \
  4745. || ('s' <= (c) && (c) <= 'z'))
  4746. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4747. #endif
  4748. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4749. int
  4750. main ()
  4751. {
  4752. int i;
  4753. for (i = 0; i < 256; i++)
  4754. if (XOR (islower (i), ISLOWER (i))
  4755. || toupper (i) != TOUPPER (i))
  4756. return 2;
  4757. return 0;
  4758. }
  4759. _ACEOF
  4760. rm -f conftest$ac_exeext
  4761. if { (ac_try="$ac_link"
  4762. case "(($ac_try" in
  4763. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4764. *) ac_try_echo=$ac_try;;
  4765. esac
  4766. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4767. $as_echo "$ac_try_echo") >&5
  4768. (eval "$ac_link") 2>&5
  4769. ac_status=$?
  4770. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4771. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4772. { (case "(($ac_try" in
  4773. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4774. *) ac_try_echo=$ac_try;;
  4775. esac
  4776. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4777. $as_echo "$ac_try_echo") >&5
  4778. (eval "$ac_try") 2>&5
  4779. ac_status=$?
  4780. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4781. (exit $ac_status); }; }; then
  4782. :
  4783. else
  4784. $as_echo "$as_me: program exited with status $ac_status" >&5
  4785. $as_echo "$as_me: failed program was:" >&5
  4786. sed 's/^/| /' conftest.$ac_ext >&5
  4787. ( exit $ac_status )
  4788. ac_cv_header_stdc=no
  4789. fi
  4790. rm -rf conftest.dSYM
  4791. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4792. fi
  4793. fi
  4794. fi
  4795. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4796. $as_echo "$ac_cv_header_stdc" >&6; }
  4797. if test $ac_cv_header_stdc = yes; then
  4798. cat >>confdefs.h <<\_ACEOF
  4799. #define STDC_HEADERS 1
  4800. _ACEOF
  4801. fi
  4802. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4803. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4804. inttypes.h stdint.h unistd.h
  4805. do
  4806. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4807. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  4808. $as_echo_n "checking for $ac_header... " >&6; }
  4809. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4810. $as_echo_n "(cached) " >&6
  4811. else
  4812. cat >conftest.$ac_ext <<_ACEOF
  4813. /* confdefs.h. */
  4814. _ACEOF
  4815. cat confdefs.h >>conftest.$ac_ext
  4816. cat >>conftest.$ac_ext <<_ACEOF
  4817. /* end confdefs.h. */
  4818. $ac_includes_default
  4819. #include <$ac_header>
  4820. _ACEOF
  4821. rm -f conftest.$ac_objext
  4822. if { (ac_try="$ac_compile"
  4823. case "(($ac_try" in
  4824. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4825. *) ac_try_echo=$ac_try;;
  4826. esac
  4827. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4828. $as_echo "$ac_try_echo") >&5
  4829. (eval "$ac_compile") 2>conftest.er1
  4830. ac_status=$?
  4831. grep -v '^ *+' conftest.er1 >conftest.err
  4832. rm -f conftest.er1
  4833. cat conftest.err >&5
  4834. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4835. (exit $ac_status); } && {
  4836. test -z "$ac_c_werror_flag" ||
  4837. test ! -s conftest.err
  4838. } && test -s conftest.$ac_objext; then
  4839. eval "$as_ac_Header=yes"
  4840. else
  4841. $as_echo "$as_me: failed program was:" >&5
  4842. sed 's/^/| /' conftest.$ac_ext >&5
  4843. eval "$as_ac_Header=no"
  4844. fi
  4845. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4846. fi
  4847. ac_res=`eval 'as_val=${'$as_ac_Header'}
  4848. $as_echo "$as_val"'`
  4849. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  4850. $as_echo "$ac_res" >&6; }
  4851. if test `eval 'as_val=${'$as_ac_Header'}
  4852. $as_echo "$as_val"'` = yes; then
  4853. cat >>confdefs.h <<_ACEOF
  4854. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4855. _ACEOF
  4856. fi
  4857. done
  4858. for ac_header in dlfcn.h
  4859. do
  4860. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4861. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4862. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  4863. $as_echo_n "checking for $ac_header... " >&6; }
  4864. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4865. $as_echo_n "(cached) " >&6
  4866. fi
  4867. ac_res=`eval 'as_val=${'$as_ac_Header'}
  4868. $as_echo "$as_val"'`
  4869. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  4870. $as_echo "$ac_res" >&6; }
  4871. else
  4872. # Is the header compilable?
  4873. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4874. $as_echo_n "checking $ac_header usability... " >&6; }
  4875. cat >conftest.$ac_ext <<_ACEOF
  4876. /* confdefs.h. */
  4877. _ACEOF
  4878. cat confdefs.h >>conftest.$ac_ext
  4879. cat >>conftest.$ac_ext <<_ACEOF
  4880. /* end confdefs.h. */
  4881. $ac_includes_default
  4882. #include <$ac_header>
  4883. _ACEOF
  4884. rm -f conftest.$ac_objext
  4885. if { (ac_try="$ac_compile"
  4886. case "(($ac_try" in
  4887. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4888. *) ac_try_echo=$ac_try;;
  4889. esac
  4890. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4891. $as_echo "$ac_try_echo") >&5
  4892. (eval "$ac_compile") 2>conftest.er1
  4893. ac_status=$?
  4894. grep -v '^ *+' conftest.er1 >conftest.err
  4895. rm -f conftest.er1
  4896. cat conftest.err >&5
  4897. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4898. (exit $ac_status); } && {
  4899. test -z "$ac_c_werror_flag" ||
  4900. test ! -s conftest.err
  4901. } && test -s conftest.$ac_objext; then
  4902. ac_header_compiler=yes
  4903. else
  4904. $as_echo "$as_me: failed program was:" >&5
  4905. sed 's/^/| /' conftest.$ac_ext >&5
  4906. ac_header_compiler=no
  4907. fi
  4908. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4909. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4910. $as_echo "$ac_header_compiler" >&6; }
  4911. # Is the header present?
  4912. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4913. $as_echo_n "checking $ac_header presence... " >&6; }
  4914. cat >conftest.$ac_ext <<_ACEOF
  4915. /* confdefs.h. */
  4916. _ACEOF
  4917. cat confdefs.h >>conftest.$ac_ext
  4918. cat >>conftest.$ac_ext <<_ACEOF
  4919. /* end confdefs.h. */
  4920. #include <$ac_header>
  4921. _ACEOF
  4922. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4923. case "(($ac_try" in
  4924. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4925. *) ac_try_echo=$ac_try;;
  4926. esac
  4927. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4928. $as_echo "$ac_try_echo") >&5
  4929. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4930. ac_status=$?
  4931. grep -v '^ *+' conftest.er1 >conftest.err
  4932. rm -f conftest.er1
  4933. cat conftest.err >&5
  4934. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4935. (exit $ac_status); } >/dev/null && {
  4936. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4937. test ! -s conftest.err
  4938. }; then
  4939. ac_header_preproc=yes
  4940. else
  4941. $as_echo "$as_me: failed program was:" >&5
  4942. sed 's/^/| /' conftest.$ac_ext >&5
  4943. ac_header_preproc=no
  4944. fi
  4945. rm -f conftest.err conftest.$ac_ext
  4946. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4947. $as_echo "$ac_header_preproc" >&6; }
  4948. # So? What about this header?
  4949. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4950. yes:no: )
  4951. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4952. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4953. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4954. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4955. ac_header_preproc=yes
  4956. ;;
  4957. no:yes:* )
  4958. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4959. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4960. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4961. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4962. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4963. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4964. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4965. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4966. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4967. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4968. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4969. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4970. ;;
  4971. esac
  4972. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  4973. $as_echo_n "checking for $ac_header... " >&6; }
  4974. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4975. $as_echo_n "(cached) " >&6
  4976. else
  4977. eval "$as_ac_Header=\$ac_header_preproc"
  4978. fi
  4979. ac_res=`eval 'as_val=${'$as_ac_Header'}
  4980. $as_echo "$as_val"'`
  4981. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  4982. $as_echo "$ac_res" >&6; }
  4983. fi
  4984. if test `eval 'as_val=${'$as_ac_Header'}
  4985. $as_echo "$as_val"'` = yes; then
  4986. cat >>confdefs.h <<_ACEOF
  4987. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4988. _ACEOF
  4989. fi
  4990. done
  4991. ac_ext=cpp
  4992. ac_cpp='$CXXCPP $CPPFLAGS'
  4993. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4994. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4995. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4996. if test -z "$CXX"; then
  4997. if test -n "$CCC"; then
  4998. CXX=$CCC
  4999. else
  5000. if test -n "$ac_tool_prefix"; then
  5001. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  5002. do
  5003. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5004. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5005. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5006. $as_echo_n "checking for $ac_word... " >&6; }
  5007. if test "${ac_cv_prog_CXX+set}" = set; then
  5008. $as_echo_n "(cached) " >&6
  5009. else
  5010. if test -n "$CXX"; then
  5011. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  5012. else
  5013. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5014. for as_dir in $PATH
  5015. do
  5016. IFS=$as_save_IFS
  5017. test -z "$as_dir" && as_dir=.
  5018. for ac_exec_ext in '' $ac_executable_extensions; do
  5019. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5020. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  5021. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5022. break 2
  5023. fi
  5024. done
  5025. done
  5026. IFS=$as_save_IFS
  5027. fi
  5028. fi
  5029. CXX=$ac_cv_prog_CXX
  5030. if test -n "$CXX"; then
  5031. { $as_echo "$as_me:$LINENO: result: $CXX" >&5
  5032. $as_echo "$CXX" >&6; }
  5033. else
  5034. { $as_echo "$as_me:$LINENO: result: no" >&5
  5035. $as_echo "no" >&6; }
  5036. fi
  5037. test -n "$CXX" && break
  5038. done
  5039. fi
  5040. if test -z "$CXX"; then
  5041. ac_ct_CXX=$CXX
  5042. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  5043. do
  5044. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5045. set dummy $ac_prog; ac_word=$2
  5046. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5047. $as_echo_n "checking for $ac_word... " >&6; }
  5048. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  5049. $as_echo_n "(cached) " >&6
  5050. else
  5051. if test -n "$ac_ct_CXX"; then
  5052. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  5053. else
  5054. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5055. for as_dir in $PATH
  5056. do
  5057. IFS=$as_save_IFS
  5058. test -z "$as_dir" && as_dir=.
  5059. for ac_exec_ext in '' $ac_executable_extensions; do
  5060. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5061. ac_cv_prog_ac_ct_CXX="$ac_prog"
  5062. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5063. break 2
  5064. fi
  5065. done
  5066. done
  5067. IFS=$as_save_IFS
  5068. fi
  5069. fi
  5070. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  5071. if test -n "$ac_ct_CXX"; then
  5072. { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  5073. $as_echo "$ac_ct_CXX" >&6; }
  5074. else
  5075. { $as_echo "$as_me:$LINENO: result: no" >&5
  5076. $as_echo "no" >&6; }
  5077. fi
  5078. test -n "$ac_ct_CXX" && break
  5079. done
  5080. if test "x$ac_ct_CXX" = x; then
  5081. CXX="g++"
  5082. else
  5083. case $cross_compiling:$ac_tool_warned in
  5084. yes:)
  5085. { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5086. whose name does not start with the host triplet. If you think this
  5087. configuration is useful to you, please write to autoconf@gnu.org." >&5
  5088. $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5089. whose name does not start with the host triplet. If you think this
  5090. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5091. ac_tool_warned=yes ;;
  5092. esac
  5093. CXX=$ac_ct_CXX
  5094. fi
  5095. fi
  5096. fi
  5097. fi
  5098. # Provide some information about the compiler.
  5099. $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  5100. set X $ac_compile
  5101. ac_compiler=$2
  5102. { (ac_try="$ac_compiler --version >&5"
  5103. case "(($ac_try" in
  5104. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5105. *) ac_try_echo=$ac_try;;
  5106. esac
  5107. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5108. $as_echo "$ac_try_echo") >&5
  5109. (eval "$ac_compiler --version >&5") 2>&5
  5110. ac_status=$?
  5111. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5112. (exit $ac_status); }
  5113. { (ac_try="$ac_compiler -v >&5"
  5114. case "(($ac_try" in
  5115. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5116. *) ac_try_echo=$ac_try;;
  5117. esac
  5118. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5119. $as_echo "$ac_try_echo") >&5
  5120. (eval "$ac_compiler -v >&5") 2>&5
  5121. ac_status=$?
  5122. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5123. (exit $ac_status); }
  5124. { (ac_try="$ac_compiler -V >&5"
  5125. case "(($ac_try" in
  5126. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5127. *) ac_try_echo=$ac_try;;
  5128. esac
  5129. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5130. $as_echo "$ac_try_echo") >&5
  5131. (eval "$ac_compiler -V >&5") 2>&5
  5132. ac_status=$?
  5133. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5134. (exit $ac_status); }
  5135. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  5136. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  5137. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  5138. $as_echo_n "(cached) " >&6
  5139. else
  5140. cat >conftest.$ac_ext <<_ACEOF
  5141. /* confdefs.h. */
  5142. _ACEOF
  5143. cat confdefs.h >>conftest.$ac_ext
  5144. cat >>conftest.$ac_ext <<_ACEOF
  5145. /* end confdefs.h. */
  5146. int
  5147. main ()
  5148. {
  5149. #ifndef __GNUC__
  5150. choke me
  5151. #endif
  5152. ;
  5153. return 0;
  5154. }
  5155. _ACEOF
  5156. rm -f conftest.$ac_objext
  5157. if { (ac_try="$ac_compile"
  5158. case "(($ac_try" in
  5159. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5160. *) ac_try_echo=$ac_try;;
  5161. esac
  5162. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5163. $as_echo "$ac_try_echo") >&5
  5164. (eval "$ac_compile") 2>conftest.er1
  5165. ac_status=$?
  5166. grep -v '^ *+' conftest.er1 >conftest.err
  5167. rm -f conftest.er1
  5168. cat conftest.err >&5
  5169. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5170. (exit $ac_status); } && {
  5171. test -z "$ac_cxx_werror_flag" ||
  5172. test ! -s conftest.err
  5173. } && test -s conftest.$ac_objext; then
  5174. ac_compiler_gnu=yes
  5175. else
  5176. $as_echo "$as_me: failed program was:" >&5
  5177. sed 's/^/| /' conftest.$ac_ext >&5
  5178. ac_compiler_gnu=no
  5179. fi
  5180. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5181. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  5182. fi
  5183. { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  5184. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  5185. if test $ac_compiler_gnu = yes; then
  5186. GXX=yes
  5187. else
  5188. GXX=
  5189. fi
  5190. ac_test_CXXFLAGS=${CXXFLAGS+set}
  5191. ac_save_CXXFLAGS=$CXXFLAGS
  5192. { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  5193. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  5194. if test "${ac_cv_prog_cxx_g+set}" = set; then
  5195. $as_echo_n "(cached) " >&6
  5196. else
  5197. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  5198. ac_cxx_werror_flag=yes
  5199. ac_cv_prog_cxx_g=no
  5200. CXXFLAGS="-g"
  5201. cat >conftest.$ac_ext <<_ACEOF
  5202. /* confdefs.h. */
  5203. _ACEOF
  5204. cat confdefs.h >>conftest.$ac_ext
  5205. cat >>conftest.$ac_ext <<_ACEOF
  5206. /* end confdefs.h. */
  5207. int
  5208. main ()
  5209. {
  5210. ;
  5211. return 0;
  5212. }
  5213. _ACEOF
  5214. rm -f conftest.$ac_objext
  5215. if { (ac_try="$ac_compile"
  5216. case "(($ac_try" in
  5217. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5218. *) ac_try_echo=$ac_try;;
  5219. esac
  5220. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5221. $as_echo "$ac_try_echo") >&5
  5222. (eval "$ac_compile") 2>conftest.er1
  5223. ac_status=$?
  5224. grep -v '^ *+' conftest.er1 >conftest.err
  5225. rm -f conftest.er1
  5226. cat conftest.err >&5
  5227. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5228. (exit $ac_status); } && {
  5229. test -z "$ac_cxx_werror_flag" ||
  5230. test ! -s conftest.err
  5231. } && test -s conftest.$ac_objext; then
  5232. ac_cv_prog_cxx_g=yes
  5233. else
  5234. $as_echo "$as_me: failed program was:" >&5
  5235. sed 's/^/| /' conftest.$ac_ext >&5
  5236. CXXFLAGS=""
  5237. cat >conftest.$ac_ext <<_ACEOF
  5238. /* confdefs.h. */
  5239. _ACEOF
  5240. cat confdefs.h >>conftest.$ac_ext
  5241. cat >>conftest.$ac_ext <<_ACEOF
  5242. /* end confdefs.h. */
  5243. int
  5244. main ()
  5245. {
  5246. ;
  5247. return 0;
  5248. }
  5249. _ACEOF
  5250. rm -f conftest.$ac_objext
  5251. if { (ac_try="$ac_compile"
  5252. case "(($ac_try" in
  5253. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5254. *) ac_try_echo=$ac_try;;
  5255. esac
  5256. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5257. $as_echo "$ac_try_echo") >&5
  5258. (eval "$ac_compile") 2>conftest.er1
  5259. ac_status=$?
  5260. grep -v '^ *+' conftest.er1 >conftest.err
  5261. rm -f conftest.er1
  5262. cat conftest.err >&5
  5263. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5264. (exit $ac_status); } && {
  5265. test -z "$ac_cxx_werror_flag" ||
  5266. test ! -s conftest.err
  5267. } && test -s conftest.$ac_objext; then
  5268. :
  5269. else
  5270. $as_echo "$as_me: failed program was:" >&5
  5271. sed 's/^/| /' conftest.$ac_ext >&5
  5272. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5273. CXXFLAGS="-g"
  5274. cat >conftest.$ac_ext <<_ACEOF
  5275. /* confdefs.h. */
  5276. _ACEOF
  5277. cat confdefs.h >>conftest.$ac_ext
  5278. cat >>conftest.$ac_ext <<_ACEOF
  5279. /* end confdefs.h. */
  5280. int
  5281. main ()
  5282. {
  5283. ;
  5284. return 0;
  5285. }
  5286. _ACEOF
  5287. rm -f conftest.$ac_objext
  5288. if { (ac_try="$ac_compile"
  5289. case "(($ac_try" in
  5290. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5291. *) ac_try_echo=$ac_try;;
  5292. esac
  5293. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5294. $as_echo "$ac_try_echo") >&5
  5295. (eval "$ac_compile") 2>conftest.er1
  5296. ac_status=$?
  5297. grep -v '^ *+' conftest.er1 >conftest.err
  5298. rm -f conftest.er1
  5299. cat conftest.err >&5
  5300. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5301. (exit $ac_status); } && {
  5302. test -z "$ac_cxx_werror_flag" ||
  5303. test ! -s conftest.err
  5304. } && test -s conftest.$ac_objext; then
  5305. ac_cv_prog_cxx_g=yes
  5306. else
  5307. $as_echo "$as_me: failed program was:" >&5
  5308. sed 's/^/| /' conftest.$ac_ext >&5
  5309. fi
  5310. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5311. fi
  5312. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5313. fi
  5314. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5315. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5316. fi
  5317. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  5318. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  5319. if test "$ac_test_CXXFLAGS" = set; then
  5320. CXXFLAGS=$ac_save_CXXFLAGS
  5321. elif test $ac_cv_prog_cxx_g = yes; then
  5322. if test "$GXX" = yes; then
  5323. CXXFLAGS="-g -O2"
  5324. else
  5325. CXXFLAGS="-g"
  5326. fi
  5327. else
  5328. if test "$GXX" = yes; then
  5329. CXXFLAGS="-O2"
  5330. else
  5331. CXXFLAGS=
  5332. fi
  5333. fi
  5334. ac_ext=cpp
  5335. ac_cpp='$CXXCPP $CPPFLAGS'
  5336. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5337. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5338. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5339. depcc="$CXX" am_compiler_list=
  5340. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  5341. $as_echo_n "checking dependency style of $depcc... " >&6; }
  5342. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  5343. $as_echo_n "(cached) " >&6
  5344. else
  5345. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5346. # We make a subdir and do the tests there. Otherwise we can end up
  5347. # making bogus files that we don't know about and never remove. For
  5348. # instance it was reported that on HP-UX the gcc test will end up
  5349. # making a dummy file named `D' -- because `-MD' means `put the output
  5350. # in D'.
  5351. mkdir conftest.dir
  5352. # Copy depcomp to subdir because otherwise we won't find it if we're
  5353. # using a relative directory.
  5354. cp "$am_depcomp" conftest.dir
  5355. cd conftest.dir
  5356. # We will build objects and dependencies in a subdirectory because
  5357. # it helps to detect inapplicable dependency modes. For instance
  5358. # both Tru64's cc and ICC support -MD to output dependencies as a
  5359. # side effect of compilation, but ICC will put the dependencies in
  5360. # the current directory while Tru64 will put them in the object
  5361. # directory.
  5362. mkdir sub
  5363. am_cv_CXX_dependencies_compiler_type=none
  5364. if test "$am_compiler_list" = ""; then
  5365. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5366. fi
  5367. for depmode in $am_compiler_list; do
  5368. # Setup a source with many dependencies, because some compilers
  5369. # like to wrap large dependency lists on column 80 (with \), and
  5370. # we should not choose a depcomp mode which is confused by this.
  5371. #
  5372. # We need to recreate these files for each test, as the compiler may
  5373. # overwrite some of them when testing with obscure command lines.
  5374. # This happens at least with the AIX C compiler.
  5375. : > sub/conftest.c
  5376. for i in 1 2 3 4 5 6; do
  5377. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5378. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  5379. # Solaris 8's {/usr,}/bin/sh.
  5380. touch sub/conftst$i.h
  5381. done
  5382. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5383. case $depmode in
  5384. nosideeffect)
  5385. # after this tag, mechanisms are not by side-effect, so they'll
  5386. # only be used when explicitly requested
  5387. if test "x$enable_dependency_tracking" = xyes; then
  5388. continue
  5389. else
  5390. break
  5391. fi
  5392. ;;
  5393. none) break ;;
  5394. esac
  5395. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5396. # mode. It turns out that the SunPro C++ compiler does not properly
  5397. # handle `-M -o', and we need to detect this.
  5398. if depmode=$depmode \
  5399. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  5400. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5401. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  5402. >/dev/null 2>conftest.err &&
  5403. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5404. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5405. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  5406. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5407. # icc doesn't choke on unknown options, it will just issue warnings
  5408. # or remarks (even with -Werror). So we grep stderr for any message
  5409. # that says an option was ignored or not supported.
  5410. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5411. # icc: Command line warning: ignoring option '-M'; no argument required
  5412. # The diagnosis changed in icc 8.0:
  5413. # icc: Command line remark: option '-MP' not supported
  5414. if (grep 'ignoring option' conftest.err ||
  5415. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5416. am_cv_CXX_dependencies_compiler_type=$depmode
  5417. break
  5418. fi
  5419. fi
  5420. done
  5421. cd ..
  5422. rm -rf conftest.dir
  5423. else
  5424. am_cv_CXX_dependencies_compiler_type=none
  5425. fi
  5426. fi
  5427. { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  5428. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  5429. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  5430. if
  5431. test "x$enable_dependency_tracking" != xno \
  5432. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  5433. am__fastdepCXX_TRUE=
  5434. am__fastdepCXX_FALSE='#'
  5435. else
  5436. am__fastdepCXX_TRUE='#'
  5437. am__fastdepCXX_FALSE=
  5438. fi
  5439. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  5440. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  5441. (test "X$CXX" != "Xg++"))) ; then
  5442. ac_ext=cpp
  5443. ac_cpp='$CXXCPP $CPPFLAGS'
  5444. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5445. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5446. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5447. { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  5448. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  5449. if test -z "$CXXCPP"; then
  5450. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  5451. $as_echo_n "(cached) " >&6
  5452. else
  5453. # Double quotes because CXXCPP needs to be expanded
  5454. for CXXCPP in "$CXX -E" "/lib/cpp"
  5455. do
  5456. ac_preproc_ok=false
  5457. for ac_cxx_preproc_warn_flag in '' yes
  5458. do
  5459. # Use a header file that comes with gcc, so configuring glibc
  5460. # with a fresh cross-compiler works.
  5461. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5462. # <limits.h> exists even on freestanding compilers.
  5463. # On the NeXT, cc -E runs the code through the compiler's parser,
  5464. # not just through cpp. "Syntax error" is here to catch this case.
  5465. cat >conftest.$ac_ext <<_ACEOF
  5466. /* confdefs.h. */
  5467. _ACEOF
  5468. cat confdefs.h >>conftest.$ac_ext
  5469. cat >>conftest.$ac_ext <<_ACEOF
  5470. /* end confdefs.h. */
  5471. #ifdef __STDC__
  5472. # include <limits.h>
  5473. #else
  5474. # include <assert.h>
  5475. #endif
  5476. Syntax error
  5477. _ACEOF
  5478. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5479. case "(($ac_try" in
  5480. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5481. *) ac_try_echo=$ac_try;;
  5482. esac
  5483. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5484. $as_echo "$ac_try_echo") >&5
  5485. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5486. ac_status=$?
  5487. grep -v '^ *+' conftest.er1 >conftest.err
  5488. rm -f conftest.er1
  5489. cat conftest.err >&5
  5490. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5491. (exit $ac_status); } >/dev/null && {
  5492. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5493. test ! -s conftest.err
  5494. }; then
  5495. :
  5496. else
  5497. $as_echo "$as_me: failed program was:" >&5
  5498. sed 's/^/| /' conftest.$ac_ext >&5
  5499. # Broken: fails on valid input.
  5500. continue
  5501. fi
  5502. rm -f conftest.err conftest.$ac_ext
  5503. # OK, works on sane cases. Now check whether nonexistent headers
  5504. # can be detected and how.
  5505. cat >conftest.$ac_ext <<_ACEOF
  5506. /* confdefs.h. */
  5507. _ACEOF
  5508. cat confdefs.h >>conftest.$ac_ext
  5509. cat >>conftest.$ac_ext <<_ACEOF
  5510. /* end confdefs.h. */
  5511. #include <ac_nonexistent.h>
  5512. _ACEOF
  5513. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5514. case "(($ac_try" in
  5515. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5516. *) ac_try_echo=$ac_try;;
  5517. esac
  5518. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5519. $as_echo "$ac_try_echo") >&5
  5520. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5521. ac_status=$?
  5522. grep -v '^ *+' conftest.er1 >conftest.err
  5523. rm -f conftest.er1
  5524. cat conftest.err >&5
  5525. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5526. (exit $ac_status); } >/dev/null && {
  5527. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5528. test ! -s conftest.err
  5529. }; then
  5530. # Broken: success on invalid input.
  5531. continue
  5532. else
  5533. $as_echo "$as_me: failed program was:" >&5
  5534. sed 's/^/| /' conftest.$ac_ext >&5
  5535. # Passes both tests.
  5536. ac_preproc_ok=:
  5537. break
  5538. fi
  5539. rm -f conftest.err conftest.$ac_ext
  5540. done
  5541. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5542. rm -f conftest.err conftest.$ac_ext
  5543. if $ac_preproc_ok; then
  5544. break
  5545. fi
  5546. done
  5547. ac_cv_prog_CXXCPP=$CXXCPP
  5548. fi
  5549. CXXCPP=$ac_cv_prog_CXXCPP
  5550. else
  5551. ac_cv_prog_CXXCPP=$CXXCPP
  5552. fi
  5553. { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
  5554. $as_echo "$CXXCPP" >&6; }
  5555. ac_preproc_ok=false
  5556. for ac_cxx_preproc_warn_flag in '' yes
  5557. do
  5558. # Use a header file that comes with gcc, so configuring glibc
  5559. # with a fresh cross-compiler works.
  5560. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5561. # <limits.h> exists even on freestanding compilers.
  5562. # On the NeXT, cc -E runs the code through the compiler's parser,
  5563. # not just through cpp. "Syntax error" is here to catch this case.
  5564. cat >conftest.$ac_ext <<_ACEOF
  5565. /* confdefs.h. */
  5566. _ACEOF
  5567. cat confdefs.h >>conftest.$ac_ext
  5568. cat >>conftest.$ac_ext <<_ACEOF
  5569. /* end confdefs.h. */
  5570. #ifdef __STDC__
  5571. # include <limits.h>
  5572. #else
  5573. # include <assert.h>
  5574. #endif
  5575. Syntax error
  5576. _ACEOF
  5577. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5578. case "(($ac_try" in
  5579. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5580. *) ac_try_echo=$ac_try;;
  5581. esac
  5582. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5583. $as_echo "$ac_try_echo") >&5
  5584. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5585. ac_status=$?
  5586. grep -v '^ *+' conftest.er1 >conftest.err
  5587. rm -f conftest.er1
  5588. cat conftest.err >&5
  5589. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5590. (exit $ac_status); } >/dev/null && {
  5591. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5592. test ! -s conftest.err
  5593. }; then
  5594. :
  5595. else
  5596. $as_echo "$as_me: failed program was:" >&5
  5597. sed 's/^/| /' conftest.$ac_ext >&5
  5598. # Broken: fails on valid input.
  5599. continue
  5600. fi
  5601. rm -f conftest.err conftest.$ac_ext
  5602. # OK, works on sane cases. Now check whether nonexistent headers
  5603. # can be detected and how.
  5604. cat >conftest.$ac_ext <<_ACEOF
  5605. /* confdefs.h. */
  5606. _ACEOF
  5607. cat confdefs.h >>conftest.$ac_ext
  5608. cat >>conftest.$ac_ext <<_ACEOF
  5609. /* end confdefs.h. */
  5610. #include <ac_nonexistent.h>
  5611. _ACEOF
  5612. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5613. case "(($ac_try" in
  5614. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5615. *) ac_try_echo=$ac_try;;
  5616. esac
  5617. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5618. $as_echo "$ac_try_echo") >&5
  5619. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5620. ac_status=$?
  5621. grep -v '^ *+' conftest.er1 >conftest.err
  5622. rm -f conftest.er1
  5623. cat conftest.err >&5
  5624. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5625. (exit $ac_status); } >/dev/null && {
  5626. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5627. test ! -s conftest.err
  5628. }; then
  5629. # Broken: success on invalid input.
  5630. continue
  5631. else
  5632. $as_echo "$as_me: failed program was:" >&5
  5633. sed 's/^/| /' conftest.$ac_ext >&5
  5634. # Passes both tests.
  5635. ac_preproc_ok=:
  5636. break
  5637. fi
  5638. rm -f conftest.err conftest.$ac_ext
  5639. done
  5640. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5641. rm -f conftest.err conftest.$ac_ext
  5642. if $ac_preproc_ok; then
  5643. :
  5644. else
  5645. { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5646. See \`config.log' for more details." >&5
  5647. $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5648. See \`config.log' for more details." >&2;}
  5649. { (exit 1); exit 1; }; }
  5650. fi
  5651. ac_ext=cpp
  5652. ac_cpp='$CXXCPP $CPPFLAGS'
  5653. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5654. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5655. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5656. fi
  5657. ac_ext=f
  5658. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  5659. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5660. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  5661. if test -n "$ac_tool_prefix"; then
  5662. 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
  5663. do
  5664. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5665. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5666. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5667. $as_echo_n "checking for $ac_word... " >&6; }
  5668. if test "${ac_cv_prog_F77+set}" = set; then
  5669. $as_echo_n "(cached) " >&6
  5670. else
  5671. if test -n "$F77"; then
  5672. ac_cv_prog_F77="$F77" # Let the user override the test.
  5673. else
  5674. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5675. for as_dir in $PATH
  5676. do
  5677. IFS=$as_save_IFS
  5678. test -z "$as_dir" && as_dir=.
  5679. for ac_exec_ext in '' $ac_executable_extensions; do
  5680. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5681. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  5682. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5683. break 2
  5684. fi
  5685. done
  5686. done
  5687. IFS=$as_save_IFS
  5688. fi
  5689. fi
  5690. F77=$ac_cv_prog_F77
  5691. if test -n "$F77"; then
  5692. { $as_echo "$as_me:$LINENO: result: $F77" >&5
  5693. $as_echo "$F77" >&6; }
  5694. else
  5695. { $as_echo "$as_me:$LINENO: result: no" >&5
  5696. $as_echo "no" >&6; }
  5697. fi
  5698. test -n "$F77" && break
  5699. done
  5700. fi
  5701. if test -z "$F77"; then
  5702. ac_ct_F77=$F77
  5703. 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
  5704. do
  5705. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5706. set dummy $ac_prog; ac_word=$2
  5707. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5708. $as_echo_n "checking for $ac_word... " >&6; }
  5709. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  5710. $as_echo_n "(cached) " >&6
  5711. else
  5712. if test -n "$ac_ct_F77"; then
  5713. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  5714. else
  5715. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5716. for as_dir in $PATH
  5717. do
  5718. IFS=$as_save_IFS
  5719. test -z "$as_dir" && as_dir=.
  5720. for ac_exec_ext in '' $ac_executable_extensions; do
  5721. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5722. ac_cv_prog_ac_ct_F77="$ac_prog"
  5723. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5724. break 2
  5725. fi
  5726. done
  5727. done
  5728. IFS=$as_save_IFS
  5729. fi
  5730. fi
  5731. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  5732. if test -n "$ac_ct_F77"; then
  5733. { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  5734. $as_echo "$ac_ct_F77" >&6; }
  5735. else
  5736. { $as_echo "$as_me:$LINENO: result: no" >&5
  5737. $as_echo "no" >&6; }
  5738. fi
  5739. test -n "$ac_ct_F77" && break
  5740. done
  5741. if test "x$ac_ct_F77" = x; then
  5742. F77=""
  5743. else
  5744. case $cross_compiling:$ac_tool_warned in
  5745. yes:)
  5746. { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5747. whose name does not start with the host triplet. If you think this
  5748. configuration is useful to you, please write to autoconf@gnu.org." >&5
  5749. $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5750. whose name does not start with the host triplet. If you think this
  5751. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5752. ac_tool_warned=yes ;;
  5753. esac
  5754. F77=$ac_ct_F77
  5755. fi
  5756. fi
  5757. # Provide some information about the compiler.
  5758. $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
  5759. set X $ac_compile
  5760. ac_compiler=$2
  5761. { (ac_try="$ac_compiler --version >&5"
  5762. case "(($ac_try" in
  5763. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5764. *) ac_try_echo=$ac_try;;
  5765. esac
  5766. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5767. $as_echo "$ac_try_echo") >&5
  5768. (eval "$ac_compiler --version >&5") 2>&5
  5769. ac_status=$?
  5770. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5771. (exit $ac_status); }
  5772. { (ac_try="$ac_compiler -v >&5"
  5773. case "(($ac_try" in
  5774. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5775. *) ac_try_echo=$ac_try;;
  5776. esac
  5777. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5778. $as_echo "$ac_try_echo") >&5
  5779. (eval "$ac_compiler -v >&5") 2>&5
  5780. ac_status=$?
  5781. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5782. (exit $ac_status); }
  5783. { (ac_try="$ac_compiler -V >&5"
  5784. case "(($ac_try" in
  5785. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5786. *) ac_try_echo=$ac_try;;
  5787. esac
  5788. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5789. $as_echo "$ac_try_echo") >&5
  5790. (eval "$ac_compiler -V >&5") 2>&5
  5791. ac_status=$?
  5792. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5793. (exit $ac_status); }
  5794. rm -f a.out
  5795. # If we don't use `.F' as extension, the preprocessor is not run on the
  5796. # input file. (Note that this only needs to work for GNU compilers.)
  5797. ac_save_ext=$ac_ext
  5798. ac_ext=F
  5799. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  5800. $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
  5801. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  5802. $as_echo_n "(cached) " >&6
  5803. else
  5804. cat >conftest.$ac_ext <<_ACEOF
  5805. program main
  5806. #ifndef __GNUC__
  5807. choke me
  5808. #endif
  5809. end
  5810. _ACEOF
  5811. rm -f conftest.$ac_objext
  5812. if { (ac_try="$ac_compile"
  5813. case "(($ac_try" in
  5814. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5815. *) ac_try_echo=$ac_try;;
  5816. esac
  5817. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5818. $as_echo "$ac_try_echo") >&5
  5819. (eval "$ac_compile") 2>conftest.er1
  5820. ac_status=$?
  5821. grep -v '^ *+' conftest.er1 >conftest.err
  5822. rm -f conftest.er1
  5823. cat conftest.err >&5
  5824. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5825. (exit $ac_status); } && {
  5826. test -z "$ac_f77_werror_flag" ||
  5827. test ! -s conftest.err
  5828. } && test -s conftest.$ac_objext; then
  5829. ac_compiler_gnu=yes
  5830. else
  5831. $as_echo "$as_me: failed program was:" >&5
  5832. sed 's/^/| /' conftest.$ac_ext >&5
  5833. ac_compiler_gnu=no
  5834. fi
  5835. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5836. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  5837. fi
  5838. { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  5839. $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
  5840. ac_ext=$ac_save_ext
  5841. ac_test_FFLAGS=${FFLAGS+set}
  5842. ac_save_FFLAGS=$FFLAGS
  5843. FFLAGS=
  5844. { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  5845. $as_echo_n "checking whether $F77 accepts -g... " >&6; }
  5846. if test "${ac_cv_prog_f77_g+set}" = set; then
  5847. $as_echo_n "(cached) " >&6
  5848. else
  5849. FFLAGS=-g
  5850. cat >conftest.$ac_ext <<_ACEOF
  5851. program main
  5852. end
  5853. _ACEOF
  5854. rm -f conftest.$ac_objext
  5855. if { (ac_try="$ac_compile"
  5856. case "(($ac_try" in
  5857. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5858. *) ac_try_echo=$ac_try;;
  5859. esac
  5860. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5861. $as_echo "$ac_try_echo") >&5
  5862. (eval "$ac_compile") 2>conftest.er1
  5863. ac_status=$?
  5864. grep -v '^ *+' conftest.er1 >conftest.err
  5865. rm -f conftest.er1
  5866. cat conftest.err >&5
  5867. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5868. (exit $ac_status); } && {
  5869. test -z "$ac_f77_werror_flag" ||
  5870. test ! -s conftest.err
  5871. } && test -s conftest.$ac_objext; then
  5872. ac_cv_prog_f77_g=yes
  5873. else
  5874. $as_echo "$as_me: failed program was:" >&5
  5875. sed 's/^/| /' conftest.$ac_ext >&5
  5876. ac_cv_prog_f77_g=no
  5877. fi
  5878. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5879. fi
  5880. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  5881. $as_echo "$ac_cv_prog_f77_g" >&6; }
  5882. if test "$ac_test_FFLAGS" = set; then
  5883. FFLAGS=$ac_save_FFLAGS
  5884. elif test $ac_cv_prog_f77_g = yes; then
  5885. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5886. FFLAGS="-g -O2"
  5887. else
  5888. FFLAGS="-g"
  5889. fi
  5890. else
  5891. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5892. FFLAGS="-O2"
  5893. else
  5894. FFLAGS=
  5895. fi
  5896. fi
  5897. if test $ac_compiler_gnu = yes; then
  5898. G77=yes
  5899. else
  5900. G77=
  5901. fi
  5902. ac_ext=c
  5903. ac_cpp='$CPP $CPPFLAGS'
  5904. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5905. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5906. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5907. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  5908. # find the maximum length of command line arguments
  5909. { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  5910. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5911. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  5912. $as_echo_n "(cached) " >&6
  5913. else
  5914. i=0
  5915. teststring="ABCD"
  5916. case $build_os in
  5917. msdosdjgpp*)
  5918. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5919. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5920. # during glob expansion). Even if it were fixed, the result of this
  5921. # check would be larger than it should be.
  5922. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5923. ;;
  5924. gnu*)
  5925. # Under GNU Hurd, this test is not required because there is
  5926. # no limit to the length of command line arguments.
  5927. # Libtool will interpret -1 as no limit whatsoever
  5928. lt_cv_sys_max_cmd_len=-1;
  5929. ;;
  5930. cygwin* | mingw*)
  5931. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5932. # about 5 minutes as the teststring grows exponentially.
  5933. # Worse, since 9x/ME are not pre-emptively multitasking,
  5934. # you end up with a "frozen" computer, even though with patience
  5935. # the test eventually succeeds (with a max line length of 256k).
  5936. # Instead, let's just punt: use the minimum linelength reported by
  5937. # all of the supported platforms: 8192 (on NT/2K/XP).
  5938. lt_cv_sys_max_cmd_len=8192;
  5939. ;;
  5940. amigaos*)
  5941. # On AmigaOS with pdksh, this test takes hours, literally.
  5942. # So we just punt and use a minimum line length of 8192.
  5943. lt_cv_sys_max_cmd_len=8192;
  5944. ;;
  5945. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5946. # This has been around since 386BSD, at least. Likely further.
  5947. if test -x /sbin/sysctl; then
  5948. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5949. elif test -x /usr/sbin/sysctl; then
  5950. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5951. else
  5952. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5953. fi
  5954. # And add a safety zone
  5955. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5956. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5957. ;;
  5958. interix*)
  5959. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5960. lt_cv_sys_max_cmd_len=196608
  5961. ;;
  5962. osf*)
  5963. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5964. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5965. # nice to cause kernel panics so lets avoid the loop below.
  5966. # First set a reasonable default.
  5967. lt_cv_sys_max_cmd_len=16384
  5968. #
  5969. if test -x /sbin/sysconfig; then
  5970. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5971. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5972. esac
  5973. fi
  5974. ;;
  5975. sco3.2v5*)
  5976. lt_cv_sys_max_cmd_len=102400
  5977. ;;
  5978. sysv5* | sco5v6* | sysv4.2uw2*)
  5979. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5980. if test -n "$kargmax"; then
  5981. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5982. else
  5983. lt_cv_sys_max_cmd_len=32768
  5984. fi
  5985. ;;
  5986. *)
  5987. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5988. if test -n "$lt_cv_sys_max_cmd_len"; then
  5989. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5990. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5991. else
  5992. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5993. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  5994. = "XX$teststring") >/dev/null 2>&1 &&
  5995. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  5996. lt_cv_sys_max_cmd_len=$new_result &&
  5997. test $i != 17 # 1/2 MB should be enough
  5998. do
  5999. i=`expr $i + 1`
  6000. teststring=$teststring$teststring
  6001. done
  6002. teststring=
  6003. # Add a significant safety factor because C++ compilers can tack on massive
  6004. # amounts of additional arguments before passing them to the linker.
  6005. # It appears as though 1/2 is a usable value.
  6006. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  6007. fi
  6008. ;;
  6009. esac
  6010. fi
  6011. if test -n $lt_cv_sys_max_cmd_len ; then
  6012. { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  6013. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  6014. else
  6015. { $as_echo "$as_me:$LINENO: result: none" >&5
  6016. $as_echo "none" >&6; }
  6017. fi
  6018. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6019. { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  6020. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6021. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  6022. $as_echo_n "(cached) " >&6
  6023. else
  6024. # These are sane defaults that work on at least a few old systems.
  6025. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6026. # Character class describing NM global symbol codes.
  6027. symcode='[BCDEGRST]'
  6028. # Regexp to match symbols that can be accessed directly from C.
  6029. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6030. # Transform an extracted symbol line into a proper C declaration
  6031. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  6032. # Transform an extracted symbol line into symbol name and symbol address
  6033. 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'"
  6034. # Define system-specific variables.
  6035. case $host_os in
  6036. aix*)
  6037. symcode='[BCDT]'
  6038. ;;
  6039. cygwin* | mingw* | pw32*)
  6040. symcode='[ABCDGISTW]'
  6041. ;;
  6042. hpux*) # Its linker distinguishes data from code symbols
  6043. if test "$host_cpu" = ia64; then
  6044. symcode='[ABCDEGRST]'
  6045. fi
  6046. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6047. 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'"
  6048. ;;
  6049. linux* | k*bsd*-gnu)
  6050. if test "$host_cpu" = ia64; then
  6051. symcode='[ABCDGIRSTW]'
  6052. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6053. 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'"
  6054. fi
  6055. ;;
  6056. irix* | nonstopux*)
  6057. symcode='[BCDEGRST]'
  6058. ;;
  6059. osf*)
  6060. symcode='[BCDEGQRST]'
  6061. ;;
  6062. solaris*)
  6063. symcode='[BDRT]'
  6064. ;;
  6065. sco3.2v5*)
  6066. symcode='[DT]'
  6067. ;;
  6068. sysv4.2uw2*)
  6069. symcode='[DT]'
  6070. ;;
  6071. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6072. symcode='[ABDT]'
  6073. ;;
  6074. sysv4)
  6075. symcode='[DFNSTU]'
  6076. ;;
  6077. esac
  6078. # Handle CRLF in mingw tool chain
  6079. opt_cr=
  6080. case $build_os in
  6081. mingw*)
  6082. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6083. ;;
  6084. esac
  6085. # If we're using GNU nm, then use its standard symbol codes.
  6086. case `$NM -V 2>&1` in
  6087. *GNU* | *'with BFD'*)
  6088. symcode='[ABCDGIRSTW]' ;;
  6089. esac
  6090. # Try without a prefix undercore, then with it.
  6091. for ac_symprfx in "" "_"; do
  6092. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6093. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6094. # Write the raw and C identifiers.
  6095. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6096. # Check to see that the pipe works correctly.
  6097. pipe_works=no
  6098. rm -f conftest*
  6099. cat > conftest.$ac_ext <<EOF
  6100. #ifdef __cplusplus
  6101. extern "C" {
  6102. #endif
  6103. char nm_test_var;
  6104. void nm_test_func(){}
  6105. #ifdef __cplusplus
  6106. }
  6107. #endif
  6108. int main(){nm_test_var='a';nm_test_func();return(0);}
  6109. EOF
  6110. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6111. (eval $ac_compile) 2>&5
  6112. ac_status=$?
  6113. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6114. (exit $ac_status); }; then
  6115. # Now try to grab the symbols.
  6116. nlist=conftest.nm
  6117. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  6118. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  6119. ac_status=$?
  6120. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6121. (exit $ac_status); } && test -s "$nlist"; then
  6122. # Try sorting and uniquifying the output.
  6123. if sort "$nlist" | uniq > "$nlist"T; then
  6124. mv -f "$nlist"T "$nlist"
  6125. else
  6126. rm -f "$nlist"T
  6127. fi
  6128. # Make sure that we snagged all the symbols we need.
  6129. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  6130. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  6131. cat <<EOF > conftest.$ac_ext
  6132. #ifdef __cplusplus
  6133. extern "C" {
  6134. #endif
  6135. EOF
  6136. # Now generate the symbol file.
  6137. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  6138. cat <<EOF >> conftest.$ac_ext
  6139. #if defined (__STDC__) && __STDC__
  6140. # define lt_ptr_t void *
  6141. #else
  6142. # define lt_ptr_t char *
  6143. # define const
  6144. #endif
  6145. /* The mapping between symbol names and symbols. */
  6146. const struct {
  6147. const char *name;
  6148. lt_ptr_t address;
  6149. }
  6150. lt_preloaded_symbols[] =
  6151. {
  6152. EOF
  6153. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  6154. cat <<\EOF >> conftest.$ac_ext
  6155. {0, (lt_ptr_t) 0}
  6156. };
  6157. #ifdef __cplusplus
  6158. }
  6159. #endif
  6160. EOF
  6161. # Now try linking the two files.
  6162. mv conftest.$ac_objext conftstm.$ac_objext
  6163. lt_save_LIBS="$LIBS"
  6164. lt_save_CFLAGS="$CFLAGS"
  6165. LIBS="conftstm.$ac_objext"
  6166. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6167. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6168. (eval $ac_link) 2>&5
  6169. ac_status=$?
  6170. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6171. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  6172. pipe_works=yes
  6173. fi
  6174. LIBS="$lt_save_LIBS"
  6175. CFLAGS="$lt_save_CFLAGS"
  6176. else
  6177. echo "cannot find nm_test_func in $nlist" >&5
  6178. fi
  6179. else
  6180. echo "cannot find nm_test_var in $nlist" >&5
  6181. fi
  6182. else
  6183. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6184. fi
  6185. else
  6186. echo "$progname: failed program was:" >&5
  6187. cat conftest.$ac_ext >&5
  6188. fi
  6189. rm -rf conftest* conftst*
  6190. # Do not use the global_symbol_pipe unless it works.
  6191. if test "$pipe_works" = yes; then
  6192. break
  6193. else
  6194. lt_cv_sys_global_symbol_pipe=
  6195. fi
  6196. done
  6197. fi
  6198. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6199. lt_cv_sys_global_symbol_to_cdecl=
  6200. fi
  6201. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6202. { $as_echo "$as_me:$LINENO: result: failed" >&5
  6203. $as_echo "failed" >&6; }
  6204. else
  6205. { $as_echo "$as_me:$LINENO: result: ok" >&5
  6206. $as_echo "ok" >&6; }
  6207. fi
  6208. { $as_echo "$as_me:$LINENO: checking for objdir" >&5
  6209. $as_echo_n "checking for objdir... " >&6; }
  6210. if test "${lt_cv_objdir+set}" = set; then
  6211. $as_echo_n "(cached) " >&6
  6212. else
  6213. rm -f .libs 2>/dev/null
  6214. mkdir .libs 2>/dev/null
  6215. if test -d .libs; then
  6216. lt_cv_objdir=.libs
  6217. else
  6218. # MS-DOS does not allow filenames that begin with a dot.
  6219. lt_cv_objdir=_libs
  6220. fi
  6221. rmdir .libs 2>/dev/null
  6222. fi
  6223. { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  6224. $as_echo "$lt_cv_objdir" >&6; }
  6225. objdir=$lt_cv_objdir
  6226. case $host_os in
  6227. aix3*)
  6228. # AIX sometimes has problems with the GCC collect2 program. For some
  6229. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6230. # vanish in a puff of smoke.
  6231. if test "X${COLLECT_NAMES+set}" != Xset; then
  6232. COLLECT_NAMES=
  6233. export COLLECT_NAMES
  6234. fi
  6235. ;;
  6236. esac
  6237. # Sed substitution that helps us do robust quoting. It backslashifies
  6238. # metacharacters that are still active within double-quoted strings.
  6239. Xsed='sed -e 1s/^X//'
  6240. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  6241. # Same as above, but do not quote variable references.
  6242. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  6243. # Sed substitution to delay expansion of an escaped shell variable in a
  6244. # double_quote_subst'ed string.
  6245. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6246. # Sed substitution to avoid accidental globbing in evaled expressions
  6247. no_glob_subst='s/\*/\\\*/g'
  6248. # Constants:
  6249. rm="rm -f"
  6250. # Global variables:
  6251. default_ofile=libtool
  6252. can_build_shared=yes
  6253. # All known linkers require a `.a' archive for static linking (except MSVC,
  6254. # which needs '.lib').
  6255. libext=a
  6256. ltmain="$ac_aux_dir/ltmain.sh"
  6257. ofile="$default_ofile"
  6258. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6259. if test -n "$ac_tool_prefix"; then
  6260. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  6261. set dummy ${ac_tool_prefix}ar; ac_word=$2
  6262. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6263. $as_echo_n "checking for $ac_word... " >&6; }
  6264. if test "${ac_cv_prog_AR+set}" = set; then
  6265. $as_echo_n "(cached) " >&6
  6266. else
  6267. if test -n "$AR"; then
  6268. ac_cv_prog_AR="$AR" # Let the user override the test.
  6269. else
  6270. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6271. for as_dir in $PATH
  6272. do
  6273. IFS=$as_save_IFS
  6274. test -z "$as_dir" && as_dir=.
  6275. for ac_exec_ext in '' $ac_executable_extensions; do
  6276. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6277. ac_cv_prog_AR="${ac_tool_prefix}ar"
  6278. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6279. break 2
  6280. fi
  6281. done
  6282. done
  6283. IFS=$as_save_IFS
  6284. fi
  6285. fi
  6286. AR=$ac_cv_prog_AR
  6287. if test -n "$AR"; then
  6288. { $as_echo "$as_me:$LINENO: result: $AR" >&5
  6289. $as_echo "$AR" >&6; }
  6290. else
  6291. { $as_echo "$as_me:$LINENO: result: no" >&5
  6292. $as_echo "no" >&6; }
  6293. fi
  6294. fi
  6295. if test -z "$ac_cv_prog_AR"; then
  6296. ac_ct_AR=$AR
  6297. # Extract the first word of "ar", so it can be a program name with args.
  6298. set dummy ar; ac_word=$2
  6299. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6300. $as_echo_n "checking for $ac_word... " >&6; }
  6301. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  6302. $as_echo_n "(cached) " >&6
  6303. else
  6304. if test -n "$ac_ct_AR"; then
  6305. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6306. else
  6307. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6308. for as_dir in $PATH
  6309. do
  6310. IFS=$as_save_IFS
  6311. test -z "$as_dir" && as_dir=.
  6312. for ac_exec_ext in '' $ac_executable_extensions; do
  6313. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6314. ac_cv_prog_ac_ct_AR="ar"
  6315. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6316. break 2
  6317. fi
  6318. done
  6319. done
  6320. IFS=$as_save_IFS
  6321. fi
  6322. fi
  6323. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6324. if test -n "$ac_ct_AR"; then
  6325. { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  6326. $as_echo "$ac_ct_AR" >&6; }
  6327. else
  6328. { $as_echo "$as_me:$LINENO: result: no" >&5
  6329. $as_echo "no" >&6; }
  6330. fi
  6331. if test "x$ac_ct_AR" = x; then
  6332. AR="false"
  6333. else
  6334. case $cross_compiling:$ac_tool_warned in
  6335. yes:)
  6336. { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6337. whose name does not start with the host triplet. If you think this
  6338. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6339. $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6340. whose name does not start with the host triplet. If you think this
  6341. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6342. ac_tool_warned=yes ;;
  6343. esac
  6344. AR=$ac_ct_AR
  6345. fi
  6346. else
  6347. AR="$ac_cv_prog_AR"
  6348. fi
  6349. if test -n "$ac_tool_prefix"; then
  6350. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6351. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6352. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6353. $as_echo_n "checking for $ac_word... " >&6; }
  6354. if test "${ac_cv_prog_RANLIB+set}" = set; then
  6355. $as_echo_n "(cached) " >&6
  6356. else
  6357. if test -n "$RANLIB"; then
  6358. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6359. else
  6360. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6361. for as_dir in $PATH
  6362. do
  6363. IFS=$as_save_IFS
  6364. test -z "$as_dir" && as_dir=.
  6365. for ac_exec_ext in '' $ac_executable_extensions; do
  6366. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6367. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6368. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6369. break 2
  6370. fi
  6371. done
  6372. done
  6373. IFS=$as_save_IFS
  6374. fi
  6375. fi
  6376. RANLIB=$ac_cv_prog_RANLIB
  6377. if test -n "$RANLIB"; then
  6378. { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  6379. $as_echo "$RANLIB" >&6; }
  6380. else
  6381. { $as_echo "$as_me:$LINENO: result: no" >&5
  6382. $as_echo "no" >&6; }
  6383. fi
  6384. fi
  6385. if test -z "$ac_cv_prog_RANLIB"; then
  6386. ac_ct_RANLIB=$RANLIB
  6387. # Extract the first word of "ranlib", so it can be a program name with args.
  6388. set dummy ranlib; ac_word=$2
  6389. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6390. $as_echo_n "checking for $ac_word... " >&6; }
  6391. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  6392. $as_echo_n "(cached) " >&6
  6393. else
  6394. if test -n "$ac_ct_RANLIB"; then
  6395. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6396. else
  6397. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6398. for as_dir in $PATH
  6399. do
  6400. IFS=$as_save_IFS
  6401. test -z "$as_dir" && as_dir=.
  6402. for ac_exec_ext in '' $ac_executable_extensions; do
  6403. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6404. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6405. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6406. break 2
  6407. fi
  6408. done
  6409. done
  6410. IFS=$as_save_IFS
  6411. fi
  6412. fi
  6413. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6414. if test -n "$ac_ct_RANLIB"; then
  6415. { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  6416. $as_echo "$ac_ct_RANLIB" >&6; }
  6417. else
  6418. { $as_echo "$as_me:$LINENO: result: no" >&5
  6419. $as_echo "no" >&6; }
  6420. fi
  6421. if test "x$ac_ct_RANLIB" = x; then
  6422. RANLIB=":"
  6423. else
  6424. case $cross_compiling:$ac_tool_warned in
  6425. yes:)
  6426. { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6427. whose name does not start with the host triplet. If you think this
  6428. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6429. $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6430. whose name does not start with the host triplet. If you think this
  6431. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6432. ac_tool_warned=yes ;;
  6433. esac
  6434. RANLIB=$ac_ct_RANLIB
  6435. fi
  6436. else
  6437. RANLIB="$ac_cv_prog_RANLIB"
  6438. fi
  6439. if test -n "$ac_tool_prefix"; then
  6440. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6441. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6442. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6443. $as_echo_n "checking for $ac_word... " >&6; }
  6444. if test "${ac_cv_prog_STRIP+set}" = set; then
  6445. $as_echo_n "(cached) " >&6
  6446. else
  6447. if test -n "$STRIP"; then
  6448. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6449. else
  6450. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6451. for as_dir in $PATH
  6452. do
  6453. IFS=$as_save_IFS
  6454. test -z "$as_dir" && as_dir=.
  6455. for ac_exec_ext in '' $ac_executable_extensions; do
  6456. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6457. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6458. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6459. break 2
  6460. fi
  6461. done
  6462. done
  6463. IFS=$as_save_IFS
  6464. fi
  6465. fi
  6466. STRIP=$ac_cv_prog_STRIP
  6467. if test -n "$STRIP"; then
  6468. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  6469. $as_echo "$STRIP" >&6; }
  6470. else
  6471. { $as_echo "$as_me:$LINENO: result: no" >&5
  6472. $as_echo "no" >&6; }
  6473. fi
  6474. fi
  6475. if test -z "$ac_cv_prog_STRIP"; then
  6476. ac_ct_STRIP=$STRIP
  6477. # Extract the first word of "strip", so it can be a program name with args.
  6478. set dummy strip; ac_word=$2
  6479. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6480. $as_echo_n "checking for $ac_word... " >&6; }
  6481. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  6482. $as_echo_n "(cached) " >&6
  6483. else
  6484. if test -n "$ac_ct_STRIP"; then
  6485. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6486. else
  6487. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6488. for as_dir in $PATH
  6489. do
  6490. IFS=$as_save_IFS
  6491. test -z "$as_dir" && as_dir=.
  6492. for ac_exec_ext in '' $ac_executable_extensions; do
  6493. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6494. ac_cv_prog_ac_ct_STRIP="strip"
  6495. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6496. break 2
  6497. fi
  6498. done
  6499. done
  6500. IFS=$as_save_IFS
  6501. fi
  6502. fi
  6503. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6504. if test -n "$ac_ct_STRIP"; then
  6505. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  6506. $as_echo "$ac_ct_STRIP" >&6; }
  6507. else
  6508. { $as_echo "$as_me:$LINENO: result: no" >&5
  6509. $as_echo "no" >&6; }
  6510. fi
  6511. if test "x$ac_ct_STRIP" = x; then
  6512. STRIP=":"
  6513. else
  6514. case $cross_compiling:$ac_tool_warned in
  6515. yes:)
  6516. { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6517. whose name does not start with the host triplet. If you think this
  6518. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6519. $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6520. whose name does not start with the host triplet. If you think this
  6521. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6522. ac_tool_warned=yes ;;
  6523. esac
  6524. STRIP=$ac_ct_STRIP
  6525. fi
  6526. else
  6527. STRIP="$ac_cv_prog_STRIP"
  6528. fi
  6529. old_CC="$CC"
  6530. old_CFLAGS="$CFLAGS"
  6531. # Set sane defaults for various variables
  6532. test -z "$AR" && AR=ar
  6533. test -z "$AR_FLAGS" && AR_FLAGS=cru
  6534. test -z "$AS" && AS=as
  6535. test -z "$CC" && CC=cc
  6536. test -z "$LTCC" && LTCC=$CC
  6537. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6538. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6539. test -z "$LD" && LD=ld
  6540. test -z "$LN_S" && LN_S="ln -s"
  6541. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6542. test -z "$NM" && NM=nm
  6543. test -z "$SED" && SED=sed
  6544. test -z "$OBJDUMP" && OBJDUMP=objdump
  6545. test -z "$RANLIB" && RANLIB=:
  6546. test -z "$STRIP" && STRIP=:
  6547. test -z "$ac_objext" && ac_objext=o
  6548. # Determine commands to create old-style static archives.
  6549. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6550. old_postinstall_cmds='chmod 644 $oldlib'
  6551. old_postuninstall_cmds=
  6552. if test -n "$RANLIB"; then
  6553. case $host_os in
  6554. openbsd*)
  6555. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  6556. ;;
  6557. *)
  6558. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  6559. ;;
  6560. esac
  6561. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6562. fi
  6563. for cc_temp in $compiler""; do
  6564. case $cc_temp in
  6565. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6566. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6567. \-*) ;;
  6568. *) break;;
  6569. esac
  6570. done
  6571. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6572. # Only perform the check for file, if the check method requires it
  6573. case $deplibs_check_method in
  6574. file_magic*)
  6575. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6576. { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  6577. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6578. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6579. $as_echo_n "(cached) " >&6
  6580. else
  6581. case $MAGIC_CMD in
  6582. [\\/*] | ?:[\\/]*)
  6583. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6584. ;;
  6585. *)
  6586. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6587. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6588. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6589. for ac_dir in $ac_dummy; do
  6590. IFS="$lt_save_ifs"
  6591. test -z "$ac_dir" && ac_dir=.
  6592. if test -f $ac_dir/${ac_tool_prefix}file; then
  6593. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6594. if test -n "$file_magic_test_file"; then
  6595. case $deplibs_check_method in
  6596. "file_magic "*)
  6597. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6598. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6599. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6600. $EGREP "$file_magic_regex" > /dev/null; then
  6601. :
  6602. else
  6603. cat <<EOF 1>&2
  6604. *** Warning: the command libtool uses to detect shared libraries,
  6605. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6606. *** The result is that libtool may fail to recognize shared libraries
  6607. *** as such. This will affect the creation of libtool libraries that
  6608. *** depend on shared libraries, but programs linked with such libtool
  6609. *** libraries will work regardless of this problem. Nevertheless, you
  6610. *** may want to report the problem to your system manager and/or to
  6611. *** bug-libtool@gnu.org
  6612. EOF
  6613. fi ;;
  6614. esac
  6615. fi
  6616. break
  6617. fi
  6618. done
  6619. IFS="$lt_save_ifs"
  6620. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6621. ;;
  6622. esac
  6623. fi
  6624. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6625. if test -n "$MAGIC_CMD"; then
  6626. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6627. $as_echo "$MAGIC_CMD" >&6; }
  6628. else
  6629. { $as_echo "$as_me:$LINENO: result: no" >&5
  6630. $as_echo "no" >&6; }
  6631. fi
  6632. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6633. if test -n "$ac_tool_prefix"; then
  6634. { $as_echo "$as_me:$LINENO: checking for file" >&5
  6635. $as_echo_n "checking for file... " >&6; }
  6636. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6637. $as_echo_n "(cached) " >&6
  6638. else
  6639. case $MAGIC_CMD in
  6640. [\\/*] | ?:[\\/]*)
  6641. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6642. ;;
  6643. *)
  6644. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6645. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6646. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6647. for ac_dir in $ac_dummy; do
  6648. IFS="$lt_save_ifs"
  6649. test -z "$ac_dir" && ac_dir=.
  6650. if test -f $ac_dir/file; then
  6651. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6652. if test -n "$file_magic_test_file"; then
  6653. case $deplibs_check_method in
  6654. "file_magic "*)
  6655. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6656. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6657. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6658. $EGREP "$file_magic_regex" > /dev/null; then
  6659. :
  6660. else
  6661. cat <<EOF 1>&2
  6662. *** Warning: the command libtool uses to detect shared libraries,
  6663. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6664. *** The result is that libtool may fail to recognize shared libraries
  6665. *** as such. This will affect the creation of libtool libraries that
  6666. *** depend on shared libraries, but programs linked with such libtool
  6667. *** libraries will work regardless of this problem. Nevertheless, you
  6668. *** may want to report the problem to your system manager and/or to
  6669. *** bug-libtool@gnu.org
  6670. EOF
  6671. fi ;;
  6672. esac
  6673. fi
  6674. break
  6675. fi
  6676. done
  6677. IFS="$lt_save_ifs"
  6678. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6679. ;;
  6680. esac
  6681. fi
  6682. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6683. if test -n "$MAGIC_CMD"; then
  6684. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6685. $as_echo "$MAGIC_CMD" >&6; }
  6686. else
  6687. { $as_echo "$as_me:$LINENO: result: no" >&5
  6688. $as_echo "no" >&6; }
  6689. fi
  6690. else
  6691. MAGIC_CMD=:
  6692. fi
  6693. fi
  6694. fi
  6695. ;;
  6696. esac
  6697. case $host_os in
  6698. rhapsody* | darwin*)
  6699. if test -n "$ac_tool_prefix"; then
  6700. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6701. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6702. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6703. $as_echo_n "checking for $ac_word... " >&6; }
  6704. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
  6705. $as_echo_n "(cached) " >&6
  6706. else
  6707. if test -n "$DSYMUTIL"; then
  6708. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6709. else
  6710. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6711. for as_dir in $PATH
  6712. do
  6713. IFS=$as_save_IFS
  6714. test -z "$as_dir" && as_dir=.
  6715. for ac_exec_ext in '' $ac_executable_extensions; do
  6716. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6717. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6718. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6719. break 2
  6720. fi
  6721. done
  6722. done
  6723. IFS=$as_save_IFS
  6724. fi
  6725. fi
  6726. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6727. if test -n "$DSYMUTIL"; then
  6728. { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
  6729. $as_echo "$DSYMUTIL" >&6; }
  6730. else
  6731. { $as_echo "$as_me:$LINENO: result: no" >&5
  6732. $as_echo "no" >&6; }
  6733. fi
  6734. fi
  6735. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6736. ac_ct_DSYMUTIL=$DSYMUTIL
  6737. # Extract the first word of "dsymutil", so it can be a program name with args.
  6738. set dummy dsymutil; ac_word=$2
  6739. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6740. $as_echo_n "checking for $ac_word... " >&6; }
  6741. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
  6742. $as_echo_n "(cached) " >&6
  6743. else
  6744. if test -n "$ac_ct_DSYMUTIL"; then
  6745. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6746. else
  6747. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6748. for as_dir in $PATH
  6749. do
  6750. IFS=$as_save_IFS
  6751. test -z "$as_dir" && as_dir=.
  6752. for ac_exec_ext in '' $ac_executable_extensions; do
  6753. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6754. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6755. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6756. break 2
  6757. fi
  6758. done
  6759. done
  6760. IFS=$as_save_IFS
  6761. fi
  6762. fi
  6763. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6764. if test -n "$ac_ct_DSYMUTIL"; then
  6765. { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
  6766. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6767. else
  6768. { $as_echo "$as_me:$LINENO: result: no" >&5
  6769. $as_echo "no" >&6; }
  6770. fi
  6771. if test "x$ac_ct_DSYMUTIL" = x; then
  6772. DSYMUTIL=":"
  6773. else
  6774. case $cross_compiling:$ac_tool_warned in
  6775. yes:)
  6776. { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6777. whose name does not start with the host triplet. If you think this
  6778. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6779. $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6780. whose name does not start with the host triplet. If you think this
  6781. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6782. ac_tool_warned=yes ;;
  6783. esac
  6784. DSYMUTIL=$ac_ct_DSYMUTIL
  6785. fi
  6786. else
  6787. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6788. fi
  6789. if test -n "$ac_tool_prefix"; then
  6790. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6791. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6792. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6793. $as_echo_n "checking for $ac_word... " >&6; }
  6794. if test "${ac_cv_prog_NMEDIT+set}" = set; then
  6795. $as_echo_n "(cached) " >&6
  6796. else
  6797. if test -n "$NMEDIT"; then
  6798. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6799. else
  6800. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6801. for as_dir in $PATH
  6802. do
  6803. IFS=$as_save_IFS
  6804. test -z "$as_dir" && as_dir=.
  6805. for ac_exec_ext in '' $ac_executable_extensions; do
  6806. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6807. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6808. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6809. break 2
  6810. fi
  6811. done
  6812. done
  6813. IFS=$as_save_IFS
  6814. fi
  6815. fi
  6816. NMEDIT=$ac_cv_prog_NMEDIT
  6817. if test -n "$NMEDIT"; then
  6818. { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
  6819. $as_echo "$NMEDIT" >&6; }
  6820. else
  6821. { $as_echo "$as_me:$LINENO: result: no" >&5
  6822. $as_echo "no" >&6; }
  6823. fi
  6824. fi
  6825. if test -z "$ac_cv_prog_NMEDIT"; then
  6826. ac_ct_NMEDIT=$NMEDIT
  6827. # Extract the first word of "nmedit", so it can be a program name with args.
  6828. set dummy nmedit; ac_word=$2
  6829. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6830. $as_echo_n "checking for $ac_word... " >&6; }
  6831. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
  6832. $as_echo_n "(cached) " >&6
  6833. else
  6834. if test -n "$ac_ct_NMEDIT"; then
  6835. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6836. else
  6837. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6838. for as_dir in $PATH
  6839. do
  6840. IFS=$as_save_IFS
  6841. test -z "$as_dir" && as_dir=.
  6842. for ac_exec_ext in '' $ac_executable_extensions; do
  6843. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6844. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6845. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6846. break 2
  6847. fi
  6848. done
  6849. done
  6850. IFS=$as_save_IFS
  6851. fi
  6852. fi
  6853. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6854. if test -n "$ac_ct_NMEDIT"; then
  6855. { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
  6856. $as_echo "$ac_ct_NMEDIT" >&6; }
  6857. else
  6858. { $as_echo "$as_me:$LINENO: result: no" >&5
  6859. $as_echo "no" >&6; }
  6860. fi
  6861. if test "x$ac_ct_NMEDIT" = x; then
  6862. NMEDIT=":"
  6863. else
  6864. case $cross_compiling:$ac_tool_warned in
  6865. yes:)
  6866. { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6867. whose name does not start with the host triplet. If you think this
  6868. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6869. $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6870. whose name does not start with the host triplet. If you think this
  6871. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6872. ac_tool_warned=yes ;;
  6873. esac
  6874. NMEDIT=$ac_ct_NMEDIT
  6875. fi
  6876. else
  6877. NMEDIT="$ac_cv_prog_NMEDIT"
  6878. fi
  6879. { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
  6880. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6881. if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  6882. $as_echo_n "(cached) " >&6
  6883. else
  6884. lt_cv_apple_cc_single_mod=no
  6885. if test -z "${LT_MULTI_MODULE}"; then
  6886. # By default we will add the -single_module flag. You can override
  6887. # by either setting the environment variable LT_MULTI_MODULE
  6888. # non-empty at configure time, or by adding -multi_module to the
  6889. # link flags.
  6890. echo "int foo(void){return 1;}" > conftest.c
  6891. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6892. -dynamiclib ${wl}-single_module conftest.c
  6893. if test -f libconftest.dylib; then
  6894. lt_cv_apple_cc_single_mod=yes
  6895. rm -rf libconftest.dylib*
  6896. fi
  6897. rm conftest.c
  6898. fi
  6899. fi
  6900. { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
  6901. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6902. { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
  6903. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6904. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
  6905. $as_echo_n "(cached) " >&6
  6906. else
  6907. lt_cv_ld_exported_symbols_list=no
  6908. save_LDFLAGS=$LDFLAGS
  6909. echo "_main" > conftest.sym
  6910. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6911. cat >conftest.$ac_ext <<_ACEOF
  6912. /* confdefs.h. */
  6913. _ACEOF
  6914. cat confdefs.h >>conftest.$ac_ext
  6915. cat >>conftest.$ac_ext <<_ACEOF
  6916. /* end confdefs.h. */
  6917. int
  6918. main ()
  6919. {
  6920. ;
  6921. return 0;
  6922. }
  6923. _ACEOF
  6924. rm -f conftest.$ac_objext conftest$ac_exeext
  6925. if { (ac_try="$ac_link"
  6926. case "(($ac_try" in
  6927. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6928. *) ac_try_echo=$ac_try;;
  6929. esac
  6930. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6931. $as_echo "$ac_try_echo") >&5
  6932. (eval "$ac_link") 2>conftest.er1
  6933. ac_status=$?
  6934. grep -v '^ *+' conftest.er1 >conftest.err
  6935. rm -f conftest.er1
  6936. cat conftest.err >&5
  6937. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6938. (exit $ac_status); } && {
  6939. test -z "$ac_c_werror_flag" ||
  6940. test ! -s conftest.err
  6941. } && test -s conftest$ac_exeext && {
  6942. test "$cross_compiling" = yes ||
  6943. $as_test_x conftest$ac_exeext
  6944. }; then
  6945. lt_cv_ld_exported_symbols_list=yes
  6946. else
  6947. $as_echo "$as_me: failed program was:" >&5
  6948. sed 's/^/| /' conftest.$ac_ext >&5
  6949. lt_cv_ld_exported_symbols_list=no
  6950. fi
  6951. rm -rf conftest.dSYM
  6952. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6953. conftest$ac_exeext conftest.$ac_ext
  6954. LDFLAGS="$save_LDFLAGS"
  6955. fi
  6956. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
  6957. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6958. case $host_os in
  6959. rhapsody* | darwin1.[0123])
  6960. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6961. darwin1.*)
  6962. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6963. darwin*)
  6964. # if running on 10.5 or later, the deployment target defaults
  6965. # to the OS version, if on x86, and 10.4, the deployment
  6966. # target defaults to 10.4. Don't you love it?
  6967. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6968. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6969. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6970. 10.[012]*)
  6971. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6972. 10.*)
  6973. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6974. esac
  6975. ;;
  6976. esac
  6977. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6978. _lt_dar_single_mod='$single_module'
  6979. fi
  6980. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6981. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6982. else
  6983. _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
  6984. fi
  6985. if test "$DSYMUTIL" != ":"; then
  6986. _lt_dsymutil="~$DSYMUTIL \$lib || :"
  6987. else
  6988. _lt_dsymutil=
  6989. fi
  6990. ;;
  6991. esac
  6992. enable_dlopen=no
  6993. enable_win32_dll=no
  6994. # Check whether --enable-libtool-lock was given.
  6995. if test "${enable_libtool_lock+set}" = set; then
  6996. enableval=$enable_libtool_lock;
  6997. fi
  6998. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6999. # Check whether --with-pic was given.
  7000. if test "${with_pic+set}" = set; then
  7001. withval=$with_pic; pic_mode="$withval"
  7002. else
  7003. pic_mode=default
  7004. fi
  7005. test -z "$pic_mode" && pic_mode=default
  7006. # Use C for the default configuration in the libtool script
  7007. tagname=
  7008. lt_save_CC="$CC"
  7009. ac_ext=c
  7010. ac_cpp='$CPP $CPPFLAGS'
  7011. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7012. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7013. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7014. # Source file extension for C test sources.
  7015. ac_ext=c
  7016. # Object file extension for compiled C test sources.
  7017. objext=o
  7018. objext=$objext
  7019. # Code to be used in simple compile tests
  7020. lt_simple_compile_test_code="int some_variable = 0;"
  7021. # Code to be used in simple link tests
  7022. lt_simple_link_test_code='int main(){return(0);}'
  7023. # If no C compiler was specified, use CC.
  7024. LTCC=${LTCC-"$CC"}
  7025. # If no C compiler flags were specified, use CFLAGS.
  7026. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7027. # Allow CC to be a program name with arguments.
  7028. compiler=$CC
  7029. # save warnings/boilerplate of simple test code
  7030. ac_outfile=conftest.$ac_objext
  7031. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7032. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7033. _lt_compiler_boilerplate=`cat conftest.err`
  7034. $rm conftest*
  7035. ac_outfile=conftest.$ac_objext
  7036. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7037. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7038. _lt_linker_boilerplate=`cat conftest.err`
  7039. $rm -r conftest*
  7040. lt_prog_compiler_no_builtin_flag=
  7041. if test "$GCC" = yes; then
  7042. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  7043. { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7044. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7045. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  7046. $as_echo_n "(cached) " >&6
  7047. else
  7048. lt_cv_prog_compiler_rtti_exceptions=no
  7049. ac_outfile=conftest.$ac_objext
  7050. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7051. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7052. # Insert the option either (1) after the last *FLAGS variable, or
  7053. # (2) before a word containing "conftest.", or (3) at the end.
  7054. # Note that $ac_compile itself does not contain backslashes and begins
  7055. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7056. # The option is referenced via a variable to avoid confusing sed.
  7057. lt_compile=`echo "$ac_compile" | $SED \
  7058. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7059. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7060. -e 's:$: $lt_compiler_flag:'`
  7061. (eval echo "\"\$as_me:7844: $lt_compile\"" >&5)
  7062. (eval "$lt_compile" 2>conftest.err)
  7063. ac_status=$?
  7064. cat conftest.err >&5
  7065. echo "$as_me:7848: \$? = $ac_status" >&5
  7066. if (exit $ac_status) && test -s "$ac_outfile"; then
  7067. # The compiler can only warn and ignore the option if not recognized
  7068. # So say no if there are warnings other than the usual output.
  7069. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7070. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7071. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7072. lt_cv_prog_compiler_rtti_exceptions=yes
  7073. fi
  7074. fi
  7075. $rm conftest*
  7076. fi
  7077. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7078. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7079. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7080. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7081. else
  7082. :
  7083. fi
  7084. fi
  7085. lt_prog_compiler_wl=
  7086. lt_prog_compiler_pic=
  7087. lt_prog_compiler_static=
  7088. { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  7089. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7090. if test "$GCC" = yes; then
  7091. lt_prog_compiler_wl='-Wl,'
  7092. lt_prog_compiler_static='-static'
  7093. case $host_os in
  7094. aix*)
  7095. # All AIX code is PIC.
  7096. if test "$host_cpu" = ia64; then
  7097. # AIX 5 now supports IA64 processor
  7098. lt_prog_compiler_static='-Bstatic'
  7099. fi
  7100. ;;
  7101. amigaos*)
  7102. # FIXME: we need at least 68020 code to build shared libraries, but
  7103. # adding the `-m68020' flag to GCC prevents building anything better,
  7104. # like `-m68040'.
  7105. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7106. ;;
  7107. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7108. # PIC is the default for these OSes.
  7109. ;;
  7110. mingw* | cygwin* | pw32* | os2*)
  7111. # This hack is so that the source file can tell whether it is being
  7112. # built for inclusion in a dll (and should export symbols for example).
  7113. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7114. # (--disable-auto-import) libraries
  7115. lt_prog_compiler_pic='-DDLL_EXPORT'
  7116. ;;
  7117. darwin* | rhapsody*)
  7118. # PIC is the default on this platform
  7119. # Common symbols not allowed in MH_DYLIB files
  7120. lt_prog_compiler_pic='-fno-common'
  7121. ;;
  7122. interix[3-9]*)
  7123. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7124. # Instead, we relocate shared libraries at runtime.
  7125. ;;
  7126. msdosdjgpp*)
  7127. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7128. # on systems that don't support them.
  7129. lt_prog_compiler_can_build_shared=no
  7130. enable_shared=no
  7131. ;;
  7132. sysv4*MP*)
  7133. if test -d /usr/nec; then
  7134. lt_prog_compiler_pic=-Kconform_pic
  7135. fi
  7136. ;;
  7137. hpux*)
  7138. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7139. # not for PA HP-UX.
  7140. case $host_cpu in
  7141. hppa*64*|ia64*)
  7142. # +Z the default
  7143. ;;
  7144. *)
  7145. lt_prog_compiler_pic='-fPIC'
  7146. ;;
  7147. esac
  7148. ;;
  7149. *)
  7150. lt_prog_compiler_pic='-fPIC'
  7151. ;;
  7152. esac
  7153. else
  7154. # PORTME Check for flag to pass linker flags through the system compiler.
  7155. case $host_os in
  7156. aix*)
  7157. lt_prog_compiler_wl='-Wl,'
  7158. if test "$host_cpu" = ia64; then
  7159. # AIX 5 now supports IA64 processor
  7160. lt_prog_compiler_static='-Bstatic'
  7161. else
  7162. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7163. fi
  7164. ;;
  7165. darwin*)
  7166. # PIC is the default on this platform
  7167. # Common symbols not allowed in MH_DYLIB files
  7168. case $cc_basename in
  7169. xlc*)
  7170. lt_prog_compiler_pic='-qnocommon'
  7171. lt_prog_compiler_wl='-Wl,'
  7172. ;;
  7173. esac
  7174. ;;
  7175. mingw* | cygwin* | pw32* | os2*)
  7176. # This hack is so that the source file can tell whether it is being
  7177. # built for inclusion in a dll (and should export symbols for example).
  7178. lt_prog_compiler_pic='-DDLL_EXPORT'
  7179. ;;
  7180. hpux9* | hpux10* | hpux11*)
  7181. lt_prog_compiler_wl='-Wl,'
  7182. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7183. # not for PA HP-UX.
  7184. case $host_cpu in
  7185. hppa*64*|ia64*)
  7186. # +Z the default
  7187. ;;
  7188. *)
  7189. lt_prog_compiler_pic='+Z'
  7190. ;;
  7191. esac
  7192. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7193. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7194. ;;
  7195. irix5* | irix6* | nonstopux*)
  7196. lt_prog_compiler_wl='-Wl,'
  7197. # PIC (with -KPIC) is the default.
  7198. lt_prog_compiler_static='-non_shared'
  7199. ;;
  7200. newsos6)
  7201. lt_prog_compiler_pic='-KPIC'
  7202. lt_prog_compiler_static='-Bstatic'
  7203. ;;
  7204. linux* | k*bsd*-gnu)
  7205. case $cc_basename in
  7206. icc* | ecc*)
  7207. lt_prog_compiler_wl='-Wl,'
  7208. lt_prog_compiler_pic='-KPIC'
  7209. lt_prog_compiler_static='-static'
  7210. ;;
  7211. pgcc* | pgf77* | pgf90* | pgf95*)
  7212. # Portland Group compilers (*not* the Pentium gcc compiler,
  7213. # which looks to be a dead project)
  7214. lt_prog_compiler_wl='-Wl,'
  7215. lt_prog_compiler_pic='-fpic'
  7216. lt_prog_compiler_static='-Bstatic'
  7217. ;;
  7218. ccc*)
  7219. lt_prog_compiler_wl='-Wl,'
  7220. # All Alpha code is PIC.
  7221. lt_prog_compiler_static='-non_shared'
  7222. ;;
  7223. *)
  7224. case `$CC -V 2>&1 | sed 5q` in
  7225. *Sun\ C*)
  7226. # Sun C 5.9
  7227. lt_prog_compiler_pic='-KPIC'
  7228. lt_prog_compiler_static='-Bstatic'
  7229. lt_prog_compiler_wl='-Wl,'
  7230. ;;
  7231. *Sun\ F*)
  7232. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7233. lt_prog_compiler_pic='-KPIC'
  7234. lt_prog_compiler_static='-Bstatic'
  7235. lt_prog_compiler_wl=''
  7236. ;;
  7237. esac
  7238. ;;
  7239. esac
  7240. ;;
  7241. osf3* | osf4* | osf5*)
  7242. lt_prog_compiler_wl='-Wl,'
  7243. # All OSF/1 code is PIC.
  7244. lt_prog_compiler_static='-non_shared'
  7245. ;;
  7246. rdos*)
  7247. lt_prog_compiler_static='-non_shared'
  7248. ;;
  7249. solaris*)
  7250. lt_prog_compiler_pic='-KPIC'
  7251. lt_prog_compiler_static='-Bstatic'
  7252. case $cc_basename in
  7253. f77* | f90* | f95*)
  7254. lt_prog_compiler_wl='-Qoption ld ';;
  7255. *)
  7256. lt_prog_compiler_wl='-Wl,';;
  7257. esac
  7258. ;;
  7259. sunos4*)
  7260. lt_prog_compiler_wl='-Qoption ld '
  7261. lt_prog_compiler_pic='-PIC'
  7262. lt_prog_compiler_static='-Bstatic'
  7263. ;;
  7264. sysv4 | sysv4.2uw2* | sysv4.3*)
  7265. lt_prog_compiler_wl='-Wl,'
  7266. lt_prog_compiler_pic='-KPIC'
  7267. lt_prog_compiler_static='-Bstatic'
  7268. ;;
  7269. sysv4*MP*)
  7270. if test -d /usr/nec ;then
  7271. lt_prog_compiler_pic='-Kconform_pic'
  7272. lt_prog_compiler_static='-Bstatic'
  7273. fi
  7274. ;;
  7275. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7276. lt_prog_compiler_wl='-Wl,'
  7277. lt_prog_compiler_pic='-KPIC'
  7278. lt_prog_compiler_static='-Bstatic'
  7279. ;;
  7280. unicos*)
  7281. lt_prog_compiler_wl='-Wl,'
  7282. lt_prog_compiler_can_build_shared=no
  7283. ;;
  7284. uts4*)
  7285. lt_prog_compiler_pic='-pic'
  7286. lt_prog_compiler_static='-Bstatic'
  7287. ;;
  7288. *)
  7289. lt_prog_compiler_can_build_shared=no
  7290. ;;
  7291. esac
  7292. fi
  7293. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  7294. $as_echo "$lt_prog_compiler_pic" >&6; }
  7295. #
  7296. # Check to make sure the PIC flag actually works.
  7297. #
  7298. if test -n "$lt_prog_compiler_pic"; then
  7299. { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7300. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7301. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
  7302. $as_echo_n "(cached) " >&6
  7303. else
  7304. lt_cv_prog_compiler_pic_works=no
  7305. ac_outfile=conftest.$ac_objext
  7306. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7307. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7308. # Insert the option either (1) after the last *FLAGS variable, or
  7309. # (2) before a word containing "conftest.", or (3) at the end.
  7310. # Note that $ac_compile itself does not contain backslashes and begins
  7311. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7312. # The option is referenced via a variable to avoid confusing sed.
  7313. lt_compile=`echo "$ac_compile" | $SED \
  7314. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7315. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7316. -e 's:$: $lt_compiler_flag:'`
  7317. (eval echo "\"\$as_me:8134: $lt_compile\"" >&5)
  7318. (eval "$lt_compile" 2>conftest.err)
  7319. ac_status=$?
  7320. cat conftest.err >&5
  7321. echo "$as_me:8138: \$? = $ac_status" >&5
  7322. if (exit $ac_status) && test -s "$ac_outfile"; then
  7323. # The compiler can only warn and ignore the option if not recognized
  7324. # So say no if there are warnings other than the usual output.
  7325. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7326. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7327. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7328. lt_cv_prog_compiler_pic_works=yes
  7329. fi
  7330. fi
  7331. $rm conftest*
  7332. fi
  7333. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
  7334. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7335. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7336. case $lt_prog_compiler_pic in
  7337. "" | " "*) ;;
  7338. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7339. esac
  7340. else
  7341. lt_prog_compiler_pic=
  7342. lt_prog_compiler_can_build_shared=no
  7343. fi
  7344. fi
  7345. case $host_os in
  7346. # For platforms which do not support PIC, -DPIC is meaningless:
  7347. *djgpp*)
  7348. lt_prog_compiler_pic=
  7349. ;;
  7350. *)
  7351. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7352. ;;
  7353. esac
  7354. #
  7355. # Check to make sure the static flag actually works.
  7356. #
  7357. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7358. { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7359. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7360. if test "${lt_cv_prog_compiler_static_works+set}" = set; then
  7361. $as_echo_n "(cached) " >&6
  7362. else
  7363. lt_cv_prog_compiler_static_works=no
  7364. save_LDFLAGS="$LDFLAGS"
  7365. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7366. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7367. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7368. # The linker can only warn and ignore the option if not recognized
  7369. # So say no if there are warnings
  7370. if test -s conftest.err; then
  7371. # Append any errors to the config.log.
  7372. cat conftest.err 1>&5
  7373. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  7374. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7375. if diff conftest.exp conftest.er2 >/dev/null; then
  7376. lt_cv_prog_compiler_static_works=yes
  7377. fi
  7378. else
  7379. lt_cv_prog_compiler_static_works=yes
  7380. fi
  7381. fi
  7382. $rm -r conftest*
  7383. LDFLAGS="$save_LDFLAGS"
  7384. fi
  7385. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
  7386. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7387. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7388. :
  7389. else
  7390. lt_prog_compiler_static=
  7391. fi
  7392. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  7393. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7394. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  7395. $as_echo_n "(cached) " >&6
  7396. else
  7397. lt_cv_prog_compiler_c_o=no
  7398. $rm -r conftest 2>/dev/null
  7399. mkdir conftest
  7400. cd conftest
  7401. mkdir out
  7402. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7403. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7404. # Insert the option either (1) after the last *FLAGS variable, or
  7405. # (2) before a word containing "conftest.", or (3) at the end.
  7406. # Note that $ac_compile itself does not contain backslashes and begins
  7407. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7408. lt_compile=`echo "$ac_compile" | $SED \
  7409. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7410. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7411. -e 's:$: $lt_compiler_flag:'`
  7412. (eval echo "\"\$as_me:8238: $lt_compile\"" >&5)
  7413. (eval "$lt_compile" 2>out/conftest.err)
  7414. ac_status=$?
  7415. cat out/conftest.err >&5
  7416. echo "$as_me:8242: \$? = $ac_status" >&5
  7417. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7418. then
  7419. # The compiler can only warn and ignore the option if not recognized
  7420. # So say no if there are warnings
  7421. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7422. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7423. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7424. lt_cv_prog_compiler_c_o=yes
  7425. fi
  7426. fi
  7427. chmod u+w . 2>&5
  7428. $rm conftest*
  7429. # SGI C++ compiler will create directory out/ii_files/ for
  7430. # template instantiation
  7431. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  7432. $rm out/* && rmdir out
  7433. cd ..
  7434. rmdir conftest
  7435. $rm conftest*
  7436. fi
  7437. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  7438. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7439. hard_links="nottested"
  7440. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7441. # do not overwrite the value of need_locks provided by the user
  7442. { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  7443. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7444. hard_links=yes
  7445. $rm conftest*
  7446. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7447. touch conftest.a
  7448. ln conftest.a conftest.b 2>&5 || hard_links=no
  7449. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7450. { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  7451. $as_echo "$hard_links" >&6; }
  7452. if test "$hard_links" = no; then
  7453. { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7454. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7455. need_locks=warn
  7456. fi
  7457. else
  7458. need_locks=no
  7459. fi
  7460. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7461. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7462. runpath_var=
  7463. allow_undefined_flag=
  7464. enable_shared_with_static_runtimes=no
  7465. archive_cmds=
  7466. archive_expsym_cmds=
  7467. old_archive_From_new_cmds=
  7468. old_archive_from_expsyms_cmds=
  7469. export_dynamic_flag_spec=
  7470. whole_archive_flag_spec=
  7471. thread_safe_flag_spec=
  7472. hardcode_libdir_flag_spec=
  7473. hardcode_libdir_flag_spec_ld=
  7474. hardcode_libdir_separator=
  7475. hardcode_direct=no
  7476. hardcode_minus_L=no
  7477. hardcode_shlibpath_var=unsupported
  7478. link_all_deplibs=unknown
  7479. hardcode_automatic=no
  7480. module_cmds=
  7481. module_expsym_cmds=
  7482. always_export_symbols=no
  7483. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7484. # include_expsyms should be a list of space-separated symbols to be *always*
  7485. # included in the symbol list
  7486. include_expsyms=
  7487. # exclude_expsyms can be an extended regexp of symbols to exclude
  7488. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7489. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7490. # as well as any symbol that contains `d'.
  7491. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7492. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7493. # platforms (ab)use it in PIC code, but their linkers get confused if
  7494. # the symbol is explicitly referenced. Since portable code cannot
  7495. # rely on this symbol name, it's probably fine to never include it in
  7496. # preloaded symbol tables.
  7497. # Exclude shared library initialization/finalization symbols.
  7498. extract_expsyms_cmds=
  7499. # Just being paranoid about ensuring that cc_basename is set.
  7500. for cc_temp in $compiler""; do
  7501. case $cc_temp in
  7502. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7503. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7504. \-*) ;;
  7505. *) break;;
  7506. esac
  7507. done
  7508. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  7509. case $host_os in
  7510. cygwin* | mingw* | pw32*)
  7511. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7512. # When not using gcc, we currently assume that we are using
  7513. # Microsoft Visual C++.
  7514. if test "$GCC" != yes; then
  7515. with_gnu_ld=no
  7516. fi
  7517. ;;
  7518. interix*)
  7519. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7520. with_gnu_ld=yes
  7521. ;;
  7522. openbsd*)
  7523. with_gnu_ld=no
  7524. ;;
  7525. esac
  7526. ld_shlibs=yes
  7527. if test "$with_gnu_ld" = yes; then
  7528. # If archive_cmds runs LD, not CC, wlarc should be empty
  7529. wlarc='${wl}'
  7530. # Set some defaults for GNU ld with shared library support. These
  7531. # are reset later if shared libraries are not supported. Putting them
  7532. # here allows them to be overridden if necessary.
  7533. runpath_var=LD_RUN_PATH
  7534. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  7535. export_dynamic_flag_spec='${wl}--export-dynamic'
  7536. # ancient GNU ld didn't support --whole-archive et. al.
  7537. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  7538. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7539. else
  7540. whole_archive_flag_spec=
  7541. fi
  7542. supports_anon_versioning=no
  7543. case `$LD -v 2>/dev/null` in
  7544. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7545. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7546. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7547. *\ 2.11.*) ;; # other 2.11 versions
  7548. *) supports_anon_versioning=yes ;;
  7549. esac
  7550. # See if GNU ld supports shared libraries.
  7551. case $host_os in
  7552. aix[3-9]*)
  7553. # On AIX/PPC, the GNU linker is very broken
  7554. if test "$host_cpu" != ia64; then
  7555. ld_shlibs=no
  7556. cat <<EOF 1>&2
  7557. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7558. *** to be unable to reliably create shared libraries on AIX.
  7559. *** Therefore, libtool is disabling shared libraries support. If you
  7560. *** really care for shared libraries, you may want to modify your PATH
  7561. *** so that a non-GNU linker is found, and then restart.
  7562. EOF
  7563. fi
  7564. ;;
  7565. amigaos*)
  7566. 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)'
  7567. hardcode_libdir_flag_spec='-L$libdir'
  7568. hardcode_minus_L=yes
  7569. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  7570. # that the semantics of dynamic libraries on AmigaOS, at least up
  7571. # to version 4, is to share data among multiple programs linked
  7572. # with the same dynamic library. Since this doesn't match the
  7573. # behavior of shared libraries on other platforms, we can't use
  7574. # them.
  7575. ld_shlibs=no
  7576. ;;
  7577. beos*)
  7578. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7579. allow_undefined_flag=unsupported
  7580. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7581. # support --undefined. This deserves some investigation. FIXME
  7582. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7583. else
  7584. ld_shlibs=no
  7585. fi
  7586. ;;
  7587. cygwin* | mingw* | pw32*)
  7588. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7589. # as there is no search path for DLLs.
  7590. hardcode_libdir_flag_spec='-L$libdir'
  7591. allow_undefined_flag=unsupported
  7592. always_export_symbols=no
  7593. enable_shared_with_static_runtimes=yes
  7594. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7595. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  7596. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7597. # If the export-symbols file already is a .def file (1st line
  7598. # is EXPORTS), use it as is; otherwise, prepend...
  7599. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7600. cp $export_symbols $output_objdir/$soname.def;
  7601. else
  7602. echo EXPORTS > $output_objdir/$soname.def;
  7603. cat $export_symbols >> $output_objdir/$soname.def;
  7604. fi~
  7605. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7606. else
  7607. ld_shlibs=no
  7608. fi
  7609. ;;
  7610. interix[3-9]*)
  7611. hardcode_direct=no
  7612. hardcode_shlibpath_var=no
  7613. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7614. export_dynamic_flag_spec='${wl}-E'
  7615. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7616. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7617. # default) and relocated if they conflict, which is a slow very memory
  7618. # consuming and fragmenting process. To avoid this, we pick a random,
  7619. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7620. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7621. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7622. 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'
  7623. ;;
  7624. gnu* | linux* | k*bsd*-gnu)
  7625. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7626. tmp_addflag=
  7627. case $cc_basename,$host_cpu in
  7628. pgcc*) # Portland Group C compiler
  7629. 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'
  7630. tmp_addflag=' $pic_flag'
  7631. ;;
  7632. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  7633. 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'
  7634. tmp_addflag=' $pic_flag -Mnomain' ;;
  7635. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7636. tmp_addflag=' -i_dynamic' ;;
  7637. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7638. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7639. ifc* | ifort*) # Intel Fortran compiler
  7640. tmp_addflag=' -nofor_main' ;;
  7641. esac
  7642. case `$CC -V 2>&1 | sed 5q` in
  7643. *Sun\ C*) # Sun C 5.9
  7644. 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'
  7645. tmp_sharedflag='-G' ;;
  7646. *Sun\ F*) # Sun Fortran 8.3
  7647. tmp_sharedflag='-G' ;;
  7648. *)
  7649. tmp_sharedflag='-shared' ;;
  7650. esac
  7651. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7652. if test $supports_anon_versioning = yes; then
  7653. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  7654. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7655. $echo "local: *; };" >> $output_objdir/$libname.ver~
  7656. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7657. fi
  7658. else
  7659. ld_shlibs=no
  7660. fi
  7661. ;;
  7662. netbsd*)
  7663. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7664. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7665. wlarc=
  7666. else
  7667. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7668. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7669. fi
  7670. ;;
  7671. solaris*)
  7672. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  7673. ld_shlibs=no
  7674. cat <<EOF 1>&2
  7675. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7676. *** create shared libraries on Solaris systems. Therefore, libtool
  7677. *** is disabling shared libraries support. We urge you to upgrade GNU
  7678. *** binutils to release 2.9.1 or newer. Another option is to modify
  7679. *** your PATH or compiler configuration so that the native linker is
  7680. *** used, and then restart.
  7681. EOF
  7682. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7683. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7684. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7685. else
  7686. ld_shlibs=no
  7687. fi
  7688. ;;
  7689. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7690. case `$LD -v 2>&1` in
  7691. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7692. ld_shlibs=no
  7693. cat <<_LT_EOF 1>&2
  7694. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7695. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7696. *** is disabling shared libraries support. We urge you to upgrade GNU
  7697. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7698. *** your PATH or compiler configuration so that the native linker is
  7699. *** used, and then restart.
  7700. _LT_EOF
  7701. ;;
  7702. *)
  7703. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7704. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  7705. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  7706. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  7707. else
  7708. ld_shlibs=no
  7709. fi
  7710. ;;
  7711. esac
  7712. ;;
  7713. sunos4*)
  7714. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7715. wlarc=
  7716. hardcode_direct=yes
  7717. hardcode_shlibpath_var=no
  7718. ;;
  7719. *)
  7720. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7721. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7722. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7723. else
  7724. ld_shlibs=no
  7725. fi
  7726. ;;
  7727. esac
  7728. if test "$ld_shlibs" = no; then
  7729. runpath_var=
  7730. hardcode_libdir_flag_spec=
  7731. export_dynamic_flag_spec=
  7732. whole_archive_flag_spec=
  7733. fi
  7734. else
  7735. # PORTME fill in a description of your system's linker (not GNU ld)
  7736. case $host_os in
  7737. aix3*)
  7738. allow_undefined_flag=unsupported
  7739. always_export_symbols=yes
  7740. 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'
  7741. # Note: this linker hardcodes the directories in LIBPATH if there
  7742. # are no directories specified by -L.
  7743. hardcode_minus_L=yes
  7744. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7745. # Neither direct hardcoding nor static linking is supported with a
  7746. # broken collect2.
  7747. hardcode_direct=unsupported
  7748. fi
  7749. ;;
  7750. aix[4-9]*)
  7751. if test "$host_cpu" = ia64; then
  7752. # On IA64, the linker does run time linking by default, so we don't
  7753. # have to do anything special.
  7754. aix_use_runtimelinking=no
  7755. exp_sym_flag='-Bexport'
  7756. no_entry_flag=""
  7757. else
  7758. # If we're using GNU nm, then we don't want the "-C" option.
  7759. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7760. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  7761. 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'
  7762. else
  7763. 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'
  7764. fi
  7765. aix_use_runtimelinking=no
  7766. # Test if we are trying to use run time linking or normal
  7767. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7768. # need to do runtime linking.
  7769. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7770. for ld_flag in $LDFLAGS; do
  7771. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7772. aix_use_runtimelinking=yes
  7773. break
  7774. fi
  7775. done
  7776. ;;
  7777. esac
  7778. exp_sym_flag='-bexport'
  7779. no_entry_flag='-bnoentry'
  7780. fi
  7781. # When large executables or shared objects are built, AIX ld can
  7782. # have problems creating the table of contents. If linking a library
  7783. # or program results in "error TOC overflow" add -mminimal-toc to
  7784. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7785. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7786. archive_cmds=''
  7787. hardcode_direct=yes
  7788. hardcode_libdir_separator=':'
  7789. link_all_deplibs=yes
  7790. if test "$GCC" = yes; then
  7791. case $host_os in aix4.[012]|aix4.[012].*)
  7792. # We only want to do this on AIX 4.2 and lower, the check
  7793. # below for broken collect2 doesn't work under 4.3+
  7794. collect2name=`${CC} -print-prog-name=collect2`
  7795. if test -f "$collect2name" && \
  7796. strings "$collect2name" | grep resolve_lib_name >/dev/null
  7797. then
  7798. # We have reworked collect2
  7799. :
  7800. else
  7801. # We have old collect2
  7802. hardcode_direct=unsupported
  7803. # It fails to find uninstalled libraries when the uninstalled
  7804. # path is not listed in the libpath. Setting hardcode_minus_L
  7805. # to unsupported forces relinking
  7806. hardcode_minus_L=yes
  7807. hardcode_libdir_flag_spec='-L$libdir'
  7808. hardcode_libdir_separator=
  7809. fi
  7810. ;;
  7811. esac
  7812. shared_flag='-shared'
  7813. if test "$aix_use_runtimelinking" = yes; then
  7814. shared_flag="$shared_flag "'${wl}-G'
  7815. fi
  7816. else
  7817. # not using gcc
  7818. if test "$host_cpu" = ia64; then
  7819. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7820. # chokes on -Wl,-G. The following line is correct:
  7821. shared_flag='-G'
  7822. else
  7823. if test "$aix_use_runtimelinking" = yes; then
  7824. shared_flag='${wl}-G'
  7825. else
  7826. shared_flag='${wl}-bM:SRE'
  7827. fi
  7828. fi
  7829. fi
  7830. # It seems that -bexpall does not export symbols beginning with
  7831. # underscore (_), so it is better to generate a list of symbols to export.
  7832. always_export_symbols=yes
  7833. if test "$aix_use_runtimelinking" = yes; then
  7834. # Warning - without using the other runtime loading flags (-brtl),
  7835. # -berok will link without error, but may produce a broken library.
  7836. allow_undefined_flag='-berok'
  7837. # Determine the default libpath from the value encoded in an empty executable.
  7838. cat >conftest.$ac_ext <<_ACEOF
  7839. /* confdefs.h. */
  7840. _ACEOF
  7841. cat confdefs.h >>conftest.$ac_ext
  7842. cat >>conftest.$ac_ext <<_ACEOF
  7843. /* end confdefs.h. */
  7844. int
  7845. main ()
  7846. {
  7847. ;
  7848. return 0;
  7849. }
  7850. _ACEOF
  7851. rm -f conftest.$ac_objext conftest$ac_exeext
  7852. if { (ac_try="$ac_link"
  7853. case "(($ac_try" in
  7854. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7855. *) ac_try_echo=$ac_try;;
  7856. esac
  7857. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7858. $as_echo "$ac_try_echo") >&5
  7859. (eval "$ac_link") 2>conftest.er1
  7860. ac_status=$?
  7861. grep -v '^ *+' conftest.er1 >conftest.err
  7862. rm -f conftest.er1
  7863. cat conftest.err >&5
  7864. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7865. (exit $ac_status); } && {
  7866. test -z "$ac_c_werror_flag" ||
  7867. test ! -s conftest.err
  7868. } && test -s conftest$ac_exeext && {
  7869. test "$cross_compiling" = yes ||
  7870. $as_test_x conftest$ac_exeext
  7871. }; then
  7872. lt_aix_libpath_sed='
  7873. /Import File Strings/,/^$/ {
  7874. /^0/ {
  7875. s/^0 *\(.*\)$/\1/
  7876. p
  7877. }
  7878. }'
  7879. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7880. # Check for a 64-bit object if we didn't find anything.
  7881. if test -z "$aix_libpath"; then
  7882. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7883. fi
  7884. else
  7885. $as_echo "$as_me: failed program was:" >&5
  7886. sed 's/^/| /' conftest.$ac_ext >&5
  7887. fi
  7888. rm -rf conftest.dSYM
  7889. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7890. conftest$ac_exeext conftest.$ac_ext
  7891. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7892. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7893. 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"
  7894. else
  7895. if test "$host_cpu" = ia64; then
  7896. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7897. allow_undefined_flag="-z nodefs"
  7898. 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"
  7899. else
  7900. # Determine the default libpath from the value encoded in an empty executable.
  7901. cat >conftest.$ac_ext <<_ACEOF
  7902. /* confdefs.h. */
  7903. _ACEOF
  7904. cat confdefs.h >>conftest.$ac_ext
  7905. cat >>conftest.$ac_ext <<_ACEOF
  7906. /* end confdefs.h. */
  7907. int
  7908. main ()
  7909. {
  7910. ;
  7911. return 0;
  7912. }
  7913. _ACEOF
  7914. rm -f conftest.$ac_objext conftest$ac_exeext
  7915. if { (ac_try="$ac_link"
  7916. case "(($ac_try" in
  7917. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7918. *) ac_try_echo=$ac_try;;
  7919. esac
  7920. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7921. $as_echo "$ac_try_echo") >&5
  7922. (eval "$ac_link") 2>conftest.er1
  7923. ac_status=$?
  7924. grep -v '^ *+' conftest.er1 >conftest.err
  7925. rm -f conftest.er1
  7926. cat conftest.err >&5
  7927. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7928. (exit $ac_status); } && {
  7929. test -z "$ac_c_werror_flag" ||
  7930. test ! -s conftest.err
  7931. } && test -s conftest$ac_exeext && {
  7932. test "$cross_compiling" = yes ||
  7933. $as_test_x conftest$ac_exeext
  7934. }; then
  7935. lt_aix_libpath_sed='
  7936. /Import File Strings/,/^$/ {
  7937. /^0/ {
  7938. s/^0 *\(.*\)$/\1/
  7939. p
  7940. }
  7941. }'
  7942. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7943. # Check for a 64-bit object if we didn't find anything.
  7944. if test -z "$aix_libpath"; then
  7945. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7946. fi
  7947. else
  7948. $as_echo "$as_me: failed program was:" >&5
  7949. sed 's/^/| /' conftest.$ac_ext >&5
  7950. fi
  7951. rm -rf conftest.dSYM
  7952. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7953. conftest$ac_exeext conftest.$ac_ext
  7954. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7955. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7956. # Warning - without using the other run time loading flags,
  7957. # -berok will link without error, but may produce a broken library.
  7958. no_undefined_flag=' ${wl}-bernotok'
  7959. allow_undefined_flag=' ${wl}-berok'
  7960. # Exported symbols can be pulled into shared objects from archives
  7961. whole_archive_flag_spec='$convenience'
  7962. archive_cmds_need_lc=yes
  7963. # This is similar to how AIX traditionally builds its shared libraries.
  7964. 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'
  7965. fi
  7966. fi
  7967. ;;
  7968. amigaos*)
  7969. 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)'
  7970. hardcode_libdir_flag_spec='-L$libdir'
  7971. hardcode_minus_L=yes
  7972. # see comment about different semantics on the GNU ld section
  7973. ld_shlibs=no
  7974. ;;
  7975. bsdi[45]*)
  7976. export_dynamic_flag_spec=-rdynamic
  7977. ;;
  7978. cygwin* | mingw* | pw32*)
  7979. # When not using gcc, we currently assume that we are using
  7980. # Microsoft Visual C++.
  7981. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7982. # no search path for DLLs.
  7983. hardcode_libdir_flag_spec=' '
  7984. allow_undefined_flag=unsupported
  7985. # Tell ltmain to make .lib files, not .a files.
  7986. libext=lib
  7987. # Tell ltmain to make .dll files, not .so files.
  7988. shrext_cmds=".dll"
  7989. # FIXME: Setting linknames here is a bad hack.
  7990. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7991. # The linker will automatically build a .lib file if we build a DLL.
  7992. old_archive_From_new_cmds='true'
  7993. # FIXME: Should let the user specify the lib program.
  7994. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7995. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7996. enable_shared_with_static_runtimes=yes
  7997. ;;
  7998. darwin* | rhapsody*)
  7999. allow_undefined_flag="$_lt_dar_allow_undefined"
  8000. archive_cmds_need_lc=no
  8001. hardcode_direct=no
  8002. hardcode_automatic=yes
  8003. hardcode_shlibpath_var=unsupported
  8004. whole_archive_flag_spec=''
  8005. link_all_deplibs=yes
  8006. if test "$GCC" = yes ; then
  8007. output_verbose_link_cmd='echo'
  8008. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8009. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8010. archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  8011. module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  8012. else
  8013. case $cc_basename in
  8014. xlc*)
  8015. output_verbose_link_cmd='echo'
  8016. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  8017. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  8018. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  8019. 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}'
  8020. 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}'
  8021. ;;
  8022. *)
  8023. ld_shlibs=no
  8024. ;;
  8025. esac
  8026. fi
  8027. ;;
  8028. dgux*)
  8029. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8030. hardcode_libdir_flag_spec='-L$libdir'
  8031. hardcode_shlibpath_var=no
  8032. ;;
  8033. freebsd1*)
  8034. ld_shlibs=no
  8035. ;;
  8036. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8037. # support. Future versions do this automatically, but an explicit c++rt0.o
  8038. # does not break anything, and helps significantly (at the cost of a little
  8039. # extra space).
  8040. freebsd2.2*)
  8041. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8042. hardcode_libdir_flag_spec='-R$libdir'
  8043. hardcode_direct=yes
  8044. hardcode_shlibpath_var=no
  8045. ;;
  8046. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8047. freebsd2*)
  8048. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8049. hardcode_direct=yes
  8050. hardcode_minus_L=yes
  8051. hardcode_shlibpath_var=no
  8052. ;;
  8053. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8054. freebsd* | dragonfly*)
  8055. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8056. hardcode_libdir_flag_spec='-R$libdir'
  8057. hardcode_direct=yes
  8058. hardcode_shlibpath_var=no
  8059. ;;
  8060. hpux9*)
  8061. if test "$GCC" = yes; then
  8062. 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'
  8063. else
  8064. 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'
  8065. fi
  8066. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8067. hardcode_libdir_separator=:
  8068. hardcode_direct=yes
  8069. # hardcode_minus_L: Not really in the search PATH,
  8070. # but as the default location of the library.
  8071. hardcode_minus_L=yes
  8072. export_dynamic_flag_spec='${wl}-E'
  8073. ;;
  8074. hpux10*)
  8075. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8076. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8077. else
  8078. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8079. fi
  8080. if test "$with_gnu_ld" = no; then
  8081. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8082. hardcode_libdir_separator=:
  8083. hardcode_direct=yes
  8084. export_dynamic_flag_spec='${wl}-E'
  8085. # hardcode_minus_L: Not really in the search PATH,
  8086. # but as the default location of the library.
  8087. hardcode_minus_L=yes
  8088. fi
  8089. ;;
  8090. hpux11*)
  8091. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8092. case $host_cpu in
  8093. hppa*64*)
  8094. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8095. ;;
  8096. ia64*)
  8097. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8098. ;;
  8099. *)
  8100. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8101. ;;
  8102. esac
  8103. else
  8104. case $host_cpu in
  8105. hppa*64*)
  8106. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8107. ;;
  8108. ia64*)
  8109. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8110. ;;
  8111. *)
  8112. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8113. ;;
  8114. esac
  8115. fi
  8116. if test "$with_gnu_ld" = no; then
  8117. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8118. hardcode_libdir_separator=:
  8119. case $host_cpu in
  8120. hppa*64*|ia64*)
  8121. hardcode_libdir_flag_spec_ld='+b $libdir'
  8122. hardcode_direct=no
  8123. hardcode_shlibpath_var=no
  8124. ;;
  8125. *)
  8126. hardcode_direct=yes
  8127. export_dynamic_flag_spec='${wl}-E'
  8128. # hardcode_minus_L: Not really in the search PATH,
  8129. # but as the default location of the library.
  8130. hardcode_minus_L=yes
  8131. ;;
  8132. esac
  8133. fi
  8134. ;;
  8135. irix5* | irix6* | nonstopux*)
  8136. if test "$GCC" = yes; then
  8137. 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'
  8138. else
  8139. 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'
  8140. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8141. fi
  8142. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8143. hardcode_libdir_separator=:
  8144. link_all_deplibs=yes
  8145. ;;
  8146. netbsd*)
  8147. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  8148. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8149. else
  8150. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8151. fi
  8152. hardcode_libdir_flag_spec='-R$libdir'
  8153. hardcode_direct=yes
  8154. hardcode_shlibpath_var=no
  8155. ;;
  8156. newsos6)
  8157. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8158. hardcode_direct=yes
  8159. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8160. hardcode_libdir_separator=:
  8161. hardcode_shlibpath_var=no
  8162. ;;
  8163. openbsd*)
  8164. if test -f /usr/libexec/ld.so; then
  8165. hardcode_direct=yes
  8166. hardcode_shlibpath_var=no
  8167. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8168. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8169. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8170. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8171. export_dynamic_flag_spec='${wl}-E'
  8172. else
  8173. case $host_os in
  8174. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8175. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8176. hardcode_libdir_flag_spec='-R$libdir'
  8177. ;;
  8178. *)
  8179. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8180. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8181. ;;
  8182. esac
  8183. fi
  8184. else
  8185. ld_shlibs=no
  8186. fi
  8187. ;;
  8188. os2*)
  8189. hardcode_libdir_flag_spec='-L$libdir'
  8190. hardcode_minus_L=yes
  8191. allow_undefined_flag=unsupported
  8192. 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'
  8193. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8194. ;;
  8195. osf3*)
  8196. if test "$GCC" = yes; then
  8197. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8198. 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'
  8199. else
  8200. allow_undefined_flag=' -expect_unresolved \*'
  8201. 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'
  8202. fi
  8203. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8204. hardcode_libdir_separator=:
  8205. ;;
  8206. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8207. if test "$GCC" = yes; then
  8208. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8209. 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'
  8210. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8211. else
  8212. allow_undefined_flag=' -expect_unresolved \*'
  8213. 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'
  8214. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  8215. $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'
  8216. # Both c and cxx compiler support -rpath directly
  8217. hardcode_libdir_flag_spec='-rpath $libdir'
  8218. fi
  8219. hardcode_libdir_separator=:
  8220. ;;
  8221. solaris*)
  8222. no_undefined_flag=' -z text'
  8223. if test "$GCC" = yes; then
  8224. wlarc='${wl}'
  8225. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8226. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  8227. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  8228. else
  8229. wlarc=''
  8230. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8231. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  8232. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  8233. fi
  8234. hardcode_libdir_flag_spec='-R$libdir'
  8235. hardcode_shlibpath_var=no
  8236. case $host_os in
  8237. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8238. *)
  8239. # The compiler driver will combine and reorder linker options,
  8240. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8241. # but is careful enough not to reorder.
  8242. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8243. if test "$GCC" = yes; then
  8244. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8245. else
  8246. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8247. fi
  8248. ;;
  8249. esac
  8250. link_all_deplibs=yes
  8251. ;;
  8252. sunos4*)
  8253. if test "x$host_vendor" = xsequent; then
  8254. # Use $CC to link under sequent, because it throws in some extra .o
  8255. # files that make .init and .fini sections work.
  8256. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8257. else
  8258. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8259. fi
  8260. hardcode_libdir_flag_spec='-L$libdir'
  8261. hardcode_direct=yes
  8262. hardcode_minus_L=yes
  8263. hardcode_shlibpath_var=no
  8264. ;;
  8265. sysv4)
  8266. case $host_vendor in
  8267. sni)
  8268. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8269. hardcode_direct=yes # is this really true???
  8270. ;;
  8271. siemens)
  8272. ## LD is ld it makes a PLAMLIB
  8273. ## CC just makes a GrossModule.
  8274. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8275. reload_cmds='$CC -r -o $output$reload_objs'
  8276. hardcode_direct=no
  8277. ;;
  8278. motorola)
  8279. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8280. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8281. ;;
  8282. esac
  8283. runpath_var='LD_RUN_PATH'
  8284. hardcode_shlibpath_var=no
  8285. ;;
  8286. sysv4.3*)
  8287. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8288. hardcode_shlibpath_var=no
  8289. export_dynamic_flag_spec='-Bexport'
  8290. ;;
  8291. sysv4*MP*)
  8292. if test -d /usr/nec; then
  8293. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8294. hardcode_shlibpath_var=no
  8295. runpath_var=LD_RUN_PATH
  8296. hardcode_runpath_var=yes
  8297. ld_shlibs=yes
  8298. fi
  8299. ;;
  8300. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8301. no_undefined_flag='${wl}-z,text'
  8302. archive_cmds_need_lc=no
  8303. hardcode_shlibpath_var=no
  8304. runpath_var='LD_RUN_PATH'
  8305. if test "$GCC" = yes; then
  8306. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8307. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8308. else
  8309. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8310. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8311. fi
  8312. ;;
  8313. sysv5* | sco3.2v5* | sco5v6*)
  8314. # Note: We can NOT use -z defs as we might desire, because we do not
  8315. # link with -lc, and that would cause any symbols used from libc to
  8316. # always be unresolved, which means just about no library would
  8317. # ever link correctly. If we're not using GNU ld we use -z text
  8318. # though, which does catch some bad symbols but isn't as heavy-handed
  8319. # as -z defs.
  8320. no_undefined_flag='${wl}-z,text'
  8321. allow_undefined_flag='${wl}-z,nodefs'
  8322. archive_cmds_need_lc=no
  8323. hardcode_shlibpath_var=no
  8324. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  8325. hardcode_libdir_separator=':'
  8326. link_all_deplibs=yes
  8327. export_dynamic_flag_spec='${wl}-Bexport'
  8328. runpath_var='LD_RUN_PATH'
  8329. if test "$GCC" = yes; then
  8330. archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8331. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8332. else
  8333. archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8334. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8335. fi
  8336. ;;
  8337. uts4*)
  8338. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8339. hardcode_libdir_flag_spec='-L$libdir'
  8340. hardcode_shlibpath_var=no
  8341. ;;
  8342. *)
  8343. ld_shlibs=no
  8344. ;;
  8345. esac
  8346. fi
  8347. { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  8348. $as_echo "$ld_shlibs" >&6; }
  8349. test "$ld_shlibs" = no && can_build_shared=no
  8350. #
  8351. # Do we need to explicitly link libc?
  8352. #
  8353. case "x$archive_cmds_need_lc" in
  8354. x|xyes)
  8355. # Assume -lc should be added
  8356. archive_cmds_need_lc=yes
  8357. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8358. case $archive_cmds in
  8359. *'~'*)
  8360. # FIXME: we may have to deal with multi-command sequences.
  8361. ;;
  8362. '$CC '*)
  8363. # Test whether the compiler implicitly links with -lc since on some
  8364. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8365. # to ld, don't add -lc before -lgcc.
  8366. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  8367. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8368. $rm conftest*
  8369. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8370. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8371. (eval $ac_compile) 2>&5
  8372. ac_status=$?
  8373. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8374. (exit $ac_status); } 2>conftest.err; then
  8375. soname=conftest
  8376. lib=conftest
  8377. libobjs=conftest.$ac_objext
  8378. deplibs=
  8379. wl=$lt_prog_compiler_wl
  8380. pic_flag=$lt_prog_compiler_pic
  8381. compiler_flags=-v
  8382. linker_flags=-v
  8383. verstring=
  8384. output_objdir=.
  8385. libname=conftest
  8386. lt_save_allow_undefined_flag=$allow_undefined_flag
  8387. allow_undefined_flag=
  8388. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  8389. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8390. ac_status=$?
  8391. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8392. (exit $ac_status); }
  8393. then
  8394. archive_cmds_need_lc=no
  8395. else
  8396. archive_cmds_need_lc=yes
  8397. fi
  8398. allow_undefined_flag=$lt_save_allow_undefined_flag
  8399. else
  8400. cat conftest.err 1>&5
  8401. fi
  8402. $rm conftest*
  8403. { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  8404. $as_echo "$archive_cmds_need_lc" >&6; }
  8405. ;;
  8406. esac
  8407. fi
  8408. ;;
  8409. esac
  8410. { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  8411. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8412. library_names_spec=
  8413. libname_spec='lib$name'
  8414. soname_spec=
  8415. shrext_cmds=".so"
  8416. postinstall_cmds=
  8417. postuninstall_cmds=
  8418. finish_cmds=
  8419. finish_eval=
  8420. shlibpath_var=
  8421. shlibpath_overrides_runpath=unknown
  8422. version_type=none
  8423. dynamic_linker="$host_os ld.so"
  8424. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8425. if test "$GCC" = yes; then
  8426. case $host_os in
  8427. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8428. *) lt_awk_arg="/^libraries:/" ;;
  8429. esac
  8430. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8431. if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
  8432. # if the path contains ";" then we assume it to be the separator
  8433. # otherwise default to the standard path separator (i.e. ":") - it is
  8434. # assumed that no part of a normal pathname contains ";" but that should
  8435. # okay in the real world where ";" in dirpaths is itself problematic.
  8436. lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  8437. else
  8438. lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8439. fi
  8440. # Ok, now we have the path, separated by spaces, we can step through it
  8441. # and add multilib dir if necessary.
  8442. lt_tmp_lt_search_path_spec=
  8443. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8444. for lt_sys_path in $lt_search_path_spec; do
  8445. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8446. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8447. else
  8448. test -d "$lt_sys_path" && \
  8449. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8450. fi
  8451. done
  8452. lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
  8453. BEGIN {RS=" "; FS="/|\n";} {
  8454. lt_foo="";
  8455. lt_count=0;
  8456. for (lt_i = NF; lt_i > 0; lt_i--) {
  8457. if ($lt_i != "" && $lt_i != ".") {
  8458. if ($lt_i == "..") {
  8459. lt_count++;
  8460. } else {
  8461. if (lt_count == 0) {
  8462. lt_foo="/" $lt_i lt_foo;
  8463. } else {
  8464. lt_count--;
  8465. }
  8466. }
  8467. }
  8468. }
  8469. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8470. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8471. }'`
  8472. sys_lib_search_path_spec=`echo $lt_search_path_spec`
  8473. else
  8474. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8475. fi
  8476. need_lib_prefix=unknown
  8477. hardcode_into_libs=no
  8478. # when you set need_version to no, make sure it does not cause -set_version
  8479. # flags to be left without arguments
  8480. need_version=unknown
  8481. case $host_os in
  8482. aix3*)
  8483. version_type=linux
  8484. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8485. shlibpath_var=LIBPATH
  8486. # AIX 3 has no versioning support, so we append a major version to the name.
  8487. soname_spec='${libname}${release}${shared_ext}$major'
  8488. ;;
  8489. aix[4-9]*)
  8490. version_type=linux
  8491. need_lib_prefix=no
  8492. need_version=no
  8493. hardcode_into_libs=yes
  8494. if test "$host_cpu" = ia64; then
  8495. # AIX 5 supports IA64
  8496. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8497. shlibpath_var=LD_LIBRARY_PATH
  8498. else
  8499. # With GCC up to 2.95.x, collect2 would create an import file
  8500. # for dependence libraries. The import file would start with
  8501. # the line `#! .'. This would cause the generated library to
  8502. # depend on `.', always an invalid library. This was fixed in
  8503. # development snapshots of GCC prior to 3.0.
  8504. case $host_os in
  8505. aix4 | aix4.[01] | aix4.[01].*)
  8506. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8507. echo ' yes '
  8508. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  8509. :
  8510. else
  8511. can_build_shared=no
  8512. fi
  8513. ;;
  8514. esac
  8515. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8516. # soname into executable. Probably we can add versioning support to
  8517. # collect2, so additional links can be useful in future.
  8518. if test "$aix_use_runtimelinking" = yes; then
  8519. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8520. # instead of lib<name>.a to let people know that these are not
  8521. # typical AIX shared libraries.
  8522. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8523. else
  8524. # We preserve .a as extension for shared libraries through AIX4.2
  8525. # and later when we are not doing run time linking.
  8526. library_names_spec='${libname}${release}.a $libname.a'
  8527. soname_spec='${libname}${release}${shared_ext}$major'
  8528. fi
  8529. shlibpath_var=LIBPATH
  8530. fi
  8531. ;;
  8532. amigaos*)
  8533. library_names_spec='$libname.ixlibrary $libname.a'
  8534. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8535. 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'
  8536. ;;
  8537. beos*)
  8538. library_names_spec='${libname}${shared_ext}'
  8539. dynamic_linker="$host_os ld.so"
  8540. shlibpath_var=LIBRARY_PATH
  8541. ;;
  8542. bsdi[45]*)
  8543. version_type=linux
  8544. need_version=no
  8545. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8546. soname_spec='${libname}${release}${shared_ext}$major'
  8547. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8548. shlibpath_var=LD_LIBRARY_PATH
  8549. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8550. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8551. # the default ld.so.conf also contains /usr/contrib/lib and
  8552. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8553. # libtool to hard-code these into programs
  8554. ;;
  8555. cygwin* | mingw* | pw32*)
  8556. version_type=windows
  8557. shrext_cmds=".dll"
  8558. need_version=no
  8559. need_lib_prefix=no
  8560. case $GCC,$host_os in
  8561. yes,cygwin* | yes,mingw* | yes,pw32*)
  8562. library_names_spec='$libname.dll.a'
  8563. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8564. postinstall_cmds='base_file=`basename \${file}`~
  8565. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  8566. dldir=$destdir/`dirname \$dlpath`~
  8567. test -d \$dldir || mkdir -p \$dldir~
  8568. $install_prog $dir/$dlname \$dldir/$dlname~
  8569. chmod a+x \$dldir/$dlname'
  8570. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8571. dlpath=$dir/\$dldll~
  8572. $rm \$dlpath'
  8573. shlibpath_overrides_runpath=yes
  8574. case $host_os in
  8575. cygwin*)
  8576. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8577. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8578. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  8579. ;;
  8580. mingw*)
  8581. # MinGW DLLs use traditional 'lib' prefix
  8582. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8583. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8584. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  8585. # It is most probably a Windows format PATH printed by
  8586. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  8587. # path with ; separators, and with drive letters. We can handle the
  8588. # drive letters (cygwin fileutils understands them), so leave them,
  8589. # especially as we might pass files found there to a mingw objdump,
  8590. # which wouldn't understand a cygwinified path. Ahh.
  8591. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8592. else
  8593. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8594. fi
  8595. ;;
  8596. pw32*)
  8597. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8598. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8599. ;;
  8600. esac
  8601. ;;
  8602. *)
  8603. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8604. ;;
  8605. esac
  8606. dynamic_linker='Win32 ld.exe'
  8607. # FIXME: first we should search . and the directory the executable is in
  8608. shlibpath_var=PATH
  8609. ;;
  8610. darwin* | rhapsody*)
  8611. dynamic_linker="$host_os dyld"
  8612. version_type=darwin
  8613. need_lib_prefix=no
  8614. need_version=no
  8615. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8616. soname_spec='${libname}${release}${major}$shared_ext'
  8617. shlibpath_overrides_runpath=yes
  8618. shlibpath_var=DYLD_LIBRARY_PATH
  8619. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8620. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8621. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8622. ;;
  8623. dgux*)
  8624. version_type=linux
  8625. need_lib_prefix=no
  8626. need_version=no
  8627. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8628. soname_spec='${libname}${release}${shared_ext}$major'
  8629. shlibpath_var=LD_LIBRARY_PATH
  8630. ;;
  8631. freebsd1*)
  8632. dynamic_linker=no
  8633. ;;
  8634. freebsd* | dragonfly*)
  8635. # DragonFly does not have aout. When/if they implement a new
  8636. # versioning mechanism, adjust this.
  8637. if test -x /usr/bin/objformat; then
  8638. objformat=`/usr/bin/objformat`
  8639. else
  8640. case $host_os in
  8641. freebsd[123]*) objformat=aout ;;
  8642. *) objformat=elf ;;
  8643. esac
  8644. fi
  8645. version_type=freebsd-$objformat
  8646. case $version_type in
  8647. freebsd-elf*)
  8648. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8649. need_version=no
  8650. need_lib_prefix=no
  8651. ;;
  8652. freebsd-*)
  8653. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8654. need_version=yes
  8655. ;;
  8656. esac
  8657. shlibpath_var=LD_LIBRARY_PATH
  8658. case $host_os in
  8659. freebsd2*)
  8660. shlibpath_overrides_runpath=yes
  8661. ;;
  8662. freebsd3.[01]* | freebsdelf3.[01]*)
  8663. shlibpath_overrides_runpath=yes
  8664. hardcode_into_libs=yes
  8665. ;;
  8666. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8667. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8668. shlibpath_overrides_runpath=no
  8669. hardcode_into_libs=yes
  8670. ;;
  8671. *) # from 4.6 on, and DragonFly
  8672. shlibpath_overrides_runpath=yes
  8673. hardcode_into_libs=yes
  8674. ;;
  8675. esac
  8676. ;;
  8677. gnu*)
  8678. version_type=linux
  8679. need_lib_prefix=no
  8680. need_version=no
  8681. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8682. soname_spec='${libname}${release}${shared_ext}$major'
  8683. shlibpath_var=LD_LIBRARY_PATH
  8684. hardcode_into_libs=yes
  8685. ;;
  8686. hpux9* | hpux10* | hpux11*)
  8687. # Give a soname corresponding to the major version so that dld.sl refuses to
  8688. # link against other versions.
  8689. version_type=sunos
  8690. need_lib_prefix=no
  8691. need_version=no
  8692. case $host_cpu in
  8693. ia64*)
  8694. shrext_cmds='.so'
  8695. hardcode_into_libs=yes
  8696. dynamic_linker="$host_os dld.so"
  8697. shlibpath_var=LD_LIBRARY_PATH
  8698. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8699. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8700. soname_spec='${libname}${release}${shared_ext}$major'
  8701. if test "X$HPUX_IA64_MODE" = X32; then
  8702. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8703. else
  8704. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8705. fi
  8706. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8707. ;;
  8708. hppa*64*)
  8709. shrext_cmds='.sl'
  8710. hardcode_into_libs=yes
  8711. dynamic_linker="$host_os dld.sl"
  8712. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8713. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8714. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8715. soname_spec='${libname}${release}${shared_ext}$major'
  8716. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8717. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8718. ;;
  8719. *)
  8720. shrext_cmds='.sl'
  8721. dynamic_linker="$host_os dld.sl"
  8722. shlibpath_var=SHLIB_PATH
  8723. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8724. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8725. soname_spec='${libname}${release}${shared_ext}$major'
  8726. ;;
  8727. esac
  8728. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  8729. postinstall_cmds='chmod 555 $lib'
  8730. ;;
  8731. interix[3-9]*)
  8732. version_type=linux
  8733. need_lib_prefix=no
  8734. need_version=no
  8735. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8736. soname_spec='${libname}${release}${shared_ext}$major'
  8737. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8738. shlibpath_var=LD_LIBRARY_PATH
  8739. shlibpath_overrides_runpath=no
  8740. hardcode_into_libs=yes
  8741. ;;
  8742. irix5* | irix6* | nonstopux*)
  8743. case $host_os in
  8744. nonstopux*) version_type=nonstopux ;;
  8745. *)
  8746. if test "$lt_cv_prog_gnu_ld" = yes; then
  8747. version_type=linux
  8748. else
  8749. version_type=irix
  8750. fi ;;
  8751. esac
  8752. need_lib_prefix=no
  8753. need_version=no
  8754. soname_spec='${libname}${release}${shared_ext}$major'
  8755. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8756. case $host_os in
  8757. irix5* | nonstopux*)
  8758. libsuff= shlibsuff=
  8759. ;;
  8760. *)
  8761. case $LD in # libtool.m4 will add one of these switches to LD
  8762. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8763. libsuff= shlibsuff= libmagic=32-bit;;
  8764. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8765. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8766. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8767. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8768. *) libsuff= shlibsuff= libmagic=never-match;;
  8769. esac
  8770. ;;
  8771. esac
  8772. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8773. shlibpath_overrides_runpath=no
  8774. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8775. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8776. hardcode_into_libs=yes
  8777. ;;
  8778. # No shared lib support for Linux oldld, aout, or coff.
  8779. linux*oldld* | linux*aout* | linux*coff*)
  8780. dynamic_linker=no
  8781. ;;
  8782. # This must be Linux ELF.
  8783. linux* | k*bsd*-gnu)
  8784. version_type=linux
  8785. need_lib_prefix=no
  8786. need_version=no
  8787. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8788. soname_spec='${libname}${release}${shared_ext}$major'
  8789. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8790. shlibpath_var=LD_LIBRARY_PATH
  8791. shlibpath_overrides_runpath=no
  8792. # This implies no fast_install, which is unacceptable.
  8793. # Some rework will be needed to allow for fast_install
  8794. # before this can be enabled.
  8795. hardcode_into_libs=yes
  8796. # Append ld.so.conf contents to the search path
  8797. if test -f /etc/ld.so.conf; then
  8798. 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' ' '`
  8799. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8800. fi
  8801. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8802. # powerpc, because MkLinux only supported shared libraries with the
  8803. # GNU dynamic linker. Since this was broken with cross compilers,
  8804. # most powerpc-linux boxes support dynamic linking these days and
  8805. # people can always --disable-shared, the test was removed, and we
  8806. # assume the GNU/Linux dynamic linker is in use.
  8807. dynamic_linker='GNU/Linux ld.so'
  8808. ;;
  8809. netbsd*)
  8810. version_type=sunos
  8811. need_lib_prefix=no
  8812. need_version=no
  8813. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  8814. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8815. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8816. dynamic_linker='NetBSD (a.out) ld.so'
  8817. else
  8818. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8819. soname_spec='${libname}${release}${shared_ext}$major'
  8820. dynamic_linker='NetBSD ld.elf_so'
  8821. fi
  8822. shlibpath_var=LD_LIBRARY_PATH
  8823. shlibpath_overrides_runpath=yes
  8824. hardcode_into_libs=yes
  8825. ;;
  8826. newsos6)
  8827. version_type=linux
  8828. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8829. shlibpath_var=LD_LIBRARY_PATH
  8830. shlibpath_overrides_runpath=yes
  8831. ;;
  8832. nto-qnx*)
  8833. version_type=linux
  8834. need_lib_prefix=no
  8835. need_version=no
  8836. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8837. soname_spec='${libname}${release}${shared_ext}$major'
  8838. shlibpath_var=LD_LIBRARY_PATH
  8839. shlibpath_overrides_runpath=yes
  8840. ;;
  8841. openbsd*)
  8842. version_type=sunos
  8843. sys_lib_dlsearch_path_spec="/usr/lib"
  8844. need_lib_prefix=no
  8845. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8846. case $host_os in
  8847. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8848. *) need_version=no ;;
  8849. esac
  8850. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8851. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8852. shlibpath_var=LD_LIBRARY_PATH
  8853. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8854. case $host_os in
  8855. openbsd2.[89] | openbsd2.[89].*)
  8856. shlibpath_overrides_runpath=no
  8857. ;;
  8858. *)
  8859. shlibpath_overrides_runpath=yes
  8860. ;;
  8861. esac
  8862. else
  8863. shlibpath_overrides_runpath=yes
  8864. fi
  8865. ;;
  8866. os2*)
  8867. libname_spec='$name'
  8868. shrext_cmds=".dll"
  8869. need_lib_prefix=no
  8870. library_names_spec='$libname${shared_ext} $libname.a'
  8871. dynamic_linker='OS/2 ld.exe'
  8872. shlibpath_var=LIBPATH
  8873. ;;
  8874. osf3* | osf4* | osf5*)
  8875. version_type=osf
  8876. need_lib_prefix=no
  8877. need_version=no
  8878. soname_spec='${libname}${release}${shared_ext}$major'
  8879. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8880. shlibpath_var=LD_LIBRARY_PATH
  8881. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8882. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8883. ;;
  8884. rdos*)
  8885. dynamic_linker=no
  8886. ;;
  8887. solaris*)
  8888. version_type=linux
  8889. need_lib_prefix=no
  8890. need_version=no
  8891. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8892. soname_spec='${libname}${release}${shared_ext}$major'
  8893. shlibpath_var=LD_LIBRARY_PATH
  8894. shlibpath_overrides_runpath=yes
  8895. hardcode_into_libs=yes
  8896. # ldd complains unless libraries are executable
  8897. postinstall_cmds='chmod +x $lib'
  8898. ;;
  8899. sunos4*)
  8900. version_type=sunos
  8901. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8902. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8903. shlibpath_var=LD_LIBRARY_PATH
  8904. shlibpath_overrides_runpath=yes
  8905. if test "$with_gnu_ld" = yes; then
  8906. need_lib_prefix=no
  8907. fi
  8908. need_version=yes
  8909. ;;
  8910. sysv4 | sysv4.3*)
  8911. version_type=linux
  8912. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8913. soname_spec='${libname}${release}${shared_ext}$major'
  8914. shlibpath_var=LD_LIBRARY_PATH
  8915. case $host_vendor in
  8916. sni)
  8917. shlibpath_overrides_runpath=no
  8918. need_lib_prefix=no
  8919. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8920. runpath_var=LD_RUN_PATH
  8921. ;;
  8922. siemens)
  8923. need_lib_prefix=no
  8924. ;;
  8925. motorola)
  8926. need_lib_prefix=no
  8927. need_version=no
  8928. shlibpath_overrides_runpath=no
  8929. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8930. ;;
  8931. esac
  8932. ;;
  8933. sysv4*MP*)
  8934. if test -d /usr/nec ;then
  8935. version_type=linux
  8936. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8937. soname_spec='$libname${shared_ext}.$major'
  8938. shlibpath_var=LD_LIBRARY_PATH
  8939. fi
  8940. ;;
  8941. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8942. version_type=freebsd-elf
  8943. need_lib_prefix=no
  8944. need_version=no
  8945. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8946. soname_spec='${libname}${release}${shared_ext}$major'
  8947. shlibpath_var=LD_LIBRARY_PATH
  8948. hardcode_into_libs=yes
  8949. if test "$with_gnu_ld" = yes; then
  8950. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8951. shlibpath_overrides_runpath=no
  8952. else
  8953. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8954. shlibpath_overrides_runpath=yes
  8955. case $host_os in
  8956. sco3.2v5*)
  8957. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8958. ;;
  8959. esac
  8960. fi
  8961. sys_lib_dlsearch_path_spec='/usr/lib'
  8962. ;;
  8963. uts4*)
  8964. version_type=linux
  8965. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8966. soname_spec='${libname}${release}${shared_ext}$major'
  8967. shlibpath_var=LD_LIBRARY_PATH
  8968. ;;
  8969. *)
  8970. dynamic_linker=no
  8971. ;;
  8972. esac
  8973. { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  8974. $as_echo "$dynamic_linker" >&6; }
  8975. test "$dynamic_linker" = no && can_build_shared=no
  8976. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  8977. $as_echo_n "(cached) " >&6
  8978. else
  8979. lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  8980. fi
  8981. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  8982. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  8983. $as_echo_n "(cached) " >&6
  8984. else
  8985. lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  8986. fi
  8987. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  8988. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8989. if test "$GCC" = yes; then
  8990. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8991. fi
  8992. { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  8993. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  8994. hardcode_action=
  8995. if test -n "$hardcode_libdir_flag_spec" || \
  8996. test -n "$runpath_var" || \
  8997. test "X$hardcode_automatic" = "Xyes" ; then
  8998. # We can hardcode non-existant directories.
  8999. if test "$hardcode_direct" != no &&
  9000. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9001. # have to relink, otherwise we might link with an installed library
  9002. # when we should be linking with a yet-to-be-installed one
  9003. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9004. test "$hardcode_minus_L" != no; then
  9005. # Linking always hardcodes the temporary library directory.
  9006. hardcode_action=relink
  9007. else
  9008. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9009. hardcode_action=immediate
  9010. fi
  9011. else
  9012. # We cannot hardcode anything, or else we can only hardcode existing
  9013. # directories.
  9014. hardcode_action=unsupported
  9015. fi
  9016. { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
  9017. $as_echo "$hardcode_action" >&6; }
  9018. if test "$hardcode_action" = relink; then
  9019. # Fast installation is not supported
  9020. enable_fast_install=no
  9021. elif test "$shlibpath_overrides_runpath" = yes ||
  9022. test "$enable_shared" = no; then
  9023. # Fast installation is not necessary
  9024. enable_fast_install=needless
  9025. fi
  9026. striplib=
  9027. old_striplib=
  9028. { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  9029. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9030. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  9031. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9032. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9033. { $as_echo "$as_me:$LINENO: result: yes" >&5
  9034. $as_echo "yes" >&6; }
  9035. else
  9036. # FIXME - insert some real tests, host_os isn't really good enough
  9037. case $host_os in
  9038. darwin*)
  9039. if test -n "$STRIP" ; then
  9040. striplib="$STRIP -x"
  9041. old_striplib="$STRIP -S"
  9042. { $as_echo "$as_me:$LINENO: result: yes" >&5
  9043. $as_echo "yes" >&6; }
  9044. else
  9045. { $as_echo "$as_me:$LINENO: result: no" >&5
  9046. $as_echo "no" >&6; }
  9047. fi
  9048. ;;
  9049. *)
  9050. { $as_echo "$as_me:$LINENO: result: no" >&5
  9051. $as_echo "no" >&6; }
  9052. ;;
  9053. esac
  9054. fi
  9055. if test "x$enable_dlopen" != xyes; then
  9056. enable_dlopen=unknown
  9057. enable_dlopen_self=unknown
  9058. enable_dlopen_self_static=unknown
  9059. else
  9060. lt_cv_dlopen=no
  9061. lt_cv_dlopen_libs=
  9062. case $host_os in
  9063. beos*)
  9064. lt_cv_dlopen="load_add_on"
  9065. lt_cv_dlopen_libs=
  9066. lt_cv_dlopen_self=yes
  9067. ;;
  9068. mingw* | pw32*)
  9069. lt_cv_dlopen="LoadLibrary"
  9070. lt_cv_dlopen_libs=
  9071. ;;
  9072. cygwin*)
  9073. lt_cv_dlopen="dlopen"
  9074. lt_cv_dlopen_libs=
  9075. ;;
  9076. darwin*)
  9077. # if libdl is installed we need to link against it
  9078. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  9079. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9080. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  9081. $as_echo_n "(cached) " >&6
  9082. else
  9083. ac_check_lib_save_LIBS=$LIBS
  9084. LIBS="-ldl $LIBS"
  9085. cat >conftest.$ac_ext <<_ACEOF
  9086. /* confdefs.h. */
  9087. _ACEOF
  9088. cat confdefs.h >>conftest.$ac_ext
  9089. cat >>conftest.$ac_ext <<_ACEOF
  9090. /* end confdefs.h. */
  9091. /* Override any GCC internal prototype to avoid an error.
  9092. Use char because int might match the return type of a GCC
  9093. builtin and then its argument prototype would still apply. */
  9094. #ifdef __cplusplus
  9095. extern "C"
  9096. #endif
  9097. char dlopen ();
  9098. int
  9099. main ()
  9100. {
  9101. return dlopen ();
  9102. ;
  9103. return 0;
  9104. }
  9105. _ACEOF
  9106. rm -f conftest.$ac_objext conftest$ac_exeext
  9107. if { (ac_try="$ac_link"
  9108. case "(($ac_try" in
  9109. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9110. *) ac_try_echo=$ac_try;;
  9111. esac
  9112. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9113. $as_echo "$ac_try_echo") >&5
  9114. (eval "$ac_link") 2>conftest.er1
  9115. ac_status=$?
  9116. grep -v '^ *+' conftest.er1 >conftest.err
  9117. rm -f conftest.er1
  9118. cat conftest.err >&5
  9119. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9120. (exit $ac_status); } && {
  9121. test -z "$ac_c_werror_flag" ||
  9122. test ! -s conftest.err
  9123. } && test -s conftest$ac_exeext && {
  9124. test "$cross_compiling" = yes ||
  9125. $as_test_x conftest$ac_exeext
  9126. }; then
  9127. ac_cv_lib_dl_dlopen=yes
  9128. else
  9129. $as_echo "$as_me: failed program was:" >&5
  9130. sed 's/^/| /' conftest.$ac_ext >&5
  9131. ac_cv_lib_dl_dlopen=no
  9132. fi
  9133. rm -rf conftest.dSYM
  9134. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9135. conftest$ac_exeext conftest.$ac_ext
  9136. LIBS=$ac_check_lib_save_LIBS
  9137. fi
  9138. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  9139. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9140. if test $ac_cv_lib_dl_dlopen = yes; then
  9141. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9142. else
  9143. lt_cv_dlopen="dyld"
  9144. lt_cv_dlopen_libs=
  9145. lt_cv_dlopen_self=yes
  9146. fi
  9147. ;;
  9148. *)
  9149. { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
  9150. $as_echo_n "checking for shl_load... " >&6; }
  9151. if test "${ac_cv_func_shl_load+set}" = set; then
  9152. $as_echo_n "(cached) " >&6
  9153. else
  9154. cat >conftest.$ac_ext <<_ACEOF
  9155. /* confdefs.h. */
  9156. _ACEOF
  9157. cat confdefs.h >>conftest.$ac_ext
  9158. cat >>conftest.$ac_ext <<_ACEOF
  9159. /* end confdefs.h. */
  9160. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  9161. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9162. #define shl_load innocuous_shl_load
  9163. /* System header to define __stub macros and hopefully few prototypes,
  9164. which can conflict with char shl_load (); below.
  9165. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9166. <limits.h> exists even on freestanding compilers. */
  9167. #ifdef __STDC__
  9168. # include <limits.h>
  9169. #else
  9170. # include <assert.h>
  9171. #endif
  9172. #undef shl_load
  9173. /* Override any GCC internal prototype to avoid an error.
  9174. Use char because int might match the return type of a GCC
  9175. builtin and then its argument prototype would still apply. */
  9176. #ifdef __cplusplus
  9177. extern "C"
  9178. #endif
  9179. char shl_load ();
  9180. /* The GNU C library defines this for functions which it implements
  9181. to always fail with ENOSYS. Some functions are actually named
  9182. something starting with __ and the normal name is an alias. */
  9183. #if defined __stub_shl_load || defined __stub___shl_load
  9184. choke me
  9185. #endif
  9186. int
  9187. main ()
  9188. {
  9189. return shl_load ();
  9190. ;
  9191. return 0;
  9192. }
  9193. _ACEOF
  9194. rm -f conftest.$ac_objext conftest$ac_exeext
  9195. if { (ac_try="$ac_link"
  9196. case "(($ac_try" in
  9197. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9198. *) ac_try_echo=$ac_try;;
  9199. esac
  9200. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9201. $as_echo "$ac_try_echo") >&5
  9202. (eval "$ac_link") 2>conftest.er1
  9203. ac_status=$?
  9204. grep -v '^ *+' conftest.er1 >conftest.err
  9205. rm -f conftest.er1
  9206. cat conftest.err >&5
  9207. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9208. (exit $ac_status); } && {
  9209. test -z "$ac_c_werror_flag" ||
  9210. test ! -s conftest.err
  9211. } && test -s conftest$ac_exeext && {
  9212. test "$cross_compiling" = yes ||
  9213. $as_test_x conftest$ac_exeext
  9214. }; then
  9215. ac_cv_func_shl_load=yes
  9216. else
  9217. $as_echo "$as_me: failed program was:" >&5
  9218. sed 's/^/| /' conftest.$ac_ext >&5
  9219. ac_cv_func_shl_load=no
  9220. fi
  9221. rm -rf conftest.dSYM
  9222. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9223. conftest$ac_exeext conftest.$ac_ext
  9224. fi
  9225. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  9226. $as_echo "$ac_cv_func_shl_load" >&6; }
  9227. if test $ac_cv_func_shl_load = yes; then
  9228. lt_cv_dlopen="shl_load"
  9229. else
  9230. { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  9231. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9232. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  9233. $as_echo_n "(cached) " >&6
  9234. else
  9235. ac_check_lib_save_LIBS=$LIBS
  9236. LIBS="-ldld $LIBS"
  9237. cat >conftest.$ac_ext <<_ACEOF
  9238. /* confdefs.h. */
  9239. _ACEOF
  9240. cat confdefs.h >>conftest.$ac_ext
  9241. cat >>conftest.$ac_ext <<_ACEOF
  9242. /* end confdefs.h. */
  9243. /* Override any GCC internal prototype to avoid an error.
  9244. Use char because int might match the return type of a GCC
  9245. builtin and then its argument prototype would still apply. */
  9246. #ifdef __cplusplus
  9247. extern "C"
  9248. #endif
  9249. char shl_load ();
  9250. int
  9251. main ()
  9252. {
  9253. return shl_load ();
  9254. ;
  9255. return 0;
  9256. }
  9257. _ACEOF
  9258. rm -f conftest.$ac_objext conftest$ac_exeext
  9259. if { (ac_try="$ac_link"
  9260. case "(($ac_try" in
  9261. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9262. *) ac_try_echo=$ac_try;;
  9263. esac
  9264. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9265. $as_echo "$ac_try_echo") >&5
  9266. (eval "$ac_link") 2>conftest.er1
  9267. ac_status=$?
  9268. grep -v '^ *+' conftest.er1 >conftest.err
  9269. rm -f conftest.er1
  9270. cat conftest.err >&5
  9271. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9272. (exit $ac_status); } && {
  9273. test -z "$ac_c_werror_flag" ||
  9274. test ! -s conftest.err
  9275. } && test -s conftest$ac_exeext && {
  9276. test "$cross_compiling" = yes ||
  9277. $as_test_x conftest$ac_exeext
  9278. }; then
  9279. ac_cv_lib_dld_shl_load=yes
  9280. else
  9281. $as_echo "$as_me: failed program was:" >&5
  9282. sed 's/^/| /' conftest.$ac_ext >&5
  9283. ac_cv_lib_dld_shl_load=no
  9284. fi
  9285. rm -rf conftest.dSYM
  9286. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9287. conftest$ac_exeext conftest.$ac_ext
  9288. LIBS=$ac_check_lib_save_LIBS
  9289. fi
  9290. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  9291. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9292. if test $ac_cv_lib_dld_shl_load = yes; then
  9293. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9294. else
  9295. { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
  9296. $as_echo_n "checking for dlopen... " >&6; }
  9297. if test "${ac_cv_func_dlopen+set}" = set; then
  9298. $as_echo_n "(cached) " >&6
  9299. else
  9300. cat >conftest.$ac_ext <<_ACEOF
  9301. /* confdefs.h. */
  9302. _ACEOF
  9303. cat confdefs.h >>conftest.$ac_ext
  9304. cat >>conftest.$ac_ext <<_ACEOF
  9305. /* end confdefs.h. */
  9306. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  9307. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9308. #define dlopen innocuous_dlopen
  9309. /* System header to define __stub macros and hopefully few prototypes,
  9310. which can conflict with char dlopen (); below.
  9311. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9312. <limits.h> exists even on freestanding compilers. */
  9313. #ifdef __STDC__
  9314. # include <limits.h>
  9315. #else
  9316. # include <assert.h>
  9317. #endif
  9318. #undef dlopen
  9319. /* Override any GCC internal prototype to avoid an error.
  9320. Use char because int might match the return type of a GCC
  9321. builtin and then its argument prototype would still apply. */
  9322. #ifdef __cplusplus
  9323. extern "C"
  9324. #endif
  9325. char dlopen ();
  9326. /* The GNU C library defines this for functions which it implements
  9327. to always fail with ENOSYS. Some functions are actually named
  9328. something starting with __ and the normal name is an alias. */
  9329. #if defined __stub_dlopen || defined __stub___dlopen
  9330. choke me
  9331. #endif
  9332. int
  9333. main ()
  9334. {
  9335. return dlopen ();
  9336. ;
  9337. return 0;
  9338. }
  9339. _ACEOF
  9340. rm -f conftest.$ac_objext conftest$ac_exeext
  9341. if { (ac_try="$ac_link"
  9342. case "(($ac_try" in
  9343. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9344. *) ac_try_echo=$ac_try;;
  9345. esac
  9346. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9347. $as_echo "$ac_try_echo") >&5
  9348. (eval "$ac_link") 2>conftest.er1
  9349. ac_status=$?
  9350. grep -v '^ *+' conftest.er1 >conftest.err
  9351. rm -f conftest.er1
  9352. cat conftest.err >&5
  9353. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9354. (exit $ac_status); } && {
  9355. test -z "$ac_c_werror_flag" ||
  9356. test ! -s conftest.err
  9357. } && test -s conftest$ac_exeext && {
  9358. test "$cross_compiling" = yes ||
  9359. $as_test_x conftest$ac_exeext
  9360. }; then
  9361. ac_cv_func_dlopen=yes
  9362. else
  9363. $as_echo "$as_me: failed program was:" >&5
  9364. sed 's/^/| /' conftest.$ac_ext >&5
  9365. ac_cv_func_dlopen=no
  9366. fi
  9367. rm -rf conftest.dSYM
  9368. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9369. conftest$ac_exeext conftest.$ac_ext
  9370. fi
  9371. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  9372. $as_echo "$ac_cv_func_dlopen" >&6; }
  9373. if test $ac_cv_func_dlopen = yes; then
  9374. lt_cv_dlopen="dlopen"
  9375. else
  9376. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  9377. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9378. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  9379. $as_echo_n "(cached) " >&6
  9380. else
  9381. ac_check_lib_save_LIBS=$LIBS
  9382. LIBS="-ldl $LIBS"
  9383. cat >conftest.$ac_ext <<_ACEOF
  9384. /* confdefs.h. */
  9385. _ACEOF
  9386. cat confdefs.h >>conftest.$ac_ext
  9387. cat >>conftest.$ac_ext <<_ACEOF
  9388. /* end confdefs.h. */
  9389. /* Override any GCC internal prototype to avoid an error.
  9390. Use char because int might match the return type of a GCC
  9391. builtin and then its argument prototype would still apply. */
  9392. #ifdef __cplusplus
  9393. extern "C"
  9394. #endif
  9395. char dlopen ();
  9396. int
  9397. main ()
  9398. {
  9399. return dlopen ();
  9400. ;
  9401. return 0;
  9402. }
  9403. _ACEOF
  9404. rm -f conftest.$ac_objext conftest$ac_exeext
  9405. if { (ac_try="$ac_link"
  9406. case "(($ac_try" in
  9407. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9408. *) ac_try_echo=$ac_try;;
  9409. esac
  9410. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9411. $as_echo "$ac_try_echo") >&5
  9412. (eval "$ac_link") 2>conftest.er1
  9413. ac_status=$?
  9414. grep -v '^ *+' conftest.er1 >conftest.err
  9415. rm -f conftest.er1
  9416. cat conftest.err >&5
  9417. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9418. (exit $ac_status); } && {
  9419. test -z "$ac_c_werror_flag" ||
  9420. test ! -s conftest.err
  9421. } && test -s conftest$ac_exeext && {
  9422. test "$cross_compiling" = yes ||
  9423. $as_test_x conftest$ac_exeext
  9424. }; then
  9425. ac_cv_lib_dl_dlopen=yes
  9426. else
  9427. $as_echo "$as_me: failed program was:" >&5
  9428. sed 's/^/| /' conftest.$ac_ext >&5
  9429. ac_cv_lib_dl_dlopen=no
  9430. fi
  9431. rm -rf conftest.dSYM
  9432. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9433. conftest$ac_exeext conftest.$ac_ext
  9434. LIBS=$ac_check_lib_save_LIBS
  9435. fi
  9436. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  9437. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9438. if test $ac_cv_lib_dl_dlopen = yes; then
  9439. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9440. else
  9441. { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  9442. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9443. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  9444. $as_echo_n "(cached) " >&6
  9445. else
  9446. ac_check_lib_save_LIBS=$LIBS
  9447. LIBS="-lsvld $LIBS"
  9448. cat >conftest.$ac_ext <<_ACEOF
  9449. /* confdefs.h. */
  9450. _ACEOF
  9451. cat confdefs.h >>conftest.$ac_ext
  9452. cat >>conftest.$ac_ext <<_ACEOF
  9453. /* end confdefs.h. */
  9454. /* Override any GCC internal prototype to avoid an error.
  9455. Use char because int might match the return type of a GCC
  9456. builtin and then its argument prototype would still apply. */
  9457. #ifdef __cplusplus
  9458. extern "C"
  9459. #endif
  9460. char dlopen ();
  9461. int
  9462. main ()
  9463. {
  9464. return dlopen ();
  9465. ;
  9466. return 0;
  9467. }
  9468. _ACEOF
  9469. rm -f conftest.$ac_objext conftest$ac_exeext
  9470. if { (ac_try="$ac_link"
  9471. case "(($ac_try" in
  9472. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9473. *) ac_try_echo=$ac_try;;
  9474. esac
  9475. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9476. $as_echo "$ac_try_echo") >&5
  9477. (eval "$ac_link") 2>conftest.er1
  9478. ac_status=$?
  9479. grep -v '^ *+' conftest.er1 >conftest.err
  9480. rm -f conftest.er1
  9481. cat conftest.err >&5
  9482. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9483. (exit $ac_status); } && {
  9484. test -z "$ac_c_werror_flag" ||
  9485. test ! -s conftest.err
  9486. } && test -s conftest$ac_exeext && {
  9487. test "$cross_compiling" = yes ||
  9488. $as_test_x conftest$ac_exeext
  9489. }; then
  9490. ac_cv_lib_svld_dlopen=yes
  9491. else
  9492. $as_echo "$as_me: failed program was:" >&5
  9493. sed 's/^/| /' conftest.$ac_ext >&5
  9494. ac_cv_lib_svld_dlopen=no
  9495. fi
  9496. rm -rf conftest.dSYM
  9497. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9498. conftest$ac_exeext conftest.$ac_ext
  9499. LIBS=$ac_check_lib_save_LIBS
  9500. fi
  9501. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  9502. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9503. if test $ac_cv_lib_svld_dlopen = yes; then
  9504. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9505. else
  9506. { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  9507. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9508. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  9509. $as_echo_n "(cached) " >&6
  9510. else
  9511. ac_check_lib_save_LIBS=$LIBS
  9512. LIBS="-ldld $LIBS"
  9513. cat >conftest.$ac_ext <<_ACEOF
  9514. /* confdefs.h. */
  9515. _ACEOF
  9516. cat confdefs.h >>conftest.$ac_ext
  9517. cat >>conftest.$ac_ext <<_ACEOF
  9518. /* end confdefs.h. */
  9519. /* Override any GCC internal prototype to avoid an error.
  9520. Use char because int might match the return type of a GCC
  9521. builtin and then its argument prototype would still apply. */
  9522. #ifdef __cplusplus
  9523. extern "C"
  9524. #endif
  9525. char dld_link ();
  9526. int
  9527. main ()
  9528. {
  9529. return dld_link ();
  9530. ;
  9531. return 0;
  9532. }
  9533. _ACEOF
  9534. rm -f conftest.$ac_objext conftest$ac_exeext
  9535. if { (ac_try="$ac_link"
  9536. case "(($ac_try" in
  9537. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9538. *) ac_try_echo=$ac_try;;
  9539. esac
  9540. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9541. $as_echo "$ac_try_echo") >&5
  9542. (eval "$ac_link") 2>conftest.er1
  9543. ac_status=$?
  9544. grep -v '^ *+' conftest.er1 >conftest.err
  9545. rm -f conftest.er1
  9546. cat conftest.err >&5
  9547. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9548. (exit $ac_status); } && {
  9549. test -z "$ac_c_werror_flag" ||
  9550. test ! -s conftest.err
  9551. } && test -s conftest$ac_exeext && {
  9552. test "$cross_compiling" = yes ||
  9553. $as_test_x conftest$ac_exeext
  9554. }; then
  9555. ac_cv_lib_dld_dld_link=yes
  9556. else
  9557. $as_echo "$as_me: failed program was:" >&5
  9558. sed 's/^/| /' conftest.$ac_ext >&5
  9559. ac_cv_lib_dld_dld_link=no
  9560. fi
  9561. rm -rf conftest.dSYM
  9562. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9563. conftest$ac_exeext conftest.$ac_ext
  9564. LIBS=$ac_check_lib_save_LIBS
  9565. fi
  9566. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  9567. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9568. if test $ac_cv_lib_dld_dld_link = yes; then
  9569. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9570. fi
  9571. fi
  9572. fi
  9573. fi
  9574. fi
  9575. fi
  9576. ;;
  9577. esac
  9578. if test "x$lt_cv_dlopen" != xno; then
  9579. enable_dlopen=yes
  9580. else
  9581. enable_dlopen=no
  9582. fi
  9583. case $lt_cv_dlopen in
  9584. dlopen)
  9585. save_CPPFLAGS="$CPPFLAGS"
  9586. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9587. save_LDFLAGS="$LDFLAGS"
  9588. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9589. save_LIBS="$LIBS"
  9590. LIBS="$lt_cv_dlopen_libs $LIBS"
  9591. { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  9592. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9593. if test "${lt_cv_dlopen_self+set}" = set; then
  9594. $as_echo_n "(cached) " >&6
  9595. else
  9596. if test "$cross_compiling" = yes; then :
  9597. lt_cv_dlopen_self=cross
  9598. else
  9599. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9600. lt_status=$lt_dlunknown
  9601. cat > conftest.$ac_ext <<EOF
  9602. #line 10620 "configure"
  9603. #include "confdefs.h"
  9604. #if HAVE_DLFCN_H
  9605. #include <dlfcn.h>
  9606. #endif
  9607. #include <stdio.h>
  9608. #ifdef RTLD_GLOBAL
  9609. # define LT_DLGLOBAL RTLD_GLOBAL
  9610. #else
  9611. # ifdef DL_GLOBAL
  9612. # define LT_DLGLOBAL DL_GLOBAL
  9613. # else
  9614. # define LT_DLGLOBAL 0
  9615. # endif
  9616. #endif
  9617. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9618. find out it does not work in some platform. */
  9619. #ifndef LT_DLLAZY_OR_NOW
  9620. # ifdef RTLD_LAZY
  9621. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9622. # else
  9623. # ifdef DL_LAZY
  9624. # define LT_DLLAZY_OR_NOW DL_LAZY
  9625. # else
  9626. # ifdef RTLD_NOW
  9627. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9628. # else
  9629. # ifdef DL_NOW
  9630. # define LT_DLLAZY_OR_NOW DL_NOW
  9631. # else
  9632. # define LT_DLLAZY_OR_NOW 0
  9633. # endif
  9634. # endif
  9635. # endif
  9636. # endif
  9637. #endif
  9638. #ifdef __cplusplus
  9639. extern "C" void exit (int);
  9640. #endif
  9641. void fnord() { int i=42;}
  9642. int main ()
  9643. {
  9644. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9645. int status = $lt_dlunknown;
  9646. if (self)
  9647. {
  9648. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9649. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9650. /* dlclose (self); */
  9651. }
  9652. else
  9653. puts (dlerror ());
  9654. exit (status);
  9655. }
  9656. EOF
  9657. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9658. (eval $ac_link) 2>&5
  9659. ac_status=$?
  9660. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9661. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9662. (./conftest; exit; ) >&5 2>/dev/null
  9663. lt_status=$?
  9664. case x$lt_status in
  9665. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9666. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9667. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9668. esac
  9669. else :
  9670. # compilation failed
  9671. lt_cv_dlopen_self=no
  9672. fi
  9673. fi
  9674. rm -fr conftest*
  9675. fi
  9676. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  9677. $as_echo "$lt_cv_dlopen_self" >&6; }
  9678. if test "x$lt_cv_dlopen_self" = xyes; then
  9679. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9680. { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  9681. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9682. if test "${lt_cv_dlopen_self_static+set}" = set; then
  9683. $as_echo_n "(cached) " >&6
  9684. else
  9685. if test "$cross_compiling" = yes; then :
  9686. lt_cv_dlopen_self_static=cross
  9687. else
  9688. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9689. lt_status=$lt_dlunknown
  9690. cat > conftest.$ac_ext <<EOF
  9691. #line 10720 "configure"
  9692. #include "confdefs.h"
  9693. #if HAVE_DLFCN_H
  9694. #include <dlfcn.h>
  9695. #endif
  9696. #include <stdio.h>
  9697. #ifdef RTLD_GLOBAL
  9698. # define LT_DLGLOBAL RTLD_GLOBAL
  9699. #else
  9700. # ifdef DL_GLOBAL
  9701. # define LT_DLGLOBAL DL_GLOBAL
  9702. # else
  9703. # define LT_DLGLOBAL 0
  9704. # endif
  9705. #endif
  9706. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9707. find out it does not work in some platform. */
  9708. #ifndef LT_DLLAZY_OR_NOW
  9709. # ifdef RTLD_LAZY
  9710. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9711. # else
  9712. # ifdef DL_LAZY
  9713. # define LT_DLLAZY_OR_NOW DL_LAZY
  9714. # else
  9715. # ifdef RTLD_NOW
  9716. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9717. # else
  9718. # ifdef DL_NOW
  9719. # define LT_DLLAZY_OR_NOW DL_NOW
  9720. # else
  9721. # define LT_DLLAZY_OR_NOW 0
  9722. # endif
  9723. # endif
  9724. # endif
  9725. # endif
  9726. #endif
  9727. #ifdef __cplusplus
  9728. extern "C" void exit (int);
  9729. #endif
  9730. void fnord() { int i=42;}
  9731. int main ()
  9732. {
  9733. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9734. int status = $lt_dlunknown;
  9735. if (self)
  9736. {
  9737. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9738. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9739. /* dlclose (self); */
  9740. }
  9741. else
  9742. puts (dlerror ());
  9743. exit (status);
  9744. }
  9745. EOF
  9746. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9747. (eval $ac_link) 2>&5
  9748. ac_status=$?
  9749. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9750. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9751. (./conftest; exit; ) >&5 2>/dev/null
  9752. lt_status=$?
  9753. case x$lt_status in
  9754. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9755. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9756. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9757. esac
  9758. else :
  9759. # compilation failed
  9760. lt_cv_dlopen_self_static=no
  9761. fi
  9762. fi
  9763. rm -fr conftest*
  9764. fi
  9765. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  9766. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9767. fi
  9768. CPPFLAGS="$save_CPPFLAGS"
  9769. LDFLAGS="$save_LDFLAGS"
  9770. LIBS="$save_LIBS"
  9771. ;;
  9772. esac
  9773. case $lt_cv_dlopen_self in
  9774. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9775. *) enable_dlopen_self=unknown ;;
  9776. esac
  9777. case $lt_cv_dlopen_self_static in
  9778. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9779. *) enable_dlopen_self_static=unknown ;;
  9780. esac
  9781. fi
  9782. # Report which library types will actually be built
  9783. { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  9784. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9785. { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
  9786. $as_echo "$can_build_shared" >&6; }
  9787. { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  9788. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9789. test "$can_build_shared" = "no" && enable_shared=no
  9790. # On AIX, shared libraries and static libraries use the same namespace, and
  9791. # are all built from PIC.
  9792. case $host_os in
  9793. aix3*)
  9794. test "$enable_shared" = yes && enable_static=no
  9795. if test -n "$RANLIB"; then
  9796. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9797. postinstall_cmds='$RANLIB $lib'
  9798. fi
  9799. ;;
  9800. aix[4-9]*)
  9801. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9802. test "$enable_shared" = yes && enable_static=no
  9803. fi
  9804. ;;
  9805. esac
  9806. { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
  9807. $as_echo "$enable_shared" >&6; }
  9808. { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  9809. $as_echo_n "checking whether to build static libraries... " >&6; }
  9810. # Make sure either enable_shared or enable_static is yes.
  9811. test "$enable_shared" = yes || enable_static=yes
  9812. { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
  9813. $as_echo "$enable_static" >&6; }
  9814. # The else clause should only fire when bootstrapping the
  9815. # libtool distribution, otherwise you forgot to ship ltmain.sh
  9816. # with your package, and you will get complaints that there are
  9817. # no rules to generate ltmain.sh.
  9818. if test -f "$ltmain"; then
  9819. # See if we are running on zsh, and set the options which allow our commands through
  9820. # without removal of \ escapes.
  9821. if test -n "${ZSH_VERSION+set}" ; then
  9822. setopt NO_GLOB_SUBST
  9823. fi
  9824. # Now quote all the things that may contain metacharacters while being
  9825. # careful not to overquote the AC_SUBSTed values. We take copies of the
  9826. # variables and quote the copies for generation of the libtool script.
  9827. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  9828. SED SHELL STRIP \
  9829. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  9830. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  9831. deplibs_check_method reload_flag reload_cmds need_locks \
  9832. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  9833. lt_cv_sys_global_symbol_to_c_name_address \
  9834. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  9835. old_postinstall_cmds old_postuninstall_cmds \
  9836. compiler \
  9837. CC \
  9838. LD \
  9839. lt_prog_compiler_wl \
  9840. lt_prog_compiler_pic \
  9841. lt_prog_compiler_static \
  9842. lt_prog_compiler_no_builtin_flag \
  9843. export_dynamic_flag_spec \
  9844. thread_safe_flag_spec \
  9845. whole_archive_flag_spec \
  9846. enable_shared_with_static_runtimes \
  9847. old_archive_cmds \
  9848. old_archive_from_new_cmds \
  9849. predep_objects \
  9850. postdep_objects \
  9851. predeps \
  9852. postdeps \
  9853. compiler_lib_search_path \
  9854. compiler_lib_search_dirs \
  9855. archive_cmds \
  9856. archive_expsym_cmds \
  9857. postinstall_cmds \
  9858. postuninstall_cmds \
  9859. old_archive_from_expsyms_cmds \
  9860. allow_undefined_flag \
  9861. no_undefined_flag \
  9862. export_symbols_cmds \
  9863. hardcode_libdir_flag_spec \
  9864. hardcode_libdir_flag_spec_ld \
  9865. hardcode_libdir_separator \
  9866. hardcode_automatic \
  9867. module_cmds \
  9868. module_expsym_cmds \
  9869. lt_cv_prog_compiler_c_o \
  9870. fix_srcfile_path \
  9871. exclude_expsyms \
  9872. include_expsyms; do
  9873. case $var in
  9874. old_archive_cmds | \
  9875. old_archive_from_new_cmds | \
  9876. archive_cmds | \
  9877. archive_expsym_cmds | \
  9878. module_cmds | \
  9879. module_expsym_cmds | \
  9880. old_archive_from_expsyms_cmds | \
  9881. export_symbols_cmds | \
  9882. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  9883. postinstall_cmds | postuninstall_cmds | \
  9884. old_postinstall_cmds | old_postuninstall_cmds | \
  9885. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  9886. # Double-quote double-evaled strings.
  9887. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  9888. ;;
  9889. *)
  9890. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  9891. ;;
  9892. esac
  9893. done
  9894. case $lt_echo in
  9895. *'\$0 --fallback-echo"')
  9896. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  9897. ;;
  9898. esac
  9899. cfgfile="${ofile}T"
  9900. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  9901. $rm -f "$cfgfile"
  9902. { $as_echo "$as_me:$LINENO: creating $ofile" >&5
  9903. $as_echo "$as_me: creating $ofile" >&6;}
  9904. cat <<__EOF__ >> "$cfgfile"
  9905. #! $SHELL
  9906. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  9907. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  9908. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  9909. #
  9910. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
  9911. # Free Software Foundation, Inc.
  9912. #
  9913. # This file is part of GNU Libtool:
  9914. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  9915. #
  9916. # This program is free software; you can redistribute it and/or modify
  9917. # it under the terms of the GNU General Public License as published by
  9918. # the Free Software Foundation; either version 2 of the License, or
  9919. # (at your option) any later version.
  9920. #
  9921. # This program is distributed in the hope that it will be useful, but
  9922. # WITHOUT ANY WARRANTY; without even the implied warranty of
  9923. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  9924. # General Public License for more details.
  9925. #
  9926. # You should have received a copy of the GNU General Public License
  9927. # along with this program; if not, write to the Free Software
  9928. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  9929. #
  9930. # As a special exception to the GNU General Public License, if you
  9931. # distribute this file as part of a program that contains a
  9932. # configuration script generated by Autoconf, you may include it under
  9933. # the same distribution terms that you use for the rest of that program.
  9934. # A sed program that does not truncate output.
  9935. SED=$lt_SED
  9936. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  9937. Xsed="$SED -e 1s/^X//"
  9938. # The HP-UX ksh and POSIX shell print the target directory to stdout
  9939. # if CDPATH is set.
  9940. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9941. # The names of the tagged configurations supported by this script.
  9942. available_tags=
  9943. # ### BEGIN LIBTOOL CONFIG
  9944. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  9945. # Shell to use when invoking shell scripts.
  9946. SHELL=$lt_SHELL
  9947. # Whether or not to build shared libraries.
  9948. build_libtool_libs=$enable_shared
  9949. # Whether or not to build static libraries.
  9950. build_old_libs=$enable_static
  9951. # Whether or not to add -lc for building shared libraries.
  9952. build_libtool_need_lc=$archive_cmds_need_lc
  9953. # Whether or not to disallow shared libs when runtime libs are static
  9954. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  9955. # Whether or not to optimize for fast installation.
  9956. fast_install=$enable_fast_install
  9957. # The host system.
  9958. host_alias=$host_alias
  9959. host=$host
  9960. host_os=$host_os
  9961. # The build system.
  9962. build_alias=$build_alias
  9963. build=$build
  9964. build_os=$build_os
  9965. # An echo program that does not interpret backslashes.
  9966. echo=$lt_echo
  9967. # The archiver.
  9968. AR=$lt_AR
  9969. AR_FLAGS=$lt_AR_FLAGS
  9970. # A C compiler.
  9971. LTCC=$lt_LTCC
  9972. # LTCC compiler flags.
  9973. LTCFLAGS=$lt_LTCFLAGS
  9974. # A language-specific compiler.
  9975. CC=$lt_compiler
  9976. # Is the compiler the GNU C compiler?
  9977. with_gcc=$GCC
  9978. # An ERE matcher.
  9979. EGREP=$lt_EGREP
  9980. # The linker used to build libraries.
  9981. LD=$lt_LD
  9982. # Whether we need hard or soft links.
  9983. LN_S=$lt_LN_S
  9984. # A BSD-compatible nm program.
  9985. NM=$lt_NM
  9986. # A symbol stripping program
  9987. STRIP=$lt_STRIP
  9988. # Used to examine libraries when file_magic_cmd begins "file"
  9989. MAGIC_CMD=$MAGIC_CMD
  9990. # Used on cygwin: DLL creation program.
  9991. DLLTOOL="$DLLTOOL"
  9992. # Used on cygwin: object dumper.
  9993. OBJDUMP="$OBJDUMP"
  9994. # Used on cygwin: assembler.
  9995. AS="$AS"
  9996. # The name of the directory that contains temporary libtool files.
  9997. objdir=$objdir
  9998. # How to create reloadable object files.
  9999. reload_flag=$lt_reload_flag
  10000. reload_cmds=$lt_reload_cmds
  10001. # How to pass a linker flag through the compiler.
  10002. wl=$lt_lt_prog_compiler_wl
  10003. # Object file suffix (normally "o").
  10004. objext="$ac_objext"
  10005. # Old archive suffix (normally "a").
  10006. libext="$libext"
  10007. # Shared library suffix (normally ".so").
  10008. shrext_cmds='$shrext_cmds'
  10009. # Executable file suffix (normally "").
  10010. exeext="$exeext"
  10011. # Additional compiler flags for building library objects.
  10012. pic_flag=$lt_lt_prog_compiler_pic
  10013. pic_mode=$pic_mode
  10014. # What is the maximum length of a command?
  10015. max_cmd_len=$lt_cv_sys_max_cmd_len
  10016. # Does compiler simultaneously support -c and -o options?
  10017. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  10018. # Must we lock files when doing compilation?
  10019. need_locks=$lt_need_locks
  10020. # Do we need the lib prefix for modules?
  10021. need_lib_prefix=$need_lib_prefix
  10022. # Do we need a version for libraries?
  10023. need_version=$need_version
  10024. # Whether dlopen is supported.
  10025. dlopen_support=$enable_dlopen
  10026. # Whether dlopen of programs is supported.
  10027. dlopen_self=$enable_dlopen_self
  10028. # Whether dlopen of statically linked programs is supported.
  10029. dlopen_self_static=$enable_dlopen_self_static
  10030. # Compiler flag to prevent dynamic linking.
  10031. link_static_flag=$lt_lt_prog_compiler_static
  10032. # Compiler flag to turn off builtin functions.
  10033. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  10034. # Compiler flag to allow reflexive dlopens.
  10035. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  10036. # Compiler flag to generate shared objects directly from archives.
  10037. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  10038. # Compiler flag to generate thread-safe objects.
  10039. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  10040. # Library versioning type.
  10041. version_type=$version_type
  10042. # Format of library name prefix.
  10043. libname_spec=$lt_libname_spec
  10044. # List of archive names. First name is the real one, the rest are links.
  10045. # The last name is the one that the linker finds with -lNAME.
  10046. library_names_spec=$lt_library_names_spec
  10047. # The coded name of the library, if different from the real name.
  10048. soname_spec=$lt_soname_spec
  10049. # Commands used to build and install an old-style archive.
  10050. RANLIB=$lt_RANLIB
  10051. old_archive_cmds=$lt_old_archive_cmds
  10052. old_postinstall_cmds=$lt_old_postinstall_cmds
  10053. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  10054. # Create an old-style archive from a shared archive.
  10055. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  10056. # Create a temporary old-style archive to link instead of a shared archive.
  10057. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  10058. # Commands used to build and install a shared archive.
  10059. archive_cmds=$lt_archive_cmds
  10060. archive_expsym_cmds=$lt_archive_expsym_cmds
  10061. postinstall_cmds=$lt_postinstall_cmds
  10062. postuninstall_cmds=$lt_postuninstall_cmds
  10063. # Commands used to build a loadable module (assumed same as above if empty)
  10064. module_cmds=$lt_module_cmds
  10065. module_expsym_cmds=$lt_module_expsym_cmds
  10066. # Commands to strip libraries.
  10067. old_striplib=$lt_old_striplib
  10068. striplib=$lt_striplib
  10069. # Dependencies to place before the objects being linked to create a
  10070. # shared library.
  10071. predep_objects=$lt_predep_objects
  10072. # Dependencies to place after the objects being linked to create a
  10073. # shared library.
  10074. postdep_objects=$lt_postdep_objects
  10075. # Dependencies to place before the objects being linked to create a
  10076. # shared library.
  10077. predeps=$lt_predeps
  10078. # Dependencies to place after the objects being linked to create a
  10079. # shared library.
  10080. postdeps=$lt_postdeps
  10081. # The directories searched by this compiler when creating a shared
  10082. # library
  10083. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  10084. # The library search path used internally by the compiler when linking
  10085. # a shared library.
  10086. compiler_lib_search_path=$lt_compiler_lib_search_path
  10087. # Method to check whether dependent libraries are shared objects.
  10088. deplibs_check_method=$lt_deplibs_check_method
  10089. # Command to use when deplibs_check_method == file_magic.
  10090. file_magic_cmd=$lt_file_magic_cmd
  10091. # Flag that allows shared libraries with undefined symbols to be built.
  10092. allow_undefined_flag=$lt_allow_undefined_flag
  10093. # Flag that forces no undefined symbols.
  10094. no_undefined_flag=$lt_no_undefined_flag
  10095. # Commands used to finish a libtool library installation in a directory.
  10096. finish_cmds=$lt_finish_cmds
  10097. # Same as above, but a single script fragment to be evaled but not shown.
  10098. finish_eval=$lt_finish_eval
  10099. # Take the output of nm and produce a listing of raw symbols and C names.
  10100. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  10101. # Transform the output of nm in a proper C declaration
  10102. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  10103. # Transform the output of nm in a C name address pair
  10104. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  10105. # This is the shared library runtime path variable.
  10106. runpath_var=$runpath_var
  10107. # This is the shared library path variable.
  10108. shlibpath_var=$shlibpath_var
  10109. # Is shlibpath searched before the hard-coded library search path?
  10110. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  10111. # How to hardcode a shared library path into an executable.
  10112. hardcode_action=$hardcode_action
  10113. # Whether we should hardcode library paths into libraries.
  10114. hardcode_into_libs=$hardcode_into_libs
  10115. # Flag to hardcode \$libdir into a binary during linking.
  10116. # This must work even if \$libdir does not exist.
  10117. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  10118. # If ld is used when linking, flag to hardcode \$libdir into
  10119. # a binary during linking. This must work even if \$libdir does
  10120. # not exist.
  10121. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  10122. # Whether we need a single -rpath flag with a separated argument.
  10123. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  10124. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  10125. # resulting binary.
  10126. hardcode_direct=$hardcode_direct
  10127. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  10128. # resulting binary.
  10129. hardcode_minus_L=$hardcode_minus_L
  10130. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  10131. # the resulting binary.
  10132. hardcode_shlibpath_var=$hardcode_shlibpath_var
  10133. # Set to yes if building a shared library automatically hardcodes DIR into the library
  10134. # and all subsequent libraries and executables linked against it.
  10135. hardcode_automatic=$hardcode_automatic
  10136. # Variables whose values should be saved in libtool wrapper scripts and
  10137. # restored at relink time.
  10138. variables_saved_for_relink="$variables_saved_for_relink"
  10139. # Whether libtool must link a program against all its dependency libraries.
  10140. link_all_deplibs=$link_all_deplibs
  10141. # Compile-time system search path for libraries
  10142. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  10143. # Run-time system search path for libraries
  10144. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  10145. # Fix the shell variable \$srcfile for the compiler.
  10146. fix_srcfile_path=$lt_fix_srcfile_path
  10147. # Set to yes if exported symbols are required.
  10148. always_export_symbols=$always_export_symbols
  10149. # The commands to list exported symbols.
  10150. export_symbols_cmds=$lt_export_symbols_cmds
  10151. # The commands to extract the exported symbol list from a shared archive.
  10152. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  10153. # Symbols that should not be listed in the preloaded symbols.
  10154. exclude_expsyms=$lt_exclude_expsyms
  10155. # Symbols that must always be exported.
  10156. include_expsyms=$lt_include_expsyms
  10157. # ### END LIBTOOL CONFIG
  10158. __EOF__
  10159. case $host_os in
  10160. aix3*)
  10161. cat <<\EOF >> "$cfgfile"
  10162. # AIX sometimes has problems with the GCC collect2 program. For some
  10163. # reason, if we set the COLLECT_NAMES environment variable, the problems
  10164. # vanish in a puff of smoke.
  10165. if test "X${COLLECT_NAMES+set}" != Xset; then
  10166. COLLECT_NAMES=
  10167. export COLLECT_NAMES
  10168. fi
  10169. EOF
  10170. ;;
  10171. esac
  10172. # We use sed instead of cat because bash on DJGPP gets confused if
  10173. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  10174. # text mode, it properly converts lines to CR/LF. This bash problem
  10175. # is reportedly fixed, but why not run on old versions too?
  10176. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  10177. mv -f "$cfgfile" "$ofile" || \
  10178. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  10179. chmod +x "$ofile"
  10180. else
  10181. # If there is no Makefile yet, we rely on a make rule to execute
  10182. # `config.status --recheck' to rerun these tests and create the
  10183. # libtool script then.
  10184. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  10185. if test -f "$ltmain_in"; then
  10186. test -f Makefile && make "$ltmain"
  10187. fi
  10188. fi
  10189. ac_ext=c
  10190. ac_cpp='$CPP $CPPFLAGS'
  10191. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10192. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10193. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10194. CC="$lt_save_CC"
  10195. # Check whether --with-tags was given.
  10196. if test "${with_tags+set}" = set; then
  10197. withval=$with_tags; tagnames="$withval"
  10198. fi
  10199. if test -f "$ltmain" && test -n "$tagnames"; then
  10200. if test ! -f "${ofile}"; then
  10201. { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  10202. $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  10203. fi
  10204. if test -z "$LTCC"; then
  10205. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  10206. if test -z "$LTCC"; then
  10207. { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  10208. $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  10209. else
  10210. { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  10211. $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  10212. fi
  10213. fi
  10214. if test -z "$LTCFLAGS"; then
  10215. eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  10216. fi
  10217. # Extract list of available tagged configurations in $ofile.
  10218. # Note that this assumes the entire list is on one line.
  10219. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  10220. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  10221. for tagname in $tagnames; do
  10222. IFS="$lt_save_ifs"
  10223. # Check whether tagname contains only valid characters
  10224. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  10225. "") ;;
  10226. *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  10227. $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
  10228. { (exit 1); exit 1; }; }
  10229. ;;
  10230. esac
  10231. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  10232. then
  10233. { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  10234. $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  10235. { (exit 1); exit 1; }; }
  10236. fi
  10237. # Update the list of available tags.
  10238. if test -n "$tagname"; then
  10239. echo appending configuration tag \"$tagname\" to $ofile
  10240. case $tagname in
  10241. CXX)
  10242. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10243. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10244. (test "X$CXX" != "Xg++"))) ; then
  10245. ac_ext=cpp
  10246. ac_cpp='$CXXCPP $CPPFLAGS'
  10247. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10248. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10249. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10250. archive_cmds_need_lc_CXX=no
  10251. allow_undefined_flag_CXX=
  10252. always_export_symbols_CXX=no
  10253. archive_expsym_cmds_CXX=
  10254. export_dynamic_flag_spec_CXX=
  10255. hardcode_direct_CXX=no
  10256. hardcode_libdir_flag_spec_CXX=
  10257. hardcode_libdir_flag_spec_ld_CXX=
  10258. hardcode_libdir_separator_CXX=
  10259. hardcode_minus_L_CXX=no
  10260. hardcode_shlibpath_var_CXX=unsupported
  10261. hardcode_automatic_CXX=no
  10262. module_cmds_CXX=
  10263. module_expsym_cmds_CXX=
  10264. link_all_deplibs_CXX=unknown
  10265. old_archive_cmds_CXX=$old_archive_cmds
  10266. no_undefined_flag_CXX=
  10267. whole_archive_flag_spec_CXX=
  10268. enable_shared_with_static_runtimes_CXX=no
  10269. # Dependencies to place before and after the object being linked:
  10270. predep_objects_CXX=
  10271. postdep_objects_CXX=
  10272. predeps_CXX=
  10273. postdeps_CXX=
  10274. compiler_lib_search_path_CXX=
  10275. compiler_lib_search_dirs_CXX=
  10276. # Source file extension for C++ test sources.
  10277. ac_ext=cpp
  10278. # Object file extension for compiled C++ test sources.
  10279. objext=o
  10280. objext_CXX=$objext
  10281. # Code to be used in simple compile tests
  10282. lt_simple_compile_test_code="int some_variable = 0;"
  10283. # Code to be used in simple link tests
  10284. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10285. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10286. # If no C compiler was specified, use CC.
  10287. LTCC=${LTCC-"$CC"}
  10288. # If no C compiler flags were specified, use CFLAGS.
  10289. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10290. # Allow CC to be a program name with arguments.
  10291. compiler=$CC
  10292. # save warnings/boilerplate of simple test code
  10293. ac_outfile=conftest.$ac_objext
  10294. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10295. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10296. _lt_compiler_boilerplate=`cat conftest.err`
  10297. $rm conftest*
  10298. ac_outfile=conftest.$ac_objext
  10299. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10300. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10301. _lt_linker_boilerplate=`cat conftest.err`
  10302. $rm -r conftest*
  10303. # Allow CC to be a program name with arguments.
  10304. lt_save_CC=$CC
  10305. lt_save_LD=$LD
  10306. lt_save_GCC=$GCC
  10307. GCC=$GXX
  10308. lt_save_with_gnu_ld=$with_gnu_ld
  10309. lt_save_path_LD=$lt_cv_path_LD
  10310. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10311. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10312. else
  10313. $as_unset lt_cv_prog_gnu_ld
  10314. fi
  10315. if test -n "${lt_cv_path_LDCXX+set}"; then
  10316. lt_cv_path_LD=$lt_cv_path_LDCXX
  10317. else
  10318. $as_unset lt_cv_path_LD
  10319. fi
  10320. test -z "${LDCXX+set}" || LD=$LDCXX
  10321. CC=${CXX-"c++"}
  10322. compiler=$CC
  10323. compiler_CXX=$CC
  10324. for cc_temp in $compiler""; do
  10325. case $cc_temp in
  10326. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10327. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10328. \-*) ;;
  10329. *) break;;
  10330. esac
  10331. done
  10332. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  10333. # We don't want -fno-exception wen compiling C++ code, so set the
  10334. # no_builtin_flag separately
  10335. if test "$GXX" = yes; then
  10336. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10337. else
  10338. lt_prog_compiler_no_builtin_flag_CXX=
  10339. fi
  10340. if test "$GXX" = yes; then
  10341. # Set up default GNU C++ configuration
  10342. # Check whether --with-gnu-ld was given.
  10343. if test "${with_gnu_ld+set}" = set; then
  10344. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10345. else
  10346. with_gnu_ld=no
  10347. fi
  10348. ac_prog=ld
  10349. if test "$GCC" = yes; then
  10350. # Check if gcc -print-prog-name=ld gives a path.
  10351. { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  10352. $as_echo_n "checking for ld used by $CC... " >&6; }
  10353. case $host in
  10354. *-*-mingw*)
  10355. # gcc leaves a trailing carriage return which upsets mingw
  10356. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10357. *)
  10358. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10359. esac
  10360. case $ac_prog in
  10361. # Accept absolute paths.
  10362. [\\/]* | ?:[\\/]*)
  10363. re_direlt='/[^/][^/]*/\.\./'
  10364. # Canonicalize the pathname of ld
  10365. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  10366. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  10367. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  10368. done
  10369. test -z "$LD" && LD="$ac_prog"
  10370. ;;
  10371. "")
  10372. # If it fails, then pretend we aren't using GCC.
  10373. ac_prog=ld
  10374. ;;
  10375. *)
  10376. # If it is relative, then search for the first ld in PATH.
  10377. with_gnu_ld=unknown
  10378. ;;
  10379. esac
  10380. elif test "$with_gnu_ld" = yes; then
  10381. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  10382. $as_echo_n "checking for GNU ld... " >&6; }
  10383. else
  10384. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  10385. $as_echo_n "checking for non-GNU ld... " >&6; }
  10386. fi
  10387. if test "${lt_cv_path_LD+set}" = set; then
  10388. $as_echo_n "(cached) " >&6
  10389. else
  10390. if test -z "$LD"; then
  10391. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10392. for ac_dir in $PATH; do
  10393. IFS="$lt_save_ifs"
  10394. test -z "$ac_dir" && ac_dir=.
  10395. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10396. lt_cv_path_LD="$ac_dir/$ac_prog"
  10397. # Check to see if the program is GNU ld. I'd rather use --version,
  10398. # but apparently some variants of GNU ld only accept -v.
  10399. # Break only if it was the GNU/non-GNU ld that we prefer.
  10400. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10401. *GNU* | *'with BFD'*)
  10402. test "$with_gnu_ld" != no && break
  10403. ;;
  10404. *)
  10405. test "$with_gnu_ld" != yes && break
  10406. ;;
  10407. esac
  10408. fi
  10409. done
  10410. IFS="$lt_save_ifs"
  10411. else
  10412. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10413. fi
  10414. fi
  10415. LD="$lt_cv_path_LD"
  10416. if test -n "$LD"; then
  10417. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  10418. $as_echo "$LD" >&6; }
  10419. else
  10420. { $as_echo "$as_me:$LINENO: result: no" >&5
  10421. $as_echo "no" >&6; }
  10422. fi
  10423. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  10424. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  10425. { (exit 1); exit 1; }; }
  10426. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  10427. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10428. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  10429. $as_echo_n "(cached) " >&6
  10430. else
  10431. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10432. case `$LD -v 2>&1 </dev/null` in
  10433. *GNU* | *'with BFD'*)
  10434. lt_cv_prog_gnu_ld=yes
  10435. ;;
  10436. *)
  10437. lt_cv_prog_gnu_ld=no
  10438. ;;
  10439. esac
  10440. fi
  10441. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  10442. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10443. with_gnu_ld=$lt_cv_prog_gnu_ld
  10444. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10445. # archiving commands below assume that GNU ld is being used.
  10446. if test "$with_gnu_ld" = yes; then
  10447. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10448. 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'
  10449. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10450. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10451. # If archive_cmds runs LD, not CC, wlarc should be empty
  10452. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10453. # investigate it a little bit more. (MM)
  10454. wlarc='${wl}'
  10455. # ancient GNU ld didn't support --whole-archive et. al.
  10456. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  10457. grep 'no-whole-archive' > /dev/null; then
  10458. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10459. else
  10460. whole_archive_flag_spec_CXX=
  10461. fi
  10462. else
  10463. with_gnu_ld=no
  10464. wlarc=
  10465. # A generic and very simple default shared library creation
  10466. # command for GNU C++ for the case where it uses the native
  10467. # linker, instead of GNU ld. If possible, this setting should
  10468. # overridden to take advantage of the native linker features on
  10469. # the platform it is being used on.
  10470. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10471. fi
  10472. # Commands to make compiler produce verbose output that lists
  10473. # what "hidden" libraries, object files and flags are used when
  10474. # linking a shared library.
  10475. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10476. else
  10477. GXX=no
  10478. with_gnu_ld=no
  10479. wlarc=
  10480. fi
  10481. # PORTME: fill in a description of your system's C++ link characteristics
  10482. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10483. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10484. ld_shlibs_CXX=yes
  10485. case $host_os in
  10486. aix3*)
  10487. # FIXME: insert proper C++ library support
  10488. ld_shlibs_CXX=no
  10489. ;;
  10490. aix[4-9]*)
  10491. if test "$host_cpu" = ia64; then
  10492. # On IA64, the linker does run time linking by default, so we don't
  10493. # have to do anything special.
  10494. aix_use_runtimelinking=no
  10495. exp_sym_flag='-Bexport'
  10496. no_entry_flag=""
  10497. else
  10498. aix_use_runtimelinking=no
  10499. # Test if we are trying to use run time linking or normal
  10500. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10501. # need to do runtime linking.
  10502. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10503. for ld_flag in $LDFLAGS; do
  10504. case $ld_flag in
  10505. *-brtl*)
  10506. aix_use_runtimelinking=yes
  10507. break
  10508. ;;
  10509. esac
  10510. done
  10511. ;;
  10512. esac
  10513. exp_sym_flag='-bexport'
  10514. no_entry_flag='-bnoentry'
  10515. fi
  10516. # When large executables or shared objects are built, AIX ld can
  10517. # have problems creating the table of contents. If linking a library
  10518. # or program results in "error TOC overflow" add -mminimal-toc to
  10519. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10520. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10521. archive_cmds_CXX=''
  10522. hardcode_direct_CXX=yes
  10523. hardcode_libdir_separator_CXX=':'
  10524. link_all_deplibs_CXX=yes
  10525. if test "$GXX" = yes; then
  10526. case $host_os in aix4.[012]|aix4.[012].*)
  10527. # We only want to do this on AIX 4.2 and lower, the check
  10528. # below for broken collect2 doesn't work under 4.3+
  10529. collect2name=`${CC} -print-prog-name=collect2`
  10530. if test -f "$collect2name" && \
  10531. strings "$collect2name" | grep resolve_lib_name >/dev/null
  10532. then
  10533. # We have reworked collect2
  10534. :
  10535. else
  10536. # We have old collect2
  10537. hardcode_direct_CXX=unsupported
  10538. # It fails to find uninstalled libraries when the uninstalled
  10539. # path is not listed in the libpath. Setting hardcode_minus_L
  10540. # to unsupported forces relinking
  10541. hardcode_minus_L_CXX=yes
  10542. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10543. hardcode_libdir_separator_CXX=
  10544. fi
  10545. ;;
  10546. esac
  10547. shared_flag='-shared'
  10548. if test "$aix_use_runtimelinking" = yes; then
  10549. shared_flag="$shared_flag "'${wl}-G'
  10550. fi
  10551. else
  10552. # not using gcc
  10553. if test "$host_cpu" = ia64; then
  10554. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10555. # chokes on -Wl,-G. The following line is correct:
  10556. shared_flag='-G'
  10557. else
  10558. if test "$aix_use_runtimelinking" = yes; then
  10559. shared_flag='${wl}-G'
  10560. else
  10561. shared_flag='${wl}-bM:SRE'
  10562. fi
  10563. fi
  10564. fi
  10565. # It seems that -bexpall does not export symbols beginning with
  10566. # underscore (_), so it is better to generate a list of symbols to export.
  10567. always_export_symbols_CXX=yes
  10568. if test "$aix_use_runtimelinking" = yes; then
  10569. # Warning - without using the other runtime loading flags (-brtl),
  10570. # -berok will link without error, but may produce a broken library.
  10571. allow_undefined_flag_CXX='-berok'
  10572. # Determine the default libpath from the value encoded in an empty executable.
  10573. cat >conftest.$ac_ext <<_ACEOF
  10574. /* confdefs.h. */
  10575. _ACEOF
  10576. cat confdefs.h >>conftest.$ac_ext
  10577. cat >>conftest.$ac_ext <<_ACEOF
  10578. /* end confdefs.h. */
  10579. int
  10580. main ()
  10581. {
  10582. ;
  10583. return 0;
  10584. }
  10585. _ACEOF
  10586. rm -f conftest.$ac_objext conftest$ac_exeext
  10587. if { (ac_try="$ac_link"
  10588. case "(($ac_try" in
  10589. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10590. *) ac_try_echo=$ac_try;;
  10591. esac
  10592. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10593. $as_echo "$ac_try_echo") >&5
  10594. (eval "$ac_link") 2>conftest.er1
  10595. ac_status=$?
  10596. grep -v '^ *+' conftest.er1 >conftest.err
  10597. rm -f conftest.er1
  10598. cat conftest.err >&5
  10599. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10600. (exit $ac_status); } && {
  10601. test -z "$ac_cxx_werror_flag" ||
  10602. test ! -s conftest.err
  10603. } && test -s conftest$ac_exeext && {
  10604. test "$cross_compiling" = yes ||
  10605. $as_test_x conftest$ac_exeext
  10606. }; then
  10607. lt_aix_libpath_sed='
  10608. /Import File Strings/,/^$/ {
  10609. /^0/ {
  10610. s/^0 *\(.*\)$/\1/
  10611. p
  10612. }
  10613. }'
  10614. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10615. # Check for a 64-bit object if we didn't find anything.
  10616. if test -z "$aix_libpath"; then
  10617. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10618. fi
  10619. else
  10620. $as_echo "$as_me: failed program was:" >&5
  10621. sed 's/^/| /' conftest.$ac_ext >&5
  10622. fi
  10623. rm -rf conftest.dSYM
  10624. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10625. conftest$ac_exeext conftest.$ac_ext
  10626. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10627. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10628. 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"
  10629. else
  10630. if test "$host_cpu" = ia64; then
  10631. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10632. allow_undefined_flag_CXX="-z nodefs"
  10633. 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"
  10634. else
  10635. # Determine the default libpath from the value encoded in an empty executable.
  10636. cat >conftest.$ac_ext <<_ACEOF
  10637. /* confdefs.h. */
  10638. _ACEOF
  10639. cat confdefs.h >>conftest.$ac_ext
  10640. cat >>conftest.$ac_ext <<_ACEOF
  10641. /* end confdefs.h. */
  10642. int
  10643. main ()
  10644. {
  10645. ;
  10646. return 0;
  10647. }
  10648. _ACEOF
  10649. rm -f conftest.$ac_objext conftest$ac_exeext
  10650. if { (ac_try="$ac_link"
  10651. case "(($ac_try" in
  10652. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10653. *) ac_try_echo=$ac_try;;
  10654. esac
  10655. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10656. $as_echo "$ac_try_echo") >&5
  10657. (eval "$ac_link") 2>conftest.er1
  10658. ac_status=$?
  10659. grep -v '^ *+' conftest.er1 >conftest.err
  10660. rm -f conftest.er1
  10661. cat conftest.err >&5
  10662. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10663. (exit $ac_status); } && {
  10664. test -z "$ac_cxx_werror_flag" ||
  10665. test ! -s conftest.err
  10666. } && test -s conftest$ac_exeext && {
  10667. test "$cross_compiling" = yes ||
  10668. $as_test_x conftest$ac_exeext
  10669. }; then
  10670. lt_aix_libpath_sed='
  10671. /Import File Strings/,/^$/ {
  10672. /^0/ {
  10673. s/^0 *\(.*\)$/\1/
  10674. p
  10675. }
  10676. }'
  10677. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10678. # Check for a 64-bit object if we didn't find anything.
  10679. if test -z "$aix_libpath"; then
  10680. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10681. fi
  10682. else
  10683. $as_echo "$as_me: failed program was:" >&5
  10684. sed 's/^/| /' conftest.$ac_ext >&5
  10685. fi
  10686. rm -rf conftest.dSYM
  10687. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10688. conftest$ac_exeext conftest.$ac_ext
  10689. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10690. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10691. # Warning - without using the other run time loading flags,
  10692. # -berok will link without error, but may produce a broken library.
  10693. no_undefined_flag_CXX=' ${wl}-bernotok'
  10694. allow_undefined_flag_CXX=' ${wl}-berok'
  10695. # Exported symbols can be pulled into shared objects from archives
  10696. whole_archive_flag_spec_CXX='$convenience'
  10697. archive_cmds_need_lc_CXX=yes
  10698. # This is similar to how AIX traditionally builds its shared libraries.
  10699. 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'
  10700. fi
  10701. fi
  10702. ;;
  10703. beos*)
  10704. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  10705. allow_undefined_flag_CXX=unsupported
  10706. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10707. # support --undefined. This deserves some investigation. FIXME
  10708. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10709. else
  10710. ld_shlibs_CXX=no
  10711. fi
  10712. ;;
  10713. chorus*)
  10714. case $cc_basename in
  10715. *)
  10716. # FIXME: insert proper C++ library support
  10717. ld_shlibs_CXX=no
  10718. ;;
  10719. esac
  10720. ;;
  10721. cygwin* | mingw* | pw32*)
  10722. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10723. # as there is no search path for DLLs.
  10724. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10725. allow_undefined_flag_CXX=unsupported
  10726. always_export_symbols_CXX=no
  10727. enable_shared_with_static_runtimes_CXX=yes
  10728. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  10729. 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'
  10730. # If the export-symbols file already is a .def file (1st line
  10731. # is EXPORTS), use it as is; otherwise, prepend...
  10732. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10733. cp $export_symbols $output_objdir/$soname.def;
  10734. else
  10735. echo EXPORTS > $output_objdir/$soname.def;
  10736. cat $export_symbols >> $output_objdir/$soname.def;
  10737. fi~
  10738. $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'
  10739. else
  10740. ld_shlibs_CXX=no
  10741. fi
  10742. ;;
  10743. darwin* | rhapsody*)
  10744. archive_cmds_need_lc_CXX=no
  10745. hardcode_direct_CXX=no
  10746. hardcode_automatic_CXX=yes
  10747. hardcode_shlibpath_var_CXX=unsupported
  10748. whole_archive_flag_spec_CXX=''
  10749. link_all_deplibs_CXX=yes
  10750. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  10751. if test "$GXX" = yes ; then
  10752. output_verbose_link_cmd='echo'
  10753. archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  10754. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10755. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  10756. module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  10757. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  10758. 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${_lt_dsymutil}"
  10759. archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
  10760. fi
  10761. else
  10762. case $cc_basename in
  10763. xlc*)
  10764. output_verbose_link_cmd='echo'
  10765. 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'
  10766. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  10767. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  10768. 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}'
  10769. 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}'
  10770. ;;
  10771. *)
  10772. ld_shlibs_CXX=no
  10773. ;;
  10774. esac
  10775. fi
  10776. ;;
  10777. dgux*)
  10778. case $cc_basename in
  10779. ec++*)
  10780. # FIXME: insert proper C++ library support
  10781. ld_shlibs_CXX=no
  10782. ;;
  10783. ghcx*)
  10784. # Green Hills C++ Compiler
  10785. # FIXME: insert proper C++ library support
  10786. ld_shlibs_CXX=no
  10787. ;;
  10788. *)
  10789. # FIXME: insert proper C++ library support
  10790. ld_shlibs_CXX=no
  10791. ;;
  10792. esac
  10793. ;;
  10794. freebsd[12]*)
  10795. # C++ shared libraries reported to be fairly broken before switch to ELF
  10796. ld_shlibs_CXX=no
  10797. ;;
  10798. freebsd-elf*)
  10799. archive_cmds_need_lc_CXX=no
  10800. ;;
  10801. freebsd* | dragonfly*)
  10802. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10803. # conventions
  10804. ld_shlibs_CXX=yes
  10805. ;;
  10806. gnu*)
  10807. ;;
  10808. hpux9*)
  10809. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10810. hardcode_libdir_separator_CXX=:
  10811. export_dynamic_flag_spec_CXX='${wl}-E'
  10812. hardcode_direct_CXX=yes
  10813. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10814. # but as the default
  10815. # location of the library.
  10816. case $cc_basename in
  10817. CC*)
  10818. # FIXME: insert proper C++ library support
  10819. ld_shlibs_CXX=no
  10820. ;;
  10821. aCC*)
  10822. 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'
  10823. # Commands to make compiler produce verbose output that lists
  10824. # what "hidden" libraries, object files and flags are used when
  10825. # linking a shared library.
  10826. #
  10827. # There doesn't appear to be a way to prevent this compiler from
  10828. # explicitly linking system object files so we need to strip them
  10829. # from the output so that they don't get included in the library
  10830. # dependencies.
  10831. 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'
  10832. ;;
  10833. *)
  10834. if test "$GXX" = yes; then
  10835. 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'
  10836. else
  10837. # FIXME: insert proper C++ library support
  10838. ld_shlibs_CXX=no
  10839. fi
  10840. ;;
  10841. esac
  10842. ;;
  10843. hpux10*|hpux11*)
  10844. if test $with_gnu_ld = no; then
  10845. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10846. hardcode_libdir_separator_CXX=:
  10847. case $host_cpu in
  10848. hppa*64*|ia64*) ;;
  10849. *)
  10850. export_dynamic_flag_spec_CXX='${wl}-E'
  10851. ;;
  10852. esac
  10853. fi
  10854. case $host_cpu in
  10855. hppa*64*|ia64*)
  10856. hardcode_direct_CXX=no
  10857. hardcode_shlibpath_var_CXX=no
  10858. ;;
  10859. *)
  10860. hardcode_direct_CXX=yes
  10861. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10862. # but as the default
  10863. # location of the library.
  10864. ;;
  10865. esac
  10866. case $cc_basename in
  10867. CC*)
  10868. # FIXME: insert proper C++ library support
  10869. ld_shlibs_CXX=no
  10870. ;;
  10871. aCC*)
  10872. case $host_cpu in
  10873. hppa*64*)
  10874. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10875. ;;
  10876. ia64*)
  10877. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10878. ;;
  10879. *)
  10880. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10881. ;;
  10882. esac
  10883. # Commands to make compiler produce verbose output that lists
  10884. # what "hidden" libraries, object files and flags are used when
  10885. # linking a shared library.
  10886. #
  10887. # There doesn't appear to be a way to prevent this compiler from
  10888. # explicitly linking system object files so we need to strip them
  10889. # from the output so that they don't get included in the library
  10890. # dependencies.
  10891. 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'
  10892. ;;
  10893. *)
  10894. if test "$GXX" = yes; then
  10895. if test $with_gnu_ld = no; then
  10896. case $host_cpu in
  10897. hppa*64*)
  10898. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10899. ;;
  10900. ia64*)
  10901. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10902. ;;
  10903. *)
  10904. 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'
  10905. ;;
  10906. esac
  10907. fi
  10908. else
  10909. # FIXME: insert proper C++ library support
  10910. ld_shlibs_CXX=no
  10911. fi
  10912. ;;
  10913. esac
  10914. ;;
  10915. interix[3-9]*)
  10916. hardcode_direct_CXX=no
  10917. hardcode_shlibpath_var_CXX=no
  10918. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10919. export_dynamic_flag_spec_CXX='${wl}-E'
  10920. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10921. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10922. # default) and relocated if they conflict, which is a slow very memory
  10923. # consuming and fragmenting process. To avoid this, we pick a random,
  10924. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10925. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10926. 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'
  10927. 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'
  10928. ;;
  10929. irix5* | irix6*)
  10930. case $cc_basename in
  10931. CC*)
  10932. # SGI C++
  10933. 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'
  10934. # Archives containing C++ object files must be created using
  10935. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10936. # necessary to make sure instantiated templates are included
  10937. # in the archive.
  10938. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10939. ;;
  10940. *)
  10941. if test "$GXX" = yes; then
  10942. if test "$with_gnu_ld" = no; then
  10943. 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'
  10944. else
  10945. 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'
  10946. fi
  10947. fi
  10948. link_all_deplibs_CXX=yes
  10949. ;;
  10950. esac
  10951. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10952. hardcode_libdir_separator_CXX=:
  10953. ;;
  10954. linux* | k*bsd*-gnu)
  10955. case $cc_basename in
  10956. KCC*)
  10957. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10958. # KCC will only create a shared library if the output file
  10959. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10960. # to its proper name (with version) after linking.
  10961. 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'
  10962. 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'
  10963. # Commands to make compiler produce verbose output that lists
  10964. # what "hidden" libraries, object files and flags are used when
  10965. # linking a shared library.
  10966. #
  10967. # There doesn't appear to be a way to prevent this compiler from
  10968. # explicitly linking system object files so we need to strip them
  10969. # from the output so that they don't get included in the library
  10970. # dependencies.
  10971. 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'
  10972. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  10973. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10974. # Archives containing C++ object files must be created using
  10975. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10976. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10977. ;;
  10978. icpc*)
  10979. # Intel C++
  10980. with_gnu_ld=yes
  10981. # version 8.0 and above of icpc choke on multiply defined symbols
  10982. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10983. # earlier do not add the objects themselves.
  10984. case `$CC -V 2>&1` in
  10985. *"Version 7."*)
  10986. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10987. 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'
  10988. ;;
  10989. *) # Version 8.0 or newer
  10990. tmp_idyn=
  10991. case $host_cpu in
  10992. ia64*) tmp_idyn=' -i_dynamic';;
  10993. esac
  10994. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10995. 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'
  10996. ;;
  10997. esac
  10998. archive_cmds_need_lc_CXX=no
  10999. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11000. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11001. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11002. ;;
  11003. pgCC* | pgcpp*)
  11004. # Portland Group C++ compiler
  11005. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11006. 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'
  11007. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11008. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11009. 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'
  11010. ;;
  11011. cxx*)
  11012. # Compaq C++
  11013. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11014. 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'
  11015. runpath_var=LD_RUN_PATH
  11016. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11017. hardcode_libdir_separator_CXX=:
  11018. # Commands to make compiler produce verbose output that lists
  11019. # what "hidden" libraries, object files and flags are used when
  11020. # linking a shared library.
  11021. #
  11022. # There doesn't appear to be a way to prevent this compiler from
  11023. # explicitly linking system object files so we need to strip them
  11024. # from the output so that they don't get included in the library
  11025. # dependencies.
  11026. 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'
  11027. ;;
  11028. *)
  11029. case `$CC -V 2>&1 | sed 5q` in
  11030. *Sun\ C*)
  11031. # Sun C++ 5.9
  11032. no_undefined_flag_CXX=' -zdefs'
  11033. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11034. 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'
  11035. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11036. 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'
  11037. # Not sure whether something based on
  11038. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11039. # would be better.
  11040. output_verbose_link_cmd='echo'
  11041. # Archives containing C++ object files must be created using
  11042. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11043. # necessary to make sure instantiated templates are included
  11044. # in the archive.
  11045. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11046. ;;
  11047. esac
  11048. ;;
  11049. esac
  11050. ;;
  11051. lynxos*)
  11052. # FIXME: insert proper C++ library support
  11053. ld_shlibs_CXX=no
  11054. ;;
  11055. m88k*)
  11056. # FIXME: insert proper C++ library support
  11057. ld_shlibs_CXX=no
  11058. ;;
  11059. mvs*)
  11060. case $cc_basename in
  11061. cxx*)
  11062. # FIXME: insert proper C++ library support
  11063. ld_shlibs_CXX=no
  11064. ;;
  11065. *)
  11066. # FIXME: insert proper C++ library support
  11067. ld_shlibs_CXX=no
  11068. ;;
  11069. esac
  11070. ;;
  11071. netbsd*)
  11072. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11073. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11074. wlarc=
  11075. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11076. hardcode_direct_CXX=yes
  11077. hardcode_shlibpath_var_CXX=no
  11078. fi
  11079. # Workaround some broken pre-1.5 toolchains
  11080. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11081. ;;
  11082. openbsd2*)
  11083. # C++ shared libraries are fairly broken
  11084. ld_shlibs_CXX=no
  11085. ;;
  11086. openbsd*)
  11087. if test -f /usr/libexec/ld.so; then
  11088. hardcode_direct_CXX=yes
  11089. hardcode_shlibpath_var_CXX=no
  11090. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11091. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11092. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11093. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11094. export_dynamic_flag_spec_CXX='${wl}-E'
  11095. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11096. fi
  11097. output_verbose_link_cmd='echo'
  11098. else
  11099. ld_shlibs_CXX=no
  11100. fi
  11101. ;;
  11102. osf3*)
  11103. case $cc_basename in
  11104. KCC*)
  11105. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11106. # KCC will only create a shared library if the output file
  11107. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11108. # to its proper name (with version) after linking.
  11109. 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'
  11110. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11111. hardcode_libdir_separator_CXX=:
  11112. # Archives containing C++ object files must be created using
  11113. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11114. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11115. ;;
  11116. RCC*)
  11117. # Rational C++ 2.4.1
  11118. # FIXME: insert proper C++ library support
  11119. ld_shlibs_CXX=no
  11120. ;;
  11121. cxx*)
  11122. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11123. 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'
  11124. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11125. hardcode_libdir_separator_CXX=:
  11126. # Commands to make compiler produce verbose output that lists
  11127. # what "hidden" libraries, object files and flags are used when
  11128. # linking a shared library.
  11129. #
  11130. # There doesn't appear to be a way to prevent this compiler from
  11131. # explicitly linking system object files so we need to strip them
  11132. # from the output so that they don't get included in the library
  11133. # dependencies.
  11134. 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'
  11135. ;;
  11136. *)
  11137. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11138. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11139. 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'
  11140. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11141. hardcode_libdir_separator_CXX=:
  11142. # Commands to make compiler produce verbose output that lists
  11143. # what "hidden" libraries, object files and flags are used when
  11144. # linking a shared library.
  11145. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  11146. else
  11147. # FIXME: insert proper C++ library support
  11148. ld_shlibs_CXX=no
  11149. fi
  11150. ;;
  11151. esac
  11152. ;;
  11153. osf4* | osf5*)
  11154. case $cc_basename in
  11155. KCC*)
  11156. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11157. # KCC will only create a shared library if the output file
  11158. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11159. # to its proper name (with version) after linking.
  11160. 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'
  11161. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11162. hardcode_libdir_separator_CXX=:
  11163. # Archives containing C++ object files must be created using
  11164. # the KAI C++ compiler.
  11165. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  11166. ;;
  11167. RCC*)
  11168. # Rational C++ 2.4.1
  11169. # FIXME: insert proper C++ library support
  11170. ld_shlibs_CXX=no
  11171. ;;
  11172. cxx*)
  11173. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11174. 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'
  11175. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11176. echo "-hidden">> $lib.exp~
  11177. $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~
  11178. $rm $lib.exp'
  11179. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11180. hardcode_libdir_separator_CXX=:
  11181. # Commands to make compiler produce verbose output that lists
  11182. # what "hidden" libraries, object files and flags are used when
  11183. # linking a shared library.
  11184. #
  11185. # There doesn't appear to be a way to prevent this compiler from
  11186. # explicitly linking system object files so we need to strip them
  11187. # from the output so that they don't get included in the library
  11188. # dependencies.
  11189. 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'
  11190. ;;
  11191. *)
  11192. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11193. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11194. 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'
  11195. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11196. hardcode_libdir_separator_CXX=:
  11197. # Commands to make compiler produce verbose output that lists
  11198. # what "hidden" libraries, object files and flags are used when
  11199. # linking a shared library.
  11200. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  11201. else
  11202. # FIXME: insert proper C++ library support
  11203. ld_shlibs_CXX=no
  11204. fi
  11205. ;;
  11206. esac
  11207. ;;
  11208. psos*)
  11209. # FIXME: insert proper C++ library support
  11210. ld_shlibs_CXX=no
  11211. ;;
  11212. sunos4*)
  11213. case $cc_basename in
  11214. CC*)
  11215. # Sun C++ 4.x
  11216. # FIXME: insert proper C++ library support
  11217. ld_shlibs_CXX=no
  11218. ;;
  11219. lcc*)
  11220. # Lucid
  11221. # FIXME: insert proper C++ library support
  11222. ld_shlibs_CXX=no
  11223. ;;
  11224. *)
  11225. # FIXME: insert proper C++ library support
  11226. ld_shlibs_CXX=no
  11227. ;;
  11228. esac
  11229. ;;
  11230. solaris*)
  11231. case $cc_basename in
  11232. CC*)
  11233. # Sun C++ 4.2, 5.x and Centerline C++
  11234. archive_cmds_need_lc_CXX=yes
  11235. no_undefined_flag_CXX=' -zdefs'
  11236. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11237. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  11238. $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'
  11239. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11240. hardcode_shlibpath_var_CXX=no
  11241. case $host_os in
  11242. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11243. *)
  11244. # The compiler driver will combine and reorder linker options,
  11245. # but understands `-z linker_flag'.
  11246. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11247. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11248. ;;
  11249. esac
  11250. link_all_deplibs_CXX=yes
  11251. output_verbose_link_cmd='echo'
  11252. # Archives containing C++ object files must be created using
  11253. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11254. # necessary to make sure instantiated templates are included
  11255. # in the archive.
  11256. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11257. ;;
  11258. gcx*)
  11259. # Green Hills C++ Compiler
  11260. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11261. # The C++ compiler must be used to create the archive.
  11262. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11263. ;;
  11264. *)
  11265. # GNU C++ compiler with Solaris linker
  11266. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11267. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11268. if $CC --version | grep -v '^2\.7' > /dev/null; then
  11269. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11270. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  11271. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  11272. # Commands to make compiler produce verbose output that lists
  11273. # what "hidden" libraries, object files and flags are used when
  11274. # linking a shared library.
  11275. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  11276. else
  11277. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11278. # platform.
  11279. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11280. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  11281. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  11282. # Commands to make compiler produce verbose output that lists
  11283. # what "hidden" libraries, object files and flags are used when
  11284. # linking a shared library.
  11285. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  11286. fi
  11287. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11288. case $host_os in
  11289. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11290. *)
  11291. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11292. ;;
  11293. esac
  11294. fi
  11295. ;;
  11296. esac
  11297. ;;
  11298. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11299. no_undefined_flag_CXX='${wl}-z,text'
  11300. archive_cmds_need_lc_CXX=no
  11301. hardcode_shlibpath_var_CXX=no
  11302. runpath_var='LD_RUN_PATH'
  11303. case $cc_basename in
  11304. CC*)
  11305. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11306. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11307. ;;
  11308. *)
  11309. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11310. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11311. ;;
  11312. esac
  11313. ;;
  11314. sysv5* | sco3.2v5* | sco5v6*)
  11315. # Note: We can NOT use -z defs as we might desire, because we do not
  11316. # link with -lc, and that would cause any symbols used from libc to
  11317. # always be unresolved, which means just about no library would
  11318. # ever link correctly. If we're not using GNU ld we use -z text
  11319. # though, which does catch some bad symbols but isn't as heavy-handed
  11320. # as -z defs.
  11321. # For security reasons, it is highly recommended that you always
  11322. # use absolute paths for naming shared libraries, and exclude the
  11323. # DT_RUNPATH tag from executables and libraries. But doing so
  11324. # requires that you compile everything twice, which is a pain.
  11325. # So that behaviour is only enabled if SCOABSPATH is set to a
  11326. # non-empty value in the environment. Most likely only useful for
  11327. # creating official distributions of packages.
  11328. # This is a hack until libtool officially supports absolute path
  11329. # names for shared libraries.
  11330. no_undefined_flag_CXX='${wl}-z,text'
  11331. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11332. archive_cmds_need_lc_CXX=no
  11333. hardcode_shlibpath_var_CXX=no
  11334. hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  11335. hardcode_libdir_separator_CXX=':'
  11336. link_all_deplibs_CXX=yes
  11337. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11338. runpath_var='LD_RUN_PATH'
  11339. case $cc_basename in
  11340. CC*)
  11341. archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11342. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11343. ;;
  11344. *)
  11345. archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11346. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11347. ;;
  11348. esac
  11349. ;;
  11350. tandem*)
  11351. case $cc_basename in
  11352. NCC*)
  11353. # NonStop-UX NCC 3.20
  11354. # FIXME: insert proper C++ library support
  11355. ld_shlibs_CXX=no
  11356. ;;
  11357. *)
  11358. # FIXME: insert proper C++ library support
  11359. ld_shlibs_CXX=no
  11360. ;;
  11361. esac
  11362. ;;
  11363. vxworks*)
  11364. # FIXME: insert proper C++ library support
  11365. ld_shlibs_CXX=no
  11366. ;;
  11367. *)
  11368. # FIXME: insert proper C++ library support
  11369. ld_shlibs_CXX=no
  11370. ;;
  11371. esac
  11372. { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  11373. $as_echo "$ld_shlibs_CXX" >&6; }
  11374. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11375. GCC_CXX="$GXX"
  11376. LD_CXX="$LD"
  11377. cat > conftest.$ac_ext <<EOF
  11378. class Foo
  11379. {
  11380. public:
  11381. Foo (void) { a = 0; }
  11382. private:
  11383. int a;
  11384. };
  11385. EOF
  11386. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11387. (eval $ac_compile) 2>&5
  11388. ac_status=$?
  11389. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11390. (exit $ac_status); }; then
  11391. # Parse the compiler output and extract the necessary
  11392. # objects, libraries and library flags.
  11393. # Sentinel used to keep track of whether or not we are before
  11394. # the conftest object file.
  11395. pre_test_object_deps_done=no
  11396. # The `*' in the case matches for architectures that use `case' in
  11397. # $output_verbose_cmd can trigger glob expansion during the loop
  11398. # eval without this substitution.
  11399. output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  11400. for p in `eval $output_verbose_link_cmd`; do
  11401. case $p in
  11402. -L* | -R* | -l*)
  11403. # Some compilers place space between "-{L,R}" and the path.
  11404. # Remove the space.
  11405. if test $p = "-L" \
  11406. || test $p = "-R"; then
  11407. prev=$p
  11408. continue
  11409. else
  11410. prev=
  11411. fi
  11412. if test "$pre_test_object_deps_done" = no; then
  11413. case $p in
  11414. -L* | -R*)
  11415. # Internal compiler library paths should come after those
  11416. # provided the user. The postdeps already come after the
  11417. # user supplied libs so there is no need to process them.
  11418. if test -z "$compiler_lib_search_path_CXX"; then
  11419. compiler_lib_search_path_CXX="${prev}${p}"
  11420. else
  11421. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11422. fi
  11423. ;;
  11424. # The "-l" case would never come before the object being
  11425. # linked, so don't bother handling this case.
  11426. esac
  11427. else
  11428. if test -z "$postdeps_CXX"; then
  11429. postdeps_CXX="${prev}${p}"
  11430. else
  11431. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11432. fi
  11433. fi
  11434. ;;
  11435. *.$objext)
  11436. # This assumes that the test object file only shows up
  11437. # once in the compiler output.
  11438. if test "$p" = "conftest.$objext"; then
  11439. pre_test_object_deps_done=yes
  11440. continue
  11441. fi
  11442. if test "$pre_test_object_deps_done" = no; then
  11443. if test -z "$predep_objects_CXX"; then
  11444. predep_objects_CXX="$p"
  11445. else
  11446. predep_objects_CXX="$predep_objects_CXX $p"
  11447. fi
  11448. else
  11449. if test -z "$postdep_objects_CXX"; then
  11450. postdep_objects_CXX="$p"
  11451. else
  11452. postdep_objects_CXX="$postdep_objects_CXX $p"
  11453. fi
  11454. fi
  11455. ;;
  11456. *) ;; # Ignore the rest.
  11457. esac
  11458. done
  11459. # Clean up.
  11460. rm -f a.out a.exe
  11461. else
  11462. echo "libtool.m4: error: problem compiling CXX test program"
  11463. fi
  11464. $rm -f confest.$objext
  11465. compiler_lib_search_dirs_CXX=
  11466. if test -n "$compiler_lib_search_path_CXX"; then
  11467. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11468. fi
  11469. # PORTME: override above test on systems where it is broken
  11470. case $host_os in
  11471. interix[3-9]*)
  11472. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11473. # hack all around it, let's just trust "g++" to DTRT.
  11474. predep_objects_CXX=
  11475. postdep_objects_CXX=
  11476. postdeps_CXX=
  11477. ;;
  11478. linux*)
  11479. case `$CC -V 2>&1 | sed 5q` in
  11480. *Sun\ C*)
  11481. # Sun C++ 5.9
  11482. #
  11483. # The more standards-conforming stlport4 library is
  11484. # incompatible with the Cstd library. Avoid specifying
  11485. # it if it's in CXXFLAGS. Ignore libCrun as
  11486. # -library=stlport4 depends on it.
  11487. case " $CXX $CXXFLAGS " in
  11488. *" -library=stlport4 "*)
  11489. solaris_use_stlport4=yes
  11490. ;;
  11491. esac
  11492. if test "$solaris_use_stlport4" != yes; then
  11493. postdeps_CXX='-library=Cstd -library=Crun'
  11494. fi
  11495. ;;
  11496. esac
  11497. ;;
  11498. solaris*)
  11499. case $cc_basename in
  11500. CC*)
  11501. # The more standards-conforming stlport4 library is
  11502. # incompatible with the Cstd library. Avoid specifying
  11503. # it if it's in CXXFLAGS. Ignore libCrun as
  11504. # -library=stlport4 depends on it.
  11505. case " $CXX $CXXFLAGS " in
  11506. *" -library=stlport4 "*)
  11507. solaris_use_stlport4=yes
  11508. ;;
  11509. esac
  11510. # Adding this requires a known-good setup of shared libraries for
  11511. # Sun compiler versions before 5.6, else PIC objects from an old
  11512. # archive will be linked into the output, leading to subtle bugs.
  11513. if test "$solaris_use_stlport4" != yes; then
  11514. postdeps_CXX='-library=Cstd -library=Crun'
  11515. fi
  11516. ;;
  11517. esac
  11518. ;;
  11519. esac
  11520. case " $postdeps_CXX " in
  11521. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11522. esac
  11523. lt_prog_compiler_wl_CXX=
  11524. lt_prog_compiler_pic_CXX=
  11525. lt_prog_compiler_static_CXX=
  11526. { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  11527. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11528. # C++ specific cases for pic, static, wl, etc.
  11529. if test "$GXX" = yes; then
  11530. lt_prog_compiler_wl_CXX='-Wl,'
  11531. lt_prog_compiler_static_CXX='-static'
  11532. case $host_os in
  11533. aix*)
  11534. # All AIX code is PIC.
  11535. if test "$host_cpu" = ia64; then
  11536. # AIX 5 now supports IA64 processor
  11537. lt_prog_compiler_static_CXX='-Bstatic'
  11538. fi
  11539. ;;
  11540. amigaos*)
  11541. # FIXME: we need at least 68020 code to build shared libraries, but
  11542. # adding the `-m68020' flag to GCC prevents building anything better,
  11543. # like `-m68040'.
  11544. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11545. ;;
  11546. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11547. # PIC is the default for these OSes.
  11548. ;;
  11549. mingw* | cygwin* | os2* | pw32*)
  11550. # This hack is so that the source file can tell whether it is being
  11551. # built for inclusion in a dll (and should export symbols for example).
  11552. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11553. # (--disable-auto-import) libraries
  11554. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11555. ;;
  11556. darwin* | rhapsody*)
  11557. # PIC is the default on this platform
  11558. # Common symbols not allowed in MH_DYLIB files
  11559. lt_prog_compiler_pic_CXX='-fno-common'
  11560. ;;
  11561. *djgpp*)
  11562. # DJGPP does not support shared libraries at all
  11563. lt_prog_compiler_pic_CXX=
  11564. ;;
  11565. interix[3-9]*)
  11566. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11567. # Instead, we relocate shared libraries at runtime.
  11568. ;;
  11569. sysv4*MP*)
  11570. if test -d /usr/nec; then
  11571. lt_prog_compiler_pic_CXX=-Kconform_pic
  11572. fi
  11573. ;;
  11574. hpux*)
  11575. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11576. # not for PA HP-UX.
  11577. case $host_cpu in
  11578. hppa*64*|ia64*)
  11579. ;;
  11580. *)
  11581. lt_prog_compiler_pic_CXX='-fPIC'
  11582. ;;
  11583. esac
  11584. ;;
  11585. *)
  11586. lt_prog_compiler_pic_CXX='-fPIC'
  11587. ;;
  11588. esac
  11589. else
  11590. case $host_os in
  11591. aix[4-9]*)
  11592. # All AIX code is PIC.
  11593. if test "$host_cpu" = ia64; then
  11594. # AIX 5 now supports IA64 processor
  11595. lt_prog_compiler_static_CXX='-Bstatic'
  11596. else
  11597. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11598. fi
  11599. ;;
  11600. chorus*)
  11601. case $cc_basename in
  11602. cxch68*)
  11603. # Green Hills C++ Compiler
  11604. # _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"
  11605. ;;
  11606. esac
  11607. ;;
  11608. darwin*)
  11609. # PIC is the default on this platform
  11610. # Common symbols not allowed in MH_DYLIB files
  11611. case $cc_basename in
  11612. xlc*)
  11613. lt_prog_compiler_pic_CXX='-qnocommon'
  11614. lt_prog_compiler_wl_CXX='-Wl,'
  11615. ;;
  11616. esac
  11617. ;;
  11618. dgux*)
  11619. case $cc_basename in
  11620. ec++*)
  11621. lt_prog_compiler_pic_CXX='-KPIC'
  11622. ;;
  11623. ghcx*)
  11624. # Green Hills C++ Compiler
  11625. lt_prog_compiler_pic_CXX='-pic'
  11626. ;;
  11627. *)
  11628. ;;
  11629. esac
  11630. ;;
  11631. freebsd* | dragonfly*)
  11632. # FreeBSD uses GNU C++
  11633. ;;
  11634. hpux9* | hpux10* | hpux11*)
  11635. case $cc_basename in
  11636. CC*)
  11637. lt_prog_compiler_wl_CXX='-Wl,'
  11638. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11639. if test "$host_cpu" != ia64; then
  11640. lt_prog_compiler_pic_CXX='+Z'
  11641. fi
  11642. ;;
  11643. aCC*)
  11644. lt_prog_compiler_wl_CXX='-Wl,'
  11645. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11646. case $host_cpu in
  11647. hppa*64*|ia64*)
  11648. # +Z the default
  11649. ;;
  11650. *)
  11651. lt_prog_compiler_pic_CXX='+Z'
  11652. ;;
  11653. esac
  11654. ;;
  11655. *)
  11656. ;;
  11657. esac
  11658. ;;
  11659. interix*)
  11660. # This is c89, which is MS Visual C++ (no shared libs)
  11661. # Anyone wants to do a port?
  11662. ;;
  11663. irix5* | irix6* | nonstopux*)
  11664. case $cc_basename in
  11665. CC*)
  11666. lt_prog_compiler_wl_CXX='-Wl,'
  11667. lt_prog_compiler_static_CXX='-non_shared'
  11668. # CC pic flag -KPIC is the default.
  11669. ;;
  11670. *)
  11671. ;;
  11672. esac
  11673. ;;
  11674. linux* | k*bsd*-gnu)
  11675. case $cc_basename in
  11676. KCC*)
  11677. # KAI C++ Compiler
  11678. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11679. lt_prog_compiler_pic_CXX='-fPIC'
  11680. ;;
  11681. icpc* | ecpc*)
  11682. # Intel C++
  11683. lt_prog_compiler_wl_CXX='-Wl,'
  11684. lt_prog_compiler_pic_CXX='-KPIC'
  11685. lt_prog_compiler_static_CXX='-static'
  11686. ;;
  11687. pgCC* | pgcpp*)
  11688. # Portland Group C++ compiler.
  11689. lt_prog_compiler_wl_CXX='-Wl,'
  11690. lt_prog_compiler_pic_CXX='-fpic'
  11691. lt_prog_compiler_static_CXX='-Bstatic'
  11692. ;;
  11693. cxx*)
  11694. # Compaq C++
  11695. # Make sure the PIC flag is empty. It appears that all Alpha
  11696. # Linux and Compaq Tru64 Unix objects are PIC.
  11697. lt_prog_compiler_pic_CXX=
  11698. lt_prog_compiler_static_CXX='-non_shared'
  11699. ;;
  11700. *)
  11701. case `$CC -V 2>&1 | sed 5q` in
  11702. *Sun\ C*)
  11703. # Sun C++ 5.9
  11704. lt_prog_compiler_pic_CXX='-KPIC'
  11705. lt_prog_compiler_static_CXX='-Bstatic'
  11706. lt_prog_compiler_wl_CXX='-Qoption ld '
  11707. ;;
  11708. esac
  11709. ;;
  11710. esac
  11711. ;;
  11712. lynxos*)
  11713. ;;
  11714. m88k*)
  11715. ;;
  11716. mvs*)
  11717. case $cc_basename in
  11718. cxx*)
  11719. lt_prog_compiler_pic_CXX='-W c,exportall'
  11720. ;;
  11721. *)
  11722. ;;
  11723. esac
  11724. ;;
  11725. netbsd*)
  11726. ;;
  11727. osf3* | osf4* | osf5*)
  11728. case $cc_basename in
  11729. KCC*)
  11730. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11731. ;;
  11732. RCC*)
  11733. # Rational C++ 2.4.1
  11734. lt_prog_compiler_pic_CXX='-pic'
  11735. ;;
  11736. cxx*)
  11737. # Digital/Compaq C++
  11738. lt_prog_compiler_wl_CXX='-Wl,'
  11739. # Make sure the PIC flag is empty. It appears that all Alpha
  11740. # Linux and Compaq Tru64 Unix objects are PIC.
  11741. lt_prog_compiler_pic_CXX=
  11742. lt_prog_compiler_static_CXX='-non_shared'
  11743. ;;
  11744. *)
  11745. ;;
  11746. esac
  11747. ;;
  11748. psos*)
  11749. ;;
  11750. solaris*)
  11751. case $cc_basename in
  11752. CC*)
  11753. # Sun C++ 4.2, 5.x and Centerline C++
  11754. lt_prog_compiler_pic_CXX='-KPIC'
  11755. lt_prog_compiler_static_CXX='-Bstatic'
  11756. lt_prog_compiler_wl_CXX='-Qoption ld '
  11757. ;;
  11758. gcx*)
  11759. # Green Hills C++ Compiler
  11760. lt_prog_compiler_pic_CXX='-PIC'
  11761. ;;
  11762. *)
  11763. ;;
  11764. esac
  11765. ;;
  11766. sunos4*)
  11767. case $cc_basename in
  11768. CC*)
  11769. # Sun C++ 4.x
  11770. lt_prog_compiler_pic_CXX='-pic'
  11771. lt_prog_compiler_static_CXX='-Bstatic'
  11772. ;;
  11773. lcc*)
  11774. # Lucid
  11775. lt_prog_compiler_pic_CXX='-pic'
  11776. ;;
  11777. *)
  11778. ;;
  11779. esac
  11780. ;;
  11781. tandem*)
  11782. case $cc_basename in
  11783. NCC*)
  11784. # NonStop-UX NCC 3.20
  11785. lt_prog_compiler_pic_CXX='-KPIC'
  11786. ;;
  11787. *)
  11788. ;;
  11789. esac
  11790. ;;
  11791. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11792. case $cc_basename in
  11793. CC*)
  11794. lt_prog_compiler_wl_CXX='-Wl,'
  11795. lt_prog_compiler_pic_CXX='-KPIC'
  11796. lt_prog_compiler_static_CXX='-Bstatic'
  11797. ;;
  11798. esac
  11799. ;;
  11800. vxworks*)
  11801. ;;
  11802. *)
  11803. lt_prog_compiler_can_build_shared_CXX=no
  11804. ;;
  11805. esac
  11806. fi
  11807. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  11808. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  11809. #
  11810. # Check to make sure the PIC flag actually works.
  11811. #
  11812. if test -n "$lt_prog_compiler_pic_CXX"; then
  11813. { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11814. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  11815. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
  11816. $as_echo_n "(cached) " >&6
  11817. else
  11818. lt_cv_prog_compiler_pic_works_CXX=no
  11819. ac_outfile=conftest.$ac_objext
  11820. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11821. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11822. # Insert the option either (1) after the last *FLAGS variable, or
  11823. # (2) before a word containing "conftest.", or (3) at the end.
  11824. # Note that $ac_compile itself does not contain backslashes and begins
  11825. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11826. # The option is referenced via a variable to avoid confusing sed.
  11827. lt_compile=`echo "$ac_compile" | $SED \
  11828. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11829. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11830. -e 's:$: $lt_compiler_flag:'`
  11831. (eval echo "\"\$as_me:13129: $lt_compile\"" >&5)
  11832. (eval "$lt_compile" 2>conftest.err)
  11833. ac_status=$?
  11834. cat conftest.err >&5
  11835. echo "$as_me:13133: \$? = $ac_status" >&5
  11836. if (exit $ac_status) && test -s "$ac_outfile"; then
  11837. # The compiler can only warn and ignore the option if not recognized
  11838. # So say no if there are warnings other than the usual output.
  11839. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  11840. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11841. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11842. lt_cv_prog_compiler_pic_works_CXX=yes
  11843. fi
  11844. fi
  11845. $rm conftest*
  11846. fi
  11847. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  11848. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  11849. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  11850. case $lt_prog_compiler_pic_CXX in
  11851. "" | " "*) ;;
  11852. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11853. esac
  11854. else
  11855. lt_prog_compiler_pic_CXX=
  11856. lt_prog_compiler_can_build_shared_CXX=no
  11857. fi
  11858. fi
  11859. case $host_os in
  11860. # For platforms which do not support PIC, -DPIC is meaningless:
  11861. *djgpp*)
  11862. lt_prog_compiler_pic_CXX=
  11863. ;;
  11864. *)
  11865. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11866. ;;
  11867. esac
  11868. #
  11869. # Check to make sure the static flag actually works.
  11870. #
  11871. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11872. { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11873. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  11874. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
  11875. $as_echo_n "(cached) " >&6
  11876. else
  11877. lt_cv_prog_compiler_static_works_CXX=no
  11878. save_LDFLAGS="$LDFLAGS"
  11879. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11880. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11881. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11882. # The linker can only warn and ignore the option if not recognized
  11883. # So say no if there are warnings
  11884. if test -s conftest.err; then
  11885. # Append any errors to the config.log.
  11886. cat conftest.err 1>&5
  11887. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  11888. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11889. if diff conftest.exp conftest.er2 >/dev/null; then
  11890. lt_cv_prog_compiler_static_works_CXX=yes
  11891. fi
  11892. else
  11893. lt_cv_prog_compiler_static_works_CXX=yes
  11894. fi
  11895. fi
  11896. $rm -r conftest*
  11897. LDFLAGS="$save_LDFLAGS"
  11898. fi
  11899. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  11900. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  11901. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  11902. :
  11903. else
  11904. lt_prog_compiler_static_CXX=
  11905. fi
  11906. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  11907. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11908. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  11909. $as_echo_n "(cached) " >&6
  11910. else
  11911. lt_cv_prog_compiler_c_o_CXX=no
  11912. $rm -r conftest 2>/dev/null
  11913. mkdir conftest
  11914. cd conftest
  11915. mkdir out
  11916. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11917. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11918. # Insert the option either (1) after the last *FLAGS variable, or
  11919. # (2) before a word containing "conftest.", or (3) at the end.
  11920. # Note that $ac_compile itself does not contain backslashes and begins
  11921. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11922. lt_compile=`echo "$ac_compile" | $SED \
  11923. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11924. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11925. -e 's:$: $lt_compiler_flag:'`
  11926. (eval echo "\"\$as_me:13233: $lt_compile\"" >&5)
  11927. (eval "$lt_compile" 2>out/conftest.err)
  11928. ac_status=$?
  11929. cat out/conftest.err >&5
  11930. echo "$as_me:13237: \$? = $ac_status" >&5
  11931. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11932. then
  11933. # The compiler can only warn and ignore the option if not recognized
  11934. # So say no if there are warnings
  11935. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11936. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11937. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11938. lt_cv_prog_compiler_c_o_CXX=yes
  11939. fi
  11940. fi
  11941. chmod u+w . 2>&5
  11942. $rm conftest*
  11943. # SGI C++ compiler will create directory out/ii_files/ for
  11944. # template instantiation
  11945. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  11946. $rm out/* && rmdir out
  11947. cd ..
  11948. rmdir conftest
  11949. $rm conftest*
  11950. fi
  11951. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11952. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11953. hard_links="nottested"
  11954. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11955. # do not overwrite the value of need_locks provided by the user
  11956. { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  11957. $as_echo_n "checking if we can lock with hard links... " >&6; }
  11958. hard_links=yes
  11959. $rm conftest*
  11960. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11961. touch conftest.a
  11962. ln conftest.a conftest.b 2>&5 || hard_links=no
  11963. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11964. { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  11965. $as_echo "$hard_links" >&6; }
  11966. if test "$hard_links" = no; then
  11967. { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11968. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11969. need_locks=warn
  11970. fi
  11971. else
  11972. need_locks=no
  11973. fi
  11974. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11975. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11976. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11977. case $host_os in
  11978. aix[4-9]*)
  11979. # If we're using GNU nm, then we don't want the "-C" option.
  11980. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11981. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  11982. 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'
  11983. else
  11984. 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'
  11985. fi
  11986. ;;
  11987. pw32*)
  11988. export_symbols_cmds_CXX="$ltdll_cmds"
  11989. ;;
  11990. cygwin* | mingw*)
  11991. 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'
  11992. ;;
  11993. *)
  11994. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11995. ;;
  11996. esac
  11997. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  11998. { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  11999. $as_echo "$ld_shlibs_CXX" >&6; }
  12000. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12001. #
  12002. # Do we need to explicitly link libc?
  12003. #
  12004. case "x$archive_cmds_need_lc_CXX" in
  12005. x|xyes)
  12006. # Assume -lc should be added
  12007. archive_cmds_need_lc_CXX=yes
  12008. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12009. case $archive_cmds_CXX in
  12010. *'~'*)
  12011. # FIXME: we may have to deal with multi-command sequences.
  12012. ;;
  12013. '$CC '*)
  12014. # Test whether the compiler implicitly links with -lc since on some
  12015. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12016. # to ld, don't add -lc before -lgcc.
  12017. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  12018. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12019. $rm conftest*
  12020. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12021. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12022. (eval $ac_compile) 2>&5
  12023. ac_status=$?
  12024. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12025. (exit $ac_status); } 2>conftest.err; then
  12026. soname=conftest
  12027. lib=conftest
  12028. libobjs=conftest.$ac_objext
  12029. deplibs=
  12030. wl=$lt_prog_compiler_wl_CXX
  12031. pic_flag=$lt_prog_compiler_pic_CXX
  12032. compiler_flags=-v
  12033. linker_flags=-v
  12034. verstring=
  12035. output_objdir=.
  12036. libname=conftest
  12037. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12038. allow_undefined_flag_CXX=
  12039. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  12040. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12041. ac_status=$?
  12042. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12043. (exit $ac_status); }
  12044. then
  12045. archive_cmds_need_lc_CXX=no
  12046. else
  12047. archive_cmds_need_lc_CXX=yes
  12048. fi
  12049. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12050. else
  12051. cat conftest.err 1>&5
  12052. fi
  12053. $rm conftest*
  12054. { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  12055. $as_echo "$archive_cmds_need_lc_CXX" >&6; }
  12056. ;;
  12057. esac
  12058. fi
  12059. ;;
  12060. esac
  12061. { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  12062. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12063. library_names_spec=
  12064. libname_spec='lib$name'
  12065. soname_spec=
  12066. shrext_cmds=".so"
  12067. postinstall_cmds=
  12068. postuninstall_cmds=
  12069. finish_cmds=
  12070. finish_eval=
  12071. shlibpath_var=
  12072. shlibpath_overrides_runpath=unknown
  12073. version_type=none
  12074. dynamic_linker="$host_os ld.so"
  12075. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12076. need_lib_prefix=unknown
  12077. hardcode_into_libs=no
  12078. # when you set need_version to no, make sure it does not cause -set_version
  12079. # flags to be left without arguments
  12080. need_version=unknown
  12081. case $host_os in
  12082. aix3*)
  12083. version_type=linux
  12084. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12085. shlibpath_var=LIBPATH
  12086. # AIX 3 has no versioning support, so we append a major version to the name.
  12087. soname_spec='${libname}${release}${shared_ext}$major'
  12088. ;;
  12089. aix[4-9]*)
  12090. version_type=linux
  12091. need_lib_prefix=no
  12092. need_version=no
  12093. hardcode_into_libs=yes
  12094. if test "$host_cpu" = ia64; then
  12095. # AIX 5 supports IA64
  12096. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12097. shlibpath_var=LD_LIBRARY_PATH
  12098. else
  12099. # With GCC up to 2.95.x, collect2 would create an import file
  12100. # for dependence libraries. The import file would start with
  12101. # the line `#! .'. This would cause the generated library to
  12102. # depend on `.', always an invalid library. This was fixed in
  12103. # development snapshots of GCC prior to 3.0.
  12104. case $host_os in
  12105. aix4 | aix4.[01] | aix4.[01].*)
  12106. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12107. echo ' yes '
  12108. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  12109. :
  12110. else
  12111. can_build_shared=no
  12112. fi
  12113. ;;
  12114. esac
  12115. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12116. # soname into executable. Probably we can add versioning support to
  12117. # collect2, so additional links can be useful in future.
  12118. if test "$aix_use_runtimelinking" = yes; then
  12119. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12120. # instead of lib<name>.a to let people know that these are not
  12121. # typical AIX shared libraries.
  12122. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12123. else
  12124. # We preserve .a as extension for shared libraries through AIX4.2
  12125. # and later when we are not doing run time linking.
  12126. library_names_spec='${libname}${release}.a $libname.a'
  12127. soname_spec='${libname}${release}${shared_ext}$major'
  12128. fi
  12129. shlibpath_var=LIBPATH
  12130. fi
  12131. ;;
  12132. amigaos*)
  12133. library_names_spec='$libname.ixlibrary $libname.a'
  12134. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12135. 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'
  12136. ;;
  12137. beos*)
  12138. library_names_spec='${libname}${shared_ext}'
  12139. dynamic_linker="$host_os ld.so"
  12140. shlibpath_var=LIBRARY_PATH
  12141. ;;
  12142. bsdi[45]*)
  12143. version_type=linux
  12144. need_version=no
  12145. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12146. soname_spec='${libname}${release}${shared_ext}$major'
  12147. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12148. shlibpath_var=LD_LIBRARY_PATH
  12149. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12150. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12151. # the default ld.so.conf also contains /usr/contrib/lib and
  12152. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12153. # libtool to hard-code these into programs
  12154. ;;
  12155. cygwin* | mingw* | pw32*)
  12156. version_type=windows
  12157. shrext_cmds=".dll"
  12158. need_version=no
  12159. need_lib_prefix=no
  12160. case $GCC,$host_os in
  12161. yes,cygwin* | yes,mingw* | yes,pw32*)
  12162. library_names_spec='$libname.dll.a'
  12163. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12164. postinstall_cmds='base_file=`basename \${file}`~
  12165. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  12166. dldir=$destdir/`dirname \$dlpath`~
  12167. test -d \$dldir || mkdir -p \$dldir~
  12168. $install_prog $dir/$dlname \$dldir/$dlname~
  12169. chmod a+x \$dldir/$dlname'
  12170. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12171. dlpath=$dir/\$dldll~
  12172. $rm \$dlpath'
  12173. shlibpath_overrides_runpath=yes
  12174. case $host_os in
  12175. cygwin*)
  12176. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12177. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12178. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  12179. ;;
  12180. mingw*)
  12181. # MinGW DLLs use traditional 'lib' prefix
  12182. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12183. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  12184. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  12185. # It is most probably a Windows format PATH printed by
  12186. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  12187. # path with ; separators, and with drive letters. We can handle the
  12188. # drive letters (cygwin fileutils understands them), so leave them,
  12189. # especially as we might pass files found there to a mingw objdump,
  12190. # which wouldn't understand a cygwinified path. Ahh.
  12191. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12192. else
  12193. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12194. fi
  12195. ;;
  12196. pw32*)
  12197. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12198. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12199. ;;
  12200. esac
  12201. ;;
  12202. *)
  12203. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12204. ;;
  12205. esac
  12206. dynamic_linker='Win32 ld.exe'
  12207. # FIXME: first we should search . and the directory the executable is in
  12208. shlibpath_var=PATH
  12209. ;;
  12210. darwin* | rhapsody*)
  12211. dynamic_linker="$host_os dyld"
  12212. version_type=darwin
  12213. need_lib_prefix=no
  12214. need_version=no
  12215. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12216. soname_spec='${libname}${release}${major}$shared_ext'
  12217. shlibpath_overrides_runpath=yes
  12218. shlibpath_var=DYLD_LIBRARY_PATH
  12219. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12220. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12221. ;;
  12222. dgux*)
  12223. version_type=linux
  12224. need_lib_prefix=no
  12225. need_version=no
  12226. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12227. soname_spec='${libname}${release}${shared_ext}$major'
  12228. shlibpath_var=LD_LIBRARY_PATH
  12229. ;;
  12230. freebsd1*)
  12231. dynamic_linker=no
  12232. ;;
  12233. freebsd* | dragonfly*)
  12234. # DragonFly does not have aout. When/if they implement a new
  12235. # versioning mechanism, adjust this.
  12236. if test -x /usr/bin/objformat; then
  12237. objformat=`/usr/bin/objformat`
  12238. else
  12239. case $host_os in
  12240. freebsd[123]*) objformat=aout ;;
  12241. *) objformat=elf ;;
  12242. esac
  12243. fi
  12244. version_type=freebsd-$objformat
  12245. case $version_type in
  12246. freebsd-elf*)
  12247. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12248. need_version=no
  12249. need_lib_prefix=no
  12250. ;;
  12251. freebsd-*)
  12252. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12253. need_version=yes
  12254. ;;
  12255. esac
  12256. shlibpath_var=LD_LIBRARY_PATH
  12257. case $host_os in
  12258. freebsd2*)
  12259. shlibpath_overrides_runpath=yes
  12260. ;;
  12261. freebsd3.[01]* | freebsdelf3.[01]*)
  12262. shlibpath_overrides_runpath=yes
  12263. hardcode_into_libs=yes
  12264. ;;
  12265. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12266. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12267. shlibpath_overrides_runpath=no
  12268. hardcode_into_libs=yes
  12269. ;;
  12270. *) # from 4.6 on, and DragonFly
  12271. shlibpath_overrides_runpath=yes
  12272. hardcode_into_libs=yes
  12273. ;;
  12274. esac
  12275. ;;
  12276. gnu*)
  12277. version_type=linux
  12278. need_lib_prefix=no
  12279. need_version=no
  12280. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12281. soname_spec='${libname}${release}${shared_ext}$major'
  12282. shlibpath_var=LD_LIBRARY_PATH
  12283. hardcode_into_libs=yes
  12284. ;;
  12285. hpux9* | hpux10* | hpux11*)
  12286. # Give a soname corresponding to the major version so that dld.sl refuses to
  12287. # link against other versions.
  12288. version_type=sunos
  12289. need_lib_prefix=no
  12290. need_version=no
  12291. case $host_cpu in
  12292. ia64*)
  12293. shrext_cmds='.so'
  12294. hardcode_into_libs=yes
  12295. dynamic_linker="$host_os dld.so"
  12296. shlibpath_var=LD_LIBRARY_PATH
  12297. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12298. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12299. soname_spec='${libname}${release}${shared_ext}$major'
  12300. if test "X$HPUX_IA64_MODE" = X32; then
  12301. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12302. else
  12303. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12304. fi
  12305. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12306. ;;
  12307. hppa*64*)
  12308. shrext_cmds='.sl'
  12309. hardcode_into_libs=yes
  12310. dynamic_linker="$host_os dld.sl"
  12311. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12312. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12313. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12314. soname_spec='${libname}${release}${shared_ext}$major'
  12315. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12316. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12317. ;;
  12318. *)
  12319. shrext_cmds='.sl'
  12320. dynamic_linker="$host_os dld.sl"
  12321. shlibpath_var=SHLIB_PATH
  12322. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12323. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12324. soname_spec='${libname}${release}${shared_ext}$major'
  12325. ;;
  12326. esac
  12327. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  12328. postinstall_cmds='chmod 555 $lib'
  12329. ;;
  12330. interix[3-9]*)
  12331. version_type=linux
  12332. need_lib_prefix=no
  12333. need_version=no
  12334. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12335. soname_spec='${libname}${release}${shared_ext}$major'
  12336. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12337. shlibpath_var=LD_LIBRARY_PATH
  12338. shlibpath_overrides_runpath=no
  12339. hardcode_into_libs=yes
  12340. ;;
  12341. irix5* | irix6* | nonstopux*)
  12342. case $host_os in
  12343. nonstopux*) version_type=nonstopux ;;
  12344. *)
  12345. if test "$lt_cv_prog_gnu_ld" = yes; then
  12346. version_type=linux
  12347. else
  12348. version_type=irix
  12349. fi ;;
  12350. esac
  12351. need_lib_prefix=no
  12352. need_version=no
  12353. soname_spec='${libname}${release}${shared_ext}$major'
  12354. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12355. case $host_os in
  12356. irix5* | nonstopux*)
  12357. libsuff= shlibsuff=
  12358. ;;
  12359. *)
  12360. case $LD in # libtool.m4 will add one of these switches to LD
  12361. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12362. libsuff= shlibsuff= libmagic=32-bit;;
  12363. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12364. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12365. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12366. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12367. *) libsuff= shlibsuff= libmagic=never-match;;
  12368. esac
  12369. ;;
  12370. esac
  12371. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12372. shlibpath_overrides_runpath=no
  12373. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12374. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12375. hardcode_into_libs=yes
  12376. ;;
  12377. # No shared lib support for Linux oldld, aout, or coff.
  12378. linux*oldld* | linux*aout* | linux*coff*)
  12379. dynamic_linker=no
  12380. ;;
  12381. # This must be Linux ELF.
  12382. linux* | k*bsd*-gnu)
  12383. version_type=linux
  12384. need_lib_prefix=no
  12385. need_version=no
  12386. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12387. soname_spec='${libname}${release}${shared_ext}$major'
  12388. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12389. shlibpath_var=LD_LIBRARY_PATH
  12390. shlibpath_overrides_runpath=no
  12391. # This implies no fast_install, which is unacceptable.
  12392. # Some rework will be needed to allow for fast_install
  12393. # before this can be enabled.
  12394. hardcode_into_libs=yes
  12395. # Append ld.so.conf contents to the search path
  12396. if test -f /etc/ld.so.conf; then
  12397. 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' ' '`
  12398. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12399. fi
  12400. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12401. # powerpc, because MkLinux only supported shared libraries with the
  12402. # GNU dynamic linker. Since this was broken with cross compilers,
  12403. # most powerpc-linux boxes support dynamic linking these days and
  12404. # people can always --disable-shared, the test was removed, and we
  12405. # assume the GNU/Linux dynamic linker is in use.
  12406. dynamic_linker='GNU/Linux ld.so'
  12407. ;;
  12408. netbsd*)
  12409. version_type=sunos
  12410. need_lib_prefix=no
  12411. need_version=no
  12412. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12413. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12414. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12415. dynamic_linker='NetBSD (a.out) ld.so'
  12416. else
  12417. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12418. soname_spec='${libname}${release}${shared_ext}$major'
  12419. dynamic_linker='NetBSD ld.elf_so'
  12420. fi
  12421. shlibpath_var=LD_LIBRARY_PATH
  12422. shlibpath_overrides_runpath=yes
  12423. hardcode_into_libs=yes
  12424. ;;
  12425. newsos6)
  12426. version_type=linux
  12427. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12428. shlibpath_var=LD_LIBRARY_PATH
  12429. shlibpath_overrides_runpath=yes
  12430. ;;
  12431. nto-qnx*)
  12432. version_type=linux
  12433. need_lib_prefix=no
  12434. need_version=no
  12435. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12436. soname_spec='${libname}${release}${shared_ext}$major'
  12437. shlibpath_var=LD_LIBRARY_PATH
  12438. shlibpath_overrides_runpath=yes
  12439. ;;
  12440. openbsd*)
  12441. version_type=sunos
  12442. sys_lib_dlsearch_path_spec="/usr/lib"
  12443. need_lib_prefix=no
  12444. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12445. case $host_os in
  12446. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12447. *) need_version=no ;;
  12448. esac
  12449. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12450. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12451. shlibpath_var=LD_LIBRARY_PATH
  12452. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12453. case $host_os in
  12454. openbsd2.[89] | openbsd2.[89].*)
  12455. shlibpath_overrides_runpath=no
  12456. ;;
  12457. *)
  12458. shlibpath_overrides_runpath=yes
  12459. ;;
  12460. esac
  12461. else
  12462. shlibpath_overrides_runpath=yes
  12463. fi
  12464. ;;
  12465. os2*)
  12466. libname_spec='$name'
  12467. shrext_cmds=".dll"
  12468. need_lib_prefix=no
  12469. library_names_spec='$libname${shared_ext} $libname.a'
  12470. dynamic_linker='OS/2 ld.exe'
  12471. shlibpath_var=LIBPATH
  12472. ;;
  12473. osf3* | osf4* | osf5*)
  12474. version_type=osf
  12475. need_lib_prefix=no
  12476. need_version=no
  12477. soname_spec='${libname}${release}${shared_ext}$major'
  12478. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12479. shlibpath_var=LD_LIBRARY_PATH
  12480. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12481. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12482. ;;
  12483. rdos*)
  12484. dynamic_linker=no
  12485. ;;
  12486. solaris*)
  12487. version_type=linux
  12488. need_lib_prefix=no
  12489. need_version=no
  12490. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12491. soname_spec='${libname}${release}${shared_ext}$major'
  12492. shlibpath_var=LD_LIBRARY_PATH
  12493. shlibpath_overrides_runpath=yes
  12494. hardcode_into_libs=yes
  12495. # ldd complains unless libraries are executable
  12496. postinstall_cmds='chmod +x $lib'
  12497. ;;
  12498. sunos4*)
  12499. version_type=sunos
  12500. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12501. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12502. shlibpath_var=LD_LIBRARY_PATH
  12503. shlibpath_overrides_runpath=yes
  12504. if test "$with_gnu_ld" = yes; then
  12505. need_lib_prefix=no
  12506. fi
  12507. need_version=yes
  12508. ;;
  12509. sysv4 | sysv4.3*)
  12510. version_type=linux
  12511. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12512. soname_spec='${libname}${release}${shared_ext}$major'
  12513. shlibpath_var=LD_LIBRARY_PATH
  12514. case $host_vendor in
  12515. sni)
  12516. shlibpath_overrides_runpath=no
  12517. need_lib_prefix=no
  12518. export_dynamic_flag_spec='${wl}-Blargedynsym'
  12519. runpath_var=LD_RUN_PATH
  12520. ;;
  12521. siemens)
  12522. need_lib_prefix=no
  12523. ;;
  12524. motorola)
  12525. need_lib_prefix=no
  12526. need_version=no
  12527. shlibpath_overrides_runpath=no
  12528. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12529. ;;
  12530. esac
  12531. ;;
  12532. sysv4*MP*)
  12533. if test -d /usr/nec ;then
  12534. version_type=linux
  12535. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12536. soname_spec='$libname${shared_ext}.$major'
  12537. shlibpath_var=LD_LIBRARY_PATH
  12538. fi
  12539. ;;
  12540. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12541. version_type=freebsd-elf
  12542. need_lib_prefix=no
  12543. need_version=no
  12544. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12545. soname_spec='${libname}${release}${shared_ext}$major'
  12546. shlibpath_var=LD_LIBRARY_PATH
  12547. hardcode_into_libs=yes
  12548. if test "$with_gnu_ld" = yes; then
  12549. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12550. shlibpath_overrides_runpath=no
  12551. else
  12552. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12553. shlibpath_overrides_runpath=yes
  12554. case $host_os in
  12555. sco3.2v5*)
  12556. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12557. ;;
  12558. esac
  12559. fi
  12560. sys_lib_dlsearch_path_spec='/usr/lib'
  12561. ;;
  12562. uts4*)
  12563. version_type=linux
  12564. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12565. soname_spec='${libname}${release}${shared_ext}$major'
  12566. shlibpath_var=LD_LIBRARY_PATH
  12567. ;;
  12568. *)
  12569. dynamic_linker=no
  12570. ;;
  12571. esac
  12572. { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  12573. $as_echo "$dynamic_linker" >&6; }
  12574. test "$dynamic_linker" = no && can_build_shared=no
  12575. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12576. $as_echo_n "(cached) " >&6
  12577. else
  12578. lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  12579. fi
  12580. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12581. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12582. $as_echo_n "(cached) " >&6
  12583. else
  12584. lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  12585. fi
  12586. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12587. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12588. if test "$GCC" = yes; then
  12589. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12590. fi
  12591. { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  12592. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12593. hardcode_action_CXX=
  12594. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  12595. test -n "$runpath_var_CXX" || \
  12596. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12597. # We can hardcode non-existant directories.
  12598. if test "$hardcode_direct_CXX" != no &&
  12599. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12600. # have to relink, otherwise we might link with an installed library
  12601. # when we should be linking with a yet-to-be-installed one
  12602. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12603. test "$hardcode_minus_L_CXX" != no; then
  12604. # Linking always hardcodes the temporary library directory.
  12605. hardcode_action_CXX=relink
  12606. else
  12607. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12608. hardcode_action_CXX=immediate
  12609. fi
  12610. else
  12611. # We cannot hardcode anything, or else we can only hardcode existing
  12612. # directories.
  12613. hardcode_action_CXX=unsupported
  12614. fi
  12615. { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  12616. $as_echo "$hardcode_action_CXX" >&6; }
  12617. if test "$hardcode_action_CXX" = relink; then
  12618. # Fast installation is not supported
  12619. enable_fast_install=no
  12620. elif test "$shlibpath_overrides_runpath" = yes ||
  12621. test "$enable_shared" = no; then
  12622. # Fast installation is not necessary
  12623. enable_fast_install=needless
  12624. fi
  12625. # The else clause should only fire when bootstrapping the
  12626. # libtool distribution, otherwise you forgot to ship ltmain.sh
  12627. # with your package, and you will get complaints that there are
  12628. # no rules to generate ltmain.sh.
  12629. if test -f "$ltmain"; then
  12630. # See if we are running on zsh, and set the options which allow our commands through
  12631. # without removal of \ escapes.
  12632. if test -n "${ZSH_VERSION+set}" ; then
  12633. setopt NO_GLOB_SUBST
  12634. fi
  12635. # Now quote all the things that may contain metacharacters while being
  12636. # careful not to overquote the AC_SUBSTed values. We take copies of the
  12637. # variables and quote the copies for generation of the libtool script.
  12638. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  12639. SED SHELL STRIP \
  12640. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  12641. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  12642. deplibs_check_method reload_flag reload_cmds need_locks \
  12643. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  12644. lt_cv_sys_global_symbol_to_c_name_address \
  12645. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  12646. old_postinstall_cmds old_postuninstall_cmds \
  12647. compiler_CXX \
  12648. CC_CXX \
  12649. LD_CXX \
  12650. lt_prog_compiler_wl_CXX \
  12651. lt_prog_compiler_pic_CXX \
  12652. lt_prog_compiler_static_CXX \
  12653. lt_prog_compiler_no_builtin_flag_CXX \
  12654. export_dynamic_flag_spec_CXX \
  12655. thread_safe_flag_spec_CXX \
  12656. whole_archive_flag_spec_CXX \
  12657. enable_shared_with_static_runtimes_CXX \
  12658. old_archive_cmds_CXX \
  12659. old_archive_from_new_cmds_CXX \
  12660. predep_objects_CXX \
  12661. postdep_objects_CXX \
  12662. predeps_CXX \
  12663. postdeps_CXX \
  12664. compiler_lib_search_path_CXX \
  12665. compiler_lib_search_dirs_CXX \
  12666. archive_cmds_CXX \
  12667. archive_expsym_cmds_CXX \
  12668. postinstall_cmds_CXX \
  12669. postuninstall_cmds_CXX \
  12670. old_archive_from_expsyms_cmds_CXX \
  12671. allow_undefined_flag_CXX \
  12672. no_undefined_flag_CXX \
  12673. export_symbols_cmds_CXX \
  12674. hardcode_libdir_flag_spec_CXX \
  12675. hardcode_libdir_flag_spec_ld_CXX \
  12676. hardcode_libdir_separator_CXX \
  12677. hardcode_automatic_CXX \
  12678. module_cmds_CXX \
  12679. module_expsym_cmds_CXX \
  12680. lt_cv_prog_compiler_c_o_CXX \
  12681. fix_srcfile_path_CXX \
  12682. exclude_expsyms_CXX \
  12683. include_expsyms_CXX; do
  12684. case $var in
  12685. old_archive_cmds_CXX | \
  12686. old_archive_from_new_cmds_CXX | \
  12687. archive_cmds_CXX | \
  12688. archive_expsym_cmds_CXX | \
  12689. module_cmds_CXX | \
  12690. module_expsym_cmds_CXX | \
  12691. old_archive_from_expsyms_cmds_CXX | \
  12692. export_symbols_cmds_CXX | \
  12693. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  12694. postinstall_cmds | postuninstall_cmds | \
  12695. old_postinstall_cmds | old_postuninstall_cmds | \
  12696. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  12697. # Double-quote double-evaled strings.
  12698. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  12699. ;;
  12700. *)
  12701. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  12702. ;;
  12703. esac
  12704. done
  12705. case $lt_echo in
  12706. *'\$0 --fallback-echo"')
  12707. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  12708. ;;
  12709. esac
  12710. cfgfile="$ofile"
  12711. cat <<__EOF__ >> "$cfgfile"
  12712. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  12713. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12714. # Shell to use when invoking shell scripts.
  12715. SHELL=$lt_SHELL
  12716. # Whether or not to build shared libraries.
  12717. build_libtool_libs=$enable_shared
  12718. # Whether or not to build static libraries.
  12719. build_old_libs=$enable_static
  12720. # Whether or not to add -lc for building shared libraries.
  12721. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  12722. # Whether or not to disallow shared libs when runtime libs are static
  12723. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  12724. # Whether or not to optimize for fast installation.
  12725. fast_install=$enable_fast_install
  12726. # The host system.
  12727. host_alias=$host_alias
  12728. host=$host
  12729. host_os=$host_os
  12730. # The build system.
  12731. build_alias=$build_alias
  12732. build=$build
  12733. build_os=$build_os
  12734. # An echo program that does not interpret backslashes.
  12735. echo=$lt_echo
  12736. # The archiver.
  12737. AR=$lt_AR
  12738. AR_FLAGS=$lt_AR_FLAGS
  12739. # A C compiler.
  12740. LTCC=$lt_LTCC
  12741. # LTCC compiler flags.
  12742. LTCFLAGS=$lt_LTCFLAGS
  12743. # A language-specific compiler.
  12744. CC=$lt_compiler_CXX
  12745. # Is the compiler the GNU C compiler?
  12746. with_gcc=$GCC_CXX
  12747. # An ERE matcher.
  12748. EGREP=$lt_EGREP
  12749. # The linker used to build libraries.
  12750. LD=$lt_LD_CXX
  12751. # Whether we need hard or soft links.
  12752. LN_S=$lt_LN_S
  12753. # A BSD-compatible nm program.
  12754. NM=$lt_NM
  12755. # A symbol stripping program
  12756. STRIP=$lt_STRIP
  12757. # Used to examine libraries when file_magic_cmd begins "file"
  12758. MAGIC_CMD=$MAGIC_CMD
  12759. # Used on cygwin: DLL creation program.
  12760. DLLTOOL="$DLLTOOL"
  12761. # Used on cygwin: object dumper.
  12762. OBJDUMP="$OBJDUMP"
  12763. # Used on cygwin: assembler.
  12764. AS="$AS"
  12765. # The name of the directory that contains temporary libtool files.
  12766. objdir=$objdir
  12767. # How to create reloadable object files.
  12768. reload_flag=$lt_reload_flag
  12769. reload_cmds=$lt_reload_cmds
  12770. # How to pass a linker flag through the compiler.
  12771. wl=$lt_lt_prog_compiler_wl_CXX
  12772. # Object file suffix (normally "o").
  12773. objext="$ac_objext"
  12774. # Old archive suffix (normally "a").
  12775. libext="$libext"
  12776. # Shared library suffix (normally ".so").
  12777. shrext_cmds='$shrext_cmds'
  12778. # Executable file suffix (normally "").
  12779. exeext="$exeext"
  12780. # Additional compiler flags for building library objects.
  12781. pic_flag=$lt_lt_prog_compiler_pic_CXX
  12782. pic_mode=$pic_mode
  12783. # What is the maximum length of a command?
  12784. max_cmd_len=$lt_cv_sys_max_cmd_len
  12785. # Does compiler simultaneously support -c and -o options?
  12786. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  12787. # Must we lock files when doing compilation?
  12788. need_locks=$lt_need_locks
  12789. # Do we need the lib prefix for modules?
  12790. need_lib_prefix=$need_lib_prefix
  12791. # Do we need a version for libraries?
  12792. need_version=$need_version
  12793. # Whether dlopen is supported.
  12794. dlopen_support=$enable_dlopen
  12795. # Whether dlopen of programs is supported.
  12796. dlopen_self=$enable_dlopen_self
  12797. # Whether dlopen of statically linked programs is supported.
  12798. dlopen_self_static=$enable_dlopen_self_static
  12799. # Compiler flag to prevent dynamic linking.
  12800. link_static_flag=$lt_lt_prog_compiler_static_CXX
  12801. # Compiler flag to turn off builtin functions.
  12802. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  12803. # Compiler flag to allow reflexive dlopens.
  12804. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  12805. # Compiler flag to generate shared objects directly from archives.
  12806. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  12807. # Compiler flag to generate thread-safe objects.
  12808. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  12809. # Library versioning type.
  12810. version_type=$version_type
  12811. # Format of library name prefix.
  12812. libname_spec=$lt_libname_spec
  12813. # List of archive names. First name is the real one, the rest are links.
  12814. # The last name is the one that the linker finds with -lNAME.
  12815. library_names_spec=$lt_library_names_spec
  12816. # The coded name of the library, if different from the real name.
  12817. soname_spec=$lt_soname_spec
  12818. # Commands used to build and install an old-style archive.
  12819. RANLIB=$lt_RANLIB
  12820. old_archive_cmds=$lt_old_archive_cmds_CXX
  12821. old_postinstall_cmds=$lt_old_postinstall_cmds
  12822. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12823. # Create an old-style archive from a shared archive.
  12824. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  12825. # Create a temporary old-style archive to link instead of a shared archive.
  12826. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  12827. # Commands used to build and install a shared archive.
  12828. archive_cmds=$lt_archive_cmds_CXX
  12829. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  12830. postinstall_cmds=$lt_postinstall_cmds
  12831. postuninstall_cmds=$lt_postuninstall_cmds
  12832. # Commands used to build a loadable module (assumed same as above if empty)
  12833. module_cmds=$lt_module_cmds_CXX
  12834. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  12835. # Commands to strip libraries.
  12836. old_striplib=$lt_old_striplib
  12837. striplib=$lt_striplib
  12838. # Dependencies to place before the objects being linked to create a
  12839. # shared library.
  12840. predep_objects=$lt_predep_objects_CXX
  12841. # Dependencies to place after the objects being linked to create a
  12842. # shared library.
  12843. postdep_objects=$lt_postdep_objects_CXX
  12844. # Dependencies to place before the objects being linked to create a
  12845. # shared library.
  12846. predeps=$lt_predeps_CXX
  12847. # Dependencies to place after the objects being linked to create a
  12848. # shared library.
  12849. postdeps=$lt_postdeps_CXX
  12850. # The directories searched by this compiler when creating a shared
  12851. # library
  12852. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  12853. # The library search path used internally by the compiler when linking
  12854. # a shared library.
  12855. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  12856. # Method to check whether dependent libraries are shared objects.
  12857. deplibs_check_method=$lt_deplibs_check_method
  12858. # Command to use when deplibs_check_method == file_magic.
  12859. file_magic_cmd=$lt_file_magic_cmd
  12860. # Flag that allows shared libraries with undefined symbols to be built.
  12861. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  12862. # Flag that forces no undefined symbols.
  12863. no_undefined_flag=$lt_no_undefined_flag_CXX
  12864. # Commands used to finish a libtool library installation in a directory.
  12865. finish_cmds=$lt_finish_cmds
  12866. # Same as above, but a single script fragment to be evaled but not shown.
  12867. finish_eval=$lt_finish_eval
  12868. # Take the output of nm and produce a listing of raw symbols and C names.
  12869. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12870. # Transform the output of nm in a proper C declaration
  12871. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12872. # Transform the output of nm in a C name address pair
  12873. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12874. # This is the shared library runtime path variable.
  12875. runpath_var=$runpath_var
  12876. # This is the shared library path variable.
  12877. shlibpath_var=$shlibpath_var
  12878. # Is shlibpath searched before the hard-coded library search path?
  12879. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12880. # How to hardcode a shared library path into an executable.
  12881. hardcode_action=$hardcode_action_CXX
  12882. # Whether we should hardcode library paths into libraries.
  12883. hardcode_into_libs=$hardcode_into_libs
  12884. # Flag to hardcode \$libdir into a binary during linking.
  12885. # This must work even if \$libdir does not exist.
  12886. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  12887. # If ld is used when linking, flag to hardcode \$libdir into
  12888. # a binary during linking. This must work even if \$libdir does
  12889. # not exist.
  12890. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  12891. # Whether we need a single -rpath flag with a separated argument.
  12892. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  12893. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  12894. # resulting binary.
  12895. hardcode_direct=$hardcode_direct_CXX
  12896. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  12897. # resulting binary.
  12898. hardcode_minus_L=$hardcode_minus_L_CXX
  12899. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  12900. # the resulting binary.
  12901. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  12902. # Set to yes if building a shared library automatically hardcodes DIR into the library
  12903. # and all subsequent libraries and executables linked against it.
  12904. hardcode_automatic=$hardcode_automatic_CXX
  12905. # Variables whose values should be saved in libtool wrapper scripts and
  12906. # restored at relink time.
  12907. variables_saved_for_relink="$variables_saved_for_relink"
  12908. # Whether libtool must link a program against all its dependency libraries.
  12909. link_all_deplibs=$link_all_deplibs_CXX
  12910. # Compile-time system search path for libraries
  12911. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12912. # Run-time system search path for libraries
  12913. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12914. # Fix the shell variable \$srcfile for the compiler.
  12915. fix_srcfile_path=$lt_fix_srcfile_path
  12916. # Set to yes if exported symbols are required.
  12917. always_export_symbols=$always_export_symbols_CXX
  12918. # The commands to list exported symbols.
  12919. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  12920. # The commands to extract the exported symbol list from a shared archive.
  12921. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12922. # Symbols that should not be listed in the preloaded symbols.
  12923. exclude_expsyms=$lt_exclude_expsyms_CXX
  12924. # Symbols that must always be exported.
  12925. include_expsyms=$lt_include_expsyms_CXX
  12926. # ### END LIBTOOL TAG CONFIG: $tagname
  12927. __EOF__
  12928. else
  12929. # If there is no Makefile yet, we rely on a make rule to execute
  12930. # `config.status --recheck' to rerun these tests and create the
  12931. # libtool script then.
  12932. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  12933. if test -f "$ltmain_in"; then
  12934. test -f Makefile && make "$ltmain"
  12935. fi
  12936. fi
  12937. ac_ext=c
  12938. ac_cpp='$CPP $CPPFLAGS'
  12939. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12940. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12941. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12942. CC=$lt_save_CC
  12943. LDCXX=$LD
  12944. LD=$lt_save_LD
  12945. GCC=$lt_save_GCC
  12946. with_gnu_ldcxx=$with_gnu_ld
  12947. with_gnu_ld=$lt_save_with_gnu_ld
  12948. lt_cv_path_LDCXX=$lt_cv_path_LD
  12949. lt_cv_path_LD=$lt_save_path_LD
  12950. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12951. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12952. else
  12953. tagname=""
  12954. fi
  12955. ;;
  12956. F77)
  12957. if test -n "$F77" && test "X$F77" != "Xno"; then
  12958. ac_ext=f
  12959. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  12960. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12961. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  12962. archive_cmds_need_lc_F77=no
  12963. allow_undefined_flag_F77=
  12964. always_export_symbols_F77=no
  12965. archive_expsym_cmds_F77=
  12966. export_dynamic_flag_spec_F77=
  12967. hardcode_direct_F77=no
  12968. hardcode_libdir_flag_spec_F77=
  12969. hardcode_libdir_flag_spec_ld_F77=
  12970. hardcode_libdir_separator_F77=
  12971. hardcode_minus_L_F77=no
  12972. hardcode_automatic_F77=no
  12973. module_cmds_F77=
  12974. module_expsym_cmds_F77=
  12975. link_all_deplibs_F77=unknown
  12976. old_archive_cmds_F77=$old_archive_cmds
  12977. no_undefined_flag_F77=
  12978. whole_archive_flag_spec_F77=
  12979. enable_shared_with_static_runtimes_F77=no
  12980. # Source file extension for f77 test sources.
  12981. ac_ext=f
  12982. # Object file extension for compiled f77 test sources.
  12983. objext=o
  12984. objext_F77=$objext
  12985. # Code to be used in simple compile tests
  12986. lt_simple_compile_test_code="\
  12987. subroutine t
  12988. return
  12989. end
  12990. "
  12991. # Code to be used in simple link tests
  12992. lt_simple_link_test_code="\
  12993. program t
  12994. end
  12995. "
  12996. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12997. # If no C compiler was specified, use CC.
  12998. LTCC=${LTCC-"$CC"}
  12999. # If no C compiler flags were specified, use CFLAGS.
  13000. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  13001. # Allow CC to be a program name with arguments.
  13002. compiler=$CC
  13003. # save warnings/boilerplate of simple test code
  13004. ac_outfile=conftest.$ac_objext
  13005. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  13006. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  13007. _lt_compiler_boilerplate=`cat conftest.err`
  13008. $rm conftest*
  13009. ac_outfile=conftest.$ac_objext
  13010. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  13011. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  13012. _lt_linker_boilerplate=`cat conftest.err`
  13013. $rm -r conftest*
  13014. # Allow CC to be a program name with arguments.
  13015. lt_save_CC="$CC"
  13016. CC=${F77-"f77"}
  13017. compiler=$CC
  13018. compiler_F77=$CC
  13019. for cc_temp in $compiler""; do
  13020. case $cc_temp in
  13021. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  13022. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  13023. \-*) ;;
  13024. *) break;;
  13025. esac
  13026. done
  13027. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  13028. { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  13029. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  13030. { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
  13031. $as_echo "$can_build_shared" >&6; }
  13032. { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  13033. $as_echo_n "checking whether to build shared libraries... " >&6; }
  13034. test "$can_build_shared" = "no" && enable_shared=no
  13035. # On AIX, shared libraries and static libraries use the same namespace, and
  13036. # are all built from PIC.
  13037. case $host_os in
  13038. aix3*)
  13039. test "$enable_shared" = yes && enable_static=no
  13040. if test -n "$RANLIB"; then
  13041. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  13042. postinstall_cmds='$RANLIB $lib'
  13043. fi
  13044. ;;
  13045. aix[4-9]*)
  13046. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  13047. test "$enable_shared" = yes && enable_static=no
  13048. fi
  13049. ;;
  13050. esac
  13051. { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
  13052. $as_echo "$enable_shared" >&6; }
  13053. { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  13054. $as_echo_n "checking whether to build static libraries... " >&6; }
  13055. # Make sure either enable_shared or enable_static is yes.
  13056. test "$enable_shared" = yes || enable_static=yes
  13057. { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
  13058. $as_echo "$enable_static" >&6; }
  13059. GCC_F77="$G77"
  13060. LD_F77="$LD"
  13061. lt_prog_compiler_wl_F77=
  13062. lt_prog_compiler_pic_F77=
  13063. lt_prog_compiler_static_F77=
  13064. { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  13065. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  13066. if test "$GCC" = yes; then
  13067. lt_prog_compiler_wl_F77='-Wl,'
  13068. lt_prog_compiler_static_F77='-static'
  13069. case $host_os in
  13070. aix*)
  13071. # All AIX code is PIC.
  13072. if test "$host_cpu" = ia64; then
  13073. # AIX 5 now supports IA64 processor
  13074. lt_prog_compiler_static_F77='-Bstatic'
  13075. fi
  13076. ;;
  13077. amigaos*)
  13078. # FIXME: we need at least 68020 code to build shared libraries, but
  13079. # adding the `-m68020' flag to GCC prevents building anything better,
  13080. # like `-m68040'.
  13081. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  13082. ;;
  13083. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13084. # PIC is the default for these OSes.
  13085. ;;
  13086. mingw* | cygwin* | pw32* | os2*)
  13087. # This hack is so that the source file can tell whether it is being
  13088. # built for inclusion in a dll (and should export symbols for example).
  13089. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13090. # (--disable-auto-import) libraries
  13091. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  13092. ;;
  13093. darwin* | rhapsody*)
  13094. # PIC is the default on this platform
  13095. # Common symbols not allowed in MH_DYLIB files
  13096. lt_prog_compiler_pic_F77='-fno-common'
  13097. ;;
  13098. interix[3-9]*)
  13099. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13100. # Instead, we relocate shared libraries at runtime.
  13101. ;;
  13102. msdosdjgpp*)
  13103. # Just because we use GCC doesn't mean we suddenly get shared libraries
  13104. # on systems that don't support them.
  13105. lt_prog_compiler_can_build_shared_F77=no
  13106. enable_shared=no
  13107. ;;
  13108. sysv4*MP*)
  13109. if test -d /usr/nec; then
  13110. lt_prog_compiler_pic_F77=-Kconform_pic
  13111. fi
  13112. ;;
  13113. hpux*)
  13114. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  13115. # not for PA HP-UX.
  13116. case $host_cpu in
  13117. hppa*64*|ia64*)
  13118. # +Z the default
  13119. ;;
  13120. *)
  13121. lt_prog_compiler_pic_F77='-fPIC'
  13122. ;;
  13123. esac
  13124. ;;
  13125. *)
  13126. lt_prog_compiler_pic_F77='-fPIC'
  13127. ;;
  13128. esac
  13129. else
  13130. # PORTME Check for flag to pass linker flags through the system compiler.
  13131. case $host_os in
  13132. aix*)
  13133. lt_prog_compiler_wl_F77='-Wl,'
  13134. if test "$host_cpu" = ia64; then
  13135. # AIX 5 now supports IA64 processor
  13136. lt_prog_compiler_static_F77='-Bstatic'
  13137. else
  13138. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  13139. fi
  13140. ;;
  13141. darwin*)
  13142. # PIC is the default on this platform
  13143. # Common symbols not allowed in MH_DYLIB files
  13144. case $cc_basename in
  13145. xlc*)
  13146. lt_prog_compiler_pic_F77='-qnocommon'
  13147. lt_prog_compiler_wl_F77='-Wl,'
  13148. ;;
  13149. esac
  13150. ;;
  13151. mingw* | cygwin* | pw32* | os2*)
  13152. # This hack is so that the source file can tell whether it is being
  13153. # built for inclusion in a dll (and should export symbols for example).
  13154. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  13155. ;;
  13156. hpux9* | hpux10* | hpux11*)
  13157. lt_prog_compiler_wl_F77='-Wl,'
  13158. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  13159. # not for PA HP-UX.
  13160. case $host_cpu in
  13161. hppa*64*|ia64*)
  13162. # +Z the default
  13163. ;;
  13164. *)
  13165. lt_prog_compiler_pic_F77='+Z'
  13166. ;;
  13167. esac
  13168. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  13169. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  13170. ;;
  13171. irix5* | irix6* | nonstopux*)
  13172. lt_prog_compiler_wl_F77='-Wl,'
  13173. # PIC (with -KPIC) is the default.
  13174. lt_prog_compiler_static_F77='-non_shared'
  13175. ;;
  13176. newsos6)
  13177. lt_prog_compiler_pic_F77='-KPIC'
  13178. lt_prog_compiler_static_F77='-Bstatic'
  13179. ;;
  13180. linux* | k*bsd*-gnu)
  13181. case $cc_basename in
  13182. icc* | ecc*)
  13183. lt_prog_compiler_wl_F77='-Wl,'
  13184. lt_prog_compiler_pic_F77='-KPIC'
  13185. lt_prog_compiler_static_F77='-static'
  13186. ;;
  13187. pgcc* | pgf77* | pgf90* | pgf95*)
  13188. # Portland Group compilers (*not* the Pentium gcc compiler,
  13189. # which looks to be a dead project)
  13190. lt_prog_compiler_wl_F77='-Wl,'
  13191. lt_prog_compiler_pic_F77='-fpic'
  13192. lt_prog_compiler_static_F77='-Bstatic'
  13193. ;;
  13194. ccc*)
  13195. lt_prog_compiler_wl_F77='-Wl,'
  13196. # All Alpha code is PIC.
  13197. lt_prog_compiler_static_F77='-non_shared'
  13198. ;;
  13199. *)
  13200. case `$CC -V 2>&1 | sed 5q` in
  13201. *Sun\ C*)
  13202. # Sun C 5.9
  13203. lt_prog_compiler_pic_F77='-KPIC'
  13204. lt_prog_compiler_static_F77='-Bstatic'
  13205. lt_prog_compiler_wl_F77='-Wl,'
  13206. ;;
  13207. *Sun\ F*)
  13208. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  13209. lt_prog_compiler_pic_F77='-KPIC'
  13210. lt_prog_compiler_static_F77='-Bstatic'
  13211. lt_prog_compiler_wl_F77=''
  13212. ;;
  13213. esac
  13214. ;;
  13215. esac
  13216. ;;
  13217. osf3* | osf4* | osf5*)
  13218. lt_prog_compiler_wl_F77='-Wl,'
  13219. # All OSF/1 code is PIC.
  13220. lt_prog_compiler_static_F77='-non_shared'
  13221. ;;
  13222. rdos*)
  13223. lt_prog_compiler_static_F77='-non_shared'
  13224. ;;
  13225. solaris*)
  13226. lt_prog_compiler_pic_F77='-KPIC'
  13227. lt_prog_compiler_static_F77='-Bstatic'
  13228. case $cc_basename in
  13229. f77* | f90* | f95*)
  13230. lt_prog_compiler_wl_F77='-Qoption ld ';;
  13231. *)
  13232. lt_prog_compiler_wl_F77='-Wl,';;
  13233. esac
  13234. ;;
  13235. sunos4*)
  13236. lt_prog_compiler_wl_F77='-Qoption ld '
  13237. lt_prog_compiler_pic_F77='-PIC'
  13238. lt_prog_compiler_static_F77='-Bstatic'
  13239. ;;
  13240. sysv4 | sysv4.2uw2* | sysv4.3*)
  13241. lt_prog_compiler_wl_F77='-Wl,'
  13242. lt_prog_compiler_pic_F77='-KPIC'
  13243. lt_prog_compiler_static_F77='-Bstatic'
  13244. ;;
  13245. sysv4*MP*)
  13246. if test -d /usr/nec ;then
  13247. lt_prog_compiler_pic_F77='-Kconform_pic'
  13248. lt_prog_compiler_static_F77='-Bstatic'
  13249. fi
  13250. ;;
  13251. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  13252. lt_prog_compiler_wl_F77='-Wl,'
  13253. lt_prog_compiler_pic_F77='-KPIC'
  13254. lt_prog_compiler_static_F77='-Bstatic'
  13255. ;;
  13256. unicos*)
  13257. lt_prog_compiler_wl_F77='-Wl,'
  13258. lt_prog_compiler_can_build_shared_F77=no
  13259. ;;
  13260. uts4*)
  13261. lt_prog_compiler_pic_F77='-pic'
  13262. lt_prog_compiler_static_F77='-Bstatic'
  13263. ;;
  13264. *)
  13265. lt_prog_compiler_can_build_shared_F77=no
  13266. ;;
  13267. esac
  13268. fi
  13269. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  13270. $as_echo "$lt_prog_compiler_pic_F77" >&6; }
  13271. #
  13272. # Check to make sure the PIC flag actually works.
  13273. #
  13274. if test -n "$lt_prog_compiler_pic_F77"; then
  13275. { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  13276. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
  13277. if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
  13278. $as_echo_n "(cached) " >&6
  13279. else
  13280. lt_cv_prog_compiler_pic_works_F77=no
  13281. ac_outfile=conftest.$ac_objext
  13282. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13283. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  13284. # Insert the option either (1) after the last *FLAGS variable, or
  13285. # (2) before a word containing "conftest.", or (3) at the end.
  13286. # Note that $ac_compile itself does not contain backslashes and begins
  13287. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13288. # The option is referenced via a variable to avoid confusing sed.
  13289. lt_compile=`echo "$ac_compile" | $SED \
  13290. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13291. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13292. -e 's:$: $lt_compiler_flag:'`
  13293. (eval echo "\"\$as_me:14816: $lt_compile\"" >&5)
  13294. (eval "$lt_compile" 2>conftest.err)
  13295. ac_status=$?
  13296. cat conftest.err >&5
  13297. echo "$as_me:14820: \$? = $ac_status" >&5
  13298. if (exit $ac_status) && test -s "$ac_outfile"; then
  13299. # The compiler can only warn and ignore the option if not recognized
  13300. # So say no if there are warnings other than the usual output.
  13301. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  13302. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13303. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  13304. lt_cv_prog_compiler_pic_works_F77=yes
  13305. fi
  13306. fi
  13307. $rm conftest*
  13308. fi
  13309. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
  13310. $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
  13311. if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
  13312. case $lt_prog_compiler_pic_F77 in
  13313. "" | " "*) ;;
  13314. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  13315. esac
  13316. else
  13317. lt_prog_compiler_pic_F77=
  13318. lt_prog_compiler_can_build_shared_F77=no
  13319. fi
  13320. fi
  13321. case $host_os in
  13322. # For platforms which do not support PIC, -DPIC is meaningless:
  13323. *djgpp*)
  13324. lt_prog_compiler_pic_F77=
  13325. ;;
  13326. *)
  13327. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  13328. ;;
  13329. esac
  13330. #
  13331. # Check to make sure the static flag actually works.
  13332. #
  13333. wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  13334. { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  13335. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  13336. if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
  13337. $as_echo_n "(cached) " >&6
  13338. else
  13339. lt_cv_prog_compiler_static_works_F77=no
  13340. save_LDFLAGS="$LDFLAGS"
  13341. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  13342. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  13343. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  13344. # The linker can only warn and ignore the option if not recognized
  13345. # So say no if there are warnings
  13346. if test -s conftest.err; then
  13347. # Append any errors to the config.log.
  13348. cat conftest.err 1>&5
  13349. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  13350. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13351. if diff conftest.exp conftest.er2 >/dev/null; then
  13352. lt_cv_prog_compiler_static_works_F77=yes
  13353. fi
  13354. else
  13355. lt_cv_prog_compiler_static_works_F77=yes
  13356. fi
  13357. fi
  13358. $rm -r conftest*
  13359. LDFLAGS="$save_LDFLAGS"
  13360. fi
  13361. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
  13362. $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
  13363. if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
  13364. :
  13365. else
  13366. lt_prog_compiler_static_F77=
  13367. fi
  13368. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  13369. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13370. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  13371. $as_echo_n "(cached) " >&6
  13372. else
  13373. lt_cv_prog_compiler_c_o_F77=no
  13374. $rm -r conftest 2>/dev/null
  13375. mkdir conftest
  13376. cd conftest
  13377. mkdir out
  13378. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13379. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13380. # Insert the option either (1) after the last *FLAGS variable, or
  13381. # (2) before a word containing "conftest.", or (3) at the end.
  13382. # Note that $ac_compile itself does not contain backslashes and begins
  13383. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13384. lt_compile=`echo "$ac_compile" | $SED \
  13385. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13386. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13387. -e 's:$: $lt_compiler_flag:'`
  13388. (eval echo "\"\$as_me:14920: $lt_compile\"" >&5)
  13389. (eval "$lt_compile" 2>out/conftest.err)
  13390. ac_status=$?
  13391. cat out/conftest.err >&5
  13392. echo "$as_me:14924: \$? = $ac_status" >&5
  13393. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13394. then
  13395. # The compiler can only warn and ignore the option if not recognized
  13396. # So say no if there are warnings
  13397. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  13398. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13399. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13400. lt_cv_prog_compiler_c_o_F77=yes
  13401. fi
  13402. fi
  13403. chmod u+w . 2>&5
  13404. $rm conftest*
  13405. # SGI C++ compiler will create directory out/ii_files/ for
  13406. # template instantiation
  13407. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  13408. $rm out/* && rmdir out
  13409. cd ..
  13410. rmdir conftest
  13411. $rm conftest*
  13412. fi
  13413. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  13414. $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
  13415. hard_links="nottested"
  13416. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  13417. # do not overwrite the value of need_locks provided by the user
  13418. { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  13419. $as_echo_n "checking if we can lock with hard links... " >&6; }
  13420. hard_links=yes
  13421. $rm conftest*
  13422. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13423. touch conftest.a
  13424. ln conftest.a conftest.b 2>&5 || hard_links=no
  13425. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13426. { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  13427. $as_echo "$hard_links" >&6; }
  13428. if test "$hard_links" = no; then
  13429. { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  13430. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  13431. need_locks=warn
  13432. fi
  13433. else
  13434. need_locks=no
  13435. fi
  13436. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13437. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  13438. runpath_var=
  13439. allow_undefined_flag_F77=
  13440. enable_shared_with_static_runtimes_F77=no
  13441. archive_cmds_F77=
  13442. archive_expsym_cmds_F77=
  13443. old_archive_From_new_cmds_F77=
  13444. old_archive_from_expsyms_cmds_F77=
  13445. export_dynamic_flag_spec_F77=
  13446. whole_archive_flag_spec_F77=
  13447. thread_safe_flag_spec_F77=
  13448. hardcode_libdir_flag_spec_F77=
  13449. hardcode_libdir_flag_spec_ld_F77=
  13450. hardcode_libdir_separator_F77=
  13451. hardcode_direct_F77=no
  13452. hardcode_minus_L_F77=no
  13453. hardcode_shlibpath_var_F77=unsupported
  13454. link_all_deplibs_F77=unknown
  13455. hardcode_automatic_F77=no
  13456. module_cmds_F77=
  13457. module_expsym_cmds_F77=
  13458. always_export_symbols_F77=no
  13459. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13460. # include_expsyms should be a list of space-separated symbols to be *always*
  13461. # included in the symbol list
  13462. include_expsyms_F77=
  13463. # exclude_expsyms can be an extended regexp of symbols to exclude
  13464. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  13465. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  13466. # as well as any symbol that contains `d'.
  13467. exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  13468. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  13469. # platforms (ab)use it in PIC code, but their linkers get confused if
  13470. # the symbol is explicitly referenced. Since portable code cannot
  13471. # rely on this symbol name, it's probably fine to never include it in
  13472. # preloaded symbol tables.
  13473. # Exclude shared library initialization/finalization symbols.
  13474. extract_expsyms_cmds=
  13475. # Just being paranoid about ensuring that cc_basename is set.
  13476. for cc_temp in $compiler""; do
  13477. case $cc_temp in
  13478. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  13479. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  13480. \-*) ;;
  13481. *) break;;
  13482. esac
  13483. done
  13484. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  13485. case $host_os in
  13486. cygwin* | mingw* | pw32*)
  13487. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  13488. # When not using gcc, we currently assume that we are using
  13489. # Microsoft Visual C++.
  13490. if test "$GCC" != yes; then
  13491. with_gnu_ld=no
  13492. fi
  13493. ;;
  13494. interix*)
  13495. # we just hope/assume this is gcc and not c89 (= MSVC++)
  13496. with_gnu_ld=yes
  13497. ;;
  13498. openbsd*)
  13499. with_gnu_ld=no
  13500. ;;
  13501. esac
  13502. ld_shlibs_F77=yes
  13503. if test "$with_gnu_ld" = yes; then
  13504. # If archive_cmds runs LD, not CC, wlarc should be empty
  13505. wlarc='${wl}'
  13506. # Set some defaults for GNU ld with shared library support. These
  13507. # are reset later if shared libraries are not supported. Putting them
  13508. # here allows them to be overridden if necessary.
  13509. runpath_var=LD_RUN_PATH
  13510. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  13511. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  13512. # ancient GNU ld didn't support --whole-archive et. al.
  13513. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  13514. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  13515. else
  13516. whole_archive_flag_spec_F77=
  13517. fi
  13518. supports_anon_versioning=no
  13519. case `$LD -v 2>/dev/null` in
  13520. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  13521. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  13522. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  13523. *\ 2.11.*) ;; # other 2.11 versions
  13524. *) supports_anon_versioning=yes ;;
  13525. esac
  13526. # See if GNU ld supports shared libraries.
  13527. case $host_os in
  13528. aix[3-9]*)
  13529. # On AIX/PPC, the GNU linker is very broken
  13530. if test "$host_cpu" != ia64; then
  13531. ld_shlibs_F77=no
  13532. cat <<EOF 1>&2
  13533. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  13534. *** to be unable to reliably create shared libraries on AIX.
  13535. *** Therefore, libtool is disabling shared libraries support. If you
  13536. *** really care for shared libraries, you may want to modify your PATH
  13537. *** so that a non-GNU linker is found, and then restart.
  13538. EOF
  13539. fi
  13540. ;;
  13541. amigaos*)
  13542. 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)'
  13543. hardcode_libdir_flag_spec_F77='-L$libdir'
  13544. hardcode_minus_L_F77=yes
  13545. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  13546. # that the semantics of dynamic libraries on AmigaOS, at least up
  13547. # to version 4, is to share data among multiple programs linked
  13548. # with the same dynamic library. Since this doesn't match the
  13549. # behavior of shared libraries on other platforms, we can't use
  13550. # them.
  13551. ld_shlibs_F77=no
  13552. ;;
  13553. beos*)
  13554. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13555. allow_undefined_flag_F77=unsupported
  13556. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  13557. # support --undefined. This deserves some investigation. FIXME
  13558. archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13559. else
  13560. ld_shlibs_F77=no
  13561. fi
  13562. ;;
  13563. cygwin* | mingw* | pw32*)
  13564. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  13565. # as there is no search path for DLLs.
  13566. hardcode_libdir_flag_spec_F77='-L$libdir'
  13567. allow_undefined_flag_F77=unsupported
  13568. always_export_symbols_F77=no
  13569. enable_shared_with_static_runtimes_F77=yes
  13570. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  13571. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  13572. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13573. # If the export-symbols file already is a .def file (1st line
  13574. # is EXPORTS), use it as is; otherwise, prepend...
  13575. archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  13576. cp $export_symbols $output_objdir/$soname.def;
  13577. else
  13578. echo EXPORTS > $output_objdir/$soname.def;
  13579. cat $export_symbols >> $output_objdir/$soname.def;
  13580. fi~
  13581. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13582. else
  13583. ld_shlibs_F77=no
  13584. fi
  13585. ;;
  13586. interix[3-9]*)
  13587. hardcode_direct_F77=no
  13588. hardcode_shlibpath_var_F77=no
  13589. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13590. export_dynamic_flag_spec_F77='${wl}-E'
  13591. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13592. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13593. # default) and relocated if they conflict, which is a slow very memory
  13594. # consuming and fragmenting process. To avoid this, we pick a random,
  13595. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13596. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13597. 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'
  13598. 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'
  13599. ;;
  13600. gnu* | linux* | k*bsd*-gnu)
  13601. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13602. tmp_addflag=
  13603. case $cc_basename,$host_cpu in
  13604. pgcc*) # Portland Group C compiler
  13605. 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'
  13606. tmp_addflag=' $pic_flag'
  13607. ;;
  13608. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  13609. 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'
  13610. tmp_addflag=' $pic_flag -Mnomain' ;;
  13611. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  13612. tmp_addflag=' -i_dynamic' ;;
  13613. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  13614. tmp_addflag=' -i_dynamic -nofor_main' ;;
  13615. ifc* | ifort*) # Intel Fortran compiler
  13616. tmp_addflag=' -nofor_main' ;;
  13617. esac
  13618. case `$CC -V 2>&1 | sed 5q` in
  13619. *Sun\ C*) # Sun C 5.9
  13620. 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'
  13621. tmp_sharedflag='-G' ;;
  13622. *Sun\ F*) # Sun Fortran 8.3
  13623. tmp_sharedflag='-G' ;;
  13624. *)
  13625. tmp_sharedflag='-shared' ;;
  13626. esac
  13627. archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13628. if test $supports_anon_versioning = yes; then
  13629. archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  13630. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13631. $echo "local: *; };" >> $output_objdir/$libname.ver~
  13632. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  13633. fi
  13634. else
  13635. ld_shlibs_F77=no
  13636. fi
  13637. ;;
  13638. netbsd*)
  13639. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13640. archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  13641. wlarc=
  13642. else
  13643. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13644. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13645. fi
  13646. ;;
  13647. solaris*)
  13648. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  13649. ld_shlibs_F77=no
  13650. cat <<EOF 1>&2
  13651. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  13652. *** create shared libraries on Solaris systems. Therefore, libtool
  13653. *** is disabling shared libraries support. We urge you to upgrade GNU
  13654. *** binutils to release 2.9.1 or newer. Another option is to modify
  13655. *** your PATH or compiler configuration so that the native linker is
  13656. *** used, and then restart.
  13657. EOF
  13658. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13659. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13660. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13661. else
  13662. ld_shlibs_F77=no
  13663. fi
  13664. ;;
  13665. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  13666. case `$LD -v 2>&1` in
  13667. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  13668. ld_shlibs_F77=no
  13669. cat <<_LT_EOF 1>&2
  13670. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  13671. *** reliably create shared libraries on SCO systems. Therefore, libtool
  13672. *** is disabling shared libraries support. We urge you to upgrade GNU
  13673. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  13674. *** your PATH or compiler configuration so that the native linker is
  13675. *** used, and then restart.
  13676. _LT_EOF
  13677. ;;
  13678. *)
  13679. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13680. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  13681. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  13682. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  13683. else
  13684. ld_shlibs_F77=no
  13685. fi
  13686. ;;
  13687. esac
  13688. ;;
  13689. sunos4*)
  13690. archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13691. wlarc=
  13692. hardcode_direct_F77=yes
  13693. hardcode_shlibpath_var_F77=no
  13694. ;;
  13695. *)
  13696. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13697. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13698. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13699. else
  13700. ld_shlibs_F77=no
  13701. fi
  13702. ;;
  13703. esac
  13704. if test "$ld_shlibs_F77" = no; then
  13705. runpath_var=
  13706. hardcode_libdir_flag_spec_F77=
  13707. export_dynamic_flag_spec_F77=
  13708. whole_archive_flag_spec_F77=
  13709. fi
  13710. else
  13711. # PORTME fill in a description of your system's linker (not GNU ld)
  13712. case $host_os in
  13713. aix3*)
  13714. allow_undefined_flag_F77=unsupported
  13715. always_export_symbols_F77=yes
  13716. 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'
  13717. # Note: this linker hardcodes the directories in LIBPATH if there
  13718. # are no directories specified by -L.
  13719. hardcode_minus_L_F77=yes
  13720. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  13721. # Neither direct hardcoding nor static linking is supported with a
  13722. # broken collect2.
  13723. hardcode_direct_F77=unsupported
  13724. fi
  13725. ;;
  13726. aix[4-9]*)
  13727. if test "$host_cpu" = ia64; then
  13728. # On IA64, the linker does run time linking by default, so we don't
  13729. # have to do anything special.
  13730. aix_use_runtimelinking=no
  13731. exp_sym_flag='-Bexport'
  13732. no_entry_flag=""
  13733. else
  13734. # If we're using GNU nm, then we don't want the "-C" option.
  13735. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  13736. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  13737. 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'
  13738. else
  13739. 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'
  13740. fi
  13741. aix_use_runtimelinking=no
  13742. # Test if we are trying to use run time linking or normal
  13743. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  13744. # need to do runtime linking.
  13745. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  13746. for ld_flag in $LDFLAGS; do
  13747. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  13748. aix_use_runtimelinking=yes
  13749. break
  13750. fi
  13751. done
  13752. ;;
  13753. esac
  13754. exp_sym_flag='-bexport'
  13755. no_entry_flag='-bnoentry'
  13756. fi
  13757. # When large executables or shared objects are built, AIX ld can
  13758. # have problems creating the table of contents. If linking a library
  13759. # or program results in "error TOC overflow" add -mminimal-toc to
  13760. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  13761. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  13762. archive_cmds_F77=''
  13763. hardcode_direct_F77=yes
  13764. hardcode_libdir_separator_F77=':'
  13765. link_all_deplibs_F77=yes
  13766. if test "$GCC" = yes; then
  13767. case $host_os in aix4.[012]|aix4.[012].*)
  13768. # We only want to do this on AIX 4.2 and lower, the check
  13769. # below for broken collect2 doesn't work under 4.3+
  13770. collect2name=`${CC} -print-prog-name=collect2`
  13771. if test -f "$collect2name" && \
  13772. strings "$collect2name" | grep resolve_lib_name >/dev/null
  13773. then
  13774. # We have reworked collect2
  13775. :
  13776. else
  13777. # We have old collect2
  13778. hardcode_direct_F77=unsupported
  13779. # It fails to find uninstalled libraries when the uninstalled
  13780. # path is not listed in the libpath. Setting hardcode_minus_L
  13781. # to unsupported forces relinking
  13782. hardcode_minus_L_F77=yes
  13783. hardcode_libdir_flag_spec_F77='-L$libdir'
  13784. hardcode_libdir_separator_F77=
  13785. fi
  13786. ;;
  13787. esac
  13788. shared_flag='-shared'
  13789. if test "$aix_use_runtimelinking" = yes; then
  13790. shared_flag="$shared_flag "'${wl}-G'
  13791. fi
  13792. else
  13793. # not using gcc
  13794. if test "$host_cpu" = ia64; then
  13795. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  13796. # chokes on -Wl,-G. The following line is correct:
  13797. shared_flag='-G'
  13798. else
  13799. if test "$aix_use_runtimelinking" = yes; then
  13800. shared_flag='${wl}-G'
  13801. else
  13802. shared_flag='${wl}-bM:SRE'
  13803. fi
  13804. fi
  13805. fi
  13806. # It seems that -bexpall does not export symbols beginning with
  13807. # underscore (_), so it is better to generate a list of symbols to export.
  13808. always_export_symbols_F77=yes
  13809. if test "$aix_use_runtimelinking" = yes; then
  13810. # Warning - without using the other runtime loading flags (-brtl),
  13811. # -berok will link without error, but may produce a broken library.
  13812. allow_undefined_flag_F77='-berok'
  13813. # Determine the default libpath from the value encoded in an empty executable.
  13814. cat >conftest.$ac_ext <<_ACEOF
  13815. program main
  13816. end
  13817. _ACEOF
  13818. rm -f conftest.$ac_objext conftest$ac_exeext
  13819. if { (ac_try="$ac_link"
  13820. case "(($ac_try" in
  13821. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13822. *) ac_try_echo=$ac_try;;
  13823. esac
  13824. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13825. $as_echo "$ac_try_echo") >&5
  13826. (eval "$ac_link") 2>conftest.er1
  13827. ac_status=$?
  13828. grep -v '^ *+' conftest.er1 >conftest.err
  13829. rm -f conftest.er1
  13830. cat conftest.err >&5
  13831. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13832. (exit $ac_status); } && {
  13833. test -z "$ac_f77_werror_flag" ||
  13834. test ! -s conftest.err
  13835. } && test -s conftest$ac_exeext && {
  13836. test "$cross_compiling" = yes ||
  13837. $as_test_x conftest$ac_exeext
  13838. }; then
  13839. lt_aix_libpath_sed='
  13840. /Import File Strings/,/^$/ {
  13841. /^0/ {
  13842. s/^0 *\(.*\)$/\1/
  13843. p
  13844. }
  13845. }'
  13846. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13847. # Check for a 64-bit object if we didn't find anything.
  13848. if test -z "$aix_libpath"; then
  13849. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13850. fi
  13851. else
  13852. $as_echo "$as_me: failed program was:" >&5
  13853. sed 's/^/| /' conftest.$ac_ext >&5
  13854. fi
  13855. rm -rf conftest.dSYM
  13856. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13857. conftest$ac_exeext conftest.$ac_ext
  13858. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13859. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  13860. 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"
  13861. else
  13862. if test "$host_cpu" = ia64; then
  13863. hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  13864. allow_undefined_flag_F77="-z nodefs"
  13865. 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"
  13866. else
  13867. # Determine the default libpath from the value encoded in an empty executable.
  13868. cat >conftest.$ac_ext <<_ACEOF
  13869. program main
  13870. end
  13871. _ACEOF
  13872. rm -f conftest.$ac_objext conftest$ac_exeext
  13873. if { (ac_try="$ac_link"
  13874. case "(($ac_try" in
  13875. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13876. *) ac_try_echo=$ac_try;;
  13877. esac
  13878. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13879. $as_echo "$ac_try_echo") >&5
  13880. (eval "$ac_link") 2>conftest.er1
  13881. ac_status=$?
  13882. grep -v '^ *+' conftest.er1 >conftest.err
  13883. rm -f conftest.er1
  13884. cat conftest.err >&5
  13885. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13886. (exit $ac_status); } && {
  13887. test -z "$ac_f77_werror_flag" ||
  13888. test ! -s conftest.err
  13889. } && test -s conftest$ac_exeext && {
  13890. test "$cross_compiling" = yes ||
  13891. $as_test_x conftest$ac_exeext
  13892. }; then
  13893. lt_aix_libpath_sed='
  13894. /Import File Strings/,/^$/ {
  13895. /^0/ {
  13896. s/^0 *\(.*\)$/\1/
  13897. p
  13898. }
  13899. }'
  13900. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13901. # Check for a 64-bit object if we didn't find anything.
  13902. if test -z "$aix_libpath"; then
  13903. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13904. fi
  13905. else
  13906. $as_echo "$as_me: failed program was:" >&5
  13907. sed 's/^/| /' conftest.$ac_ext >&5
  13908. fi
  13909. rm -rf conftest.dSYM
  13910. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13911. conftest$ac_exeext conftest.$ac_ext
  13912. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13913. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  13914. # Warning - without using the other run time loading flags,
  13915. # -berok will link without error, but may produce a broken library.
  13916. no_undefined_flag_F77=' ${wl}-bernotok'
  13917. allow_undefined_flag_F77=' ${wl}-berok'
  13918. # Exported symbols can be pulled into shared objects from archives
  13919. whole_archive_flag_spec_F77='$convenience'
  13920. archive_cmds_need_lc_F77=yes
  13921. # This is similar to how AIX traditionally builds its shared libraries.
  13922. 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'
  13923. fi
  13924. fi
  13925. ;;
  13926. amigaos*)
  13927. 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)'
  13928. hardcode_libdir_flag_spec_F77='-L$libdir'
  13929. hardcode_minus_L_F77=yes
  13930. # see comment about different semantics on the GNU ld section
  13931. ld_shlibs_F77=no
  13932. ;;
  13933. bsdi[45]*)
  13934. export_dynamic_flag_spec_F77=-rdynamic
  13935. ;;
  13936. cygwin* | mingw* | pw32*)
  13937. # When not using gcc, we currently assume that we are using
  13938. # Microsoft Visual C++.
  13939. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13940. # no search path for DLLs.
  13941. hardcode_libdir_flag_spec_F77=' '
  13942. allow_undefined_flag_F77=unsupported
  13943. # Tell ltmain to make .lib files, not .a files.
  13944. libext=lib
  13945. # Tell ltmain to make .dll files, not .so files.
  13946. shrext_cmds=".dll"
  13947. # FIXME: Setting linknames here is a bad hack.
  13948. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  13949. # The linker will automatically build a .lib file if we build a DLL.
  13950. old_archive_From_new_cmds_F77='true'
  13951. # FIXME: Should let the user specify the lib program.
  13952. old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
  13953. fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  13954. enable_shared_with_static_runtimes_F77=yes
  13955. ;;
  13956. darwin* | rhapsody*)
  13957. allow_undefined_flag_F77="$_lt_dar_allow_undefined"
  13958. archive_cmds_need_lc_F77=no
  13959. hardcode_direct_F77=no
  13960. hardcode_automatic_F77=yes
  13961. hardcode_shlibpath_var_F77=unsupported
  13962. whole_archive_flag_spec_F77=''
  13963. link_all_deplibs_F77=yes
  13964. if test "$GCC" = yes ; then
  13965. output_verbose_link_cmd='echo'
  13966. archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  13967. module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  13968. archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  13969. module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  13970. else
  13971. case $cc_basename in
  13972. xlc*)
  13973. output_verbose_link_cmd='echo'
  13974. archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  13975. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  13976. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  13977. 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}'
  13978. 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}'
  13979. ;;
  13980. *)
  13981. ld_shlibs_F77=no
  13982. ;;
  13983. esac
  13984. fi
  13985. ;;
  13986. dgux*)
  13987. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13988. hardcode_libdir_flag_spec_F77='-L$libdir'
  13989. hardcode_shlibpath_var_F77=no
  13990. ;;
  13991. freebsd1*)
  13992. ld_shlibs_F77=no
  13993. ;;
  13994. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  13995. # support. Future versions do this automatically, but an explicit c++rt0.o
  13996. # does not break anything, and helps significantly (at the cost of a little
  13997. # extra space).
  13998. freebsd2.2*)
  13999. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  14000. hardcode_libdir_flag_spec_F77='-R$libdir'
  14001. hardcode_direct_F77=yes
  14002. hardcode_shlibpath_var_F77=no
  14003. ;;
  14004. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  14005. freebsd2*)
  14006. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14007. hardcode_direct_F77=yes
  14008. hardcode_minus_L_F77=yes
  14009. hardcode_shlibpath_var_F77=no
  14010. ;;
  14011. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  14012. freebsd* | dragonfly*)
  14013. archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  14014. hardcode_libdir_flag_spec_F77='-R$libdir'
  14015. hardcode_direct_F77=yes
  14016. hardcode_shlibpath_var_F77=no
  14017. ;;
  14018. hpux9*)
  14019. if test "$GCC" = yes; then
  14020. 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'
  14021. else
  14022. 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'
  14023. fi
  14024. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  14025. hardcode_libdir_separator_F77=:
  14026. hardcode_direct_F77=yes
  14027. # hardcode_minus_L: Not really in the search PATH,
  14028. # but as the default location of the library.
  14029. hardcode_minus_L_F77=yes
  14030. export_dynamic_flag_spec_F77='${wl}-E'
  14031. ;;
  14032. hpux10*)
  14033. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  14034. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  14035. else
  14036. archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  14037. fi
  14038. if test "$with_gnu_ld" = no; then
  14039. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  14040. hardcode_libdir_separator_F77=:
  14041. hardcode_direct_F77=yes
  14042. export_dynamic_flag_spec_F77='${wl}-E'
  14043. # hardcode_minus_L: Not really in the search PATH,
  14044. # but as the default location of the library.
  14045. hardcode_minus_L_F77=yes
  14046. fi
  14047. ;;
  14048. hpux11*)
  14049. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  14050. case $host_cpu in
  14051. hppa*64*)
  14052. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14053. ;;
  14054. ia64*)
  14055. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  14056. ;;
  14057. *)
  14058. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  14059. ;;
  14060. esac
  14061. else
  14062. case $host_cpu in
  14063. hppa*64*)
  14064. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14065. ;;
  14066. ia64*)
  14067. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  14068. ;;
  14069. *)
  14070. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  14071. ;;
  14072. esac
  14073. fi
  14074. if test "$with_gnu_ld" = no; then
  14075. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  14076. hardcode_libdir_separator_F77=:
  14077. case $host_cpu in
  14078. hppa*64*|ia64*)
  14079. hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  14080. hardcode_direct_F77=no
  14081. hardcode_shlibpath_var_F77=no
  14082. ;;
  14083. *)
  14084. hardcode_direct_F77=yes
  14085. export_dynamic_flag_spec_F77='${wl}-E'
  14086. # hardcode_minus_L: Not really in the search PATH,
  14087. # but as the default location of the library.
  14088. hardcode_minus_L_F77=yes
  14089. ;;
  14090. esac
  14091. fi
  14092. ;;
  14093. irix5* | irix6* | nonstopux*)
  14094. if test "$GCC" = yes; then
  14095. 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'
  14096. else
  14097. 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'
  14098. hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  14099. fi
  14100. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  14101. hardcode_libdir_separator_F77=:
  14102. link_all_deplibs_F77=yes
  14103. ;;
  14104. netbsd*)
  14105. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14106. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  14107. else
  14108. archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  14109. fi
  14110. hardcode_libdir_flag_spec_F77='-R$libdir'
  14111. hardcode_direct_F77=yes
  14112. hardcode_shlibpath_var_F77=no
  14113. ;;
  14114. newsos6)
  14115. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14116. hardcode_direct_F77=yes
  14117. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  14118. hardcode_libdir_separator_F77=:
  14119. hardcode_shlibpath_var_F77=no
  14120. ;;
  14121. openbsd*)
  14122. if test -f /usr/libexec/ld.so; then
  14123. hardcode_direct_F77=yes
  14124. hardcode_shlibpath_var_F77=no
  14125. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14126. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  14127. archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  14128. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  14129. export_dynamic_flag_spec_F77='${wl}-E'
  14130. else
  14131. case $host_os in
  14132. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  14133. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14134. hardcode_libdir_flag_spec_F77='-R$libdir'
  14135. ;;
  14136. *)
  14137. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  14138. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  14139. ;;
  14140. esac
  14141. fi
  14142. else
  14143. ld_shlibs_F77=no
  14144. fi
  14145. ;;
  14146. os2*)
  14147. hardcode_libdir_flag_spec_F77='-L$libdir'
  14148. hardcode_minus_L_F77=yes
  14149. allow_undefined_flag_F77=unsupported
  14150. 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'
  14151. old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  14152. ;;
  14153. osf3*)
  14154. if test "$GCC" = yes; then
  14155. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  14156. 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'
  14157. else
  14158. allow_undefined_flag_F77=' -expect_unresolved \*'
  14159. 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'
  14160. fi
  14161. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  14162. hardcode_libdir_separator_F77=:
  14163. ;;
  14164. osf4* | osf5*) # as osf3* with the addition of -msym flag
  14165. if test "$GCC" = yes; then
  14166. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  14167. 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'
  14168. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  14169. else
  14170. allow_undefined_flag_F77=' -expect_unresolved \*'
  14171. 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'
  14172. 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~
  14173. $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'
  14174. # Both c and cxx compiler support -rpath directly
  14175. hardcode_libdir_flag_spec_F77='-rpath $libdir'
  14176. fi
  14177. hardcode_libdir_separator_F77=:
  14178. ;;
  14179. solaris*)
  14180. no_undefined_flag_F77=' -z text'
  14181. if test "$GCC" = yes; then
  14182. wlarc='${wl}'
  14183. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14184. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  14185. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  14186. else
  14187. wlarc=''
  14188. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14189. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  14190. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  14191. fi
  14192. hardcode_libdir_flag_spec_F77='-R$libdir'
  14193. hardcode_shlibpath_var_F77=no
  14194. case $host_os in
  14195. solaris2.[0-5] | solaris2.[0-5].*) ;;
  14196. *)
  14197. # The compiler driver will combine and reorder linker options,
  14198. # but understands `-z linker_flag'. GCC discards it without `$wl',
  14199. # but is careful enough not to reorder.
  14200. # Supported since Solaris 2.6 (maybe 2.5.1?)
  14201. if test "$GCC" = yes; then
  14202. whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  14203. else
  14204. whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
  14205. fi
  14206. ;;
  14207. esac
  14208. link_all_deplibs_F77=yes
  14209. ;;
  14210. sunos4*)
  14211. if test "x$host_vendor" = xsequent; then
  14212. # Use $CC to link under sequent, because it throws in some extra .o
  14213. # files that make .init and .fini sections work.
  14214. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  14215. else
  14216. archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  14217. fi
  14218. hardcode_libdir_flag_spec_F77='-L$libdir'
  14219. hardcode_direct_F77=yes
  14220. hardcode_minus_L_F77=yes
  14221. hardcode_shlibpath_var_F77=no
  14222. ;;
  14223. sysv4)
  14224. case $host_vendor in
  14225. sni)
  14226. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14227. hardcode_direct_F77=yes # is this really true???
  14228. ;;
  14229. siemens)
  14230. ## LD is ld it makes a PLAMLIB
  14231. ## CC just makes a GrossModule.
  14232. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  14233. reload_cmds_F77='$CC -r -o $output$reload_objs'
  14234. hardcode_direct_F77=no
  14235. ;;
  14236. motorola)
  14237. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14238. hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  14239. ;;
  14240. esac
  14241. runpath_var='LD_RUN_PATH'
  14242. hardcode_shlibpath_var_F77=no
  14243. ;;
  14244. sysv4.3*)
  14245. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14246. hardcode_shlibpath_var_F77=no
  14247. export_dynamic_flag_spec_F77='-Bexport'
  14248. ;;
  14249. sysv4*MP*)
  14250. if test -d /usr/nec; then
  14251. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14252. hardcode_shlibpath_var_F77=no
  14253. runpath_var=LD_RUN_PATH
  14254. hardcode_runpath_var=yes
  14255. ld_shlibs_F77=yes
  14256. fi
  14257. ;;
  14258. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  14259. no_undefined_flag_F77='${wl}-z,text'
  14260. archive_cmds_need_lc_F77=no
  14261. hardcode_shlibpath_var_F77=no
  14262. runpath_var='LD_RUN_PATH'
  14263. if test "$GCC" = yes; then
  14264. archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14265. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14266. else
  14267. archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14268. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14269. fi
  14270. ;;
  14271. sysv5* | sco3.2v5* | sco5v6*)
  14272. # Note: We can NOT use -z defs as we might desire, because we do not
  14273. # link with -lc, and that would cause any symbols used from libc to
  14274. # always be unresolved, which means just about no library would
  14275. # ever link correctly. If we're not using GNU ld we use -z text
  14276. # though, which does catch some bad symbols but isn't as heavy-handed
  14277. # as -z defs.
  14278. no_undefined_flag_F77='${wl}-z,text'
  14279. allow_undefined_flag_F77='${wl}-z,nodefs'
  14280. archive_cmds_need_lc_F77=no
  14281. hardcode_shlibpath_var_F77=no
  14282. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  14283. hardcode_libdir_separator_F77=':'
  14284. link_all_deplibs_F77=yes
  14285. export_dynamic_flag_spec_F77='${wl}-Bexport'
  14286. runpath_var='LD_RUN_PATH'
  14287. if test "$GCC" = yes; then
  14288. archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14289. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14290. else
  14291. archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14292. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14293. fi
  14294. ;;
  14295. uts4*)
  14296. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14297. hardcode_libdir_flag_spec_F77='-L$libdir'
  14298. hardcode_shlibpath_var_F77=no
  14299. ;;
  14300. *)
  14301. ld_shlibs_F77=no
  14302. ;;
  14303. esac
  14304. fi
  14305. { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  14306. $as_echo "$ld_shlibs_F77" >&6; }
  14307. test "$ld_shlibs_F77" = no && can_build_shared=no
  14308. #
  14309. # Do we need to explicitly link libc?
  14310. #
  14311. case "x$archive_cmds_need_lc_F77" in
  14312. x|xyes)
  14313. # Assume -lc should be added
  14314. archive_cmds_need_lc_F77=yes
  14315. if test "$enable_shared" = yes && test "$GCC" = yes; then
  14316. case $archive_cmds_F77 in
  14317. *'~'*)
  14318. # FIXME: we may have to deal with multi-command sequences.
  14319. ;;
  14320. '$CC '*)
  14321. # Test whether the compiler implicitly links with -lc since on some
  14322. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14323. # to ld, don't add -lc before -lgcc.
  14324. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  14325. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  14326. $rm conftest*
  14327. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14328. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14329. (eval $ac_compile) 2>&5
  14330. ac_status=$?
  14331. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14332. (exit $ac_status); } 2>conftest.err; then
  14333. soname=conftest
  14334. lib=conftest
  14335. libobjs=conftest.$ac_objext
  14336. deplibs=
  14337. wl=$lt_prog_compiler_wl_F77
  14338. pic_flag=$lt_prog_compiler_pic_F77
  14339. compiler_flags=-v
  14340. linker_flags=-v
  14341. verstring=
  14342. output_objdir=.
  14343. libname=conftest
  14344. lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  14345. allow_undefined_flag_F77=
  14346. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  14347. (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14348. ac_status=$?
  14349. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14350. (exit $ac_status); }
  14351. then
  14352. archive_cmds_need_lc_F77=no
  14353. else
  14354. archive_cmds_need_lc_F77=yes
  14355. fi
  14356. allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  14357. else
  14358. cat conftest.err 1>&5
  14359. fi
  14360. $rm conftest*
  14361. { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  14362. $as_echo "$archive_cmds_need_lc_F77" >&6; }
  14363. ;;
  14364. esac
  14365. fi
  14366. ;;
  14367. esac
  14368. { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  14369. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  14370. library_names_spec=
  14371. libname_spec='lib$name'
  14372. soname_spec=
  14373. shrext_cmds=".so"
  14374. postinstall_cmds=
  14375. postuninstall_cmds=
  14376. finish_cmds=
  14377. finish_eval=
  14378. shlibpath_var=
  14379. shlibpath_overrides_runpath=unknown
  14380. version_type=none
  14381. dynamic_linker="$host_os ld.so"
  14382. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14383. need_lib_prefix=unknown
  14384. hardcode_into_libs=no
  14385. # when you set need_version to no, make sure it does not cause -set_version
  14386. # flags to be left without arguments
  14387. need_version=unknown
  14388. case $host_os in
  14389. aix3*)
  14390. version_type=linux
  14391. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  14392. shlibpath_var=LIBPATH
  14393. # AIX 3 has no versioning support, so we append a major version to the name.
  14394. soname_spec='${libname}${release}${shared_ext}$major'
  14395. ;;
  14396. aix[4-9]*)
  14397. version_type=linux
  14398. need_lib_prefix=no
  14399. need_version=no
  14400. hardcode_into_libs=yes
  14401. if test "$host_cpu" = ia64; then
  14402. # AIX 5 supports IA64
  14403. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  14404. shlibpath_var=LD_LIBRARY_PATH
  14405. else
  14406. # With GCC up to 2.95.x, collect2 would create an import file
  14407. # for dependence libraries. The import file would start with
  14408. # the line `#! .'. This would cause the generated library to
  14409. # depend on `.', always an invalid library. This was fixed in
  14410. # development snapshots of GCC prior to 3.0.
  14411. case $host_os in
  14412. aix4 | aix4.[01] | aix4.[01].*)
  14413. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14414. echo ' yes '
  14415. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  14416. :
  14417. else
  14418. can_build_shared=no
  14419. fi
  14420. ;;
  14421. esac
  14422. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  14423. # soname into executable. Probably we can add versioning support to
  14424. # collect2, so additional links can be useful in future.
  14425. if test "$aix_use_runtimelinking" = yes; then
  14426. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14427. # instead of lib<name>.a to let people know that these are not
  14428. # typical AIX shared libraries.
  14429. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14430. else
  14431. # We preserve .a as extension for shared libraries through AIX4.2
  14432. # and later when we are not doing run time linking.
  14433. library_names_spec='${libname}${release}.a $libname.a'
  14434. soname_spec='${libname}${release}${shared_ext}$major'
  14435. fi
  14436. shlibpath_var=LIBPATH
  14437. fi
  14438. ;;
  14439. amigaos*)
  14440. library_names_spec='$libname.ixlibrary $libname.a'
  14441. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14442. 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'
  14443. ;;
  14444. beos*)
  14445. library_names_spec='${libname}${shared_ext}'
  14446. dynamic_linker="$host_os ld.so"
  14447. shlibpath_var=LIBRARY_PATH
  14448. ;;
  14449. bsdi[45]*)
  14450. version_type=linux
  14451. need_version=no
  14452. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14453. soname_spec='${libname}${release}${shared_ext}$major'
  14454. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14455. shlibpath_var=LD_LIBRARY_PATH
  14456. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14457. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14458. # the default ld.so.conf also contains /usr/contrib/lib and
  14459. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14460. # libtool to hard-code these into programs
  14461. ;;
  14462. cygwin* | mingw* | pw32*)
  14463. version_type=windows
  14464. shrext_cmds=".dll"
  14465. need_version=no
  14466. need_lib_prefix=no
  14467. case $GCC,$host_os in
  14468. yes,cygwin* | yes,mingw* | yes,pw32*)
  14469. library_names_spec='$libname.dll.a'
  14470. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14471. postinstall_cmds='base_file=`basename \${file}`~
  14472. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  14473. dldir=$destdir/`dirname \$dlpath`~
  14474. test -d \$dldir || mkdir -p \$dldir~
  14475. $install_prog $dir/$dlname \$dldir/$dlname~
  14476. chmod a+x \$dldir/$dlname'
  14477. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14478. dlpath=$dir/\$dldll~
  14479. $rm \$dlpath'
  14480. shlibpath_overrides_runpath=yes
  14481. case $host_os in
  14482. cygwin*)
  14483. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14484. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14485. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  14486. ;;
  14487. mingw*)
  14488. # MinGW DLLs use traditional 'lib' prefix
  14489. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14490. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  14491. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  14492. # It is most probably a Windows format PATH printed by
  14493. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  14494. # path with ; separators, and with drive letters. We can handle the
  14495. # drive letters (cygwin fileutils understands them), so leave them,
  14496. # especially as we might pass files found there to a mingw objdump,
  14497. # which wouldn't understand a cygwinified path. Ahh.
  14498. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14499. else
  14500. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14501. fi
  14502. ;;
  14503. pw32*)
  14504. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14505. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14506. ;;
  14507. esac
  14508. ;;
  14509. *)
  14510. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  14511. ;;
  14512. esac
  14513. dynamic_linker='Win32 ld.exe'
  14514. # FIXME: first we should search . and the directory the executable is in
  14515. shlibpath_var=PATH
  14516. ;;
  14517. darwin* | rhapsody*)
  14518. dynamic_linker="$host_os dyld"
  14519. version_type=darwin
  14520. need_lib_prefix=no
  14521. need_version=no
  14522. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  14523. soname_spec='${libname}${release}${major}$shared_ext'
  14524. shlibpath_overrides_runpath=yes
  14525. shlibpath_var=DYLD_LIBRARY_PATH
  14526. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14527. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14528. ;;
  14529. dgux*)
  14530. version_type=linux
  14531. need_lib_prefix=no
  14532. need_version=no
  14533. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  14534. soname_spec='${libname}${release}${shared_ext}$major'
  14535. shlibpath_var=LD_LIBRARY_PATH
  14536. ;;
  14537. freebsd1*)
  14538. dynamic_linker=no
  14539. ;;
  14540. freebsd* | dragonfly*)
  14541. # DragonFly does not have aout. When/if they implement a new
  14542. # versioning mechanism, adjust this.
  14543. if test -x /usr/bin/objformat; then
  14544. objformat=`/usr/bin/objformat`
  14545. else
  14546. case $host_os in
  14547. freebsd[123]*) objformat=aout ;;
  14548. *) objformat=elf ;;
  14549. esac
  14550. fi
  14551. version_type=freebsd-$objformat
  14552. case $version_type in
  14553. freebsd-elf*)
  14554. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14555. need_version=no
  14556. need_lib_prefix=no
  14557. ;;
  14558. freebsd-*)
  14559. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  14560. need_version=yes
  14561. ;;
  14562. esac
  14563. shlibpath_var=LD_LIBRARY_PATH
  14564. case $host_os in
  14565. freebsd2*)
  14566. shlibpath_overrides_runpath=yes
  14567. ;;
  14568. freebsd3.[01]* | freebsdelf3.[01]*)
  14569. shlibpath_overrides_runpath=yes
  14570. hardcode_into_libs=yes
  14571. ;;
  14572. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14573. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14574. shlibpath_overrides_runpath=no
  14575. hardcode_into_libs=yes
  14576. ;;
  14577. *) # from 4.6 on, and DragonFly
  14578. shlibpath_overrides_runpath=yes
  14579. hardcode_into_libs=yes
  14580. ;;
  14581. esac
  14582. ;;
  14583. gnu*)
  14584. version_type=linux
  14585. need_lib_prefix=no
  14586. need_version=no
  14587. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  14588. soname_spec='${libname}${release}${shared_ext}$major'
  14589. shlibpath_var=LD_LIBRARY_PATH
  14590. hardcode_into_libs=yes
  14591. ;;
  14592. hpux9* | hpux10* | hpux11*)
  14593. # Give a soname corresponding to the major version so that dld.sl refuses to
  14594. # link against other versions.
  14595. version_type=sunos
  14596. need_lib_prefix=no
  14597. need_version=no
  14598. case $host_cpu in
  14599. ia64*)
  14600. shrext_cmds='.so'
  14601. hardcode_into_libs=yes
  14602. dynamic_linker="$host_os dld.so"
  14603. shlibpath_var=LD_LIBRARY_PATH
  14604. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14605. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14606. soname_spec='${libname}${release}${shared_ext}$major'
  14607. if test "X$HPUX_IA64_MODE" = X32; then
  14608. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14609. else
  14610. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14611. fi
  14612. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14613. ;;
  14614. hppa*64*)
  14615. shrext_cmds='.sl'
  14616. hardcode_into_libs=yes
  14617. dynamic_linker="$host_os dld.sl"
  14618. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14619. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14620. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14621. soname_spec='${libname}${release}${shared_ext}$major'
  14622. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14623. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14624. ;;
  14625. *)
  14626. shrext_cmds='.sl'
  14627. dynamic_linker="$host_os dld.sl"
  14628. shlibpath_var=SHLIB_PATH
  14629. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14630. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14631. soname_spec='${libname}${release}${shared_ext}$major'
  14632. ;;
  14633. esac
  14634. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  14635. postinstall_cmds='chmod 555 $lib'
  14636. ;;
  14637. interix[3-9]*)
  14638. version_type=linux
  14639. need_lib_prefix=no
  14640. need_version=no
  14641. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14642. soname_spec='${libname}${release}${shared_ext}$major'
  14643. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14644. shlibpath_var=LD_LIBRARY_PATH
  14645. shlibpath_overrides_runpath=no
  14646. hardcode_into_libs=yes
  14647. ;;
  14648. irix5* | irix6* | nonstopux*)
  14649. case $host_os in
  14650. nonstopux*) version_type=nonstopux ;;
  14651. *)
  14652. if test "$lt_cv_prog_gnu_ld" = yes; then
  14653. version_type=linux
  14654. else
  14655. version_type=irix
  14656. fi ;;
  14657. esac
  14658. need_lib_prefix=no
  14659. need_version=no
  14660. soname_spec='${libname}${release}${shared_ext}$major'
  14661. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  14662. case $host_os in
  14663. irix5* | nonstopux*)
  14664. libsuff= shlibsuff=
  14665. ;;
  14666. *)
  14667. case $LD in # libtool.m4 will add one of these switches to LD
  14668. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14669. libsuff= shlibsuff= libmagic=32-bit;;
  14670. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14671. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14672. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14673. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14674. *) libsuff= shlibsuff= libmagic=never-match;;
  14675. esac
  14676. ;;
  14677. esac
  14678. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14679. shlibpath_overrides_runpath=no
  14680. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  14681. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  14682. hardcode_into_libs=yes
  14683. ;;
  14684. # No shared lib support for Linux oldld, aout, or coff.
  14685. linux*oldld* | linux*aout* | linux*coff*)
  14686. dynamic_linker=no
  14687. ;;
  14688. # This must be Linux ELF.
  14689. linux* | k*bsd*-gnu)
  14690. version_type=linux
  14691. need_lib_prefix=no
  14692. need_version=no
  14693. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14694. soname_spec='${libname}${release}${shared_ext}$major'
  14695. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14696. shlibpath_var=LD_LIBRARY_PATH
  14697. shlibpath_overrides_runpath=no
  14698. # This implies no fast_install, which is unacceptable.
  14699. # Some rework will be needed to allow for fast_install
  14700. # before this can be enabled.
  14701. hardcode_into_libs=yes
  14702. # Append ld.so.conf contents to the search path
  14703. if test -f /etc/ld.so.conf; then
  14704. 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' ' '`
  14705. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  14706. fi
  14707. # We used to test for /lib/ld.so.1 and disable shared libraries on
  14708. # powerpc, because MkLinux only supported shared libraries with the
  14709. # GNU dynamic linker. Since this was broken with cross compilers,
  14710. # most powerpc-linux boxes support dynamic linking these days and
  14711. # people can always --disable-shared, the test was removed, and we
  14712. # assume the GNU/Linux dynamic linker is in use.
  14713. dynamic_linker='GNU/Linux ld.so'
  14714. ;;
  14715. netbsd*)
  14716. version_type=sunos
  14717. need_lib_prefix=no
  14718. need_version=no
  14719. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14720. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14721. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14722. dynamic_linker='NetBSD (a.out) ld.so'
  14723. else
  14724. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14725. soname_spec='${libname}${release}${shared_ext}$major'
  14726. dynamic_linker='NetBSD ld.elf_so'
  14727. fi
  14728. shlibpath_var=LD_LIBRARY_PATH
  14729. shlibpath_overrides_runpath=yes
  14730. hardcode_into_libs=yes
  14731. ;;
  14732. newsos6)
  14733. version_type=linux
  14734. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14735. shlibpath_var=LD_LIBRARY_PATH
  14736. shlibpath_overrides_runpath=yes
  14737. ;;
  14738. nto-qnx*)
  14739. version_type=linux
  14740. need_lib_prefix=no
  14741. need_version=no
  14742. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14743. soname_spec='${libname}${release}${shared_ext}$major'
  14744. shlibpath_var=LD_LIBRARY_PATH
  14745. shlibpath_overrides_runpath=yes
  14746. ;;
  14747. openbsd*)
  14748. version_type=sunos
  14749. sys_lib_dlsearch_path_spec="/usr/lib"
  14750. need_lib_prefix=no
  14751. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  14752. case $host_os in
  14753. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  14754. *) need_version=no ;;
  14755. esac
  14756. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14757. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14758. shlibpath_var=LD_LIBRARY_PATH
  14759. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14760. case $host_os in
  14761. openbsd2.[89] | openbsd2.[89].*)
  14762. shlibpath_overrides_runpath=no
  14763. ;;
  14764. *)
  14765. shlibpath_overrides_runpath=yes
  14766. ;;
  14767. esac
  14768. else
  14769. shlibpath_overrides_runpath=yes
  14770. fi
  14771. ;;
  14772. os2*)
  14773. libname_spec='$name'
  14774. shrext_cmds=".dll"
  14775. need_lib_prefix=no
  14776. library_names_spec='$libname${shared_ext} $libname.a'
  14777. dynamic_linker='OS/2 ld.exe'
  14778. shlibpath_var=LIBPATH
  14779. ;;
  14780. osf3* | osf4* | osf5*)
  14781. version_type=osf
  14782. need_lib_prefix=no
  14783. need_version=no
  14784. soname_spec='${libname}${release}${shared_ext}$major'
  14785. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14786. shlibpath_var=LD_LIBRARY_PATH
  14787. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14788. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  14789. ;;
  14790. rdos*)
  14791. dynamic_linker=no
  14792. ;;
  14793. solaris*)
  14794. version_type=linux
  14795. need_lib_prefix=no
  14796. need_version=no
  14797. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14798. soname_spec='${libname}${release}${shared_ext}$major'
  14799. shlibpath_var=LD_LIBRARY_PATH
  14800. shlibpath_overrides_runpath=yes
  14801. hardcode_into_libs=yes
  14802. # ldd complains unless libraries are executable
  14803. postinstall_cmds='chmod +x $lib'
  14804. ;;
  14805. sunos4*)
  14806. version_type=sunos
  14807. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14808. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14809. shlibpath_var=LD_LIBRARY_PATH
  14810. shlibpath_overrides_runpath=yes
  14811. if test "$with_gnu_ld" = yes; then
  14812. need_lib_prefix=no
  14813. fi
  14814. need_version=yes
  14815. ;;
  14816. sysv4 | sysv4.3*)
  14817. version_type=linux
  14818. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14819. soname_spec='${libname}${release}${shared_ext}$major'
  14820. shlibpath_var=LD_LIBRARY_PATH
  14821. case $host_vendor in
  14822. sni)
  14823. shlibpath_overrides_runpath=no
  14824. need_lib_prefix=no
  14825. export_dynamic_flag_spec='${wl}-Blargedynsym'
  14826. runpath_var=LD_RUN_PATH
  14827. ;;
  14828. siemens)
  14829. need_lib_prefix=no
  14830. ;;
  14831. motorola)
  14832. need_lib_prefix=no
  14833. need_version=no
  14834. shlibpath_overrides_runpath=no
  14835. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14836. ;;
  14837. esac
  14838. ;;
  14839. sysv4*MP*)
  14840. if test -d /usr/nec ;then
  14841. version_type=linux
  14842. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  14843. soname_spec='$libname${shared_ext}.$major'
  14844. shlibpath_var=LD_LIBRARY_PATH
  14845. fi
  14846. ;;
  14847. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14848. version_type=freebsd-elf
  14849. need_lib_prefix=no
  14850. need_version=no
  14851. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14852. soname_spec='${libname}${release}${shared_ext}$major'
  14853. shlibpath_var=LD_LIBRARY_PATH
  14854. hardcode_into_libs=yes
  14855. if test "$with_gnu_ld" = yes; then
  14856. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14857. shlibpath_overrides_runpath=no
  14858. else
  14859. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14860. shlibpath_overrides_runpath=yes
  14861. case $host_os in
  14862. sco3.2v5*)
  14863. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14864. ;;
  14865. esac
  14866. fi
  14867. sys_lib_dlsearch_path_spec='/usr/lib'
  14868. ;;
  14869. uts4*)
  14870. version_type=linux
  14871. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14872. soname_spec='${libname}${release}${shared_ext}$major'
  14873. shlibpath_var=LD_LIBRARY_PATH
  14874. ;;
  14875. *)
  14876. dynamic_linker=no
  14877. ;;
  14878. esac
  14879. { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  14880. $as_echo "$dynamic_linker" >&6; }
  14881. test "$dynamic_linker" = no && can_build_shared=no
  14882. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  14883. $as_echo_n "(cached) " >&6
  14884. else
  14885. lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  14886. fi
  14887. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  14888. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  14889. $as_echo_n "(cached) " >&6
  14890. else
  14891. lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  14892. fi
  14893. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  14894. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14895. if test "$GCC" = yes; then
  14896. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14897. fi
  14898. { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  14899. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  14900. hardcode_action_F77=
  14901. if test -n "$hardcode_libdir_flag_spec_F77" || \
  14902. test -n "$runpath_var_F77" || \
  14903. test "X$hardcode_automatic_F77" = "Xyes" ; then
  14904. # We can hardcode non-existant directories.
  14905. if test "$hardcode_direct_F77" != no &&
  14906. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14907. # have to relink, otherwise we might link with an installed library
  14908. # when we should be linking with a yet-to-be-installed one
  14909. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  14910. test "$hardcode_minus_L_F77" != no; then
  14911. # Linking always hardcodes the temporary library directory.
  14912. hardcode_action_F77=relink
  14913. else
  14914. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14915. hardcode_action_F77=immediate
  14916. fi
  14917. else
  14918. # We cannot hardcode anything, or else we can only hardcode existing
  14919. # directories.
  14920. hardcode_action_F77=unsupported
  14921. fi
  14922. { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  14923. $as_echo "$hardcode_action_F77" >&6; }
  14924. if test "$hardcode_action_F77" = relink; then
  14925. # Fast installation is not supported
  14926. enable_fast_install=no
  14927. elif test "$shlibpath_overrides_runpath" = yes ||
  14928. test "$enable_shared" = no; then
  14929. # Fast installation is not necessary
  14930. enable_fast_install=needless
  14931. fi
  14932. # The else clause should only fire when bootstrapping the
  14933. # libtool distribution, otherwise you forgot to ship ltmain.sh
  14934. # with your package, and you will get complaints that there are
  14935. # no rules to generate ltmain.sh.
  14936. if test -f "$ltmain"; then
  14937. # See if we are running on zsh, and set the options which allow our commands through
  14938. # without removal of \ escapes.
  14939. if test -n "${ZSH_VERSION+set}" ; then
  14940. setopt NO_GLOB_SUBST
  14941. fi
  14942. # Now quote all the things that may contain metacharacters while being
  14943. # careful not to overquote the AC_SUBSTed values. We take copies of the
  14944. # variables and quote the copies for generation of the libtool script.
  14945. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  14946. SED SHELL STRIP \
  14947. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  14948. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  14949. deplibs_check_method reload_flag reload_cmds need_locks \
  14950. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  14951. lt_cv_sys_global_symbol_to_c_name_address \
  14952. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  14953. old_postinstall_cmds old_postuninstall_cmds \
  14954. compiler_F77 \
  14955. CC_F77 \
  14956. LD_F77 \
  14957. lt_prog_compiler_wl_F77 \
  14958. lt_prog_compiler_pic_F77 \
  14959. lt_prog_compiler_static_F77 \
  14960. lt_prog_compiler_no_builtin_flag_F77 \
  14961. export_dynamic_flag_spec_F77 \
  14962. thread_safe_flag_spec_F77 \
  14963. whole_archive_flag_spec_F77 \
  14964. enable_shared_with_static_runtimes_F77 \
  14965. old_archive_cmds_F77 \
  14966. old_archive_from_new_cmds_F77 \
  14967. predep_objects_F77 \
  14968. postdep_objects_F77 \
  14969. predeps_F77 \
  14970. postdeps_F77 \
  14971. compiler_lib_search_path_F77 \
  14972. compiler_lib_search_dirs_F77 \
  14973. archive_cmds_F77 \
  14974. archive_expsym_cmds_F77 \
  14975. postinstall_cmds_F77 \
  14976. postuninstall_cmds_F77 \
  14977. old_archive_from_expsyms_cmds_F77 \
  14978. allow_undefined_flag_F77 \
  14979. no_undefined_flag_F77 \
  14980. export_symbols_cmds_F77 \
  14981. hardcode_libdir_flag_spec_F77 \
  14982. hardcode_libdir_flag_spec_ld_F77 \
  14983. hardcode_libdir_separator_F77 \
  14984. hardcode_automatic_F77 \
  14985. module_cmds_F77 \
  14986. module_expsym_cmds_F77 \
  14987. lt_cv_prog_compiler_c_o_F77 \
  14988. fix_srcfile_path_F77 \
  14989. exclude_expsyms_F77 \
  14990. include_expsyms_F77; do
  14991. case $var in
  14992. old_archive_cmds_F77 | \
  14993. old_archive_from_new_cmds_F77 | \
  14994. archive_cmds_F77 | \
  14995. archive_expsym_cmds_F77 | \
  14996. module_cmds_F77 | \
  14997. module_expsym_cmds_F77 | \
  14998. old_archive_from_expsyms_cmds_F77 | \
  14999. export_symbols_cmds_F77 | \
  15000. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  15001. postinstall_cmds | postuninstall_cmds | \
  15002. old_postinstall_cmds | old_postuninstall_cmds | \
  15003. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  15004. # Double-quote double-evaled strings.
  15005. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  15006. ;;
  15007. *)
  15008. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  15009. ;;
  15010. esac
  15011. done
  15012. case $lt_echo in
  15013. *'\$0 --fallback-echo"')
  15014. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  15015. ;;
  15016. esac
  15017. cfgfile="$ofile"
  15018. cat <<__EOF__ >> "$cfgfile"
  15019. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  15020. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15021. # Shell to use when invoking shell scripts.
  15022. SHELL=$lt_SHELL
  15023. # Whether or not to build shared libraries.
  15024. build_libtool_libs=$enable_shared
  15025. # Whether or not to build static libraries.
  15026. build_old_libs=$enable_static
  15027. # Whether or not to add -lc for building shared libraries.
  15028. build_libtool_need_lc=$archive_cmds_need_lc_F77
  15029. # Whether or not to disallow shared libs when runtime libs are static
  15030. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  15031. # Whether or not to optimize for fast installation.
  15032. fast_install=$enable_fast_install
  15033. # The host system.
  15034. host_alias=$host_alias
  15035. host=$host
  15036. host_os=$host_os
  15037. # The build system.
  15038. build_alias=$build_alias
  15039. build=$build
  15040. build_os=$build_os
  15041. # An echo program that does not interpret backslashes.
  15042. echo=$lt_echo
  15043. # The archiver.
  15044. AR=$lt_AR
  15045. AR_FLAGS=$lt_AR_FLAGS
  15046. # A C compiler.
  15047. LTCC=$lt_LTCC
  15048. # LTCC compiler flags.
  15049. LTCFLAGS=$lt_LTCFLAGS
  15050. # A language-specific compiler.
  15051. CC=$lt_compiler_F77
  15052. # Is the compiler the GNU C compiler?
  15053. with_gcc=$GCC_F77
  15054. # An ERE matcher.
  15055. EGREP=$lt_EGREP
  15056. # The linker used to build libraries.
  15057. LD=$lt_LD_F77
  15058. # Whether we need hard or soft links.
  15059. LN_S=$lt_LN_S
  15060. # A BSD-compatible nm program.
  15061. NM=$lt_NM
  15062. # A symbol stripping program
  15063. STRIP=$lt_STRIP
  15064. # Used to examine libraries when file_magic_cmd begins "file"
  15065. MAGIC_CMD=$MAGIC_CMD
  15066. # Used on cygwin: DLL creation program.
  15067. DLLTOOL="$DLLTOOL"
  15068. # Used on cygwin: object dumper.
  15069. OBJDUMP="$OBJDUMP"
  15070. # Used on cygwin: assembler.
  15071. AS="$AS"
  15072. # The name of the directory that contains temporary libtool files.
  15073. objdir=$objdir
  15074. # How to create reloadable object files.
  15075. reload_flag=$lt_reload_flag
  15076. reload_cmds=$lt_reload_cmds
  15077. # How to pass a linker flag through the compiler.
  15078. wl=$lt_lt_prog_compiler_wl_F77
  15079. # Object file suffix (normally "o").
  15080. objext="$ac_objext"
  15081. # Old archive suffix (normally "a").
  15082. libext="$libext"
  15083. # Shared library suffix (normally ".so").
  15084. shrext_cmds='$shrext_cmds'
  15085. # Executable file suffix (normally "").
  15086. exeext="$exeext"
  15087. # Additional compiler flags for building library objects.
  15088. pic_flag=$lt_lt_prog_compiler_pic_F77
  15089. pic_mode=$pic_mode
  15090. # What is the maximum length of a command?
  15091. max_cmd_len=$lt_cv_sys_max_cmd_len
  15092. # Does compiler simultaneously support -c and -o options?
  15093. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  15094. # Must we lock files when doing compilation?
  15095. need_locks=$lt_need_locks
  15096. # Do we need the lib prefix for modules?
  15097. need_lib_prefix=$need_lib_prefix
  15098. # Do we need a version for libraries?
  15099. need_version=$need_version
  15100. # Whether dlopen is supported.
  15101. dlopen_support=$enable_dlopen
  15102. # Whether dlopen of programs is supported.
  15103. dlopen_self=$enable_dlopen_self
  15104. # Whether dlopen of statically linked programs is supported.
  15105. dlopen_self_static=$enable_dlopen_self_static
  15106. # Compiler flag to prevent dynamic linking.
  15107. link_static_flag=$lt_lt_prog_compiler_static_F77
  15108. # Compiler flag to turn off builtin functions.
  15109. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  15110. # Compiler flag to allow reflexive dlopens.
  15111. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  15112. # Compiler flag to generate shared objects directly from archives.
  15113. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  15114. # Compiler flag to generate thread-safe objects.
  15115. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  15116. # Library versioning type.
  15117. version_type=$version_type
  15118. # Format of library name prefix.
  15119. libname_spec=$lt_libname_spec
  15120. # List of archive names. First name is the real one, the rest are links.
  15121. # The last name is the one that the linker finds with -lNAME.
  15122. library_names_spec=$lt_library_names_spec
  15123. # The coded name of the library, if different from the real name.
  15124. soname_spec=$lt_soname_spec
  15125. # Commands used to build and install an old-style archive.
  15126. RANLIB=$lt_RANLIB
  15127. old_archive_cmds=$lt_old_archive_cmds_F77
  15128. old_postinstall_cmds=$lt_old_postinstall_cmds
  15129. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15130. # Create an old-style archive from a shared archive.
  15131. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  15132. # Create a temporary old-style archive to link instead of a shared archive.
  15133. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  15134. # Commands used to build and install a shared archive.
  15135. archive_cmds=$lt_archive_cmds_F77
  15136. archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  15137. postinstall_cmds=$lt_postinstall_cmds
  15138. postuninstall_cmds=$lt_postuninstall_cmds
  15139. # Commands used to build a loadable module (assumed same as above if empty)
  15140. module_cmds=$lt_module_cmds_F77
  15141. module_expsym_cmds=$lt_module_expsym_cmds_F77
  15142. # Commands to strip libraries.
  15143. old_striplib=$lt_old_striplib
  15144. striplib=$lt_striplib
  15145. # Dependencies to place before the objects being linked to create a
  15146. # shared library.
  15147. predep_objects=$lt_predep_objects_F77
  15148. # Dependencies to place after the objects being linked to create a
  15149. # shared library.
  15150. postdep_objects=$lt_postdep_objects_F77
  15151. # Dependencies to place before the objects being linked to create a
  15152. # shared library.
  15153. predeps=$lt_predeps_F77
  15154. # Dependencies to place after the objects being linked to create a
  15155. # shared library.
  15156. postdeps=$lt_postdeps_F77
  15157. # The directories searched by this compiler when creating a shared
  15158. # library
  15159. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
  15160. # The library search path used internally by the compiler when linking
  15161. # a shared library.
  15162. compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  15163. # Method to check whether dependent libraries are shared objects.
  15164. deplibs_check_method=$lt_deplibs_check_method
  15165. # Command to use when deplibs_check_method == file_magic.
  15166. file_magic_cmd=$lt_file_magic_cmd
  15167. # Flag that allows shared libraries with undefined symbols to be built.
  15168. allow_undefined_flag=$lt_allow_undefined_flag_F77
  15169. # Flag that forces no undefined symbols.
  15170. no_undefined_flag=$lt_no_undefined_flag_F77
  15171. # Commands used to finish a libtool library installation in a directory.
  15172. finish_cmds=$lt_finish_cmds
  15173. # Same as above, but a single script fragment to be evaled but not shown.
  15174. finish_eval=$lt_finish_eval
  15175. # Take the output of nm and produce a listing of raw symbols and C names.
  15176. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15177. # Transform the output of nm in a proper C declaration
  15178. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15179. # Transform the output of nm in a C name address pair
  15180. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15181. # This is the shared library runtime path variable.
  15182. runpath_var=$runpath_var
  15183. # This is the shared library path variable.
  15184. shlibpath_var=$shlibpath_var
  15185. # Is shlibpath searched before the hard-coded library search path?
  15186. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15187. # How to hardcode a shared library path into an executable.
  15188. hardcode_action=$hardcode_action_F77
  15189. # Whether we should hardcode library paths into libraries.
  15190. hardcode_into_libs=$hardcode_into_libs
  15191. # Flag to hardcode \$libdir into a binary during linking.
  15192. # This must work even if \$libdir does not exist.
  15193. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  15194. # If ld is used when linking, flag to hardcode \$libdir into
  15195. # a binary during linking. This must work even if \$libdir does
  15196. # not exist.
  15197. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  15198. # Whether we need a single -rpath flag with a separated argument.
  15199. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  15200. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  15201. # resulting binary.
  15202. hardcode_direct=$hardcode_direct_F77
  15203. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  15204. # resulting binary.
  15205. hardcode_minus_L=$hardcode_minus_L_F77
  15206. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  15207. # the resulting binary.
  15208. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  15209. # Set to yes if building a shared library automatically hardcodes DIR into the library
  15210. # and all subsequent libraries and executables linked against it.
  15211. hardcode_automatic=$hardcode_automatic_F77
  15212. # Variables whose values should be saved in libtool wrapper scripts and
  15213. # restored at relink time.
  15214. variables_saved_for_relink="$variables_saved_for_relink"
  15215. # Whether libtool must link a program against all its dependency libraries.
  15216. link_all_deplibs=$link_all_deplibs_F77
  15217. # Compile-time system search path for libraries
  15218. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15219. # Run-time system search path for libraries
  15220. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  15221. # Fix the shell variable \$srcfile for the compiler.
  15222. fix_srcfile_path=$lt_fix_srcfile_path
  15223. # Set to yes if exported symbols are required.
  15224. always_export_symbols=$always_export_symbols_F77
  15225. # The commands to list exported symbols.
  15226. export_symbols_cmds=$lt_export_symbols_cmds_F77
  15227. # The commands to extract the exported symbol list from a shared archive.
  15228. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15229. # Symbols that should not be listed in the preloaded symbols.
  15230. exclude_expsyms=$lt_exclude_expsyms_F77
  15231. # Symbols that must always be exported.
  15232. include_expsyms=$lt_include_expsyms_F77
  15233. # ### END LIBTOOL TAG CONFIG: $tagname
  15234. __EOF__
  15235. else
  15236. # If there is no Makefile yet, we rely on a make rule to execute
  15237. # `config.status --recheck' to rerun these tests and create the
  15238. # libtool script then.
  15239. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  15240. if test -f "$ltmain_in"; then
  15241. test -f Makefile && make "$ltmain"
  15242. fi
  15243. fi
  15244. ac_ext=c
  15245. ac_cpp='$CPP $CPPFLAGS'
  15246. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15247. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15248. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15249. CC="$lt_save_CC"
  15250. else
  15251. tagname=""
  15252. fi
  15253. ;;
  15254. GCJ)
  15255. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  15256. # Source file extension for Java test sources.
  15257. ac_ext=java
  15258. # Object file extension for compiled Java test sources.
  15259. objext=o
  15260. objext_GCJ=$objext
  15261. # Code to be used in simple compile tests
  15262. lt_simple_compile_test_code="class foo {}"
  15263. # Code to be used in simple link tests
  15264. lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
  15265. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  15266. # If no C compiler was specified, use CC.
  15267. LTCC=${LTCC-"$CC"}
  15268. # If no C compiler flags were specified, use CFLAGS.
  15269. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  15270. # Allow CC to be a program name with arguments.
  15271. compiler=$CC
  15272. # save warnings/boilerplate of simple test code
  15273. ac_outfile=conftest.$ac_objext
  15274. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  15275. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  15276. _lt_compiler_boilerplate=`cat conftest.err`
  15277. $rm conftest*
  15278. ac_outfile=conftest.$ac_objext
  15279. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  15280. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  15281. _lt_linker_boilerplate=`cat conftest.err`
  15282. $rm -r conftest*
  15283. # Allow CC to be a program name with arguments.
  15284. lt_save_CC="$CC"
  15285. CC=${GCJ-"gcj"}
  15286. compiler=$CC
  15287. compiler_GCJ=$CC
  15288. for cc_temp in $compiler""; do
  15289. case $cc_temp in
  15290. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  15291. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  15292. \-*) ;;
  15293. *) break;;
  15294. esac
  15295. done
  15296. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  15297. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  15298. archive_cmds_need_lc_GCJ=no
  15299. old_archive_cmds_GCJ=$old_archive_cmds
  15300. lt_prog_compiler_no_builtin_flag_GCJ=
  15301. if test "$GCC" = yes; then
  15302. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  15303. { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  15304. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  15305. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  15306. $as_echo_n "(cached) " >&6
  15307. else
  15308. lt_cv_prog_compiler_rtti_exceptions=no
  15309. ac_outfile=conftest.$ac_objext
  15310. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15311. lt_compiler_flag="-fno-rtti -fno-exceptions"
  15312. # Insert the option either (1) after the last *FLAGS variable, or
  15313. # (2) before a word containing "conftest.", or (3) at the end.
  15314. # Note that $ac_compile itself does not contain backslashes and begins
  15315. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15316. # The option is referenced via a variable to avoid confusing sed.
  15317. lt_compile=`echo "$ac_compile" | $SED \
  15318. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15319. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15320. -e 's:$: $lt_compiler_flag:'`
  15321. (eval echo "\"\$as_me:17117: $lt_compile\"" >&5)
  15322. (eval "$lt_compile" 2>conftest.err)
  15323. ac_status=$?
  15324. cat conftest.err >&5
  15325. echo "$as_me:17121: \$? = $ac_status" >&5
  15326. if (exit $ac_status) && test -s "$ac_outfile"; then
  15327. # The compiler can only warn and ignore the option if not recognized
  15328. # So say no if there are warnings other than the usual output.
  15329. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  15330. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15331. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  15332. lt_cv_prog_compiler_rtti_exceptions=yes
  15333. fi
  15334. fi
  15335. $rm conftest*
  15336. fi
  15337. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  15338. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  15339. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  15340. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  15341. else
  15342. :
  15343. fi
  15344. fi
  15345. lt_prog_compiler_wl_GCJ=
  15346. lt_prog_compiler_pic_GCJ=
  15347. lt_prog_compiler_static_GCJ=
  15348. { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  15349. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  15350. if test "$GCC" = yes; then
  15351. lt_prog_compiler_wl_GCJ='-Wl,'
  15352. lt_prog_compiler_static_GCJ='-static'
  15353. case $host_os in
  15354. aix*)
  15355. # All AIX code is PIC.
  15356. if test "$host_cpu" = ia64; then
  15357. # AIX 5 now supports IA64 processor
  15358. lt_prog_compiler_static_GCJ='-Bstatic'
  15359. fi
  15360. ;;
  15361. amigaos*)
  15362. # FIXME: we need at least 68020 code to build shared libraries, but
  15363. # adding the `-m68020' flag to GCC prevents building anything better,
  15364. # like `-m68040'.
  15365. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  15366. ;;
  15367. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  15368. # PIC is the default for these OSes.
  15369. ;;
  15370. mingw* | cygwin* | pw32* | os2*)
  15371. # This hack is so that the source file can tell whether it is being
  15372. # built for inclusion in a dll (and should export symbols for example).
  15373. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  15374. # (--disable-auto-import) libraries
  15375. ;;
  15376. darwin* | rhapsody*)
  15377. # PIC is the default on this platform
  15378. # Common symbols not allowed in MH_DYLIB files
  15379. lt_prog_compiler_pic_GCJ='-fno-common'
  15380. ;;
  15381. interix[3-9]*)
  15382. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  15383. # Instead, we relocate shared libraries at runtime.
  15384. ;;
  15385. msdosdjgpp*)
  15386. # Just because we use GCC doesn't mean we suddenly get shared libraries
  15387. # on systems that don't support them.
  15388. lt_prog_compiler_can_build_shared_GCJ=no
  15389. enable_shared=no
  15390. ;;
  15391. sysv4*MP*)
  15392. if test -d /usr/nec; then
  15393. lt_prog_compiler_pic_GCJ=-Kconform_pic
  15394. fi
  15395. ;;
  15396. hpux*)
  15397. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  15398. # not for PA HP-UX.
  15399. case $host_cpu in
  15400. hppa*64*|ia64*)
  15401. # +Z the default
  15402. ;;
  15403. *)
  15404. lt_prog_compiler_pic_GCJ='-fPIC'
  15405. ;;
  15406. esac
  15407. ;;
  15408. *)
  15409. lt_prog_compiler_pic_GCJ='-fPIC'
  15410. ;;
  15411. esac
  15412. else
  15413. # PORTME Check for flag to pass linker flags through the system compiler.
  15414. case $host_os in
  15415. aix*)
  15416. lt_prog_compiler_wl_GCJ='-Wl,'
  15417. if test "$host_cpu" = ia64; then
  15418. # AIX 5 now supports IA64 processor
  15419. lt_prog_compiler_static_GCJ='-Bstatic'
  15420. else
  15421. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  15422. fi
  15423. ;;
  15424. darwin*)
  15425. # PIC is the default on this platform
  15426. # Common symbols not allowed in MH_DYLIB files
  15427. case $cc_basename in
  15428. xlc*)
  15429. lt_prog_compiler_pic_GCJ='-qnocommon'
  15430. lt_prog_compiler_wl_GCJ='-Wl,'
  15431. ;;
  15432. esac
  15433. ;;
  15434. mingw* | cygwin* | pw32* | os2*)
  15435. # This hack is so that the source file can tell whether it is being
  15436. # built for inclusion in a dll (and should export symbols for example).
  15437. ;;
  15438. hpux9* | hpux10* | hpux11*)
  15439. lt_prog_compiler_wl_GCJ='-Wl,'
  15440. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  15441. # not for PA HP-UX.
  15442. case $host_cpu in
  15443. hppa*64*|ia64*)
  15444. # +Z the default
  15445. ;;
  15446. *)
  15447. lt_prog_compiler_pic_GCJ='+Z'
  15448. ;;
  15449. esac
  15450. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  15451. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  15452. ;;
  15453. irix5* | irix6* | nonstopux*)
  15454. lt_prog_compiler_wl_GCJ='-Wl,'
  15455. # PIC (with -KPIC) is the default.
  15456. lt_prog_compiler_static_GCJ='-non_shared'
  15457. ;;
  15458. newsos6)
  15459. lt_prog_compiler_pic_GCJ='-KPIC'
  15460. lt_prog_compiler_static_GCJ='-Bstatic'
  15461. ;;
  15462. linux* | k*bsd*-gnu)
  15463. case $cc_basename in
  15464. icc* | ecc*)
  15465. lt_prog_compiler_wl_GCJ='-Wl,'
  15466. lt_prog_compiler_pic_GCJ='-KPIC'
  15467. lt_prog_compiler_static_GCJ='-static'
  15468. ;;
  15469. pgcc* | pgf77* | pgf90* | pgf95*)
  15470. # Portland Group compilers (*not* the Pentium gcc compiler,
  15471. # which looks to be a dead project)
  15472. lt_prog_compiler_wl_GCJ='-Wl,'
  15473. lt_prog_compiler_pic_GCJ='-fpic'
  15474. lt_prog_compiler_static_GCJ='-Bstatic'
  15475. ;;
  15476. ccc*)
  15477. lt_prog_compiler_wl_GCJ='-Wl,'
  15478. # All Alpha code is PIC.
  15479. lt_prog_compiler_static_GCJ='-non_shared'
  15480. ;;
  15481. *)
  15482. case `$CC -V 2>&1 | sed 5q` in
  15483. *Sun\ C*)
  15484. # Sun C 5.9
  15485. lt_prog_compiler_pic_GCJ='-KPIC'
  15486. lt_prog_compiler_static_GCJ='-Bstatic'
  15487. lt_prog_compiler_wl_GCJ='-Wl,'
  15488. ;;
  15489. *Sun\ F*)
  15490. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  15491. lt_prog_compiler_pic_GCJ='-KPIC'
  15492. lt_prog_compiler_static_GCJ='-Bstatic'
  15493. lt_prog_compiler_wl_GCJ=''
  15494. ;;
  15495. esac
  15496. ;;
  15497. esac
  15498. ;;
  15499. osf3* | osf4* | osf5*)
  15500. lt_prog_compiler_wl_GCJ='-Wl,'
  15501. # All OSF/1 code is PIC.
  15502. lt_prog_compiler_static_GCJ='-non_shared'
  15503. ;;
  15504. rdos*)
  15505. lt_prog_compiler_static_GCJ='-non_shared'
  15506. ;;
  15507. solaris*)
  15508. lt_prog_compiler_pic_GCJ='-KPIC'
  15509. lt_prog_compiler_static_GCJ='-Bstatic'
  15510. case $cc_basename in
  15511. f77* | f90* | f95*)
  15512. lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  15513. *)
  15514. lt_prog_compiler_wl_GCJ='-Wl,';;
  15515. esac
  15516. ;;
  15517. sunos4*)
  15518. lt_prog_compiler_wl_GCJ='-Qoption ld '
  15519. lt_prog_compiler_pic_GCJ='-PIC'
  15520. lt_prog_compiler_static_GCJ='-Bstatic'
  15521. ;;
  15522. sysv4 | sysv4.2uw2* | sysv4.3*)
  15523. lt_prog_compiler_wl_GCJ='-Wl,'
  15524. lt_prog_compiler_pic_GCJ='-KPIC'
  15525. lt_prog_compiler_static_GCJ='-Bstatic'
  15526. ;;
  15527. sysv4*MP*)
  15528. if test -d /usr/nec ;then
  15529. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  15530. lt_prog_compiler_static_GCJ='-Bstatic'
  15531. fi
  15532. ;;
  15533. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  15534. lt_prog_compiler_wl_GCJ='-Wl,'
  15535. lt_prog_compiler_pic_GCJ='-KPIC'
  15536. lt_prog_compiler_static_GCJ='-Bstatic'
  15537. ;;
  15538. unicos*)
  15539. lt_prog_compiler_wl_GCJ='-Wl,'
  15540. lt_prog_compiler_can_build_shared_GCJ=no
  15541. ;;
  15542. uts4*)
  15543. lt_prog_compiler_pic_GCJ='-pic'
  15544. lt_prog_compiler_static_GCJ='-Bstatic'
  15545. ;;
  15546. *)
  15547. lt_prog_compiler_can_build_shared_GCJ=no
  15548. ;;
  15549. esac
  15550. fi
  15551. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  15552. $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
  15553. #
  15554. # Check to make sure the PIC flag actually works.
  15555. #
  15556. if test -n "$lt_prog_compiler_pic_GCJ"; then
  15557. { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  15558. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
  15559. if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
  15560. $as_echo_n "(cached) " >&6
  15561. else
  15562. lt_cv_prog_compiler_pic_works_GCJ=no
  15563. ac_outfile=conftest.$ac_objext
  15564. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15565. lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  15566. # Insert the option either (1) after the last *FLAGS variable, or
  15567. # (2) before a word containing "conftest.", or (3) at the end.
  15568. # Note that $ac_compile itself does not contain backslashes and begins
  15569. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15570. # The option is referenced via a variable to avoid confusing sed.
  15571. lt_compile=`echo "$ac_compile" | $SED \
  15572. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15573. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15574. -e 's:$: $lt_compiler_flag:'`
  15575. (eval echo "\"\$as_me:17407: $lt_compile\"" >&5)
  15576. (eval "$lt_compile" 2>conftest.err)
  15577. ac_status=$?
  15578. cat conftest.err >&5
  15579. echo "$as_me:17411: \$? = $ac_status" >&5
  15580. if (exit $ac_status) && test -s "$ac_outfile"; then
  15581. # The compiler can only warn and ignore the option if not recognized
  15582. # So say no if there are warnings other than the usual output.
  15583. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  15584. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15585. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  15586. lt_cv_prog_compiler_pic_works_GCJ=yes
  15587. fi
  15588. fi
  15589. $rm conftest*
  15590. fi
  15591. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
  15592. $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
  15593. if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
  15594. case $lt_prog_compiler_pic_GCJ in
  15595. "" | " "*) ;;
  15596. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  15597. esac
  15598. else
  15599. lt_prog_compiler_pic_GCJ=
  15600. lt_prog_compiler_can_build_shared_GCJ=no
  15601. fi
  15602. fi
  15603. case $host_os in
  15604. # For platforms which do not support PIC, -DPIC is meaningless:
  15605. *djgpp*)
  15606. lt_prog_compiler_pic_GCJ=
  15607. ;;
  15608. *)
  15609. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  15610. ;;
  15611. esac
  15612. #
  15613. # Check to make sure the static flag actually works.
  15614. #
  15615. wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  15616. { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  15617. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  15618. if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
  15619. $as_echo_n "(cached) " >&6
  15620. else
  15621. lt_cv_prog_compiler_static_works_GCJ=no
  15622. save_LDFLAGS="$LDFLAGS"
  15623. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  15624. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  15625. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  15626. # The linker can only warn and ignore the option if not recognized
  15627. # So say no if there are warnings
  15628. if test -s conftest.err; then
  15629. # Append any errors to the config.log.
  15630. cat conftest.err 1>&5
  15631. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  15632. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15633. if diff conftest.exp conftest.er2 >/dev/null; then
  15634. lt_cv_prog_compiler_static_works_GCJ=yes
  15635. fi
  15636. else
  15637. lt_cv_prog_compiler_static_works_GCJ=yes
  15638. fi
  15639. fi
  15640. $rm -r conftest*
  15641. LDFLAGS="$save_LDFLAGS"
  15642. fi
  15643. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
  15644. $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
  15645. if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
  15646. :
  15647. else
  15648. lt_prog_compiler_static_GCJ=
  15649. fi
  15650. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  15651. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  15652. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  15653. $as_echo_n "(cached) " >&6
  15654. else
  15655. lt_cv_prog_compiler_c_o_GCJ=no
  15656. $rm -r conftest 2>/dev/null
  15657. mkdir conftest
  15658. cd conftest
  15659. mkdir out
  15660. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15661. lt_compiler_flag="-o out/conftest2.$ac_objext"
  15662. # Insert the option either (1) after the last *FLAGS variable, or
  15663. # (2) before a word containing "conftest.", or (3) at the end.
  15664. # Note that $ac_compile itself does not contain backslashes and begins
  15665. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15666. lt_compile=`echo "$ac_compile" | $SED \
  15667. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15668. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15669. -e 's:$: $lt_compiler_flag:'`
  15670. (eval echo "\"\$as_me:17511: $lt_compile\"" >&5)
  15671. (eval "$lt_compile" 2>out/conftest.err)
  15672. ac_status=$?
  15673. cat out/conftest.err >&5
  15674. echo "$as_me:17515: \$? = $ac_status" >&5
  15675. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  15676. then
  15677. # The compiler can only warn and ignore the option if not recognized
  15678. # So say no if there are warnings
  15679. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  15680. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  15681. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  15682. lt_cv_prog_compiler_c_o_GCJ=yes
  15683. fi
  15684. fi
  15685. chmod u+w . 2>&5
  15686. $rm conftest*
  15687. # SGI C++ compiler will create directory out/ii_files/ for
  15688. # template instantiation
  15689. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  15690. $rm out/* && rmdir out
  15691. cd ..
  15692. rmdir conftest
  15693. $rm conftest*
  15694. fi
  15695. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  15696. $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  15697. hard_links="nottested"
  15698. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  15699. # do not overwrite the value of need_locks provided by the user
  15700. { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  15701. $as_echo_n "checking if we can lock with hard links... " >&6; }
  15702. hard_links=yes
  15703. $rm conftest*
  15704. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15705. touch conftest.a
  15706. ln conftest.a conftest.b 2>&5 || hard_links=no
  15707. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15708. { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  15709. $as_echo "$hard_links" >&6; }
  15710. if test "$hard_links" = no; then
  15711. { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  15712. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  15713. need_locks=warn
  15714. fi
  15715. else
  15716. need_locks=no
  15717. fi
  15718. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  15719. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  15720. runpath_var=
  15721. allow_undefined_flag_GCJ=
  15722. enable_shared_with_static_runtimes_GCJ=no
  15723. archive_cmds_GCJ=
  15724. archive_expsym_cmds_GCJ=
  15725. old_archive_From_new_cmds_GCJ=
  15726. old_archive_from_expsyms_cmds_GCJ=
  15727. export_dynamic_flag_spec_GCJ=
  15728. whole_archive_flag_spec_GCJ=
  15729. thread_safe_flag_spec_GCJ=
  15730. hardcode_libdir_flag_spec_GCJ=
  15731. hardcode_libdir_flag_spec_ld_GCJ=
  15732. hardcode_libdir_separator_GCJ=
  15733. hardcode_direct_GCJ=no
  15734. hardcode_minus_L_GCJ=no
  15735. hardcode_shlibpath_var_GCJ=unsupported
  15736. link_all_deplibs_GCJ=unknown
  15737. hardcode_automatic_GCJ=no
  15738. module_cmds_GCJ=
  15739. module_expsym_cmds_GCJ=
  15740. always_export_symbols_GCJ=no
  15741. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  15742. # include_expsyms should be a list of space-separated symbols to be *always*
  15743. # included in the symbol list
  15744. include_expsyms_GCJ=
  15745. # exclude_expsyms can be an extended regexp of symbols to exclude
  15746. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  15747. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  15748. # as well as any symbol that contains `d'.
  15749. exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  15750. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  15751. # platforms (ab)use it in PIC code, but their linkers get confused if
  15752. # the symbol is explicitly referenced. Since portable code cannot
  15753. # rely on this symbol name, it's probably fine to never include it in
  15754. # preloaded symbol tables.
  15755. # Exclude shared library initialization/finalization symbols.
  15756. extract_expsyms_cmds=
  15757. # Just being paranoid about ensuring that cc_basename is set.
  15758. for cc_temp in $compiler""; do
  15759. case $cc_temp in
  15760. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  15761. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  15762. \-*) ;;
  15763. *) break;;
  15764. esac
  15765. done
  15766. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  15767. case $host_os in
  15768. cygwin* | mingw* | pw32*)
  15769. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  15770. # When not using gcc, we currently assume that we are using
  15771. # Microsoft Visual C++.
  15772. if test "$GCC" != yes; then
  15773. with_gnu_ld=no
  15774. fi
  15775. ;;
  15776. interix*)
  15777. # we just hope/assume this is gcc and not c89 (= MSVC++)
  15778. with_gnu_ld=yes
  15779. ;;
  15780. openbsd*)
  15781. with_gnu_ld=no
  15782. ;;
  15783. esac
  15784. ld_shlibs_GCJ=yes
  15785. if test "$with_gnu_ld" = yes; then
  15786. # If archive_cmds runs LD, not CC, wlarc should be empty
  15787. wlarc='${wl}'
  15788. # Set some defaults for GNU ld with shared library support. These
  15789. # are reset later if shared libraries are not supported. Putting them
  15790. # here allows them to be overridden if necessary.
  15791. runpath_var=LD_RUN_PATH
  15792. hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  15793. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  15794. # ancient GNU ld didn't support --whole-archive et. al.
  15795. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  15796. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  15797. else
  15798. whole_archive_flag_spec_GCJ=
  15799. fi
  15800. supports_anon_versioning=no
  15801. case `$LD -v 2>/dev/null` in
  15802. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  15803. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  15804. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  15805. *\ 2.11.*) ;; # other 2.11 versions
  15806. *) supports_anon_versioning=yes ;;
  15807. esac
  15808. # See if GNU ld supports shared libraries.
  15809. case $host_os in
  15810. aix[3-9]*)
  15811. # On AIX/PPC, the GNU linker is very broken
  15812. if test "$host_cpu" != ia64; then
  15813. ld_shlibs_GCJ=no
  15814. cat <<EOF 1>&2
  15815. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  15816. *** to be unable to reliably create shared libraries on AIX.
  15817. *** Therefore, libtool is disabling shared libraries support. If you
  15818. *** really care for shared libraries, you may want to modify your PATH
  15819. *** so that a non-GNU linker is found, and then restart.
  15820. EOF
  15821. fi
  15822. ;;
  15823. amigaos*)
  15824. 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)'
  15825. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15826. hardcode_minus_L_GCJ=yes
  15827. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  15828. # that the semantics of dynamic libraries on AmigaOS, at least up
  15829. # to version 4, is to share data among multiple programs linked
  15830. # with the same dynamic library. Since this doesn't match the
  15831. # behavior of shared libraries on other platforms, we can't use
  15832. # them.
  15833. ld_shlibs_GCJ=no
  15834. ;;
  15835. beos*)
  15836. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15837. allow_undefined_flag_GCJ=unsupported
  15838. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  15839. # support --undefined. This deserves some investigation. FIXME
  15840. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15841. else
  15842. ld_shlibs_GCJ=no
  15843. fi
  15844. ;;
  15845. cygwin* | mingw* | pw32*)
  15846. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  15847. # as there is no search path for DLLs.
  15848. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15849. allow_undefined_flag_GCJ=unsupported
  15850. always_export_symbols_GCJ=no
  15851. enable_shared_with_static_runtimes_GCJ=yes
  15852. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  15853. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  15854. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  15855. # If the export-symbols file already is a .def file (1st line
  15856. # is EXPORTS), use it as is; otherwise, prepend...
  15857. archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  15858. cp $export_symbols $output_objdir/$soname.def;
  15859. else
  15860. echo EXPORTS > $output_objdir/$soname.def;
  15861. cat $export_symbols >> $output_objdir/$soname.def;
  15862. fi~
  15863. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  15864. else
  15865. ld_shlibs_GCJ=no
  15866. fi
  15867. ;;
  15868. interix[3-9]*)
  15869. hardcode_direct_GCJ=no
  15870. hardcode_shlibpath_var_GCJ=no
  15871. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15872. export_dynamic_flag_spec_GCJ='${wl}-E'
  15873. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  15874. # Instead, shared libraries are loaded at an image base (0x10000000 by
  15875. # default) and relocated if they conflict, which is a slow very memory
  15876. # consuming and fragmenting process. To avoid this, we pick a random,
  15877. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  15878. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  15879. 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'
  15880. 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'
  15881. ;;
  15882. gnu* | linux* | k*bsd*-gnu)
  15883. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15884. tmp_addflag=
  15885. case $cc_basename,$host_cpu in
  15886. pgcc*) # Portland Group C compiler
  15887. 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'
  15888. tmp_addflag=' $pic_flag'
  15889. ;;
  15890. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  15891. 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'
  15892. tmp_addflag=' $pic_flag -Mnomain' ;;
  15893. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  15894. tmp_addflag=' -i_dynamic' ;;
  15895. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  15896. tmp_addflag=' -i_dynamic -nofor_main' ;;
  15897. ifc* | ifort*) # Intel Fortran compiler
  15898. tmp_addflag=' -nofor_main' ;;
  15899. esac
  15900. case `$CC -V 2>&1 | sed 5q` in
  15901. *Sun\ C*) # Sun C 5.9
  15902. 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'
  15903. tmp_sharedflag='-G' ;;
  15904. *Sun\ F*) # Sun Fortran 8.3
  15905. tmp_sharedflag='-G' ;;
  15906. *)
  15907. tmp_sharedflag='-shared' ;;
  15908. esac
  15909. archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15910. if test $supports_anon_versioning = yes; then
  15911. archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  15912. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  15913. $echo "local: *; };" >> $output_objdir/$libname.ver~
  15914. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  15915. fi
  15916. else
  15917. ld_shlibs_GCJ=no
  15918. fi
  15919. ;;
  15920. netbsd*)
  15921. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15922. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  15923. wlarc=
  15924. else
  15925. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15926. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15927. fi
  15928. ;;
  15929. solaris*)
  15930. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  15931. ld_shlibs_GCJ=no
  15932. cat <<EOF 1>&2
  15933. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  15934. *** create shared libraries on Solaris systems. Therefore, libtool
  15935. *** is disabling shared libraries support. We urge you to upgrade GNU
  15936. *** binutils to release 2.9.1 or newer. Another option is to modify
  15937. *** your PATH or compiler configuration so that the native linker is
  15938. *** used, and then restart.
  15939. EOF
  15940. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15941. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15942. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15943. else
  15944. ld_shlibs_GCJ=no
  15945. fi
  15946. ;;
  15947. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  15948. case `$LD -v 2>&1` in
  15949. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  15950. ld_shlibs_GCJ=no
  15951. cat <<_LT_EOF 1>&2
  15952. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  15953. *** reliably create shared libraries on SCO systems. Therefore, libtool
  15954. *** is disabling shared libraries support. We urge you to upgrade GNU
  15955. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  15956. *** your PATH or compiler configuration so that the native linker is
  15957. *** used, and then restart.
  15958. _LT_EOF
  15959. ;;
  15960. *)
  15961. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15962. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  15963. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  15964. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  15965. else
  15966. ld_shlibs_GCJ=no
  15967. fi
  15968. ;;
  15969. esac
  15970. ;;
  15971. sunos4*)
  15972. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15973. wlarc=
  15974. hardcode_direct_GCJ=yes
  15975. hardcode_shlibpath_var_GCJ=no
  15976. ;;
  15977. *)
  15978. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15979. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15980. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15981. else
  15982. ld_shlibs_GCJ=no
  15983. fi
  15984. ;;
  15985. esac
  15986. if test "$ld_shlibs_GCJ" = no; then
  15987. runpath_var=
  15988. hardcode_libdir_flag_spec_GCJ=
  15989. export_dynamic_flag_spec_GCJ=
  15990. whole_archive_flag_spec_GCJ=
  15991. fi
  15992. else
  15993. # PORTME fill in a description of your system's linker (not GNU ld)
  15994. case $host_os in
  15995. aix3*)
  15996. allow_undefined_flag_GCJ=unsupported
  15997. always_export_symbols_GCJ=yes
  15998. 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'
  15999. # Note: this linker hardcodes the directories in LIBPATH if there
  16000. # are no directories specified by -L.
  16001. hardcode_minus_L_GCJ=yes
  16002. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  16003. # Neither direct hardcoding nor static linking is supported with a
  16004. # broken collect2.
  16005. hardcode_direct_GCJ=unsupported
  16006. fi
  16007. ;;
  16008. aix[4-9]*)
  16009. if test "$host_cpu" = ia64; then
  16010. # On IA64, the linker does run time linking by default, so we don't
  16011. # have to do anything special.
  16012. aix_use_runtimelinking=no
  16013. exp_sym_flag='-Bexport'
  16014. no_entry_flag=""
  16015. else
  16016. # If we're using GNU nm, then we don't want the "-C" option.
  16017. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  16018. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  16019. 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'
  16020. else
  16021. 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'
  16022. fi
  16023. aix_use_runtimelinking=no
  16024. # Test if we are trying to use run time linking or normal
  16025. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  16026. # need to do runtime linking.
  16027. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  16028. for ld_flag in $LDFLAGS; do
  16029. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  16030. aix_use_runtimelinking=yes
  16031. break
  16032. fi
  16033. done
  16034. ;;
  16035. esac
  16036. exp_sym_flag='-bexport'
  16037. no_entry_flag='-bnoentry'
  16038. fi
  16039. # When large executables or shared objects are built, AIX ld can
  16040. # have problems creating the table of contents. If linking a library
  16041. # or program results in "error TOC overflow" add -mminimal-toc to
  16042. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  16043. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  16044. archive_cmds_GCJ=''
  16045. hardcode_direct_GCJ=yes
  16046. hardcode_libdir_separator_GCJ=':'
  16047. link_all_deplibs_GCJ=yes
  16048. if test "$GCC" = yes; then
  16049. case $host_os in aix4.[012]|aix4.[012].*)
  16050. # We only want to do this on AIX 4.2 and lower, the check
  16051. # below for broken collect2 doesn't work under 4.3+
  16052. collect2name=`${CC} -print-prog-name=collect2`
  16053. if test -f "$collect2name" && \
  16054. strings "$collect2name" | grep resolve_lib_name >/dev/null
  16055. then
  16056. # We have reworked collect2
  16057. :
  16058. else
  16059. # We have old collect2
  16060. hardcode_direct_GCJ=unsupported
  16061. # It fails to find uninstalled libraries when the uninstalled
  16062. # path is not listed in the libpath. Setting hardcode_minus_L
  16063. # to unsupported forces relinking
  16064. hardcode_minus_L_GCJ=yes
  16065. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16066. hardcode_libdir_separator_GCJ=
  16067. fi
  16068. ;;
  16069. esac
  16070. shared_flag='-shared'
  16071. if test "$aix_use_runtimelinking" = yes; then
  16072. shared_flag="$shared_flag "'${wl}-G'
  16073. fi
  16074. else
  16075. # not using gcc
  16076. if test "$host_cpu" = ia64; then
  16077. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  16078. # chokes on -Wl,-G. The following line is correct:
  16079. shared_flag='-G'
  16080. else
  16081. if test "$aix_use_runtimelinking" = yes; then
  16082. shared_flag='${wl}-G'
  16083. else
  16084. shared_flag='${wl}-bM:SRE'
  16085. fi
  16086. fi
  16087. fi
  16088. # It seems that -bexpall does not export symbols beginning with
  16089. # underscore (_), so it is better to generate a list of symbols to export.
  16090. always_export_symbols_GCJ=yes
  16091. if test "$aix_use_runtimelinking" = yes; then
  16092. # Warning - without using the other runtime loading flags (-brtl),
  16093. # -berok will link without error, but may produce a broken library.
  16094. allow_undefined_flag_GCJ='-berok'
  16095. # Determine the default libpath from the value encoded in an empty executable.
  16096. cat >conftest.$ac_ext <<_ACEOF
  16097. /* confdefs.h. */
  16098. _ACEOF
  16099. cat confdefs.h >>conftest.$ac_ext
  16100. cat >>conftest.$ac_ext <<_ACEOF
  16101. /* end confdefs.h. */
  16102. int
  16103. main ()
  16104. {
  16105. ;
  16106. return 0;
  16107. }
  16108. _ACEOF
  16109. rm -f conftest.$ac_objext conftest$ac_exeext
  16110. if { (ac_try="$ac_link"
  16111. case "(($ac_try" in
  16112. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16113. *) ac_try_echo=$ac_try;;
  16114. esac
  16115. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16116. $as_echo "$ac_try_echo") >&5
  16117. (eval "$ac_link") 2>conftest.er1
  16118. ac_status=$?
  16119. grep -v '^ *+' conftest.er1 >conftest.err
  16120. rm -f conftest.er1
  16121. cat conftest.err >&5
  16122. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16123. (exit $ac_status); } && {
  16124. test -z "$ac_c_werror_flag" ||
  16125. test ! -s conftest.err
  16126. } && test -s conftest$ac_exeext && {
  16127. test "$cross_compiling" = yes ||
  16128. $as_test_x conftest$ac_exeext
  16129. }; then
  16130. lt_aix_libpath_sed='
  16131. /Import File Strings/,/^$/ {
  16132. /^0/ {
  16133. s/^0 *\(.*\)$/\1/
  16134. p
  16135. }
  16136. }'
  16137. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  16138. # Check for a 64-bit object if we didn't find anything.
  16139. if test -z "$aix_libpath"; then
  16140. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  16141. fi
  16142. else
  16143. $as_echo "$as_me: failed program was:" >&5
  16144. sed 's/^/| /' conftest.$ac_ext >&5
  16145. fi
  16146. rm -rf conftest.dSYM
  16147. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16148. conftest$ac_exeext conftest.$ac_ext
  16149. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  16150. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  16151. 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"
  16152. else
  16153. if test "$host_cpu" = ia64; then
  16154. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  16155. allow_undefined_flag_GCJ="-z nodefs"
  16156. 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"
  16157. else
  16158. # Determine the default libpath from the value encoded in an empty executable.
  16159. cat >conftest.$ac_ext <<_ACEOF
  16160. /* confdefs.h. */
  16161. _ACEOF
  16162. cat confdefs.h >>conftest.$ac_ext
  16163. cat >>conftest.$ac_ext <<_ACEOF
  16164. /* end confdefs.h. */
  16165. int
  16166. main ()
  16167. {
  16168. ;
  16169. return 0;
  16170. }
  16171. _ACEOF
  16172. rm -f conftest.$ac_objext conftest$ac_exeext
  16173. if { (ac_try="$ac_link"
  16174. case "(($ac_try" in
  16175. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16176. *) ac_try_echo=$ac_try;;
  16177. esac
  16178. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16179. $as_echo "$ac_try_echo") >&5
  16180. (eval "$ac_link") 2>conftest.er1
  16181. ac_status=$?
  16182. grep -v '^ *+' conftest.er1 >conftest.err
  16183. rm -f conftest.er1
  16184. cat conftest.err >&5
  16185. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16186. (exit $ac_status); } && {
  16187. test -z "$ac_c_werror_flag" ||
  16188. test ! -s conftest.err
  16189. } && test -s conftest$ac_exeext && {
  16190. test "$cross_compiling" = yes ||
  16191. $as_test_x conftest$ac_exeext
  16192. }; then
  16193. lt_aix_libpath_sed='
  16194. /Import File Strings/,/^$/ {
  16195. /^0/ {
  16196. s/^0 *\(.*\)$/\1/
  16197. p
  16198. }
  16199. }'
  16200. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  16201. # Check for a 64-bit object if we didn't find anything.
  16202. if test -z "$aix_libpath"; then
  16203. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  16204. fi
  16205. else
  16206. $as_echo "$as_me: failed program was:" >&5
  16207. sed 's/^/| /' conftest.$ac_ext >&5
  16208. fi
  16209. rm -rf conftest.dSYM
  16210. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16211. conftest$ac_exeext conftest.$ac_ext
  16212. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  16213. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  16214. # Warning - without using the other run time loading flags,
  16215. # -berok will link without error, but may produce a broken library.
  16216. no_undefined_flag_GCJ=' ${wl}-bernotok'
  16217. allow_undefined_flag_GCJ=' ${wl}-berok'
  16218. # Exported symbols can be pulled into shared objects from archives
  16219. whole_archive_flag_spec_GCJ='$convenience'
  16220. archive_cmds_need_lc_GCJ=yes
  16221. # This is similar to how AIX traditionally builds its shared libraries.
  16222. 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'
  16223. fi
  16224. fi
  16225. ;;
  16226. amigaos*)
  16227. 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)'
  16228. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16229. hardcode_minus_L_GCJ=yes
  16230. # see comment about different semantics on the GNU ld section
  16231. ld_shlibs_GCJ=no
  16232. ;;
  16233. bsdi[45]*)
  16234. export_dynamic_flag_spec_GCJ=-rdynamic
  16235. ;;
  16236. cygwin* | mingw* | pw32*)
  16237. # When not using gcc, we currently assume that we are using
  16238. # Microsoft Visual C++.
  16239. # hardcode_libdir_flag_spec is actually meaningless, as there is
  16240. # no search path for DLLs.
  16241. hardcode_libdir_flag_spec_GCJ=' '
  16242. allow_undefined_flag_GCJ=unsupported
  16243. # Tell ltmain to make .lib files, not .a files.
  16244. libext=lib
  16245. # Tell ltmain to make .dll files, not .so files.
  16246. shrext_cmds=".dll"
  16247. # FIXME: Setting linknames here is a bad hack.
  16248. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  16249. # The linker will automatically build a .lib file if we build a DLL.
  16250. old_archive_From_new_cmds_GCJ='true'
  16251. # FIXME: Should let the user specify the lib program.
  16252. old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
  16253. fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  16254. enable_shared_with_static_runtimes_GCJ=yes
  16255. ;;
  16256. darwin* | rhapsody*)
  16257. allow_undefined_flag_GCJ="$_lt_dar_allow_undefined"
  16258. archive_cmds_need_lc_GCJ=no
  16259. hardcode_direct_GCJ=no
  16260. hardcode_automatic_GCJ=yes
  16261. hardcode_shlibpath_var_GCJ=unsupported
  16262. whole_archive_flag_spec_GCJ=''
  16263. link_all_deplibs_GCJ=yes
  16264. if test "$GCC" = yes ; then
  16265. output_verbose_link_cmd='echo'
  16266. archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  16267. module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  16268. archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  16269. module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  16270. else
  16271. case $cc_basename in
  16272. xlc*)
  16273. output_verbose_link_cmd='echo'
  16274. archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  16275. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  16276. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  16277. 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}'
  16278. 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}'
  16279. ;;
  16280. *)
  16281. ld_shlibs_GCJ=no
  16282. ;;
  16283. esac
  16284. fi
  16285. ;;
  16286. dgux*)
  16287. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16288. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16289. hardcode_shlibpath_var_GCJ=no
  16290. ;;
  16291. freebsd1*)
  16292. ld_shlibs_GCJ=no
  16293. ;;
  16294. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  16295. # support. Future versions do this automatically, but an explicit c++rt0.o
  16296. # does not break anything, and helps significantly (at the cost of a little
  16297. # extra space).
  16298. freebsd2.2*)
  16299. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  16300. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  16301. hardcode_direct_GCJ=yes
  16302. hardcode_shlibpath_var_GCJ=no
  16303. ;;
  16304. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  16305. freebsd2*)
  16306. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  16307. hardcode_direct_GCJ=yes
  16308. hardcode_minus_L_GCJ=yes
  16309. hardcode_shlibpath_var_GCJ=no
  16310. ;;
  16311. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  16312. freebsd* | dragonfly*)
  16313. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  16314. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  16315. hardcode_direct_GCJ=yes
  16316. hardcode_shlibpath_var_GCJ=no
  16317. ;;
  16318. hpux9*)
  16319. if test "$GCC" = yes; then
  16320. 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'
  16321. else
  16322. 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'
  16323. fi
  16324. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  16325. hardcode_libdir_separator_GCJ=:
  16326. hardcode_direct_GCJ=yes
  16327. # hardcode_minus_L: Not really in the search PATH,
  16328. # but as the default location of the library.
  16329. hardcode_minus_L_GCJ=yes
  16330. export_dynamic_flag_spec_GCJ='${wl}-E'
  16331. ;;
  16332. hpux10*)
  16333. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  16334. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  16335. else
  16336. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  16337. fi
  16338. if test "$with_gnu_ld" = no; then
  16339. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  16340. hardcode_libdir_separator_GCJ=:
  16341. hardcode_direct_GCJ=yes
  16342. export_dynamic_flag_spec_GCJ='${wl}-E'
  16343. # hardcode_minus_L: Not really in the search PATH,
  16344. # but as the default location of the library.
  16345. hardcode_minus_L_GCJ=yes
  16346. fi
  16347. ;;
  16348. hpux11*)
  16349. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  16350. case $host_cpu in
  16351. hppa*64*)
  16352. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16353. ;;
  16354. ia64*)
  16355. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  16356. ;;
  16357. *)
  16358. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  16359. ;;
  16360. esac
  16361. else
  16362. case $host_cpu in
  16363. hppa*64*)
  16364. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16365. ;;
  16366. ia64*)
  16367. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  16368. ;;
  16369. *)
  16370. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  16371. ;;
  16372. esac
  16373. fi
  16374. if test "$with_gnu_ld" = no; then
  16375. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  16376. hardcode_libdir_separator_GCJ=:
  16377. case $host_cpu in
  16378. hppa*64*|ia64*)
  16379. hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  16380. hardcode_direct_GCJ=no
  16381. hardcode_shlibpath_var_GCJ=no
  16382. ;;
  16383. *)
  16384. hardcode_direct_GCJ=yes
  16385. export_dynamic_flag_spec_GCJ='${wl}-E'
  16386. # hardcode_minus_L: Not really in the search PATH,
  16387. # but as the default location of the library.
  16388. hardcode_minus_L_GCJ=yes
  16389. ;;
  16390. esac
  16391. fi
  16392. ;;
  16393. irix5* | irix6* | nonstopux*)
  16394. if test "$GCC" = yes; then
  16395. 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'
  16396. else
  16397. 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'
  16398. hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  16399. fi
  16400. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  16401. hardcode_libdir_separator_GCJ=:
  16402. link_all_deplibs_GCJ=yes
  16403. ;;
  16404. netbsd*)
  16405. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  16406. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  16407. else
  16408. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  16409. fi
  16410. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  16411. hardcode_direct_GCJ=yes
  16412. hardcode_shlibpath_var_GCJ=no
  16413. ;;
  16414. newsos6)
  16415. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16416. hardcode_direct_GCJ=yes
  16417. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  16418. hardcode_libdir_separator_GCJ=:
  16419. hardcode_shlibpath_var_GCJ=no
  16420. ;;
  16421. openbsd*)
  16422. if test -f /usr/libexec/ld.so; then
  16423. hardcode_direct_GCJ=yes
  16424. hardcode_shlibpath_var_GCJ=no
  16425. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  16426. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  16427. archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  16428. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  16429. export_dynamic_flag_spec_GCJ='${wl}-E'
  16430. else
  16431. case $host_os in
  16432. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  16433. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  16434. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  16435. ;;
  16436. *)
  16437. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  16438. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  16439. ;;
  16440. esac
  16441. fi
  16442. else
  16443. ld_shlibs_GCJ=no
  16444. fi
  16445. ;;
  16446. os2*)
  16447. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16448. hardcode_minus_L_GCJ=yes
  16449. allow_undefined_flag_GCJ=unsupported
  16450. 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'
  16451. old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  16452. ;;
  16453. osf3*)
  16454. if test "$GCC" = yes; then
  16455. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  16456. 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'
  16457. else
  16458. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  16459. 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'
  16460. fi
  16461. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  16462. hardcode_libdir_separator_GCJ=:
  16463. ;;
  16464. osf4* | osf5*) # as osf3* with the addition of -msym flag
  16465. if test "$GCC" = yes; then
  16466. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  16467. 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'
  16468. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  16469. else
  16470. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  16471. 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'
  16472. 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~
  16473. $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'
  16474. # Both c and cxx compiler support -rpath directly
  16475. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  16476. fi
  16477. hardcode_libdir_separator_GCJ=:
  16478. ;;
  16479. solaris*)
  16480. no_undefined_flag_GCJ=' -z text'
  16481. if test "$GCC" = yes; then
  16482. wlarc='${wl}'
  16483. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16484. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  16485. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  16486. else
  16487. wlarc=''
  16488. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16489. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  16490. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  16491. fi
  16492. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  16493. hardcode_shlibpath_var_GCJ=no
  16494. case $host_os in
  16495. solaris2.[0-5] | solaris2.[0-5].*) ;;
  16496. *)
  16497. # The compiler driver will combine and reorder linker options,
  16498. # but understands `-z linker_flag'. GCC discards it without `$wl',
  16499. # but is careful enough not to reorder.
  16500. # Supported since Solaris 2.6 (maybe 2.5.1?)
  16501. if test "$GCC" = yes; then
  16502. whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  16503. else
  16504. whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
  16505. fi
  16506. ;;
  16507. esac
  16508. link_all_deplibs_GCJ=yes
  16509. ;;
  16510. sunos4*)
  16511. if test "x$host_vendor" = xsequent; then
  16512. # Use $CC to link under sequent, because it throws in some extra .o
  16513. # files that make .init and .fini sections work.
  16514. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  16515. else
  16516. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  16517. fi
  16518. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16519. hardcode_direct_GCJ=yes
  16520. hardcode_minus_L_GCJ=yes
  16521. hardcode_shlibpath_var_GCJ=no
  16522. ;;
  16523. sysv4)
  16524. case $host_vendor in
  16525. sni)
  16526. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16527. hardcode_direct_GCJ=yes # is this really true???
  16528. ;;
  16529. siemens)
  16530. ## LD is ld it makes a PLAMLIB
  16531. ## CC just makes a GrossModule.
  16532. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  16533. reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  16534. hardcode_direct_GCJ=no
  16535. ;;
  16536. motorola)
  16537. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16538. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  16539. ;;
  16540. esac
  16541. runpath_var='LD_RUN_PATH'
  16542. hardcode_shlibpath_var_GCJ=no
  16543. ;;
  16544. sysv4.3*)
  16545. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16546. hardcode_shlibpath_var_GCJ=no
  16547. export_dynamic_flag_spec_GCJ='-Bexport'
  16548. ;;
  16549. sysv4*MP*)
  16550. if test -d /usr/nec; then
  16551. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16552. hardcode_shlibpath_var_GCJ=no
  16553. runpath_var=LD_RUN_PATH
  16554. hardcode_runpath_var=yes
  16555. ld_shlibs_GCJ=yes
  16556. fi
  16557. ;;
  16558. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  16559. no_undefined_flag_GCJ='${wl}-z,text'
  16560. archive_cmds_need_lc_GCJ=no
  16561. hardcode_shlibpath_var_GCJ=no
  16562. runpath_var='LD_RUN_PATH'
  16563. if test "$GCC" = yes; then
  16564. archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16565. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16566. else
  16567. archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16568. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16569. fi
  16570. ;;
  16571. sysv5* | sco3.2v5* | sco5v6*)
  16572. # Note: We can NOT use -z defs as we might desire, because we do not
  16573. # link with -lc, and that would cause any symbols used from libc to
  16574. # always be unresolved, which means just about no library would
  16575. # ever link correctly. If we're not using GNU ld we use -z text
  16576. # though, which does catch some bad symbols but isn't as heavy-handed
  16577. # as -z defs.
  16578. no_undefined_flag_GCJ='${wl}-z,text'
  16579. allow_undefined_flag_GCJ='${wl}-z,nodefs'
  16580. archive_cmds_need_lc_GCJ=no
  16581. hardcode_shlibpath_var_GCJ=no
  16582. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  16583. hardcode_libdir_separator_GCJ=':'
  16584. link_all_deplibs_GCJ=yes
  16585. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  16586. runpath_var='LD_RUN_PATH'
  16587. if test "$GCC" = yes; then
  16588. archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16589. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16590. else
  16591. archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16592. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16593. fi
  16594. ;;
  16595. uts4*)
  16596. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16597. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16598. hardcode_shlibpath_var_GCJ=no
  16599. ;;
  16600. *)
  16601. ld_shlibs_GCJ=no
  16602. ;;
  16603. esac
  16604. fi
  16605. { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  16606. $as_echo "$ld_shlibs_GCJ" >&6; }
  16607. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  16608. #
  16609. # Do we need to explicitly link libc?
  16610. #
  16611. case "x$archive_cmds_need_lc_GCJ" in
  16612. x|xyes)
  16613. # Assume -lc should be added
  16614. archive_cmds_need_lc_GCJ=yes
  16615. if test "$enable_shared" = yes && test "$GCC" = yes; then
  16616. case $archive_cmds_GCJ in
  16617. *'~'*)
  16618. # FIXME: we may have to deal with multi-command sequences.
  16619. ;;
  16620. '$CC '*)
  16621. # Test whether the compiler implicitly links with -lc since on some
  16622. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  16623. # to ld, don't add -lc before -lgcc.
  16624. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  16625. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  16626. $rm conftest*
  16627. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  16628. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16629. (eval $ac_compile) 2>&5
  16630. ac_status=$?
  16631. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16632. (exit $ac_status); } 2>conftest.err; then
  16633. soname=conftest
  16634. lib=conftest
  16635. libobjs=conftest.$ac_objext
  16636. deplibs=
  16637. wl=$lt_prog_compiler_wl_GCJ
  16638. pic_flag=$lt_prog_compiler_pic_GCJ
  16639. compiler_flags=-v
  16640. linker_flags=-v
  16641. verstring=
  16642. output_objdir=.
  16643. libname=conftest
  16644. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  16645. allow_undefined_flag_GCJ=
  16646. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  16647. (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  16648. ac_status=$?
  16649. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16650. (exit $ac_status); }
  16651. then
  16652. archive_cmds_need_lc_GCJ=no
  16653. else
  16654. archive_cmds_need_lc_GCJ=yes
  16655. fi
  16656. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  16657. else
  16658. cat conftest.err 1>&5
  16659. fi
  16660. $rm conftest*
  16661. { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  16662. $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
  16663. ;;
  16664. esac
  16665. fi
  16666. ;;
  16667. esac
  16668. { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  16669. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  16670. library_names_spec=
  16671. libname_spec='lib$name'
  16672. soname_spec=
  16673. shrext_cmds=".so"
  16674. postinstall_cmds=
  16675. postuninstall_cmds=
  16676. finish_cmds=
  16677. finish_eval=
  16678. shlibpath_var=
  16679. shlibpath_overrides_runpath=unknown
  16680. version_type=none
  16681. dynamic_linker="$host_os ld.so"
  16682. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  16683. need_lib_prefix=unknown
  16684. hardcode_into_libs=no
  16685. # when you set need_version to no, make sure it does not cause -set_version
  16686. # flags to be left without arguments
  16687. need_version=unknown
  16688. case $host_os in
  16689. aix3*)
  16690. version_type=linux
  16691. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  16692. shlibpath_var=LIBPATH
  16693. # AIX 3 has no versioning support, so we append a major version to the name.
  16694. soname_spec='${libname}${release}${shared_ext}$major'
  16695. ;;
  16696. aix[4-9]*)
  16697. version_type=linux
  16698. need_lib_prefix=no
  16699. need_version=no
  16700. hardcode_into_libs=yes
  16701. if test "$host_cpu" = ia64; then
  16702. # AIX 5 supports IA64
  16703. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  16704. shlibpath_var=LD_LIBRARY_PATH
  16705. else
  16706. # With GCC up to 2.95.x, collect2 would create an import file
  16707. # for dependence libraries. The import file would start with
  16708. # the line `#! .'. This would cause the generated library to
  16709. # depend on `.', always an invalid library. This was fixed in
  16710. # development snapshots of GCC prior to 3.0.
  16711. case $host_os in
  16712. aix4 | aix4.[01] | aix4.[01].*)
  16713. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  16714. echo ' yes '
  16715. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  16716. :
  16717. else
  16718. can_build_shared=no
  16719. fi
  16720. ;;
  16721. esac
  16722. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  16723. # soname into executable. Probably we can add versioning support to
  16724. # collect2, so additional links can be useful in future.
  16725. if test "$aix_use_runtimelinking" = yes; then
  16726. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  16727. # instead of lib<name>.a to let people know that these are not
  16728. # typical AIX shared libraries.
  16729. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16730. else
  16731. # We preserve .a as extension for shared libraries through AIX4.2
  16732. # and later when we are not doing run time linking.
  16733. library_names_spec='${libname}${release}.a $libname.a'
  16734. soname_spec='${libname}${release}${shared_ext}$major'
  16735. fi
  16736. shlibpath_var=LIBPATH
  16737. fi
  16738. ;;
  16739. amigaos*)
  16740. library_names_spec='$libname.ixlibrary $libname.a'
  16741. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  16742. 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'
  16743. ;;
  16744. beos*)
  16745. library_names_spec='${libname}${shared_ext}'
  16746. dynamic_linker="$host_os ld.so"
  16747. shlibpath_var=LIBRARY_PATH
  16748. ;;
  16749. bsdi[45]*)
  16750. version_type=linux
  16751. need_version=no
  16752. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16753. soname_spec='${libname}${release}${shared_ext}$major'
  16754. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  16755. shlibpath_var=LD_LIBRARY_PATH
  16756. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  16757. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  16758. # the default ld.so.conf also contains /usr/contrib/lib and
  16759. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  16760. # libtool to hard-code these into programs
  16761. ;;
  16762. cygwin* | mingw* | pw32*)
  16763. version_type=windows
  16764. shrext_cmds=".dll"
  16765. need_version=no
  16766. need_lib_prefix=no
  16767. case $GCC,$host_os in
  16768. yes,cygwin* | yes,mingw* | yes,pw32*)
  16769. library_names_spec='$libname.dll.a'
  16770. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  16771. postinstall_cmds='base_file=`basename \${file}`~
  16772. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  16773. dldir=$destdir/`dirname \$dlpath`~
  16774. test -d \$dldir || mkdir -p \$dldir~
  16775. $install_prog $dir/$dlname \$dldir/$dlname~
  16776. chmod a+x \$dldir/$dlname'
  16777. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  16778. dlpath=$dir/\$dldll~
  16779. $rm \$dlpath'
  16780. shlibpath_overrides_runpath=yes
  16781. case $host_os in
  16782. cygwin*)
  16783. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  16784. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16785. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  16786. ;;
  16787. mingw*)
  16788. # MinGW DLLs use traditional 'lib' prefix
  16789. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16790. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  16791. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  16792. # It is most probably a Windows format PATH printed by
  16793. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  16794. # path with ; separators, and with drive letters. We can handle the
  16795. # drive letters (cygwin fileutils understands them), so leave them,
  16796. # especially as we might pass files found there to a mingw objdump,
  16797. # which wouldn't understand a cygwinified path. Ahh.
  16798. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  16799. else
  16800. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  16801. fi
  16802. ;;
  16803. pw32*)
  16804. # pw32 DLLs use 'pw' prefix rather than 'lib'
  16805. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16806. ;;
  16807. esac
  16808. ;;
  16809. *)
  16810. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  16811. ;;
  16812. esac
  16813. dynamic_linker='Win32 ld.exe'
  16814. # FIXME: first we should search . and the directory the executable is in
  16815. shlibpath_var=PATH
  16816. ;;
  16817. darwin* | rhapsody*)
  16818. dynamic_linker="$host_os dyld"
  16819. version_type=darwin
  16820. need_lib_prefix=no
  16821. need_version=no
  16822. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  16823. soname_spec='${libname}${release}${major}$shared_ext'
  16824. shlibpath_overrides_runpath=yes
  16825. shlibpath_var=DYLD_LIBRARY_PATH
  16826. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  16827. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  16828. ;;
  16829. dgux*)
  16830. version_type=linux
  16831. need_lib_prefix=no
  16832. need_version=no
  16833. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  16834. soname_spec='${libname}${release}${shared_ext}$major'
  16835. shlibpath_var=LD_LIBRARY_PATH
  16836. ;;
  16837. freebsd1*)
  16838. dynamic_linker=no
  16839. ;;
  16840. freebsd* | dragonfly*)
  16841. # DragonFly does not have aout. When/if they implement a new
  16842. # versioning mechanism, adjust this.
  16843. if test -x /usr/bin/objformat; then
  16844. objformat=`/usr/bin/objformat`
  16845. else
  16846. case $host_os in
  16847. freebsd[123]*) objformat=aout ;;
  16848. *) objformat=elf ;;
  16849. esac
  16850. fi
  16851. version_type=freebsd-$objformat
  16852. case $version_type in
  16853. freebsd-elf*)
  16854. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  16855. need_version=no
  16856. need_lib_prefix=no
  16857. ;;
  16858. freebsd-*)
  16859. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  16860. need_version=yes
  16861. ;;
  16862. esac
  16863. shlibpath_var=LD_LIBRARY_PATH
  16864. case $host_os in
  16865. freebsd2*)
  16866. shlibpath_overrides_runpath=yes
  16867. ;;
  16868. freebsd3.[01]* | freebsdelf3.[01]*)
  16869. shlibpath_overrides_runpath=yes
  16870. hardcode_into_libs=yes
  16871. ;;
  16872. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  16873. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  16874. shlibpath_overrides_runpath=no
  16875. hardcode_into_libs=yes
  16876. ;;
  16877. *) # from 4.6 on, and DragonFly
  16878. shlibpath_overrides_runpath=yes
  16879. hardcode_into_libs=yes
  16880. ;;
  16881. esac
  16882. ;;
  16883. gnu*)
  16884. version_type=linux
  16885. need_lib_prefix=no
  16886. need_version=no
  16887. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  16888. soname_spec='${libname}${release}${shared_ext}$major'
  16889. shlibpath_var=LD_LIBRARY_PATH
  16890. hardcode_into_libs=yes
  16891. ;;
  16892. hpux9* | hpux10* | hpux11*)
  16893. # Give a soname corresponding to the major version so that dld.sl refuses to
  16894. # link against other versions.
  16895. version_type=sunos
  16896. need_lib_prefix=no
  16897. need_version=no
  16898. case $host_cpu in
  16899. ia64*)
  16900. shrext_cmds='.so'
  16901. hardcode_into_libs=yes
  16902. dynamic_linker="$host_os dld.so"
  16903. shlibpath_var=LD_LIBRARY_PATH
  16904. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16905. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16906. soname_spec='${libname}${release}${shared_ext}$major'
  16907. if test "X$HPUX_IA64_MODE" = X32; then
  16908. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  16909. else
  16910. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  16911. fi
  16912. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16913. ;;
  16914. hppa*64*)
  16915. shrext_cmds='.sl'
  16916. hardcode_into_libs=yes
  16917. dynamic_linker="$host_os dld.sl"
  16918. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  16919. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16920. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16921. soname_spec='${libname}${release}${shared_ext}$major'
  16922. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  16923. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16924. ;;
  16925. *)
  16926. shrext_cmds='.sl'
  16927. dynamic_linker="$host_os dld.sl"
  16928. shlibpath_var=SHLIB_PATH
  16929. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  16930. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16931. soname_spec='${libname}${release}${shared_ext}$major'
  16932. ;;
  16933. esac
  16934. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  16935. postinstall_cmds='chmod 555 $lib'
  16936. ;;
  16937. interix[3-9]*)
  16938. version_type=linux
  16939. need_lib_prefix=no
  16940. need_version=no
  16941. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16942. soname_spec='${libname}${release}${shared_ext}$major'
  16943. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  16944. shlibpath_var=LD_LIBRARY_PATH
  16945. shlibpath_overrides_runpath=no
  16946. hardcode_into_libs=yes
  16947. ;;
  16948. irix5* | irix6* | nonstopux*)
  16949. case $host_os in
  16950. nonstopux*) version_type=nonstopux ;;
  16951. *)
  16952. if test "$lt_cv_prog_gnu_ld" = yes; then
  16953. version_type=linux
  16954. else
  16955. version_type=irix
  16956. fi ;;
  16957. esac
  16958. need_lib_prefix=no
  16959. need_version=no
  16960. soname_spec='${libname}${release}${shared_ext}$major'
  16961. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  16962. case $host_os in
  16963. irix5* | nonstopux*)
  16964. libsuff= shlibsuff=
  16965. ;;
  16966. *)
  16967. case $LD in # libtool.m4 will add one of these switches to LD
  16968. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  16969. libsuff= shlibsuff= libmagic=32-bit;;
  16970. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  16971. libsuff=32 shlibsuff=N32 libmagic=N32;;
  16972. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  16973. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  16974. *) libsuff= shlibsuff= libmagic=never-match;;
  16975. esac
  16976. ;;
  16977. esac
  16978. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  16979. shlibpath_overrides_runpath=no
  16980. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  16981. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  16982. hardcode_into_libs=yes
  16983. ;;
  16984. # No shared lib support for Linux oldld, aout, or coff.
  16985. linux*oldld* | linux*aout* | linux*coff*)
  16986. dynamic_linker=no
  16987. ;;
  16988. # This must be Linux ELF.
  16989. linux* | k*bsd*-gnu)
  16990. version_type=linux
  16991. need_lib_prefix=no
  16992. need_version=no
  16993. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16994. soname_spec='${libname}${release}${shared_ext}$major'
  16995. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  16996. shlibpath_var=LD_LIBRARY_PATH
  16997. shlibpath_overrides_runpath=no
  16998. # This implies no fast_install, which is unacceptable.
  16999. # Some rework will be needed to allow for fast_install
  17000. # before this can be enabled.
  17001. hardcode_into_libs=yes
  17002. # Append ld.so.conf contents to the search path
  17003. if test -f /etc/ld.so.conf; then
  17004. 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' ' '`
  17005. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  17006. fi
  17007. # We used to test for /lib/ld.so.1 and disable shared libraries on
  17008. # powerpc, because MkLinux only supported shared libraries with the
  17009. # GNU dynamic linker. Since this was broken with cross compilers,
  17010. # most powerpc-linux boxes support dynamic linking these days and
  17011. # people can always --disable-shared, the test was removed, and we
  17012. # assume the GNU/Linux dynamic linker is in use.
  17013. dynamic_linker='GNU/Linux ld.so'
  17014. ;;
  17015. netbsd*)
  17016. version_type=sunos
  17017. need_lib_prefix=no
  17018. need_version=no
  17019. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  17020. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  17021. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  17022. dynamic_linker='NetBSD (a.out) ld.so'
  17023. else
  17024. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  17025. soname_spec='${libname}${release}${shared_ext}$major'
  17026. dynamic_linker='NetBSD ld.elf_so'
  17027. fi
  17028. shlibpath_var=LD_LIBRARY_PATH
  17029. shlibpath_overrides_runpath=yes
  17030. hardcode_into_libs=yes
  17031. ;;
  17032. newsos6)
  17033. version_type=linux
  17034. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17035. shlibpath_var=LD_LIBRARY_PATH
  17036. shlibpath_overrides_runpath=yes
  17037. ;;
  17038. nto-qnx*)
  17039. version_type=linux
  17040. need_lib_prefix=no
  17041. need_version=no
  17042. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17043. soname_spec='${libname}${release}${shared_ext}$major'
  17044. shlibpath_var=LD_LIBRARY_PATH
  17045. shlibpath_overrides_runpath=yes
  17046. ;;
  17047. openbsd*)
  17048. version_type=sunos
  17049. sys_lib_dlsearch_path_spec="/usr/lib"
  17050. need_lib_prefix=no
  17051. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  17052. case $host_os in
  17053. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  17054. *) need_version=no ;;
  17055. esac
  17056. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  17057. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  17058. shlibpath_var=LD_LIBRARY_PATH
  17059. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  17060. case $host_os in
  17061. openbsd2.[89] | openbsd2.[89].*)
  17062. shlibpath_overrides_runpath=no
  17063. ;;
  17064. *)
  17065. shlibpath_overrides_runpath=yes
  17066. ;;
  17067. esac
  17068. else
  17069. shlibpath_overrides_runpath=yes
  17070. fi
  17071. ;;
  17072. os2*)
  17073. libname_spec='$name'
  17074. shrext_cmds=".dll"
  17075. need_lib_prefix=no
  17076. library_names_spec='$libname${shared_ext} $libname.a'
  17077. dynamic_linker='OS/2 ld.exe'
  17078. shlibpath_var=LIBPATH
  17079. ;;
  17080. osf3* | osf4* | osf5*)
  17081. version_type=osf
  17082. need_lib_prefix=no
  17083. need_version=no
  17084. soname_spec='${libname}${release}${shared_ext}$major'
  17085. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17086. shlibpath_var=LD_LIBRARY_PATH
  17087. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  17088. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  17089. ;;
  17090. rdos*)
  17091. dynamic_linker=no
  17092. ;;
  17093. solaris*)
  17094. version_type=linux
  17095. need_lib_prefix=no
  17096. need_version=no
  17097. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17098. soname_spec='${libname}${release}${shared_ext}$major'
  17099. shlibpath_var=LD_LIBRARY_PATH
  17100. shlibpath_overrides_runpath=yes
  17101. hardcode_into_libs=yes
  17102. # ldd complains unless libraries are executable
  17103. postinstall_cmds='chmod +x $lib'
  17104. ;;
  17105. sunos4*)
  17106. version_type=sunos
  17107. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  17108. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  17109. shlibpath_var=LD_LIBRARY_PATH
  17110. shlibpath_overrides_runpath=yes
  17111. if test "$with_gnu_ld" = yes; then
  17112. need_lib_prefix=no
  17113. fi
  17114. need_version=yes
  17115. ;;
  17116. sysv4 | sysv4.3*)
  17117. version_type=linux
  17118. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17119. soname_spec='${libname}${release}${shared_ext}$major'
  17120. shlibpath_var=LD_LIBRARY_PATH
  17121. case $host_vendor in
  17122. sni)
  17123. shlibpath_overrides_runpath=no
  17124. need_lib_prefix=no
  17125. export_dynamic_flag_spec='${wl}-Blargedynsym'
  17126. runpath_var=LD_RUN_PATH
  17127. ;;
  17128. siemens)
  17129. need_lib_prefix=no
  17130. ;;
  17131. motorola)
  17132. need_lib_prefix=no
  17133. need_version=no
  17134. shlibpath_overrides_runpath=no
  17135. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  17136. ;;
  17137. esac
  17138. ;;
  17139. sysv4*MP*)
  17140. if test -d /usr/nec ;then
  17141. version_type=linux
  17142. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  17143. soname_spec='$libname${shared_ext}.$major'
  17144. shlibpath_var=LD_LIBRARY_PATH
  17145. fi
  17146. ;;
  17147. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  17148. version_type=freebsd-elf
  17149. need_lib_prefix=no
  17150. need_version=no
  17151. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  17152. soname_spec='${libname}${release}${shared_ext}$major'
  17153. shlibpath_var=LD_LIBRARY_PATH
  17154. hardcode_into_libs=yes
  17155. if test "$with_gnu_ld" = yes; then
  17156. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  17157. shlibpath_overrides_runpath=no
  17158. else
  17159. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  17160. shlibpath_overrides_runpath=yes
  17161. case $host_os in
  17162. sco3.2v5*)
  17163. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  17164. ;;
  17165. esac
  17166. fi
  17167. sys_lib_dlsearch_path_spec='/usr/lib'
  17168. ;;
  17169. uts4*)
  17170. version_type=linux
  17171. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17172. soname_spec='${libname}${release}${shared_ext}$major'
  17173. shlibpath_var=LD_LIBRARY_PATH
  17174. ;;
  17175. *)
  17176. dynamic_linker=no
  17177. ;;
  17178. esac
  17179. { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  17180. $as_echo "$dynamic_linker" >&6; }
  17181. test "$dynamic_linker" = no && can_build_shared=no
  17182. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  17183. $as_echo_n "(cached) " >&6
  17184. else
  17185. lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  17186. fi
  17187. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  17188. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  17189. $as_echo_n "(cached) " >&6
  17190. else
  17191. lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  17192. fi
  17193. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  17194. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  17195. if test "$GCC" = yes; then
  17196. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  17197. fi
  17198. { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  17199. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  17200. hardcode_action_GCJ=
  17201. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  17202. test -n "$runpath_var_GCJ" || \
  17203. test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  17204. # We can hardcode non-existant directories.
  17205. if test "$hardcode_direct_GCJ" != no &&
  17206. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  17207. # have to relink, otherwise we might link with an installed library
  17208. # when we should be linking with a yet-to-be-installed one
  17209. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  17210. test "$hardcode_minus_L_GCJ" != no; then
  17211. # Linking always hardcodes the temporary library directory.
  17212. hardcode_action_GCJ=relink
  17213. else
  17214. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  17215. hardcode_action_GCJ=immediate
  17216. fi
  17217. else
  17218. # We cannot hardcode anything, or else we can only hardcode existing
  17219. # directories.
  17220. hardcode_action_GCJ=unsupported
  17221. fi
  17222. { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  17223. $as_echo "$hardcode_action_GCJ" >&6; }
  17224. if test "$hardcode_action_GCJ" = relink; then
  17225. # Fast installation is not supported
  17226. enable_fast_install=no
  17227. elif test "$shlibpath_overrides_runpath" = yes ||
  17228. test "$enable_shared" = no; then
  17229. # Fast installation is not necessary
  17230. enable_fast_install=needless
  17231. fi
  17232. # The else clause should only fire when bootstrapping the
  17233. # libtool distribution, otherwise you forgot to ship ltmain.sh
  17234. # with your package, and you will get complaints that there are
  17235. # no rules to generate ltmain.sh.
  17236. if test -f "$ltmain"; then
  17237. # See if we are running on zsh, and set the options which allow our commands through
  17238. # without removal of \ escapes.
  17239. if test -n "${ZSH_VERSION+set}" ; then
  17240. setopt NO_GLOB_SUBST
  17241. fi
  17242. # Now quote all the things that may contain metacharacters while being
  17243. # careful not to overquote the AC_SUBSTed values. We take copies of the
  17244. # variables and quote the copies for generation of the libtool script.
  17245. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  17246. SED SHELL STRIP \
  17247. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  17248. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  17249. deplibs_check_method reload_flag reload_cmds need_locks \
  17250. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  17251. lt_cv_sys_global_symbol_to_c_name_address \
  17252. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  17253. old_postinstall_cmds old_postuninstall_cmds \
  17254. compiler_GCJ \
  17255. CC_GCJ \
  17256. LD_GCJ \
  17257. lt_prog_compiler_wl_GCJ \
  17258. lt_prog_compiler_pic_GCJ \
  17259. lt_prog_compiler_static_GCJ \
  17260. lt_prog_compiler_no_builtin_flag_GCJ \
  17261. export_dynamic_flag_spec_GCJ \
  17262. thread_safe_flag_spec_GCJ \
  17263. whole_archive_flag_spec_GCJ \
  17264. enable_shared_with_static_runtimes_GCJ \
  17265. old_archive_cmds_GCJ \
  17266. old_archive_from_new_cmds_GCJ \
  17267. predep_objects_GCJ \
  17268. postdep_objects_GCJ \
  17269. predeps_GCJ \
  17270. postdeps_GCJ \
  17271. compiler_lib_search_path_GCJ \
  17272. compiler_lib_search_dirs_GCJ \
  17273. archive_cmds_GCJ \
  17274. archive_expsym_cmds_GCJ \
  17275. postinstall_cmds_GCJ \
  17276. postuninstall_cmds_GCJ \
  17277. old_archive_from_expsyms_cmds_GCJ \
  17278. allow_undefined_flag_GCJ \
  17279. no_undefined_flag_GCJ \
  17280. export_symbols_cmds_GCJ \
  17281. hardcode_libdir_flag_spec_GCJ \
  17282. hardcode_libdir_flag_spec_ld_GCJ \
  17283. hardcode_libdir_separator_GCJ \
  17284. hardcode_automatic_GCJ \
  17285. module_cmds_GCJ \
  17286. module_expsym_cmds_GCJ \
  17287. lt_cv_prog_compiler_c_o_GCJ \
  17288. fix_srcfile_path_GCJ \
  17289. exclude_expsyms_GCJ \
  17290. include_expsyms_GCJ; do
  17291. case $var in
  17292. old_archive_cmds_GCJ | \
  17293. old_archive_from_new_cmds_GCJ | \
  17294. archive_cmds_GCJ | \
  17295. archive_expsym_cmds_GCJ | \
  17296. module_cmds_GCJ | \
  17297. module_expsym_cmds_GCJ | \
  17298. old_archive_from_expsyms_cmds_GCJ | \
  17299. export_symbols_cmds_GCJ | \
  17300. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  17301. postinstall_cmds | postuninstall_cmds | \
  17302. old_postinstall_cmds | old_postuninstall_cmds | \
  17303. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  17304. # Double-quote double-evaled strings.
  17305. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  17306. ;;
  17307. *)
  17308. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  17309. ;;
  17310. esac
  17311. done
  17312. case $lt_echo in
  17313. *'\$0 --fallback-echo"')
  17314. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  17315. ;;
  17316. esac
  17317. cfgfile="$ofile"
  17318. cat <<__EOF__ >> "$cfgfile"
  17319. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  17320. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  17321. # Shell to use when invoking shell scripts.
  17322. SHELL=$lt_SHELL
  17323. # Whether or not to build shared libraries.
  17324. build_libtool_libs=$enable_shared
  17325. # Whether or not to build static libraries.
  17326. build_old_libs=$enable_static
  17327. # Whether or not to add -lc for building shared libraries.
  17328. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  17329. # Whether or not to disallow shared libs when runtime libs are static
  17330. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  17331. # Whether or not to optimize for fast installation.
  17332. fast_install=$enable_fast_install
  17333. # The host system.
  17334. host_alias=$host_alias
  17335. host=$host
  17336. host_os=$host_os
  17337. # The build system.
  17338. build_alias=$build_alias
  17339. build=$build
  17340. build_os=$build_os
  17341. # An echo program that does not interpret backslashes.
  17342. echo=$lt_echo
  17343. # The archiver.
  17344. AR=$lt_AR
  17345. AR_FLAGS=$lt_AR_FLAGS
  17346. # A C compiler.
  17347. LTCC=$lt_LTCC
  17348. # LTCC compiler flags.
  17349. LTCFLAGS=$lt_LTCFLAGS
  17350. # A language-specific compiler.
  17351. CC=$lt_compiler_GCJ
  17352. # Is the compiler the GNU C compiler?
  17353. with_gcc=$GCC_GCJ
  17354. # An ERE matcher.
  17355. EGREP=$lt_EGREP
  17356. # The linker used to build libraries.
  17357. LD=$lt_LD_GCJ
  17358. # Whether we need hard or soft links.
  17359. LN_S=$lt_LN_S
  17360. # A BSD-compatible nm program.
  17361. NM=$lt_NM
  17362. # A symbol stripping program
  17363. STRIP=$lt_STRIP
  17364. # Used to examine libraries when file_magic_cmd begins "file"
  17365. MAGIC_CMD=$MAGIC_CMD
  17366. # Used on cygwin: DLL creation program.
  17367. DLLTOOL="$DLLTOOL"
  17368. # Used on cygwin: object dumper.
  17369. OBJDUMP="$OBJDUMP"
  17370. # Used on cygwin: assembler.
  17371. AS="$AS"
  17372. # The name of the directory that contains temporary libtool files.
  17373. objdir=$objdir
  17374. # How to create reloadable object files.
  17375. reload_flag=$lt_reload_flag
  17376. reload_cmds=$lt_reload_cmds
  17377. # How to pass a linker flag through the compiler.
  17378. wl=$lt_lt_prog_compiler_wl_GCJ
  17379. # Object file suffix (normally "o").
  17380. objext="$ac_objext"
  17381. # Old archive suffix (normally "a").
  17382. libext="$libext"
  17383. # Shared library suffix (normally ".so").
  17384. shrext_cmds='$shrext_cmds'
  17385. # Executable file suffix (normally "").
  17386. exeext="$exeext"
  17387. # Additional compiler flags for building library objects.
  17388. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  17389. pic_mode=$pic_mode
  17390. # What is the maximum length of a command?
  17391. max_cmd_len=$lt_cv_sys_max_cmd_len
  17392. # Does compiler simultaneously support -c and -o options?
  17393. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  17394. # Must we lock files when doing compilation?
  17395. need_locks=$lt_need_locks
  17396. # Do we need the lib prefix for modules?
  17397. need_lib_prefix=$need_lib_prefix
  17398. # Do we need a version for libraries?
  17399. need_version=$need_version
  17400. # Whether dlopen is supported.
  17401. dlopen_support=$enable_dlopen
  17402. # Whether dlopen of programs is supported.
  17403. dlopen_self=$enable_dlopen_self
  17404. # Whether dlopen of statically linked programs is supported.
  17405. dlopen_self_static=$enable_dlopen_self_static
  17406. # Compiler flag to prevent dynamic linking.
  17407. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  17408. # Compiler flag to turn off builtin functions.
  17409. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  17410. # Compiler flag to allow reflexive dlopens.
  17411. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  17412. # Compiler flag to generate shared objects directly from archives.
  17413. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  17414. # Compiler flag to generate thread-safe objects.
  17415. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  17416. # Library versioning type.
  17417. version_type=$version_type
  17418. # Format of library name prefix.
  17419. libname_spec=$lt_libname_spec
  17420. # List of archive names. First name is the real one, the rest are links.
  17421. # The last name is the one that the linker finds with -lNAME.
  17422. library_names_spec=$lt_library_names_spec
  17423. # The coded name of the library, if different from the real name.
  17424. soname_spec=$lt_soname_spec
  17425. # Commands used to build and install an old-style archive.
  17426. RANLIB=$lt_RANLIB
  17427. old_archive_cmds=$lt_old_archive_cmds_GCJ
  17428. old_postinstall_cmds=$lt_old_postinstall_cmds
  17429. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17430. # Create an old-style archive from a shared archive.
  17431. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  17432. # Create a temporary old-style archive to link instead of a shared archive.
  17433. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  17434. # Commands used to build and install a shared archive.
  17435. archive_cmds=$lt_archive_cmds_GCJ
  17436. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  17437. postinstall_cmds=$lt_postinstall_cmds
  17438. postuninstall_cmds=$lt_postuninstall_cmds
  17439. # Commands used to build a loadable module (assumed same as above if empty)
  17440. module_cmds=$lt_module_cmds_GCJ
  17441. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  17442. # Commands to strip libraries.
  17443. old_striplib=$lt_old_striplib
  17444. striplib=$lt_striplib
  17445. # Dependencies to place before the objects being linked to create a
  17446. # shared library.
  17447. predep_objects=$lt_predep_objects_GCJ
  17448. # Dependencies to place after the objects being linked to create a
  17449. # shared library.
  17450. postdep_objects=$lt_postdep_objects_GCJ
  17451. # Dependencies to place before the objects being linked to create a
  17452. # shared library.
  17453. predeps=$lt_predeps_GCJ
  17454. # Dependencies to place after the objects being linked to create a
  17455. # shared library.
  17456. postdeps=$lt_postdeps_GCJ
  17457. # The directories searched by this compiler when creating a shared
  17458. # library
  17459. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
  17460. # The library search path used internally by the compiler when linking
  17461. # a shared library.
  17462. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  17463. # Method to check whether dependent libraries are shared objects.
  17464. deplibs_check_method=$lt_deplibs_check_method
  17465. # Command to use when deplibs_check_method == file_magic.
  17466. file_magic_cmd=$lt_file_magic_cmd
  17467. # Flag that allows shared libraries with undefined symbols to be built.
  17468. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  17469. # Flag that forces no undefined symbols.
  17470. no_undefined_flag=$lt_no_undefined_flag_GCJ
  17471. # Commands used to finish a libtool library installation in a directory.
  17472. finish_cmds=$lt_finish_cmds
  17473. # Same as above, but a single script fragment to be evaled but not shown.
  17474. finish_eval=$lt_finish_eval
  17475. # Take the output of nm and produce a listing of raw symbols and C names.
  17476. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17477. # Transform the output of nm in a proper C declaration
  17478. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17479. # Transform the output of nm in a C name address pair
  17480. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17481. # This is the shared library runtime path variable.
  17482. runpath_var=$runpath_var
  17483. # This is the shared library path variable.
  17484. shlibpath_var=$shlibpath_var
  17485. # Is shlibpath searched before the hard-coded library search path?
  17486. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17487. # How to hardcode a shared library path into an executable.
  17488. hardcode_action=$hardcode_action_GCJ
  17489. # Whether we should hardcode library paths into libraries.
  17490. hardcode_into_libs=$hardcode_into_libs
  17491. # Flag to hardcode \$libdir into a binary during linking.
  17492. # This must work even if \$libdir does not exist.
  17493. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  17494. # If ld is used when linking, flag to hardcode \$libdir into
  17495. # a binary during linking. This must work even if \$libdir does
  17496. # not exist.
  17497. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  17498. # Whether we need a single -rpath flag with a separated argument.
  17499. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  17500. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  17501. # resulting binary.
  17502. hardcode_direct=$hardcode_direct_GCJ
  17503. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  17504. # resulting binary.
  17505. hardcode_minus_L=$hardcode_minus_L_GCJ
  17506. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  17507. # the resulting binary.
  17508. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  17509. # Set to yes if building a shared library automatically hardcodes DIR into the library
  17510. # and all subsequent libraries and executables linked against it.
  17511. hardcode_automatic=$hardcode_automatic_GCJ
  17512. # Variables whose values should be saved in libtool wrapper scripts and
  17513. # restored at relink time.
  17514. variables_saved_for_relink="$variables_saved_for_relink"
  17515. # Whether libtool must link a program against all its dependency libraries.
  17516. link_all_deplibs=$link_all_deplibs_GCJ
  17517. # Compile-time system search path for libraries
  17518. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17519. # Run-time system search path for libraries
  17520. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  17521. # Fix the shell variable \$srcfile for the compiler.
  17522. fix_srcfile_path=$lt_fix_srcfile_path
  17523. # Set to yes if exported symbols are required.
  17524. always_export_symbols=$always_export_symbols_GCJ
  17525. # The commands to list exported symbols.
  17526. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  17527. # The commands to extract the exported symbol list from a shared archive.
  17528. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17529. # Symbols that should not be listed in the preloaded symbols.
  17530. exclude_expsyms=$lt_exclude_expsyms_GCJ
  17531. # Symbols that must always be exported.
  17532. include_expsyms=$lt_include_expsyms_GCJ
  17533. # ### END LIBTOOL TAG CONFIG: $tagname
  17534. __EOF__
  17535. else
  17536. # If there is no Makefile yet, we rely on a make rule to execute
  17537. # `config.status --recheck' to rerun these tests and create the
  17538. # libtool script then.
  17539. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  17540. if test -f "$ltmain_in"; then
  17541. test -f Makefile && make "$ltmain"
  17542. fi
  17543. fi
  17544. ac_ext=c
  17545. ac_cpp='$CPP $CPPFLAGS'
  17546. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17547. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17548. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17549. CC="$lt_save_CC"
  17550. else
  17551. tagname=""
  17552. fi
  17553. ;;
  17554. RC)
  17555. # Source file extension for RC test sources.
  17556. ac_ext=rc
  17557. # Object file extension for compiled RC test sources.
  17558. objext=o
  17559. objext_RC=$objext
  17560. # Code to be used in simple compile tests
  17561. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  17562. # Code to be used in simple link tests
  17563. lt_simple_link_test_code="$lt_simple_compile_test_code"
  17564. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  17565. # If no C compiler was specified, use CC.
  17566. LTCC=${LTCC-"$CC"}
  17567. # If no C compiler flags were specified, use CFLAGS.
  17568. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  17569. # Allow CC to be a program name with arguments.
  17570. compiler=$CC
  17571. # save warnings/boilerplate of simple test code
  17572. ac_outfile=conftest.$ac_objext
  17573. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  17574. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  17575. _lt_compiler_boilerplate=`cat conftest.err`
  17576. $rm conftest*
  17577. ac_outfile=conftest.$ac_objext
  17578. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  17579. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  17580. _lt_linker_boilerplate=`cat conftest.err`
  17581. $rm -r conftest*
  17582. # Allow CC to be a program name with arguments.
  17583. lt_save_CC="$CC"
  17584. CC=${RC-"windres"}
  17585. compiler=$CC
  17586. compiler_RC=$CC
  17587. for cc_temp in $compiler""; do
  17588. case $cc_temp in
  17589. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  17590. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  17591. \-*) ;;
  17592. *) break;;
  17593. esac
  17594. done
  17595. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  17596. lt_cv_prog_compiler_c_o_RC=yes
  17597. # The else clause should only fire when bootstrapping the
  17598. # libtool distribution, otherwise you forgot to ship ltmain.sh
  17599. # with your package, and you will get complaints that there are
  17600. # no rules to generate ltmain.sh.
  17601. if test -f "$ltmain"; then
  17602. # See if we are running on zsh, and set the options which allow our commands through
  17603. # without removal of \ escapes.
  17604. if test -n "${ZSH_VERSION+set}" ; then
  17605. setopt NO_GLOB_SUBST
  17606. fi
  17607. # Now quote all the things that may contain metacharacters while being
  17608. # careful not to overquote the AC_SUBSTed values. We take copies of the
  17609. # variables and quote the copies for generation of the libtool script.
  17610. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  17611. SED SHELL STRIP \
  17612. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  17613. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  17614. deplibs_check_method reload_flag reload_cmds need_locks \
  17615. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  17616. lt_cv_sys_global_symbol_to_c_name_address \
  17617. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  17618. old_postinstall_cmds old_postuninstall_cmds \
  17619. compiler_RC \
  17620. CC_RC \
  17621. LD_RC \
  17622. lt_prog_compiler_wl_RC \
  17623. lt_prog_compiler_pic_RC \
  17624. lt_prog_compiler_static_RC \
  17625. lt_prog_compiler_no_builtin_flag_RC \
  17626. export_dynamic_flag_spec_RC \
  17627. thread_safe_flag_spec_RC \
  17628. whole_archive_flag_spec_RC \
  17629. enable_shared_with_static_runtimes_RC \
  17630. old_archive_cmds_RC \
  17631. old_archive_from_new_cmds_RC \
  17632. predep_objects_RC \
  17633. postdep_objects_RC \
  17634. predeps_RC \
  17635. postdeps_RC \
  17636. compiler_lib_search_path_RC \
  17637. compiler_lib_search_dirs_RC \
  17638. archive_cmds_RC \
  17639. archive_expsym_cmds_RC \
  17640. postinstall_cmds_RC \
  17641. postuninstall_cmds_RC \
  17642. old_archive_from_expsyms_cmds_RC \
  17643. allow_undefined_flag_RC \
  17644. no_undefined_flag_RC \
  17645. export_symbols_cmds_RC \
  17646. hardcode_libdir_flag_spec_RC \
  17647. hardcode_libdir_flag_spec_ld_RC \
  17648. hardcode_libdir_separator_RC \
  17649. hardcode_automatic_RC \
  17650. module_cmds_RC \
  17651. module_expsym_cmds_RC \
  17652. lt_cv_prog_compiler_c_o_RC \
  17653. fix_srcfile_path_RC \
  17654. exclude_expsyms_RC \
  17655. include_expsyms_RC; do
  17656. case $var in
  17657. old_archive_cmds_RC | \
  17658. old_archive_from_new_cmds_RC | \
  17659. archive_cmds_RC | \
  17660. archive_expsym_cmds_RC | \
  17661. module_cmds_RC | \
  17662. module_expsym_cmds_RC | \
  17663. old_archive_from_expsyms_cmds_RC | \
  17664. export_symbols_cmds_RC | \
  17665. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  17666. postinstall_cmds | postuninstall_cmds | \
  17667. old_postinstall_cmds | old_postuninstall_cmds | \
  17668. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  17669. # Double-quote double-evaled strings.
  17670. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  17671. ;;
  17672. *)
  17673. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  17674. ;;
  17675. esac
  17676. done
  17677. case $lt_echo in
  17678. *'\$0 --fallback-echo"')
  17679. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  17680. ;;
  17681. esac
  17682. cfgfile="$ofile"
  17683. cat <<__EOF__ >> "$cfgfile"
  17684. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  17685. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  17686. # Shell to use when invoking shell scripts.
  17687. SHELL=$lt_SHELL
  17688. # Whether or not to build shared libraries.
  17689. build_libtool_libs=$enable_shared
  17690. # Whether or not to build static libraries.
  17691. build_old_libs=$enable_static
  17692. # Whether or not to add -lc for building shared libraries.
  17693. build_libtool_need_lc=$archive_cmds_need_lc_RC
  17694. # Whether or not to disallow shared libs when runtime libs are static
  17695. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  17696. # Whether or not to optimize for fast installation.
  17697. fast_install=$enable_fast_install
  17698. # The host system.
  17699. host_alias=$host_alias
  17700. host=$host
  17701. host_os=$host_os
  17702. # The build system.
  17703. build_alias=$build_alias
  17704. build=$build
  17705. build_os=$build_os
  17706. # An echo program that does not interpret backslashes.
  17707. echo=$lt_echo
  17708. # The archiver.
  17709. AR=$lt_AR
  17710. AR_FLAGS=$lt_AR_FLAGS
  17711. # A C compiler.
  17712. LTCC=$lt_LTCC
  17713. # LTCC compiler flags.
  17714. LTCFLAGS=$lt_LTCFLAGS
  17715. # A language-specific compiler.
  17716. CC=$lt_compiler_RC
  17717. # Is the compiler the GNU C compiler?
  17718. with_gcc=$GCC_RC
  17719. # An ERE matcher.
  17720. EGREP=$lt_EGREP
  17721. # The linker used to build libraries.
  17722. LD=$lt_LD_RC
  17723. # Whether we need hard or soft links.
  17724. LN_S=$lt_LN_S
  17725. # A BSD-compatible nm program.
  17726. NM=$lt_NM
  17727. # A symbol stripping program
  17728. STRIP=$lt_STRIP
  17729. # Used to examine libraries when file_magic_cmd begins "file"
  17730. MAGIC_CMD=$MAGIC_CMD
  17731. # Used on cygwin: DLL creation program.
  17732. DLLTOOL="$DLLTOOL"
  17733. # Used on cygwin: object dumper.
  17734. OBJDUMP="$OBJDUMP"
  17735. # Used on cygwin: assembler.
  17736. AS="$AS"
  17737. # The name of the directory that contains temporary libtool files.
  17738. objdir=$objdir
  17739. # How to create reloadable object files.
  17740. reload_flag=$lt_reload_flag
  17741. reload_cmds=$lt_reload_cmds
  17742. # How to pass a linker flag through the compiler.
  17743. wl=$lt_lt_prog_compiler_wl_RC
  17744. # Object file suffix (normally "o").
  17745. objext="$ac_objext"
  17746. # Old archive suffix (normally "a").
  17747. libext="$libext"
  17748. # Shared library suffix (normally ".so").
  17749. shrext_cmds='$shrext_cmds'
  17750. # Executable file suffix (normally "").
  17751. exeext="$exeext"
  17752. # Additional compiler flags for building library objects.
  17753. pic_flag=$lt_lt_prog_compiler_pic_RC
  17754. pic_mode=$pic_mode
  17755. # What is the maximum length of a command?
  17756. max_cmd_len=$lt_cv_sys_max_cmd_len
  17757. # Does compiler simultaneously support -c and -o options?
  17758. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  17759. # Must we lock files when doing compilation?
  17760. need_locks=$lt_need_locks
  17761. # Do we need the lib prefix for modules?
  17762. need_lib_prefix=$need_lib_prefix
  17763. # Do we need a version for libraries?
  17764. need_version=$need_version
  17765. # Whether dlopen is supported.
  17766. dlopen_support=$enable_dlopen
  17767. # Whether dlopen of programs is supported.
  17768. dlopen_self=$enable_dlopen_self
  17769. # Whether dlopen of statically linked programs is supported.
  17770. dlopen_self_static=$enable_dlopen_self_static
  17771. # Compiler flag to prevent dynamic linking.
  17772. link_static_flag=$lt_lt_prog_compiler_static_RC
  17773. # Compiler flag to turn off builtin functions.
  17774. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  17775. # Compiler flag to allow reflexive dlopens.
  17776. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  17777. # Compiler flag to generate shared objects directly from archives.
  17778. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  17779. # Compiler flag to generate thread-safe objects.
  17780. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  17781. # Library versioning type.
  17782. version_type=$version_type
  17783. # Format of library name prefix.
  17784. libname_spec=$lt_libname_spec
  17785. # List of archive names. First name is the real one, the rest are links.
  17786. # The last name is the one that the linker finds with -lNAME.
  17787. library_names_spec=$lt_library_names_spec
  17788. # The coded name of the library, if different from the real name.
  17789. soname_spec=$lt_soname_spec
  17790. # Commands used to build and install an old-style archive.
  17791. RANLIB=$lt_RANLIB
  17792. old_archive_cmds=$lt_old_archive_cmds_RC
  17793. old_postinstall_cmds=$lt_old_postinstall_cmds
  17794. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17795. # Create an old-style archive from a shared archive.
  17796. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  17797. # Create a temporary old-style archive to link instead of a shared archive.
  17798. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  17799. # Commands used to build and install a shared archive.
  17800. archive_cmds=$lt_archive_cmds_RC
  17801. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  17802. postinstall_cmds=$lt_postinstall_cmds
  17803. postuninstall_cmds=$lt_postuninstall_cmds
  17804. # Commands used to build a loadable module (assumed same as above if empty)
  17805. module_cmds=$lt_module_cmds_RC
  17806. module_expsym_cmds=$lt_module_expsym_cmds_RC
  17807. # Commands to strip libraries.
  17808. old_striplib=$lt_old_striplib
  17809. striplib=$lt_striplib
  17810. # Dependencies to place before the objects being linked to create a
  17811. # shared library.
  17812. predep_objects=$lt_predep_objects_RC
  17813. # Dependencies to place after the objects being linked to create a
  17814. # shared library.
  17815. postdep_objects=$lt_postdep_objects_RC
  17816. # Dependencies to place before the objects being linked to create a
  17817. # shared library.
  17818. predeps=$lt_predeps_RC
  17819. # Dependencies to place after the objects being linked to create a
  17820. # shared library.
  17821. postdeps=$lt_postdeps_RC
  17822. # The directories searched by this compiler when creating a shared
  17823. # library
  17824. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  17825. # The library search path used internally by the compiler when linking
  17826. # a shared library.
  17827. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  17828. # Method to check whether dependent libraries are shared objects.
  17829. deplibs_check_method=$lt_deplibs_check_method
  17830. # Command to use when deplibs_check_method == file_magic.
  17831. file_magic_cmd=$lt_file_magic_cmd
  17832. # Flag that allows shared libraries with undefined symbols to be built.
  17833. allow_undefined_flag=$lt_allow_undefined_flag_RC
  17834. # Flag that forces no undefined symbols.
  17835. no_undefined_flag=$lt_no_undefined_flag_RC
  17836. # Commands used to finish a libtool library installation in a directory.
  17837. finish_cmds=$lt_finish_cmds
  17838. # Same as above, but a single script fragment to be evaled but not shown.
  17839. finish_eval=$lt_finish_eval
  17840. # Take the output of nm and produce a listing of raw symbols and C names.
  17841. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17842. # Transform the output of nm in a proper C declaration
  17843. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17844. # Transform the output of nm in a C name address pair
  17845. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17846. # This is the shared library runtime path variable.
  17847. runpath_var=$runpath_var
  17848. # This is the shared library path variable.
  17849. shlibpath_var=$shlibpath_var
  17850. # Is shlibpath searched before the hard-coded library search path?
  17851. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17852. # How to hardcode a shared library path into an executable.
  17853. hardcode_action=$hardcode_action_RC
  17854. # Whether we should hardcode library paths into libraries.
  17855. hardcode_into_libs=$hardcode_into_libs
  17856. # Flag to hardcode \$libdir into a binary during linking.
  17857. # This must work even if \$libdir does not exist.
  17858. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  17859. # If ld is used when linking, flag to hardcode \$libdir into
  17860. # a binary during linking. This must work even if \$libdir does
  17861. # not exist.
  17862. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  17863. # Whether we need a single -rpath flag with a separated argument.
  17864. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  17865. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  17866. # resulting binary.
  17867. hardcode_direct=$hardcode_direct_RC
  17868. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  17869. # resulting binary.
  17870. hardcode_minus_L=$hardcode_minus_L_RC
  17871. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  17872. # the resulting binary.
  17873. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  17874. # Set to yes if building a shared library automatically hardcodes DIR into the library
  17875. # and all subsequent libraries and executables linked against it.
  17876. hardcode_automatic=$hardcode_automatic_RC
  17877. # Variables whose values should be saved in libtool wrapper scripts and
  17878. # restored at relink time.
  17879. variables_saved_for_relink="$variables_saved_for_relink"
  17880. # Whether libtool must link a program against all its dependency libraries.
  17881. link_all_deplibs=$link_all_deplibs_RC
  17882. # Compile-time system search path for libraries
  17883. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17884. # Run-time system search path for libraries
  17885. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  17886. # Fix the shell variable \$srcfile for the compiler.
  17887. fix_srcfile_path=$lt_fix_srcfile_path
  17888. # Set to yes if exported symbols are required.
  17889. always_export_symbols=$always_export_symbols_RC
  17890. # The commands to list exported symbols.
  17891. export_symbols_cmds=$lt_export_symbols_cmds_RC
  17892. # The commands to extract the exported symbol list from a shared archive.
  17893. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17894. # Symbols that should not be listed in the preloaded symbols.
  17895. exclude_expsyms=$lt_exclude_expsyms_RC
  17896. # Symbols that must always be exported.
  17897. include_expsyms=$lt_include_expsyms_RC
  17898. # ### END LIBTOOL TAG CONFIG: $tagname
  17899. __EOF__
  17900. else
  17901. # If there is no Makefile yet, we rely on a make rule to execute
  17902. # `config.status --recheck' to rerun these tests and create the
  17903. # libtool script then.
  17904. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  17905. if test -f "$ltmain_in"; then
  17906. test -f Makefile && make "$ltmain"
  17907. fi
  17908. fi
  17909. ac_ext=c
  17910. ac_cpp='$CPP $CPPFLAGS'
  17911. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17912. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17913. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17914. CC="$lt_save_CC"
  17915. ;;
  17916. *)
  17917. { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  17918. $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  17919. { (exit 1); exit 1; }; }
  17920. ;;
  17921. esac
  17922. # Append the new tag name to the list of available tags.
  17923. if test -n "$tagname" ; then
  17924. available_tags="$available_tags $tagname"
  17925. fi
  17926. fi
  17927. done
  17928. IFS="$lt_save_ifs"
  17929. # Now substitute the updated list of available tags.
  17930. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  17931. mv "${ofile}T" "$ofile"
  17932. chmod +x "$ofile"
  17933. else
  17934. rm -f "${ofile}T"
  17935. { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  17936. $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  17937. { (exit 1); exit 1; }; }
  17938. fi
  17939. fi
  17940. # This can be used to rebuild libtool when needed
  17941. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  17942. # Always use our own libtool.
  17943. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  17944. # Prevent multiple expansion
  17945. if test "x$CC" != xcc; then
  17946. { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
  17947. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  17948. else
  17949. { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
  17950. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  17951. fi
  17952. set dummy $CC; ac_cc=`$as_echo "$2" |
  17953. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  17954. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
  17955. $as_echo_n "(cached) " >&6
  17956. else
  17957. cat >conftest.$ac_ext <<_ACEOF
  17958. /* confdefs.h. */
  17959. _ACEOF
  17960. cat confdefs.h >>conftest.$ac_ext
  17961. cat >>conftest.$ac_ext <<_ACEOF
  17962. /* end confdefs.h. */
  17963. int
  17964. main ()
  17965. {
  17966. ;
  17967. return 0;
  17968. }
  17969. _ACEOF
  17970. # Make sure it works both with $CC and with simple cc.
  17971. # We do the test twice because some compilers refuse to overwrite an
  17972. # existing .o file with -o, though they will create one.
  17973. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  17974. rm -f conftest2.*
  17975. if { (case "(($ac_try" in
  17976. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17977. *) ac_try_echo=$ac_try;;
  17978. esac
  17979. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17980. $as_echo "$ac_try_echo") >&5
  17981. (eval "$ac_try") 2>&5
  17982. ac_status=$?
  17983. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17984. (exit $ac_status); } &&
  17985. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  17986. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17987. *) ac_try_echo=$ac_try;;
  17988. esac
  17989. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17990. $as_echo "$ac_try_echo") >&5
  17991. (eval "$ac_try") 2>&5
  17992. ac_status=$?
  17993. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17994. (exit $ac_status); };
  17995. then
  17996. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  17997. if test "x$CC" != xcc; then
  17998. # Test first that cc exists at all.
  17999. if { ac_try='cc -c conftest.$ac_ext >&5'
  18000. { (case "(($ac_try" in
  18001. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18002. *) ac_try_echo=$ac_try;;
  18003. esac
  18004. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18005. $as_echo "$ac_try_echo") >&5
  18006. (eval "$ac_try") 2>&5
  18007. ac_status=$?
  18008. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18009. (exit $ac_status); }; }; then
  18010. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  18011. rm -f conftest2.*
  18012. if { (case "(($ac_try" in
  18013. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18014. *) ac_try_echo=$ac_try;;
  18015. esac
  18016. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18017. $as_echo "$ac_try_echo") >&5
  18018. (eval "$ac_try") 2>&5
  18019. ac_status=$?
  18020. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18021. (exit $ac_status); } &&
  18022. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  18023. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18024. *) ac_try_echo=$ac_try;;
  18025. esac
  18026. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18027. $as_echo "$ac_try_echo") >&5
  18028. (eval "$ac_try") 2>&5
  18029. ac_status=$?
  18030. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18031. (exit $ac_status); };
  18032. then
  18033. # cc works too.
  18034. :
  18035. else
  18036. # cc exists but doesn't like -o.
  18037. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  18038. fi
  18039. fi
  18040. fi
  18041. else
  18042. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  18043. fi
  18044. rm -f core conftest*
  18045. fi
  18046. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  18047. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18048. $as_echo "yes" >&6; }
  18049. else
  18050. { $as_echo "$as_me:$LINENO: result: no" >&5
  18051. $as_echo "no" >&6; }
  18052. cat >>confdefs.h <<\_ACEOF
  18053. #define NO_MINUS_C_MINUS_O 1
  18054. _ACEOF
  18055. fi
  18056. # FIXME: we rely on the cache variable name because
  18057. # there is no other way.
  18058. set dummy $CC
  18059. ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  18060. if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
  18061. # Losing compiler, so override with the script.
  18062. # FIXME: It is wrong to rewrite CC.
  18063. # But if we don't then we get into trouble of one sort or another.
  18064. # A longer-term fix would be to have automake use am__CC in this case,
  18065. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  18066. CC="$am_aux_dir/compile $CC"
  18067. fi
  18068. case $ac_cv_prog_cc_stdc in
  18069. no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
  18070. *) { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
  18071. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  18072. if test "${ac_cv_prog_cc_c99+set}" = set; then
  18073. $as_echo_n "(cached) " >&6
  18074. else
  18075. ac_cv_prog_cc_c99=no
  18076. ac_save_CC=$CC
  18077. cat >conftest.$ac_ext <<_ACEOF
  18078. /* confdefs.h. */
  18079. _ACEOF
  18080. cat confdefs.h >>conftest.$ac_ext
  18081. cat >>conftest.$ac_ext <<_ACEOF
  18082. /* end confdefs.h. */
  18083. #include <stdarg.h>
  18084. #include <stdbool.h>
  18085. #include <stdlib.h>
  18086. #include <wchar.h>
  18087. #include <stdio.h>
  18088. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  18089. #define debug(...) fprintf (stderr, __VA_ARGS__)
  18090. #define showlist(...) puts (#__VA_ARGS__)
  18091. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  18092. static void
  18093. test_varargs_macros (void)
  18094. {
  18095. int x = 1234;
  18096. int y = 5678;
  18097. debug ("Flag");
  18098. debug ("X = %d\n", x);
  18099. showlist (The first, second, and third items.);
  18100. report (x>y, "x is %d but y is %d", x, y);
  18101. }
  18102. // Check long long types.
  18103. #define BIG64 18446744073709551615ull
  18104. #define BIG32 4294967295ul
  18105. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  18106. #if !BIG_OK
  18107. your preprocessor is broken;
  18108. #endif
  18109. #if BIG_OK
  18110. #else
  18111. your preprocessor is broken;
  18112. #endif
  18113. static long long int bignum = -9223372036854775807LL;
  18114. static unsigned long long int ubignum = BIG64;
  18115. struct incomplete_array
  18116. {
  18117. int datasize;
  18118. double data[];
  18119. };
  18120. struct named_init {
  18121. int number;
  18122. const wchar_t *name;
  18123. double average;
  18124. };
  18125. typedef const char *ccp;
  18126. static inline int
  18127. test_restrict (ccp restrict text)
  18128. {
  18129. // See if C++-style comments work.
  18130. // Iterate through items via the restricted pointer.
  18131. // Also check for declarations in for loops.
  18132. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  18133. continue;
  18134. return 0;
  18135. }
  18136. // Check varargs and va_copy.
  18137. static void
  18138. test_varargs (const char *format, ...)
  18139. {
  18140. va_list args;
  18141. va_start (args, format);
  18142. va_list args_copy;
  18143. va_copy (args_copy, args);
  18144. const char *str;
  18145. int number;
  18146. float fnumber;
  18147. while (*format)
  18148. {
  18149. switch (*format++)
  18150. {
  18151. case 's': // string
  18152. str = va_arg (args_copy, const char *);
  18153. break;
  18154. case 'd': // int
  18155. number = va_arg (args_copy, int);
  18156. break;
  18157. case 'f': // float
  18158. fnumber = va_arg (args_copy, double);
  18159. break;
  18160. default:
  18161. break;
  18162. }
  18163. }
  18164. va_end (args_copy);
  18165. va_end (args);
  18166. }
  18167. int
  18168. main ()
  18169. {
  18170. // Check bool.
  18171. _Bool success = false;
  18172. // Check restrict.
  18173. if (test_restrict ("String literal") == 0)
  18174. success = true;
  18175. char *restrict newvar = "Another string";
  18176. // Check varargs.
  18177. test_varargs ("s, d' f .", "string", 65, 34.234);
  18178. test_varargs_macros ();
  18179. // Check flexible array members.
  18180. struct incomplete_array *ia =
  18181. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  18182. ia->datasize = 10;
  18183. for (int i = 0; i < ia->datasize; ++i)
  18184. ia->data[i] = i * 1.234;
  18185. // Check named initializers.
  18186. struct named_init ni = {
  18187. .number = 34,
  18188. .name = L"Test wide string",
  18189. .average = 543.34343,
  18190. };
  18191. ni.number = 58;
  18192. int dynamic_array[ni.number];
  18193. dynamic_array[ni.number - 1] = 543;
  18194. // work around unused variable warnings
  18195. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  18196. || dynamic_array[ni.number - 1] != 543);
  18197. ;
  18198. return 0;
  18199. }
  18200. _ACEOF
  18201. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
  18202. do
  18203. CC="$ac_save_CC $ac_arg"
  18204. rm -f conftest.$ac_objext
  18205. if { (ac_try="$ac_compile"
  18206. case "(($ac_try" in
  18207. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18208. *) ac_try_echo=$ac_try;;
  18209. esac
  18210. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18211. $as_echo "$ac_try_echo") >&5
  18212. (eval "$ac_compile") 2>conftest.er1
  18213. ac_status=$?
  18214. grep -v '^ *+' conftest.er1 >conftest.err
  18215. rm -f conftest.er1
  18216. cat conftest.err >&5
  18217. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18218. (exit $ac_status); } && {
  18219. test -z "$ac_c_werror_flag" ||
  18220. test ! -s conftest.err
  18221. } && test -s conftest.$ac_objext; then
  18222. ac_cv_prog_cc_c99=$ac_arg
  18223. else
  18224. $as_echo "$as_me: failed program was:" >&5
  18225. sed 's/^/| /' conftest.$ac_ext >&5
  18226. fi
  18227. rm -f core conftest.err conftest.$ac_objext
  18228. test "x$ac_cv_prog_cc_c99" != "xno" && break
  18229. done
  18230. rm -f conftest.$ac_ext
  18231. CC=$ac_save_CC
  18232. fi
  18233. # AC_CACHE_VAL
  18234. case "x$ac_cv_prog_cc_c99" in
  18235. x)
  18236. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  18237. $as_echo "none needed" >&6; } ;;
  18238. xno)
  18239. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  18240. $as_echo "unsupported" >&6; } ;;
  18241. *)
  18242. CC="$CC $ac_cv_prog_cc_c99"
  18243. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
  18244. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  18245. esac
  18246. if test "x$ac_cv_prog_cc_c99" != xno; then
  18247. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  18248. else
  18249. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  18250. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  18251. if test "${ac_cv_prog_cc_c89+set}" = set; then
  18252. $as_echo_n "(cached) " >&6
  18253. else
  18254. ac_cv_prog_cc_c89=no
  18255. ac_save_CC=$CC
  18256. cat >conftest.$ac_ext <<_ACEOF
  18257. /* confdefs.h. */
  18258. _ACEOF
  18259. cat confdefs.h >>conftest.$ac_ext
  18260. cat >>conftest.$ac_ext <<_ACEOF
  18261. /* end confdefs.h. */
  18262. #include <stdarg.h>
  18263. #include <stdio.h>
  18264. #include <sys/types.h>
  18265. #include <sys/stat.h>
  18266. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  18267. struct buf { int x; };
  18268. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  18269. static char *e (p, i)
  18270. char **p;
  18271. int i;
  18272. {
  18273. return p[i];
  18274. }
  18275. static char *f (char * (*g) (char **, int), char **p, ...)
  18276. {
  18277. char *s;
  18278. va_list v;
  18279. va_start (v,p);
  18280. s = g (p, va_arg (v,int));
  18281. va_end (v);
  18282. return s;
  18283. }
  18284. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  18285. function prototypes and stuff, but not '\xHH' hex character constants.
  18286. These don't provoke an error unfortunately, instead are silently treated
  18287. as 'x'. The following induces an error, until -std is added to get
  18288. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  18289. array size at least. It's necessary to write '\x00'==0 to get something
  18290. that's true only with -std. */
  18291. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  18292. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  18293. inside strings and character constants. */
  18294. #define FOO(x) 'x'
  18295. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  18296. int test (int i, double x);
  18297. struct s1 {int (*f) (int a);};
  18298. struct s2 {int (*f) (double a);};
  18299. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  18300. int argc;
  18301. char **argv;
  18302. int
  18303. main ()
  18304. {
  18305. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  18306. ;
  18307. return 0;
  18308. }
  18309. _ACEOF
  18310. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  18311. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  18312. do
  18313. CC="$ac_save_CC $ac_arg"
  18314. rm -f conftest.$ac_objext
  18315. if { (ac_try="$ac_compile"
  18316. case "(($ac_try" in
  18317. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18318. *) ac_try_echo=$ac_try;;
  18319. esac
  18320. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18321. $as_echo "$ac_try_echo") >&5
  18322. (eval "$ac_compile") 2>conftest.er1
  18323. ac_status=$?
  18324. grep -v '^ *+' conftest.er1 >conftest.err
  18325. rm -f conftest.er1
  18326. cat conftest.err >&5
  18327. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18328. (exit $ac_status); } && {
  18329. test -z "$ac_c_werror_flag" ||
  18330. test ! -s conftest.err
  18331. } && test -s conftest.$ac_objext; then
  18332. ac_cv_prog_cc_c89=$ac_arg
  18333. else
  18334. $as_echo "$as_me: failed program was:" >&5
  18335. sed 's/^/| /' conftest.$ac_ext >&5
  18336. fi
  18337. rm -f core conftest.err conftest.$ac_objext
  18338. test "x$ac_cv_prog_cc_c89" != "xno" && break
  18339. done
  18340. rm -f conftest.$ac_ext
  18341. CC=$ac_save_CC
  18342. fi
  18343. # AC_CACHE_VAL
  18344. case "x$ac_cv_prog_cc_c89" in
  18345. x)
  18346. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  18347. $as_echo "none needed" >&6; } ;;
  18348. xno)
  18349. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  18350. $as_echo "unsupported" >&6; } ;;
  18351. *)
  18352. CC="$CC $ac_cv_prog_cc_c89"
  18353. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  18354. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  18355. esac
  18356. if test "x$ac_cv_prog_cc_c89" != xno; then
  18357. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  18358. else
  18359. ac_cv_prog_cc_stdc=no
  18360. fi
  18361. fi
  18362. ;;
  18363. esac
  18364. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
  18365. $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
  18366. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  18367. $as_echo_n "(cached) " >&6
  18368. fi
  18369. case $ac_cv_prog_cc_stdc in
  18370. no) { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  18371. $as_echo "unsupported" >&6; } ;;
  18372. '') { $as_echo "$as_me:$LINENO: result: none needed" >&5
  18373. $as_echo "none needed" >&6; } ;;
  18374. *) { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  18375. $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
  18376. esac
  18377. ac_ext=cpp
  18378. ac_cpp='$CXXCPP $CPPFLAGS'
  18379. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18380. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18381. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  18382. if test -z "$CXX"; then
  18383. if test -n "$CCC"; then
  18384. CXX=$CCC
  18385. else
  18386. if test -n "$ac_tool_prefix"; then
  18387. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  18388. do
  18389. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  18390. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  18391. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  18392. $as_echo_n "checking for $ac_word... " >&6; }
  18393. if test "${ac_cv_prog_CXX+set}" = set; then
  18394. $as_echo_n "(cached) " >&6
  18395. else
  18396. if test -n "$CXX"; then
  18397. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  18398. else
  18399. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18400. for as_dir in $PATH
  18401. do
  18402. IFS=$as_save_IFS
  18403. test -z "$as_dir" && as_dir=.
  18404. for ac_exec_ext in '' $ac_executable_extensions; do
  18405. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18406. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  18407. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18408. break 2
  18409. fi
  18410. done
  18411. done
  18412. IFS=$as_save_IFS
  18413. fi
  18414. fi
  18415. CXX=$ac_cv_prog_CXX
  18416. if test -n "$CXX"; then
  18417. { $as_echo "$as_me:$LINENO: result: $CXX" >&5
  18418. $as_echo "$CXX" >&6; }
  18419. else
  18420. { $as_echo "$as_me:$LINENO: result: no" >&5
  18421. $as_echo "no" >&6; }
  18422. fi
  18423. test -n "$CXX" && break
  18424. done
  18425. fi
  18426. if test -z "$CXX"; then
  18427. ac_ct_CXX=$CXX
  18428. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  18429. do
  18430. # Extract the first word of "$ac_prog", so it can be a program name with args.
  18431. set dummy $ac_prog; ac_word=$2
  18432. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  18433. $as_echo_n "checking for $ac_word... " >&6; }
  18434. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  18435. $as_echo_n "(cached) " >&6
  18436. else
  18437. if test -n "$ac_ct_CXX"; then
  18438. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  18439. else
  18440. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18441. for as_dir in $PATH
  18442. do
  18443. IFS=$as_save_IFS
  18444. test -z "$as_dir" && as_dir=.
  18445. for ac_exec_ext in '' $ac_executable_extensions; do
  18446. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18447. ac_cv_prog_ac_ct_CXX="$ac_prog"
  18448. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18449. break 2
  18450. fi
  18451. done
  18452. done
  18453. IFS=$as_save_IFS
  18454. fi
  18455. fi
  18456. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  18457. if test -n "$ac_ct_CXX"; then
  18458. { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  18459. $as_echo "$ac_ct_CXX" >&6; }
  18460. else
  18461. { $as_echo "$as_me:$LINENO: result: no" >&5
  18462. $as_echo "no" >&6; }
  18463. fi
  18464. test -n "$ac_ct_CXX" && break
  18465. done
  18466. if test "x$ac_ct_CXX" = x; then
  18467. CXX="g++"
  18468. else
  18469. case $cross_compiling:$ac_tool_warned in
  18470. yes:)
  18471. { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  18472. whose name does not start with the host triplet. If you think this
  18473. configuration is useful to you, please write to autoconf@gnu.org." >&5
  18474. $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  18475. whose name does not start with the host triplet. If you think this
  18476. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  18477. ac_tool_warned=yes ;;
  18478. esac
  18479. CXX=$ac_ct_CXX
  18480. fi
  18481. fi
  18482. fi
  18483. fi
  18484. # Provide some information about the compiler.
  18485. $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  18486. set X $ac_compile
  18487. ac_compiler=$2
  18488. { (ac_try="$ac_compiler --version >&5"
  18489. case "(($ac_try" in
  18490. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18491. *) ac_try_echo=$ac_try;;
  18492. esac
  18493. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18494. $as_echo "$ac_try_echo") >&5
  18495. (eval "$ac_compiler --version >&5") 2>&5
  18496. ac_status=$?
  18497. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18498. (exit $ac_status); }
  18499. { (ac_try="$ac_compiler -v >&5"
  18500. case "(($ac_try" in
  18501. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18502. *) ac_try_echo=$ac_try;;
  18503. esac
  18504. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18505. $as_echo "$ac_try_echo") >&5
  18506. (eval "$ac_compiler -v >&5") 2>&5
  18507. ac_status=$?
  18508. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18509. (exit $ac_status); }
  18510. { (ac_try="$ac_compiler -V >&5"
  18511. case "(($ac_try" in
  18512. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18513. *) ac_try_echo=$ac_try;;
  18514. esac
  18515. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18516. $as_echo "$ac_try_echo") >&5
  18517. (eval "$ac_compiler -V >&5") 2>&5
  18518. ac_status=$?
  18519. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18520. (exit $ac_status); }
  18521. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  18522. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  18523. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  18524. $as_echo_n "(cached) " >&6
  18525. else
  18526. cat >conftest.$ac_ext <<_ACEOF
  18527. /* confdefs.h. */
  18528. _ACEOF
  18529. cat confdefs.h >>conftest.$ac_ext
  18530. cat >>conftest.$ac_ext <<_ACEOF
  18531. /* end confdefs.h. */
  18532. int
  18533. main ()
  18534. {
  18535. #ifndef __GNUC__
  18536. choke me
  18537. #endif
  18538. ;
  18539. return 0;
  18540. }
  18541. _ACEOF
  18542. rm -f conftest.$ac_objext
  18543. if { (ac_try="$ac_compile"
  18544. case "(($ac_try" in
  18545. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18546. *) ac_try_echo=$ac_try;;
  18547. esac
  18548. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18549. $as_echo "$ac_try_echo") >&5
  18550. (eval "$ac_compile") 2>conftest.er1
  18551. ac_status=$?
  18552. grep -v '^ *+' conftest.er1 >conftest.err
  18553. rm -f conftest.er1
  18554. cat conftest.err >&5
  18555. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18556. (exit $ac_status); } && {
  18557. test -z "$ac_cxx_werror_flag" ||
  18558. test ! -s conftest.err
  18559. } && test -s conftest.$ac_objext; then
  18560. ac_compiler_gnu=yes
  18561. else
  18562. $as_echo "$as_me: failed program was:" >&5
  18563. sed 's/^/| /' conftest.$ac_ext >&5
  18564. ac_compiler_gnu=no
  18565. fi
  18566. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18567. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  18568. fi
  18569. { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  18570. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  18571. if test $ac_compiler_gnu = yes; then
  18572. GXX=yes
  18573. else
  18574. GXX=
  18575. fi
  18576. ac_test_CXXFLAGS=${CXXFLAGS+set}
  18577. ac_save_CXXFLAGS=$CXXFLAGS
  18578. { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  18579. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  18580. if test "${ac_cv_prog_cxx_g+set}" = set; then
  18581. $as_echo_n "(cached) " >&6
  18582. else
  18583. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  18584. ac_cxx_werror_flag=yes
  18585. ac_cv_prog_cxx_g=no
  18586. CXXFLAGS="-g"
  18587. cat >conftest.$ac_ext <<_ACEOF
  18588. /* confdefs.h. */
  18589. _ACEOF
  18590. cat confdefs.h >>conftest.$ac_ext
  18591. cat >>conftest.$ac_ext <<_ACEOF
  18592. /* end confdefs.h. */
  18593. int
  18594. main ()
  18595. {
  18596. ;
  18597. return 0;
  18598. }
  18599. _ACEOF
  18600. rm -f conftest.$ac_objext
  18601. if { (ac_try="$ac_compile"
  18602. case "(($ac_try" in
  18603. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18604. *) ac_try_echo=$ac_try;;
  18605. esac
  18606. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18607. $as_echo "$ac_try_echo") >&5
  18608. (eval "$ac_compile") 2>conftest.er1
  18609. ac_status=$?
  18610. grep -v '^ *+' conftest.er1 >conftest.err
  18611. rm -f conftest.er1
  18612. cat conftest.err >&5
  18613. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18614. (exit $ac_status); } && {
  18615. test -z "$ac_cxx_werror_flag" ||
  18616. test ! -s conftest.err
  18617. } && test -s conftest.$ac_objext; then
  18618. ac_cv_prog_cxx_g=yes
  18619. else
  18620. $as_echo "$as_me: failed program was:" >&5
  18621. sed 's/^/| /' conftest.$ac_ext >&5
  18622. CXXFLAGS=""
  18623. cat >conftest.$ac_ext <<_ACEOF
  18624. /* confdefs.h. */
  18625. _ACEOF
  18626. cat confdefs.h >>conftest.$ac_ext
  18627. cat >>conftest.$ac_ext <<_ACEOF
  18628. /* end confdefs.h. */
  18629. int
  18630. main ()
  18631. {
  18632. ;
  18633. return 0;
  18634. }
  18635. _ACEOF
  18636. rm -f conftest.$ac_objext
  18637. if { (ac_try="$ac_compile"
  18638. case "(($ac_try" in
  18639. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18640. *) ac_try_echo=$ac_try;;
  18641. esac
  18642. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18643. $as_echo "$ac_try_echo") >&5
  18644. (eval "$ac_compile") 2>conftest.er1
  18645. ac_status=$?
  18646. grep -v '^ *+' conftest.er1 >conftest.err
  18647. rm -f conftest.er1
  18648. cat conftest.err >&5
  18649. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18650. (exit $ac_status); } && {
  18651. test -z "$ac_cxx_werror_flag" ||
  18652. test ! -s conftest.err
  18653. } && test -s conftest.$ac_objext; then
  18654. :
  18655. else
  18656. $as_echo "$as_me: failed program was:" >&5
  18657. sed 's/^/| /' conftest.$ac_ext >&5
  18658. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  18659. CXXFLAGS="-g"
  18660. cat >conftest.$ac_ext <<_ACEOF
  18661. /* confdefs.h. */
  18662. _ACEOF
  18663. cat confdefs.h >>conftest.$ac_ext
  18664. cat >>conftest.$ac_ext <<_ACEOF
  18665. /* end confdefs.h. */
  18666. int
  18667. main ()
  18668. {
  18669. ;
  18670. return 0;
  18671. }
  18672. _ACEOF
  18673. rm -f conftest.$ac_objext
  18674. if { (ac_try="$ac_compile"
  18675. case "(($ac_try" in
  18676. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18677. *) ac_try_echo=$ac_try;;
  18678. esac
  18679. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18680. $as_echo "$ac_try_echo") >&5
  18681. (eval "$ac_compile") 2>conftest.er1
  18682. ac_status=$?
  18683. grep -v '^ *+' conftest.er1 >conftest.err
  18684. rm -f conftest.er1
  18685. cat conftest.err >&5
  18686. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18687. (exit $ac_status); } && {
  18688. test -z "$ac_cxx_werror_flag" ||
  18689. test ! -s conftest.err
  18690. } && test -s conftest.$ac_objext; then
  18691. ac_cv_prog_cxx_g=yes
  18692. else
  18693. $as_echo "$as_me: failed program was:" >&5
  18694. sed 's/^/| /' conftest.$ac_ext >&5
  18695. fi
  18696. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18697. fi
  18698. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18699. fi
  18700. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18701. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  18702. fi
  18703. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  18704. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  18705. if test "$ac_test_CXXFLAGS" = set; then
  18706. CXXFLAGS=$ac_save_CXXFLAGS
  18707. elif test $ac_cv_prog_cxx_g = yes; then
  18708. if test "$GXX" = yes; then
  18709. CXXFLAGS="-g -O2"
  18710. else
  18711. CXXFLAGS="-g"
  18712. fi
  18713. else
  18714. if test "$GXX" = yes; then
  18715. CXXFLAGS="-O2"
  18716. else
  18717. CXXFLAGS=
  18718. fi
  18719. fi
  18720. ac_ext=c
  18721. ac_cpp='$CPP $CPPFLAGS'
  18722. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18723. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18724. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18725. depcc="$CXX" am_compiler_list=
  18726. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  18727. $as_echo_n "checking dependency style of $depcc... " >&6; }
  18728. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  18729. $as_echo_n "(cached) " >&6
  18730. else
  18731. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  18732. # We make a subdir and do the tests there. Otherwise we can end up
  18733. # making bogus files that we don't know about and never remove. For
  18734. # instance it was reported that on HP-UX the gcc test will end up
  18735. # making a dummy file named `D' -- because `-MD' means `put the output
  18736. # in D'.
  18737. mkdir conftest.dir
  18738. # Copy depcomp to subdir because otherwise we won't find it if we're
  18739. # using a relative directory.
  18740. cp "$am_depcomp" conftest.dir
  18741. cd conftest.dir
  18742. # We will build objects and dependencies in a subdirectory because
  18743. # it helps to detect inapplicable dependency modes. For instance
  18744. # both Tru64's cc and ICC support -MD to output dependencies as a
  18745. # side effect of compilation, but ICC will put the dependencies in
  18746. # the current directory while Tru64 will put them in the object
  18747. # directory.
  18748. mkdir sub
  18749. am_cv_CXX_dependencies_compiler_type=none
  18750. if test "$am_compiler_list" = ""; then
  18751. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  18752. fi
  18753. for depmode in $am_compiler_list; do
  18754. # Setup a source with many dependencies, because some compilers
  18755. # like to wrap large dependency lists on column 80 (with \), and
  18756. # we should not choose a depcomp mode which is confused by this.
  18757. #
  18758. # We need to recreate these files for each test, as the compiler may
  18759. # overwrite some of them when testing with obscure command lines.
  18760. # This happens at least with the AIX C compiler.
  18761. : > sub/conftest.c
  18762. for i in 1 2 3 4 5 6; do
  18763. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  18764. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  18765. # Solaris 8's {/usr,}/bin/sh.
  18766. touch sub/conftst$i.h
  18767. done
  18768. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  18769. case $depmode in
  18770. nosideeffect)
  18771. # after this tag, mechanisms are not by side-effect, so they'll
  18772. # only be used when explicitly requested
  18773. if test "x$enable_dependency_tracking" = xyes; then
  18774. continue
  18775. else
  18776. break
  18777. fi
  18778. ;;
  18779. none) break ;;
  18780. esac
  18781. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  18782. # mode. It turns out that the SunPro C++ compiler does not properly
  18783. # handle `-M -o', and we need to detect this.
  18784. if depmode=$depmode \
  18785. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  18786. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  18787. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  18788. >/dev/null 2>conftest.err &&
  18789. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  18790. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  18791. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  18792. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  18793. # icc doesn't choke on unknown options, it will just issue warnings
  18794. # or remarks (even with -Werror). So we grep stderr for any message
  18795. # that says an option was ignored or not supported.
  18796. # When given -MP, icc 7.0 and 7.1 complain thusly:
  18797. # icc: Command line warning: ignoring option '-M'; no argument required
  18798. # The diagnosis changed in icc 8.0:
  18799. # icc: Command line remark: option '-MP' not supported
  18800. if (grep 'ignoring option' conftest.err ||
  18801. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  18802. am_cv_CXX_dependencies_compiler_type=$depmode
  18803. break
  18804. fi
  18805. fi
  18806. done
  18807. cd ..
  18808. rm -rf conftest.dir
  18809. else
  18810. am_cv_CXX_dependencies_compiler_type=none
  18811. fi
  18812. fi
  18813. { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  18814. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  18815. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  18816. if
  18817. test "x$enable_dependency_tracking" != xno \
  18818. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  18819. am__fastdepCXX_TRUE=
  18820. am__fastdepCXX_FALSE='#'
  18821. else
  18822. am__fastdepCXX_TRUE='#'
  18823. am__fastdepCXX_FALSE=
  18824. fi
  18825. ac_ext=c
  18826. ac_cpp='$CPP $CPPFLAGS'
  18827. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18828. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18829. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18830. { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  18831. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  18832. # On Suns, sometimes $CPP names a directory.
  18833. if test -n "$CPP" && test -d "$CPP"; then
  18834. CPP=
  18835. fi
  18836. if test -z "$CPP"; then
  18837. if test "${ac_cv_prog_CPP+set}" = set; then
  18838. $as_echo_n "(cached) " >&6
  18839. else
  18840. # Double quotes because CPP needs to be expanded
  18841. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  18842. do
  18843. ac_preproc_ok=false
  18844. for ac_c_preproc_warn_flag in '' yes
  18845. do
  18846. # Use a header file that comes with gcc, so configuring glibc
  18847. # with a fresh cross-compiler works.
  18848. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18849. # <limits.h> exists even on freestanding compilers.
  18850. # On the NeXT, cc -E runs the code through the compiler's parser,
  18851. # not just through cpp. "Syntax error" is here to catch this case.
  18852. cat >conftest.$ac_ext <<_ACEOF
  18853. /* confdefs.h. */
  18854. _ACEOF
  18855. cat confdefs.h >>conftest.$ac_ext
  18856. cat >>conftest.$ac_ext <<_ACEOF
  18857. /* end confdefs.h. */
  18858. #ifdef __STDC__
  18859. # include <limits.h>
  18860. #else
  18861. # include <assert.h>
  18862. #endif
  18863. Syntax error
  18864. _ACEOF
  18865. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18866. case "(($ac_try" in
  18867. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18868. *) ac_try_echo=$ac_try;;
  18869. esac
  18870. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18871. $as_echo "$ac_try_echo") >&5
  18872. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18873. ac_status=$?
  18874. grep -v '^ *+' conftest.er1 >conftest.err
  18875. rm -f conftest.er1
  18876. cat conftest.err >&5
  18877. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18878. (exit $ac_status); } >/dev/null && {
  18879. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18880. test ! -s conftest.err
  18881. }; then
  18882. :
  18883. else
  18884. $as_echo "$as_me: failed program was:" >&5
  18885. sed 's/^/| /' conftest.$ac_ext >&5
  18886. # Broken: fails on valid input.
  18887. continue
  18888. fi
  18889. rm -f conftest.err conftest.$ac_ext
  18890. # OK, works on sane cases. Now check whether nonexistent headers
  18891. # can be detected and how.
  18892. cat >conftest.$ac_ext <<_ACEOF
  18893. /* confdefs.h. */
  18894. _ACEOF
  18895. cat confdefs.h >>conftest.$ac_ext
  18896. cat >>conftest.$ac_ext <<_ACEOF
  18897. /* end confdefs.h. */
  18898. #include <ac_nonexistent.h>
  18899. _ACEOF
  18900. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18901. case "(($ac_try" in
  18902. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18903. *) ac_try_echo=$ac_try;;
  18904. esac
  18905. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18906. $as_echo "$ac_try_echo") >&5
  18907. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18908. ac_status=$?
  18909. grep -v '^ *+' conftest.er1 >conftest.err
  18910. rm -f conftest.er1
  18911. cat conftest.err >&5
  18912. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18913. (exit $ac_status); } >/dev/null && {
  18914. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18915. test ! -s conftest.err
  18916. }; then
  18917. # Broken: success on invalid input.
  18918. continue
  18919. else
  18920. $as_echo "$as_me: failed program was:" >&5
  18921. sed 's/^/| /' conftest.$ac_ext >&5
  18922. # Passes both tests.
  18923. ac_preproc_ok=:
  18924. break
  18925. fi
  18926. rm -f conftest.err conftest.$ac_ext
  18927. done
  18928. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  18929. rm -f conftest.err conftest.$ac_ext
  18930. if $ac_preproc_ok; then
  18931. break
  18932. fi
  18933. done
  18934. ac_cv_prog_CPP=$CPP
  18935. fi
  18936. CPP=$ac_cv_prog_CPP
  18937. else
  18938. ac_cv_prog_CPP=$CPP
  18939. fi
  18940. { $as_echo "$as_me:$LINENO: result: $CPP" >&5
  18941. $as_echo "$CPP" >&6; }
  18942. ac_preproc_ok=false
  18943. for ac_c_preproc_warn_flag in '' yes
  18944. do
  18945. # Use a header file that comes with gcc, so configuring glibc
  18946. # with a fresh cross-compiler works.
  18947. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18948. # <limits.h> exists even on freestanding compilers.
  18949. # On the NeXT, cc -E runs the code through the compiler's parser,
  18950. # not just through cpp. "Syntax error" is here to catch this case.
  18951. cat >conftest.$ac_ext <<_ACEOF
  18952. /* confdefs.h. */
  18953. _ACEOF
  18954. cat confdefs.h >>conftest.$ac_ext
  18955. cat >>conftest.$ac_ext <<_ACEOF
  18956. /* end confdefs.h. */
  18957. #ifdef __STDC__
  18958. # include <limits.h>
  18959. #else
  18960. # include <assert.h>
  18961. #endif
  18962. Syntax error
  18963. _ACEOF
  18964. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18965. case "(($ac_try" in
  18966. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18967. *) ac_try_echo=$ac_try;;
  18968. esac
  18969. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18970. $as_echo "$ac_try_echo") >&5
  18971. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18972. ac_status=$?
  18973. grep -v '^ *+' conftest.er1 >conftest.err
  18974. rm -f conftest.er1
  18975. cat conftest.err >&5
  18976. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18977. (exit $ac_status); } >/dev/null && {
  18978. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18979. test ! -s conftest.err
  18980. }; then
  18981. :
  18982. else
  18983. $as_echo "$as_me: failed program was:" >&5
  18984. sed 's/^/| /' conftest.$ac_ext >&5
  18985. # Broken: fails on valid input.
  18986. continue
  18987. fi
  18988. rm -f conftest.err conftest.$ac_ext
  18989. # OK, works on sane cases. Now check whether nonexistent headers
  18990. # can be detected and how.
  18991. cat >conftest.$ac_ext <<_ACEOF
  18992. /* confdefs.h. */
  18993. _ACEOF
  18994. cat confdefs.h >>conftest.$ac_ext
  18995. cat >>conftest.$ac_ext <<_ACEOF
  18996. /* end confdefs.h. */
  18997. #include <ac_nonexistent.h>
  18998. _ACEOF
  18999. if { (ac_try="$ac_cpp conftest.$ac_ext"
  19000. case "(($ac_try" in
  19001. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19002. *) ac_try_echo=$ac_try;;
  19003. esac
  19004. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19005. $as_echo "$ac_try_echo") >&5
  19006. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19007. ac_status=$?
  19008. grep -v '^ *+' conftest.er1 >conftest.err
  19009. rm -f conftest.er1
  19010. cat conftest.err >&5
  19011. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19012. (exit $ac_status); } >/dev/null && {
  19013. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19014. test ! -s conftest.err
  19015. }; then
  19016. # Broken: success on invalid input.
  19017. continue
  19018. else
  19019. $as_echo "$as_me: failed program was:" >&5
  19020. sed 's/^/| /' conftest.$ac_ext >&5
  19021. # Passes both tests.
  19022. ac_preproc_ok=:
  19023. break
  19024. fi
  19025. rm -f conftest.err conftest.$ac_ext
  19026. done
  19027. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  19028. rm -f conftest.err conftest.$ac_ext
  19029. if $ac_preproc_ok; then
  19030. :
  19031. else
  19032. { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  19033. See \`config.log' for more details." >&5
  19034. $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  19035. See \`config.log' for more details." >&2;}
  19036. { (exit 1); exit 1; }; }
  19037. fi
  19038. ac_ext=c
  19039. ac_cpp='$CPP $CPPFLAGS'
  19040. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19041. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19042. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19043. { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
  19044. $as_echo_n "checking whether ln -s works... " >&6; }
  19045. LN_S=$as_ln_s
  19046. if test "$LN_S" = "ln -s"; then
  19047. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19048. $as_echo "yes" >&6; }
  19049. else
  19050. { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  19051. $as_echo "no, using $LN_S" >&6; }
  19052. fi
  19053. if test -n "$ac_tool_prefix"; then
  19054. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  19055. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  19056. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  19057. $as_echo_n "checking for $ac_word... " >&6; }
  19058. if test "${ac_cv_prog_RANLIB+set}" = set; then
  19059. $as_echo_n "(cached) " >&6
  19060. else
  19061. if test -n "$RANLIB"; then
  19062. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  19063. else
  19064. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19065. for as_dir in $PATH
  19066. do
  19067. IFS=$as_save_IFS
  19068. test -z "$as_dir" && as_dir=.
  19069. for ac_exec_ext in '' $ac_executable_extensions; do
  19070. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19071. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  19072. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19073. break 2
  19074. fi
  19075. done
  19076. done
  19077. IFS=$as_save_IFS
  19078. fi
  19079. fi
  19080. RANLIB=$ac_cv_prog_RANLIB
  19081. if test -n "$RANLIB"; then
  19082. { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  19083. $as_echo "$RANLIB" >&6; }
  19084. else
  19085. { $as_echo "$as_me:$LINENO: result: no" >&5
  19086. $as_echo "no" >&6; }
  19087. fi
  19088. fi
  19089. if test -z "$ac_cv_prog_RANLIB"; then
  19090. ac_ct_RANLIB=$RANLIB
  19091. # Extract the first word of "ranlib", so it can be a program name with args.
  19092. set dummy ranlib; ac_word=$2
  19093. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  19094. $as_echo_n "checking for $ac_word... " >&6; }
  19095. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  19096. $as_echo_n "(cached) " >&6
  19097. else
  19098. if test -n "$ac_ct_RANLIB"; then
  19099. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  19100. else
  19101. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19102. for as_dir in $PATH
  19103. do
  19104. IFS=$as_save_IFS
  19105. test -z "$as_dir" && as_dir=.
  19106. for ac_exec_ext in '' $ac_executable_extensions; do
  19107. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19108. ac_cv_prog_ac_ct_RANLIB="ranlib"
  19109. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19110. break 2
  19111. fi
  19112. done
  19113. done
  19114. IFS=$as_save_IFS
  19115. fi
  19116. fi
  19117. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  19118. if test -n "$ac_ct_RANLIB"; then
  19119. { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  19120. $as_echo "$ac_ct_RANLIB" >&6; }
  19121. else
  19122. { $as_echo "$as_me:$LINENO: result: no" >&5
  19123. $as_echo "no" >&6; }
  19124. fi
  19125. if test "x$ac_ct_RANLIB" = x; then
  19126. RANLIB=":"
  19127. else
  19128. case $cross_compiling:$ac_tool_warned in
  19129. yes:)
  19130. { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  19131. whose name does not start with the host triplet. If you think this
  19132. configuration is useful to you, please write to autoconf@gnu.org." >&5
  19133. $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  19134. whose name does not start with the host triplet. If you think this
  19135. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  19136. ac_tool_warned=yes ;;
  19137. esac
  19138. RANLIB=$ac_ct_RANLIB
  19139. fi
  19140. else
  19141. RANLIB="$ac_cv_prog_RANLIB"
  19142. fi
  19143. for ac_prog in gawk mawk nawk awk
  19144. do
  19145. # Extract the first word of "$ac_prog", so it can be a program name with args.
  19146. set dummy $ac_prog; ac_word=$2
  19147. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  19148. $as_echo_n "checking for $ac_word... " >&6; }
  19149. if test "${ac_cv_prog_AWK+set}" = set; then
  19150. $as_echo_n "(cached) " >&6
  19151. else
  19152. if test -n "$AWK"; then
  19153. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  19154. else
  19155. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19156. for as_dir in $PATH
  19157. do
  19158. IFS=$as_save_IFS
  19159. test -z "$as_dir" && as_dir=.
  19160. for ac_exec_ext in '' $ac_executable_extensions; do
  19161. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19162. ac_cv_prog_AWK="$ac_prog"
  19163. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19164. break 2
  19165. fi
  19166. done
  19167. done
  19168. IFS=$as_save_IFS
  19169. fi
  19170. fi
  19171. AWK=$ac_cv_prog_AWK
  19172. if test -n "$AWK"; then
  19173. { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  19174. $as_echo "$AWK" >&6; }
  19175. else
  19176. { $as_echo "$as_me:$LINENO: result: no" >&5
  19177. $as_echo "no" >&6; }
  19178. fi
  19179. test -n "$AWK" && break
  19180. done
  19181. { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  19182. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  19183. if test "${ac_cv_path_SED+set}" = set; then
  19184. $as_echo_n "(cached) " >&6
  19185. else
  19186. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  19187. for ac_i in 1 2 3 4 5 6 7; do
  19188. ac_script="$ac_script$as_nl$ac_script"
  19189. done
  19190. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  19191. $as_unset ac_script || ac_script=
  19192. if test -z "$SED"; then
  19193. ac_path_SED_found=false
  19194. # Loop through the user's path and test for each of PROGNAME-LIST
  19195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19196. for as_dir in $PATH
  19197. do
  19198. IFS=$as_save_IFS
  19199. test -z "$as_dir" && as_dir=.
  19200. for ac_prog in sed gsed; do
  19201. for ac_exec_ext in '' $ac_executable_extensions; do
  19202. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  19203. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  19204. # Check for GNU ac_path_SED and select it if it is found.
  19205. # Check for GNU $ac_path_SED
  19206. case `"$ac_path_SED" --version 2>&1` in
  19207. *GNU*)
  19208. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  19209. *)
  19210. ac_count=0
  19211. $as_echo_n 0123456789 >"conftest.in"
  19212. while :
  19213. do
  19214. cat "conftest.in" "conftest.in" >"conftest.tmp"
  19215. mv "conftest.tmp" "conftest.in"
  19216. cp "conftest.in" "conftest.nl"
  19217. $as_echo '' >> "conftest.nl"
  19218. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  19219. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  19220. ac_count=`expr $ac_count + 1`
  19221. if test $ac_count -gt ${ac_path_SED_max-0}; then
  19222. # Best one so far, save it but keep looking for a better one
  19223. ac_cv_path_SED="$ac_path_SED"
  19224. ac_path_SED_max=$ac_count
  19225. fi
  19226. # 10*(2^10) chars as input seems more than enough
  19227. test $ac_count -gt 10 && break
  19228. done
  19229. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  19230. esac
  19231. $ac_path_SED_found && break 3
  19232. done
  19233. done
  19234. done
  19235. IFS=$as_save_IFS
  19236. if test -z "$ac_cv_path_SED"; then
  19237. { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
  19238. $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
  19239. { (exit 1); exit 1; }; }
  19240. fi
  19241. else
  19242. ac_cv_path_SED=$SED
  19243. fi
  19244. fi
  19245. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  19246. $as_echo "$ac_cv_path_SED" >&6; }
  19247. SED="$ac_cv_path_SED"
  19248. rm -f conftest.sed
  19249. { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  19250. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  19251. set x ${MAKE-make}
  19252. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  19253. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  19254. $as_echo_n "(cached) " >&6
  19255. else
  19256. cat >conftest.make <<\_ACEOF
  19257. SHELL = /bin/sh
  19258. all:
  19259. @echo '@@@%%%=$(MAKE)=@@@%%%'
  19260. _ACEOF
  19261. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  19262. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  19263. *@@@%%%=?*=@@@%%%*)
  19264. eval ac_cv_prog_make_${ac_make}_set=yes;;
  19265. *)
  19266. eval ac_cv_prog_make_${ac_make}_set=no;;
  19267. esac
  19268. rm -f conftest.make
  19269. fi
  19270. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  19271. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19272. $as_echo "yes" >&6; }
  19273. SET_MAKE=
  19274. else
  19275. { $as_echo "$as_me:$LINENO: result: no" >&5
  19276. $as_echo "no" >&6; }
  19277. SET_MAKE="MAKE=${MAKE-make}"
  19278. fi
  19279. # Extract the first word of "printf", so it can be a program name with args.
  19280. set dummy printf; ac_word=$2
  19281. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  19282. $as_echo_n "checking for $ac_word... " >&6; }
  19283. if test "${ac_cv_path_PRINTF+set}" = set; then
  19284. $as_echo_n "(cached) " >&6
  19285. else
  19286. case $PRINTF in
  19287. [\\/]* | ?:[\\/]*)
  19288. ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
  19289. ;;
  19290. *)
  19291. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19292. for as_dir in $PATH
  19293. do
  19294. IFS=$as_save_IFS
  19295. test -z "$as_dir" && as_dir=.
  19296. for ac_exec_ext in '' $ac_executable_extensions; do
  19297. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19298. ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
  19299. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19300. break 2
  19301. fi
  19302. done
  19303. done
  19304. IFS=$as_save_IFS
  19305. ;;
  19306. esac
  19307. fi
  19308. PRINTF=$ac_cv_path_PRINTF
  19309. if test -n "$PRINTF"; then
  19310. { $as_echo "$as_me:$LINENO: result: $PRINTF" >&5
  19311. $as_echo "$PRINTF" >&6; }
  19312. else
  19313. { $as_echo "$as_me:$LINENO: result: no" >&5
  19314. $as_echo "no" >&6; }
  19315. fi
  19316. # Extract the first word of "echo", so it can be a program name with args.
  19317. set dummy echo; ac_word=$2
  19318. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  19319. $as_echo_n "checking for $ac_word... " >&6; }
  19320. if test "${ac_cv_path_ECHO+set}" = set; then
  19321. $as_echo_n "(cached) " >&6
  19322. else
  19323. case $ECHO in
  19324. [\\/]* | ?:[\\/]*)
  19325. ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
  19326. ;;
  19327. *)
  19328. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19329. for as_dir in $PATH
  19330. do
  19331. IFS=$as_save_IFS
  19332. test -z "$as_dir" && as_dir=.
  19333. for ac_exec_ext in '' $ac_executable_extensions; do
  19334. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19335. ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
  19336. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19337. break 2
  19338. fi
  19339. done
  19340. done
  19341. IFS=$as_save_IFS
  19342. ;;
  19343. esac
  19344. fi
  19345. ECHO=$ac_cv_path_ECHO
  19346. if test -n "$ECHO"; then
  19347. { $as_echo "$as_me:$LINENO: result: $ECHO" >&5
  19348. $as_echo "$ECHO" >&6; }
  19349. else
  19350. { $as_echo "$as_me:$LINENO: result: no" >&5
  19351. $as_echo "no" >&6; }
  19352. fi
  19353. # Extract the first word of "cut", so it can be a program name with args.
  19354. set dummy cut; ac_word=$2
  19355. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  19356. $as_echo_n "checking for $ac_word... " >&6; }
  19357. if test "${ac_cv_path_CUT+set}" = set; then
  19358. $as_echo_n "(cached) " >&6
  19359. else
  19360. case $CUT in
  19361. [\\/]* | ?:[\\/]*)
  19362. ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
  19363. ;;
  19364. *)
  19365. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19366. for as_dir in $PATH
  19367. do
  19368. IFS=$as_save_IFS
  19369. test -z "$as_dir" && as_dir=.
  19370. for ac_exec_ext in '' $ac_executable_extensions; do
  19371. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19372. ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
  19373. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19374. break 2
  19375. fi
  19376. done
  19377. done
  19378. IFS=$as_save_IFS
  19379. ;;
  19380. esac
  19381. fi
  19382. CUT=$ac_cv_path_CUT
  19383. if test -n "$CUT"; then
  19384. { $as_echo "$as_me:$LINENO: result: $CUT" >&5
  19385. $as_echo "$CUT" >&6; }
  19386. else
  19387. { $as_echo "$as_me:$LINENO: result: no" >&5
  19388. $as_echo "no" >&6; }
  19389. fi
  19390. # Extract the first word of "autogen", so it can be a program name with args.
  19391. set dummy autogen; ac_word=$2
  19392. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  19393. $as_echo_n "checking for $ac_word... " >&6; }
  19394. if test "${ac_cv_path_AUTOGEN+set}" = set; then
  19395. $as_echo_n "(cached) " >&6
  19396. else
  19397. case $AUTOGEN in
  19398. [\\/]* | ?:[\\/]*)
  19399. ac_cv_path_AUTOGEN="$AUTOGEN" # Let the user override the test with a path.
  19400. ;;
  19401. *)
  19402. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19403. for as_dir in $PATH
  19404. do
  19405. IFS=$as_save_IFS
  19406. test -z "$as_dir" && as_dir=.
  19407. for ac_exec_ext in '' $ac_executable_extensions; do
  19408. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19409. ac_cv_path_AUTOGEN="$as_dir/$ac_word$ac_exec_ext"
  19410. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19411. break 2
  19412. fi
  19413. done
  19414. done
  19415. IFS=$as_save_IFS
  19416. ;;
  19417. esac
  19418. fi
  19419. AUTOGEN=$ac_cv_path_AUTOGEN
  19420. if test -n "$AUTOGEN"; then
  19421. { $as_echo "$as_me:$LINENO: result: $AUTOGEN" >&5
  19422. $as_echo "$AUTOGEN" >&6; }
  19423. else
  19424. { $as_echo "$as_me:$LINENO: result: no" >&5
  19425. $as_echo "no" >&6; }
  19426. fi
  19427. AUTOGEN_VERSION=unknown
  19428. if test -n "${AUTOGEN}" ; then
  19429. { $as_echo "$as_me:$LINENO: checking for autogen version >= 5.9.x" >&5
  19430. $as_echo_n "checking for autogen version >= 5.9.x... " >&6; }
  19431. ${AUTOGEN} -v >autogen.version
  19432. AUTOGEN_VERSION=`cat autogen.version | ${SED} 's|.*\([0-9\.]\{5,\}\).*|\1|'`
  19433. AUTOGEN_MAJOR=`echo ${AUTOGEN_VERSION} | ${CUT} -d '.' -f 1`
  19434. AUTOGEN_MINOR=`echo ${AUTOGEN_VERSION} | ${CUT} -d '.' -f 2`
  19435. if ( test ${AUTOGEN_MAJOR} -eq 5 && test ${AUTOGEN_MINOR} -lt 9 ) || test ${AUTOGEN_MAJOR} -lt 5 ; then
  19436. { $as_echo "$as_me:$LINENO: result: no" >&5
  19437. $as_echo "no" >&6; }
  19438. { $as_echo "$as_me:$LINENO: WARNING: ${AUTOGEN} is too old (${AUTOGEN_VERSION}) for building from SVN. Please upgrade to 5.9.x)" >&5
  19439. $as_echo "$as_me: WARNING: ${AUTOGEN} is too old (${AUTOGEN_VERSION}) for building from SVN. Please upgrade to 5.9.x)" >&2;}
  19440. else
  19441. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19442. $as_echo "yes" >&6; }
  19443. fi
  19444. rm -f autogen.version
  19445. if test ! -f src/tcpreplay_opts.c && test $enable_local_libopts == yes ; then
  19446. if test $MAINTAINER_AUTOGEN_VERSION != $AUTOGEN_VERSION ; then
  19447. { { $as_echo "$as_me:$LINENO: error: Your version of autogen ($AUTOGEN_VERSION) != libopts tear off ($MAINTAINER_AUTOGEN_VERSION) Either install the correct version or specify --disable-local-libopts" >&5
  19448. $as_echo "$as_me: error: Your version of autogen ($AUTOGEN_VERSION) != libopts tear off ($MAINTAINER_AUTOGEN_VERSION) Either install the correct version or specify --disable-local-libopts" >&2;}
  19449. { (exit 1); exit 1; }; }
  19450. fi
  19451. fi
  19452. else
  19453. if test ! -f src/tcpreplay_opts.c ; then
  19454. { { $as_echo "$as_me:$LINENO: error: Please install GNU autogen >= 5.9.x if you are building from SVN" >&5
  19455. $as_echo "$as_me: error: Please install GNU autogen >= 5.9.x if you are building from SVN" >&2;}
  19456. { (exit 1); exit 1; }; }
  19457. fi
  19458. fi
  19459. cat >>confdefs.h <<\_ACEOF
  19460. #define AUTOGEN_VERSION ${AUTOGEN_VERSION}
  19461. _ACEOF
  19462. if test $enable_local_libopts == yes ; then
  19463. { $as_echo "$as_me:$LINENO: Using included libopts tearoff" >&5
  19464. $as_echo "$as_me: Using included libopts tearoff" >&6;}
  19465. else
  19466. { $as_echo "$as_me:$LINENO: Using system libopts" >&5
  19467. $as_echo "$as_me: Using system libopts" >&6;}
  19468. fi
  19469. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  19470. $as_echo_n "checking for ANSI C header files... " >&6; }
  19471. if test "${ac_cv_header_stdc+set}" = set; then
  19472. $as_echo_n "(cached) " >&6
  19473. else
  19474. cat >conftest.$ac_ext <<_ACEOF
  19475. /* confdefs.h. */
  19476. _ACEOF
  19477. cat confdefs.h >>conftest.$ac_ext
  19478. cat >>conftest.$ac_ext <<_ACEOF
  19479. /* end confdefs.h. */
  19480. #include <stdlib.h>
  19481. #include <stdarg.h>
  19482. #include <string.h>
  19483. #include <float.h>
  19484. int
  19485. main ()
  19486. {
  19487. ;
  19488. return 0;
  19489. }
  19490. _ACEOF
  19491. rm -f conftest.$ac_objext
  19492. if { (ac_try="$ac_compile"
  19493. case "(($ac_try" in
  19494. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19495. *) ac_try_echo=$ac_try;;
  19496. esac
  19497. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19498. $as_echo "$ac_try_echo") >&5
  19499. (eval "$ac_compile") 2>conftest.er1
  19500. ac_status=$?
  19501. grep -v '^ *+' conftest.er1 >conftest.err
  19502. rm -f conftest.er1
  19503. cat conftest.err >&5
  19504. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19505. (exit $ac_status); } && {
  19506. test -z "$ac_c_werror_flag" ||
  19507. test ! -s conftest.err
  19508. } && test -s conftest.$ac_objext; then
  19509. ac_cv_header_stdc=yes
  19510. else
  19511. $as_echo "$as_me: failed program was:" >&5
  19512. sed 's/^/| /' conftest.$ac_ext >&5
  19513. ac_cv_header_stdc=no
  19514. fi
  19515. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19516. if test $ac_cv_header_stdc = yes; then
  19517. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  19518. cat >conftest.$ac_ext <<_ACEOF
  19519. /* confdefs.h. */
  19520. _ACEOF
  19521. cat confdefs.h >>conftest.$ac_ext
  19522. cat >>conftest.$ac_ext <<_ACEOF
  19523. /* end confdefs.h. */
  19524. #include <string.h>
  19525. _ACEOF
  19526. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19527. $EGREP "memchr" >/dev/null 2>&1; then
  19528. :
  19529. else
  19530. ac_cv_header_stdc=no
  19531. fi
  19532. rm -f conftest*
  19533. fi
  19534. if test $ac_cv_header_stdc = yes; then
  19535. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  19536. cat >conftest.$ac_ext <<_ACEOF
  19537. /* confdefs.h. */
  19538. _ACEOF
  19539. cat confdefs.h >>conftest.$ac_ext
  19540. cat >>conftest.$ac_ext <<_ACEOF
  19541. /* end confdefs.h. */
  19542. #include <stdlib.h>
  19543. _ACEOF
  19544. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19545. $EGREP "free" >/dev/null 2>&1; then
  19546. :
  19547. else
  19548. ac_cv_header_stdc=no
  19549. fi
  19550. rm -f conftest*
  19551. fi
  19552. if test $ac_cv_header_stdc = yes; then
  19553. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  19554. if test "$cross_compiling" = yes; then
  19555. :
  19556. else
  19557. cat >conftest.$ac_ext <<_ACEOF
  19558. /* confdefs.h. */
  19559. _ACEOF
  19560. cat confdefs.h >>conftest.$ac_ext
  19561. cat >>conftest.$ac_ext <<_ACEOF
  19562. /* end confdefs.h. */
  19563. #include <ctype.h>
  19564. #include <stdlib.h>
  19565. #if ((' ' & 0x0FF) == 0x020)
  19566. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  19567. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  19568. #else
  19569. # define ISLOWER(c) \
  19570. (('a' <= (c) && (c) <= 'i') \
  19571. || ('j' <= (c) && (c) <= 'r') \
  19572. || ('s' <= (c) && (c) <= 'z'))
  19573. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  19574. #endif
  19575. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  19576. int
  19577. main ()
  19578. {
  19579. int i;
  19580. for (i = 0; i < 256; i++)
  19581. if (XOR (islower (i), ISLOWER (i))
  19582. || toupper (i) != TOUPPER (i))
  19583. return 2;
  19584. return 0;
  19585. }
  19586. _ACEOF
  19587. rm -f conftest$ac_exeext
  19588. if { (ac_try="$ac_link"
  19589. case "(($ac_try" in
  19590. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19591. *) ac_try_echo=$ac_try;;
  19592. esac
  19593. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19594. $as_echo "$ac_try_echo") >&5
  19595. (eval "$ac_link") 2>&5
  19596. ac_status=$?
  19597. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19598. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19599. { (case "(($ac_try" in
  19600. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19601. *) ac_try_echo=$ac_try;;
  19602. esac
  19603. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19604. $as_echo "$ac_try_echo") >&5
  19605. (eval "$ac_try") 2>&5
  19606. ac_status=$?
  19607. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19608. (exit $ac_status); }; }; then
  19609. :
  19610. else
  19611. $as_echo "$as_me: program exited with status $ac_status" >&5
  19612. $as_echo "$as_me: failed program was:" >&5
  19613. sed 's/^/| /' conftest.$ac_ext >&5
  19614. ( exit $ac_status )
  19615. ac_cv_header_stdc=no
  19616. fi
  19617. rm -rf conftest.dSYM
  19618. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19619. fi
  19620. fi
  19621. fi
  19622. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  19623. $as_echo "$ac_cv_header_stdc" >&6; }
  19624. if test $ac_cv_header_stdc = yes; then
  19625. cat >>confdefs.h <<\_ACEOF
  19626. #define STDC_HEADERS 1
  19627. _ACEOF
  19628. fi
  19629. { $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
  19630. $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
  19631. if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
  19632. $as_echo_n "(cached) " >&6
  19633. else
  19634. cat >conftest.$ac_ext <<_ACEOF
  19635. /* confdefs.h. */
  19636. _ACEOF
  19637. cat confdefs.h >>conftest.$ac_ext
  19638. cat >>conftest.$ac_ext <<_ACEOF
  19639. /* end confdefs.h. */
  19640. #include <sys/types.h>
  19641. int
  19642. main ()
  19643. {
  19644. return makedev(0, 0);
  19645. ;
  19646. return 0;
  19647. }
  19648. _ACEOF
  19649. rm -f conftest.$ac_objext conftest$ac_exeext
  19650. if { (ac_try="$ac_link"
  19651. case "(($ac_try" in
  19652. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19653. *) ac_try_echo=$ac_try;;
  19654. esac
  19655. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19656. $as_echo "$ac_try_echo") >&5
  19657. (eval "$ac_link") 2>conftest.er1
  19658. ac_status=$?
  19659. grep -v '^ *+' conftest.er1 >conftest.err
  19660. rm -f conftest.er1
  19661. cat conftest.err >&5
  19662. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19663. (exit $ac_status); } && {
  19664. test -z "$ac_c_werror_flag" ||
  19665. test ! -s conftest.err
  19666. } && test -s conftest$ac_exeext && {
  19667. test "$cross_compiling" = yes ||
  19668. $as_test_x conftest$ac_exeext
  19669. }; then
  19670. ac_cv_header_sys_types_h_makedev=yes
  19671. else
  19672. $as_echo "$as_me: failed program was:" >&5
  19673. sed 's/^/| /' conftest.$ac_ext >&5
  19674. ac_cv_header_sys_types_h_makedev=no
  19675. fi
  19676. rm -rf conftest.dSYM
  19677. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19678. conftest$ac_exeext conftest.$ac_ext
  19679. fi
  19680. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
  19681. $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
  19682. if test $ac_cv_header_sys_types_h_makedev = no; then
  19683. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  19684. { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
  19685. $as_echo_n "checking for sys/mkdev.h... " >&6; }
  19686. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  19687. $as_echo_n "(cached) " >&6
  19688. fi
  19689. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
  19690. $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
  19691. else
  19692. # Is the header compilable?
  19693. { $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
  19694. $as_echo_n "checking sys/mkdev.h usability... " >&6; }
  19695. cat >conftest.$ac_ext <<_ACEOF
  19696. /* confdefs.h. */
  19697. _ACEOF
  19698. cat confdefs.h >>conftest.$ac_ext
  19699. cat >>conftest.$ac_ext <<_ACEOF
  19700. /* end confdefs.h. */
  19701. $ac_includes_default
  19702. #include <sys/mkdev.h>
  19703. _ACEOF
  19704. rm -f conftest.$ac_objext
  19705. if { (ac_try="$ac_compile"
  19706. case "(($ac_try" in
  19707. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19708. *) ac_try_echo=$ac_try;;
  19709. esac
  19710. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19711. $as_echo "$ac_try_echo") >&5
  19712. (eval "$ac_compile") 2>conftest.er1
  19713. ac_status=$?
  19714. grep -v '^ *+' conftest.er1 >conftest.err
  19715. rm -f conftest.er1
  19716. cat conftest.err >&5
  19717. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19718. (exit $ac_status); } && {
  19719. test -z "$ac_c_werror_flag" ||
  19720. test ! -s conftest.err
  19721. } && test -s conftest.$ac_objext; then
  19722. ac_header_compiler=yes
  19723. else
  19724. $as_echo "$as_me: failed program was:" >&5
  19725. sed 's/^/| /' conftest.$ac_ext >&5
  19726. ac_header_compiler=no
  19727. fi
  19728. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19729. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19730. $as_echo "$ac_header_compiler" >&6; }
  19731. # Is the header present?
  19732. { $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
  19733. $as_echo_n "checking sys/mkdev.h presence... " >&6; }
  19734. cat >conftest.$ac_ext <<_ACEOF
  19735. /* confdefs.h. */
  19736. _ACEOF
  19737. cat confdefs.h >>conftest.$ac_ext
  19738. cat >>conftest.$ac_ext <<_ACEOF
  19739. /* end confdefs.h. */
  19740. #include <sys/mkdev.h>
  19741. _ACEOF
  19742. if { (ac_try="$ac_cpp conftest.$ac_ext"
  19743. case "(($ac_try" in
  19744. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19745. *) ac_try_echo=$ac_try;;
  19746. esac
  19747. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19748. $as_echo "$ac_try_echo") >&5
  19749. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19750. ac_status=$?
  19751. grep -v '^ *+' conftest.er1 >conftest.err
  19752. rm -f conftest.er1
  19753. cat conftest.err >&5
  19754. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19755. (exit $ac_status); } >/dev/null && {
  19756. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19757. test ! -s conftest.err
  19758. }; then
  19759. ac_header_preproc=yes
  19760. else
  19761. $as_echo "$as_me: failed program was:" >&5
  19762. sed 's/^/| /' conftest.$ac_ext >&5
  19763. ac_header_preproc=no
  19764. fi
  19765. rm -f conftest.err conftest.$ac_ext
  19766. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19767. $as_echo "$ac_header_preproc" >&6; }
  19768. # So? What about this header?
  19769. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19770. yes:no: )
  19771. { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
  19772. $as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19773. { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
  19774. $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
  19775. ac_header_preproc=yes
  19776. ;;
  19777. no:yes:* )
  19778. { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
  19779. $as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
  19780. { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
  19781. $as_echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
  19782. { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
  19783. $as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
  19784. { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
  19785. $as_echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
  19786. { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
  19787. $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
  19788. { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
  19789. $as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
  19790. ;;
  19791. esac
  19792. { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
  19793. $as_echo_n "checking for sys/mkdev.h... " >&6; }
  19794. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  19795. $as_echo_n "(cached) " >&6
  19796. else
  19797. ac_cv_header_sys_mkdev_h=$ac_header_preproc
  19798. fi
  19799. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
  19800. $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
  19801. fi
  19802. if test $ac_cv_header_sys_mkdev_h = yes; then
  19803. cat >>confdefs.h <<\_ACEOF
  19804. #define MAJOR_IN_MKDEV 1
  19805. _ACEOF
  19806. fi
  19807. if test $ac_cv_header_sys_mkdev_h = no; then
  19808. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  19809. { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
  19810. $as_echo_n "checking for sys/sysmacros.h... " >&6; }
  19811. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  19812. $as_echo_n "(cached) " >&6
  19813. fi
  19814. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
  19815. $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
  19816. else
  19817. # Is the header compilable?
  19818. { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
  19819. $as_echo_n "checking sys/sysmacros.h usability... " >&6; }
  19820. cat >conftest.$ac_ext <<_ACEOF
  19821. /* confdefs.h. */
  19822. _ACEOF
  19823. cat confdefs.h >>conftest.$ac_ext
  19824. cat >>conftest.$ac_ext <<_ACEOF
  19825. /* end confdefs.h. */
  19826. $ac_includes_default
  19827. #include <sys/sysmacros.h>
  19828. _ACEOF
  19829. rm -f conftest.$ac_objext
  19830. if { (ac_try="$ac_compile"
  19831. case "(($ac_try" in
  19832. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19833. *) ac_try_echo=$ac_try;;
  19834. esac
  19835. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19836. $as_echo "$ac_try_echo") >&5
  19837. (eval "$ac_compile") 2>conftest.er1
  19838. ac_status=$?
  19839. grep -v '^ *+' conftest.er1 >conftest.err
  19840. rm -f conftest.er1
  19841. cat conftest.err >&5
  19842. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19843. (exit $ac_status); } && {
  19844. test -z "$ac_c_werror_flag" ||
  19845. test ! -s conftest.err
  19846. } && test -s conftest.$ac_objext; then
  19847. ac_header_compiler=yes
  19848. else
  19849. $as_echo "$as_me: failed program was:" >&5
  19850. sed 's/^/| /' conftest.$ac_ext >&5
  19851. ac_header_compiler=no
  19852. fi
  19853. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19854. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19855. $as_echo "$ac_header_compiler" >&6; }
  19856. # Is the header present?
  19857. { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
  19858. $as_echo_n "checking sys/sysmacros.h presence... " >&6; }
  19859. cat >conftest.$ac_ext <<_ACEOF
  19860. /* confdefs.h. */
  19861. _ACEOF
  19862. cat confdefs.h >>conftest.$ac_ext
  19863. cat >>conftest.$ac_ext <<_ACEOF
  19864. /* end confdefs.h. */
  19865. #include <sys/sysmacros.h>
  19866. _ACEOF
  19867. if { (ac_try="$ac_cpp conftest.$ac_ext"
  19868. case "(($ac_try" in
  19869. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19870. *) ac_try_echo=$ac_try;;
  19871. esac
  19872. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19873. $as_echo "$ac_try_echo") >&5
  19874. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19875. ac_status=$?
  19876. grep -v '^ *+' conftest.er1 >conftest.err
  19877. rm -f conftest.er1
  19878. cat conftest.err >&5
  19879. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19880. (exit $ac_status); } >/dev/null && {
  19881. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19882. test ! -s conftest.err
  19883. }; then
  19884. ac_header_preproc=yes
  19885. else
  19886. $as_echo "$as_me: failed program was:" >&5
  19887. sed 's/^/| /' conftest.$ac_ext >&5
  19888. ac_header_preproc=no
  19889. fi
  19890. rm -f conftest.err conftest.$ac_ext
  19891. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19892. $as_echo "$ac_header_preproc" >&6; }
  19893. # So? What about this header?
  19894. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19895. yes:no: )
  19896. { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
  19897. $as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19898. { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
  19899. $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
  19900. ac_header_preproc=yes
  19901. ;;
  19902. no:yes:* )
  19903. { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
  19904. $as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
  19905. { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
  19906. $as_echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
  19907. { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
  19908. $as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
  19909. { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
  19910. $as_echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
  19911. { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
  19912. $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
  19913. { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
  19914. $as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
  19915. ;;
  19916. esac
  19917. { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
  19918. $as_echo_n "checking for sys/sysmacros.h... " >&6; }
  19919. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  19920. $as_echo_n "(cached) " >&6
  19921. else
  19922. ac_cv_header_sys_sysmacros_h=$ac_header_preproc
  19923. fi
  19924. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
  19925. $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
  19926. fi
  19927. if test $ac_cv_header_sys_sysmacros_h = yes; then
  19928. cat >>confdefs.h <<\_ACEOF
  19929. #define MAJOR_IN_SYSMACROS 1
  19930. _ACEOF
  19931. fi
  19932. fi
  19933. fi
  19934. { $as_echo "$as_me:$LINENO: checking for size_t" >&5
  19935. $as_echo_n "checking for size_t... " >&6; }
  19936. if test "${ac_cv_type_size_t+set}" = set; then
  19937. $as_echo_n "(cached) " >&6
  19938. else
  19939. ac_cv_type_size_t=no
  19940. cat >conftest.$ac_ext <<_ACEOF
  19941. /* confdefs.h. */
  19942. _ACEOF
  19943. cat confdefs.h >>conftest.$ac_ext
  19944. cat >>conftest.$ac_ext <<_ACEOF
  19945. /* end confdefs.h. */
  19946. $ac_includes_default
  19947. int
  19948. main ()
  19949. {
  19950. if (sizeof (size_t))
  19951. return 0;
  19952. ;
  19953. return 0;
  19954. }
  19955. _ACEOF
  19956. rm -f conftest.$ac_objext
  19957. if { (ac_try="$ac_compile"
  19958. case "(($ac_try" in
  19959. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19960. *) ac_try_echo=$ac_try;;
  19961. esac
  19962. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19963. $as_echo "$ac_try_echo") >&5
  19964. (eval "$ac_compile") 2>conftest.er1
  19965. ac_status=$?
  19966. grep -v '^ *+' conftest.er1 >conftest.err
  19967. rm -f conftest.er1
  19968. cat conftest.err >&5
  19969. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19970. (exit $ac_status); } && {
  19971. test -z "$ac_c_werror_flag" ||
  19972. test ! -s conftest.err
  19973. } && test -s conftest.$ac_objext; then
  19974. cat >conftest.$ac_ext <<_ACEOF
  19975. /* confdefs.h. */
  19976. _ACEOF
  19977. cat confdefs.h >>conftest.$ac_ext
  19978. cat >>conftest.$ac_ext <<_ACEOF
  19979. /* end confdefs.h. */
  19980. $ac_includes_default
  19981. int
  19982. main ()
  19983. {
  19984. if (sizeof ((size_t)))
  19985. return 0;
  19986. ;
  19987. return 0;
  19988. }
  19989. _ACEOF
  19990. rm -f conftest.$ac_objext
  19991. if { (ac_try="$ac_compile"
  19992. case "(($ac_try" in
  19993. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19994. *) ac_try_echo=$ac_try;;
  19995. esac
  19996. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19997. $as_echo "$ac_try_echo") >&5
  19998. (eval "$ac_compile") 2>conftest.er1
  19999. ac_status=$?
  20000. grep -v '^ *+' conftest.er1 >conftest.err
  20001. rm -f conftest.er1
  20002. cat conftest.err >&5
  20003. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20004. (exit $ac_status); } && {
  20005. test -z "$ac_c_werror_flag" ||
  20006. test ! -s conftest.err
  20007. } && test -s conftest.$ac_objext; then
  20008. :
  20009. else
  20010. $as_echo "$as_me: failed program was:" >&5
  20011. sed 's/^/| /' conftest.$ac_ext >&5
  20012. ac_cv_type_size_t=yes
  20013. fi
  20014. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20015. else
  20016. $as_echo "$as_me: failed program was:" >&5
  20017. sed 's/^/| /' conftest.$ac_ext >&5
  20018. fi
  20019. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20020. fi
  20021. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  20022. $as_echo "$ac_cv_type_size_t" >&6; }
  20023. if test $ac_cv_type_size_t = yes; then
  20024. :
  20025. else
  20026. cat >>confdefs.h <<_ACEOF
  20027. #define size_t unsigned int
  20028. _ACEOF
  20029. fi
  20030. { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  20031. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  20032. if test "${ac_cv_header_time+set}" = set; then
  20033. $as_echo_n "(cached) " >&6
  20034. else
  20035. cat >conftest.$ac_ext <<_ACEOF
  20036. /* confdefs.h. */
  20037. _ACEOF
  20038. cat confdefs.h >>conftest.$ac_ext
  20039. cat >>conftest.$ac_ext <<_ACEOF
  20040. /* end confdefs.h. */
  20041. #include <sys/types.h>
  20042. #include <sys/time.h>
  20043. #include <time.h>
  20044. int
  20045. main ()
  20046. {
  20047. if ((struct tm *) 0)
  20048. return 0;
  20049. ;
  20050. return 0;
  20051. }
  20052. _ACEOF
  20053. rm -f conftest.$ac_objext
  20054. if { (ac_try="$ac_compile"
  20055. case "(($ac_try" in
  20056. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20057. *) ac_try_echo=$ac_try;;
  20058. esac
  20059. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20060. $as_echo "$ac_try_echo") >&5
  20061. (eval "$ac_compile") 2>conftest.er1
  20062. ac_status=$?
  20063. grep -v '^ *+' conftest.er1 >conftest.err
  20064. rm -f conftest.er1
  20065. cat conftest.err >&5
  20066. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20067. (exit $ac_status); } && {
  20068. test -z "$ac_c_werror_flag" ||
  20069. test ! -s conftest.err
  20070. } && test -s conftest.$ac_objext; then
  20071. ac_cv_header_time=yes
  20072. else
  20073. $as_echo "$as_me: failed program was:" >&5
  20074. sed 's/^/| /' conftest.$ac_ext >&5
  20075. ac_cv_header_time=no
  20076. fi
  20077. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20078. fi
  20079. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  20080. $as_echo "$ac_cv_header_time" >&6; }
  20081. if test $ac_cv_header_time = yes; then
  20082. cat >>confdefs.h <<\_ACEOF
  20083. #define TIME_WITH_SYS_TIME 1
  20084. _ACEOF
  20085. fi
  20086. { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  20087. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  20088. if test "${ac_cv_c_const+set}" = set; then
  20089. $as_echo_n "(cached) " >&6
  20090. else
  20091. cat >conftest.$ac_ext <<_ACEOF
  20092. /* confdefs.h. */
  20093. _ACEOF
  20094. cat confdefs.h >>conftest.$ac_ext
  20095. cat >>conftest.$ac_ext <<_ACEOF
  20096. /* end confdefs.h. */
  20097. int
  20098. main ()
  20099. {
  20100. /* FIXME: Include the comments suggested by Paul. */
  20101. #ifndef __cplusplus
  20102. /* Ultrix mips cc rejects this. */
  20103. typedef int charset[2];
  20104. const charset cs;
  20105. /* SunOS 4.1.1 cc rejects this. */
  20106. char const *const *pcpcc;
  20107. char **ppc;
  20108. /* NEC SVR4.0.2 mips cc rejects this. */
  20109. struct point {int x, y;};
  20110. static struct point const zero = {0,0};
  20111. /* AIX XL C 1.02.0.0 rejects this.
  20112. It does not let you subtract one const X* pointer from another in
  20113. an arm of an if-expression whose if-part is not a constant
  20114. expression */
  20115. const char *g = "string";
  20116. pcpcc = &g + (g ? g-g : 0);
  20117. /* HPUX 7.0 cc rejects these. */
  20118. ++pcpcc;
  20119. ppc = (char**) pcpcc;
  20120. pcpcc = (char const *const *) ppc;
  20121. { /* SCO 3.2v4 cc rejects this. */
  20122. char *t;
  20123. char const *s = 0 ? (char *) 0 : (char const *) 0;
  20124. *t++ = 0;
  20125. if (s) return 0;
  20126. }
  20127. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  20128. int x[] = {25, 17};
  20129. const int *foo = &x[0];
  20130. ++foo;
  20131. }
  20132. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  20133. typedef const int *iptr;
  20134. iptr p = 0;
  20135. ++p;
  20136. }
  20137. { /* AIX XL C 1.02.0.0 rejects this saying
  20138. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  20139. struct s { int j; const int *ap[3]; };
  20140. struct s *b; b->j = 5;
  20141. }
  20142. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  20143. const int foo = 10;
  20144. if (!foo) return 0;
  20145. }
  20146. return !cs[0] && !zero.x;
  20147. #endif
  20148. ;
  20149. return 0;
  20150. }
  20151. _ACEOF
  20152. rm -f conftest.$ac_objext
  20153. if { (ac_try="$ac_compile"
  20154. case "(($ac_try" in
  20155. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20156. *) ac_try_echo=$ac_try;;
  20157. esac
  20158. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20159. $as_echo "$ac_try_echo") >&5
  20160. (eval "$ac_compile") 2>conftest.er1
  20161. ac_status=$?
  20162. grep -v '^ *+' conftest.er1 >conftest.err
  20163. rm -f conftest.er1
  20164. cat conftest.err >&5
  20165. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20166. (exit $ac_status); } && {
  20167. test -z "$ac_c_werror_flag" ||
  20168. test ! -s conftest.err
  20169. } && test -s conftest.$ac_objext; then
  20170. ac_cv_c_const=yes
  20171. else
  20172. $as_echo "$as_me: failed program was:" >&5
  20173. sed 's/^/| /' conftest.$ac_ext >&5
  20174. ac_cv_c_const=no
  20175. fi
  20176. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20177. fi
  20178. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  20179. $as_echo "$ac_cv_c_const" >&6; }
  20180. if test $ac_cv_c_const = no; then
  20181. cat >>confdefs.h <<\_ACEOF
  20182. #define const /**/
  20183. _ACEOF
  20184. fi
  20185. { $as_echo "$as_me:$LINENO: checking for inline" >&5
  20186. $as_echo_n "checking for inline... " >&6; }
  20187. if test "${ac_cv_c_inline+set}" = set; then
  20188. $as_echo_n "(cached) " >&6
  20189. else
  20190. ac_cv_c_inline=no
  20191. for ac_kw in inline __inline__ __inline; do
  20192. cat >conftest.$ac_ext <<_ACEOF
  20193. /* confdefs.h. */
  20194. _ACEOF
  20195. cat confdefs.h >>conftest.$ac_ext
  20196. cat >>conftest.$ac_ext <<_ACEOF
  20197. /* end confdefs.h. */
  20198. #ifndef __cplusplus
  20199. typedef int foo_t;
  20200. static $ac_kw foo_t static_foo () {return 0; }
  20201. $ac_kw foo_t foo () {return 0; }
  20202. #endif
  20203. _ACEOF
  20204. rm -f conftest.$ac_objext
  20205. if { (ac_try="$ac_compile"
  20206. case "(($ac_try" in
  20207. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20208. *) ac_try_echo=$ac_try;;
  20209. esac
  20210. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20211. $as_echo "$ac_try_echo") >&5
  20212. (eval "$ac_compile") 2>conftest.er1
  20213. ac_status=$?
  20214. grep -v '^ *+' conftest.er1 >conftest.err
  20215. rm -f conftest.er1
  20216. cat conftest.err >&5
  20217. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20218. (exit $ac_status); } && {
  20219. test -z "$ac_c_werror_flag" ||
  20220. test ! -s conftest.err
  20221. } && test -s conftest.$ac_objext; then
  20222. ac_cv_c_inline=$ac_kw
  20223. else
  20224. $as_echo "$as_me: failed program was:" >&5
  20225. sed 's/^/| /' conftest.$ac_ext >&5
  20226. fi
  20227. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20228. test "$ac_cv_c_inline" != no && break
  20229. done
  20230. fi
  20231. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  20232. $as_echo "$ac_cv_c_inline" >&6; }
  20233. case $ac_cv_c_inline in
  20234. inline | yes) ;;
  20235. *)
  20236. case $ac_cv_c_inline in
  20237. no) ac_val=;;
  20238. *) ac_val=$ac_cv_c_inline;;
  20239. esac
  20240. cat >>confdefs.h <<_ACEOF
  20241. #ifndef __cplusplus
  20242. #define inline $ac_val
  20243. #endif
  20244. _ACEOF
  20245. ;;
  20246. esac
  20247. # Check whether --enable-largefile was given.
  20248. if test "${enable_largefile+set}" = set; then
  20249. enableval=$enable_largefile;
  20250. fi
  20251. if test "$enable_largefile" != no; then
  20252. { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  20253. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  20254. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  20255. $as_echo_n "(cached) " >&6
  20256. else
  20257. ac_cv_sys_largefile_CC=no
  20258. if test "$GCC" != yes; then
  20259. ac_save_CC=$CC
  20260. while :; do
  20261. # IRIX 6.2 and later do not support large files by default,
  20262. # so use the C compiler's -n32 option if that helps.
  20263. cat >conftest.$ac_ext <<_ACEOF
  20264. /* confdefs.h. */
  20265. _ACEOF
  20266. cat confdefs.h >>conftest.$ac_ext
  20267. cat >>conftest.$ac_ext <<_ACEOF
  20268. /* end confdefs.h. */
  20269. #include <sys/types.h>
  20270. /* Check that off_t can represent 2**63 - 1 correctly.
  20271. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20272. since some C++ compilers masquerading as C compilers
  20273. incorrectly reject 9223372036854775807. */
  20274. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20275. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20276. && LARGE_OFF_T % 2147483647 == 1)
  20277. ? 1 : -1];
  20278. int
  20279. main ()
  20280. {
  20281. ;
  20282. return 0;
  20283. }
  20284. _ACEOF
  20285. rm -f conftest.$ac_objext
  20286. if { (ac_try="$ac_compile"
  20287. case "(($ac_try" in
  20288. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20289. *) ac_try_echo=$ac_try;;
  20290. esac
  20291. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20292. $as_echo "$ac_try_echo") >&5
  20293. (eval "$ac_compile") 2>conftest.er1
  20294. ac_status=$?
  20295. grep -v '^ *+' conftest.er1 >conftest.err
  20296. rm -f conftest.er1
  20297. cat conftest.err >&5
  20298. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20299. (exit $ac_status); } && {
  20300. test -z "$ac_c_werror_flag" ||
  20301. test ! -s conftest.err
  20302. } && test -s conftest.$ac_objext; then
  20303. break
  20304. else
  20305. $as_echo "$as_me: failed program was:" >&5
  20306. sed 's/^/| /' conftest.$ac_ext >&5
  20307. fi
  20308. rm -f core conftest.err conftest.$ac_objext
  20309. CC="$CC -n32"
  20310. rm -f conftest.$ac_objext
  20311. if { (ac_try="$ac_compile"
  20312. case "(($ac_try" in
  20313. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20314. *) ac_try_echo=$ac_try;;
  20315. esac
  20316. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20317. $as_echo "$ac_try_echo") >&5
  20318. (eval "$ac_compile") 2>conftest.er1
  20319. ac_status=$?
  20320. grep -v '^ *+' conftest.er1 >conftest.err
  20321. rm -f conftest.er1
  20322. cat conftest.err >&5
  20323. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20324. (exit $ac_status); } && {
  20325. test -z "$ac_c_werror_flag" ||
  20326. test ! -s conftest.err
  20327. } && test -s conftest.$ac_objext; then
  20328. ac_cv_sys_largefile_CC=' -n32'; break
  20329. else
  20330. $as_echo "$as_me: failed program was:" >&5
  20331. sed 's/^/| /' conftest.$ac_ext >&5
  20332. fi
  20333. rm -f core conftest.err conftest.$ac_objext
  20334. break
  20335. done
  20336. CC=$ac_save_CC
  20337. rm -f conftest.$ac_ext
  20338. fi
  20339. fi
  20340. { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  20341. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  20342. if test "$ac_cv_sys_largefile_CC" != no; then
  20343. CC=$CC$ac_cv_sys_largefile_CC
  20344. fi
  20345. { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  20346. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  20347. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  20348. $as_echo_n "(cached) " >&6
  20349. else
  20350. while :; do
  20351. cat >conftest.$ac_ext <<_ACEOF
  20352. /* confdefs.h. */
  20353. _ACEOF
  20354. cat confdefs.h >>conftest.$ac_ext
  20355. cat >>conftest.$ac_ext <<_ACEOF
  20356. /* end confdefs.h. */
  20357. #include <sys/types.h>
  20358. /* Check that off_t can represent 2**63 - 1 correctly.
  20359. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20360. since some C++ compilers masquerading as C compilers
  20361. incorrectly reject 9223372036854775807. */
  20362. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20363. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20364. && LARGE_OFF_T % 2147483647 == 1)
  20365. ? 1 : -1];
  20366. int
  20367. main ()
  20368. {
  20369. ;
  20370. return 0;
  20371. }
  20372. _ACEOF
  20373. rm -f conftest.$ac_objext
  20374. if { (ac_try="$ac_compile"
  20375. case "(($ac_try" in
  20376. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20377. *) ac_try_echo=$ac_try;;
  20378. esac
  20379. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20380. $as_echo "$ac_try_echo") >&5
  20381. (eval "$ac_compile") 2>conftest.er1
  20382. ac_status=$?
  20383. grep -v '^ *+' conftest.er1 >conftest.err
  20384. rm -f conftest.er1
  20385. cat conftest.err >&5
  20386. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20387. (exit $ac_status); } && {
  20388. test -z "$ac_c_werror_flag" ||
  20389. test ! -s conftest.err
  20390. } && test -s conftest.$ac_objext; then
  20391. ac_cv_sys_file_offset_bits=no; break
  20392. else
  20393. $as_echo "$as_me: failed program was:" >&5
  20394. sed 's/^/| /' conftest.$ac_ext >&5
  20395. fi
  20396. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20397. cat >conftest.$ac_ext <<_ACEOF
  20398. /* confdefs.h. */
  20399. _ACEOF
  20400. cat confdefs.h >>conftest.$ac_ext
  20401. cat >>conftest.$ac_ext <<_ACEOF
  20402. /* end confdefs.h. */
  20403. #define _FILE_OFFSET_BITS 64
  20404. #include <sys/types.h>
  20405. /* Check that off_t can represent 2**63 - 1 correctly.
  20406. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20407. since some C++ compilers masquerading as C compilers
  20408. incorrectly reject 9223372036854775807. */
  20409. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20410. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20411. && LARGE_OFF_T % 2147483647 == 1)
  20412. ? 1 : -1];
  20413. int
  20414. main ()
  20415. {
  20416. ;
  20417. return 0;
  20418. }
  20419. _ACEOF
  20420. rm -f conftest.$ac_objext
  20421. if { (ac_try="$ac_compile"
  20422. case "(($ac_try" in
  20423. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20424. *) ac_try_echo=$ac_try;;
  20425. esac
  20426. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20427. $as_echo "$ac_try_echo") >&5
  20428. (eval "$ac_compile") 2>conftest.er1
  20429. ac_status=$?
  20430. grep -v '^ *+' conftest.er1 >conftest.err
  20431. rm -f conftest.er1
  20432. cat conftest.err >&5
  20433. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20434. (exit $ac_status); } && {
  20435. test -z "$ac_c_werror_flag" ||
  20436. test ! -s conftest.err
  20437. } && test -s conftest.$ac_objext; then
  20438. ac_cv_sys_file_offset_bits=64; break
  20439. else
  20440. $as_echo "$as_me: failed program was:" >&5
  20441. sed 's/^/| /' conftest.$ac_ext >&5
  20442. fi
  20443. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20444. ac_cv_sys_file_offset_bits=unknown
  20445. break
  20446. done
  20447. fi
  20448. { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  20449. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  20450. case $ac_cv_sys_file_offset_bits in #(
  20451. no | unknown) ;;
  20452. *)
  20453. cat >>confdefs.h <<_ACEOF
  20454. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  20455. _ACEOF
  20456. ;;
  20457. esac
  20458. rm -rf conftest*
  20459. if test $ac_cv_sys_file_offset_bits = unknown; then
  20460. { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  20461. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  20462. if test "${ac_cv_sys_large_files+set}" = set; then
  20463. $as_echo_n "(cached) " >&6
  20464. else
  20465. while :; do
  20466. cat >conftest.$ac_ext <<_ACEOF
  20467. /* confdefs.h. */
  20468. _ACEOF
  20469. cat confdefs.h >>conftest.$ac_ext
  20470. cat >>conftest.$ac_ext <<_ACEOF
  20471. /* end confdefs.h. */
  20472. #include <sys/types.h>
  20473. /* Check that off_t can represent 2**63 - 1 correctly.
  20474. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20475. since some C++ compilers masquerading as C compilers
  20476. incorrectly reject 9223372036854775807. */
  20477. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20478. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20479. && LARGE_OFF_T % 2147483647 == 1)
  20480. ? 1 : -1];
  20481. int
  20482. main ()
  20483. {
  20484. ;
  20485. return 0;
  20486. }
  20487. _ACEOF
  20488. rm -f conftest.$ac_objext
  20489. if { (ac_try="$ac_compile"
  20490. case "(($ac_try" in
  20491. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20492. *) ac_try_echo=$ac_try;;
  20493. esac
  20494. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20495. $as_echo "$ac_try_echo") >&5
  20496. (eval "$ac_compile") 2>conftest.er1
  20497. ac_status=$?
  20498. grep -v '^ *+' conftest.er1 >conftest.err
  20499. rm -f conftest.er1
  20500. cat conftest.err >&5
  20501. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20502. (exit $ac_status); } && {
  20503. test -z "$ac_c_werror_flag" ||
  20504. test ! -s conftest.err
  20505. } && test -s conftest.$ac_objext; then
  20506. ac_cv_sys_large_files=no; break
  20507. else
  20508. $as_echo "$as_me: failed program was:" >&5
  20509. sed 's/^/| /' conftest.$ac_ext >&5
  20510. fi
  20511. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20512. cat >conftest.$ac_ext <<_ACEOF
  20513. /* confdefs.h. */
  20514. _ACEOF
  20515. cat confdefs.h >>conftest.$ac_ext
  20516. cat >>conftest.$ac_ext <<_ACEOF
  20517. /* end confdefs.h. */
  20518. #define _LARGE_FILES 1
  20519. #include <sys/types.h>
  20520. /* Check that off_t can represent 2**63 - 1 correctly.
  20521. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20522. since some C++ compilers masquerading as C compilers
  20523. incorrectly reject 9223372036854775807. */
  20524. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20525. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20526. && LARGE_OFF_T % 2147483647 == 1)
  20527. ? 1 : -1];
  20528. int
  20529. main ()
  20530. {
  20531. ;
  20532. return 0;
  20533. }
  20534. _ACEOF
  20535. rm -f conftest.$ac_objext
  20536. if { (ac_try="$ac_compile"
  20537. case "(($ac_try" in
  20538. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20539. *) ac_try_echo=$ac_try;;
  20540. esac
  20541. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20542. $as_echo "$ac_try_echo") >&5
  20543. (eval "$ac_compile") 2>conftest.er1
  20544. ac_status=$?
  20545. grep -v '^ *+' conftest.er1 >conftest.err
  20546. rm -f conftest.er1
  20547. cat conftest.err >&5
  20548. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20549. (exit $ac_status); } && {
  20550. test -z "$ac_c_werror_flag" ||
  20551. test ! -s conftest.err
  20552. } && test -s conftest.$ac_objext; then
  20553. ac_cv_sys_large_files=1; break
  20554. else
  20555. $as_echo "$as_me: failed program was:" >&5
  20556. sed 's/^/| /' conftest.$ac_ext >&5
  20557. fi
  20558. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20559. ac_cv_sys_large_files=unknown
  20560. break
  20561. done
  20562. fi
  20563. { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  20564. $as_echo "$ac_cv_sys_large_files" >&6; }
  20565. case $ac_cv_sys_large_files in #(
  20566. no | unknown) ;;
  20567. *)
  20568. cat >>confdefs.h <<_ACEOF
  20569. #define _LARGE_FILES $ac_cv_sys_large_files
  20570. _ACEOF
  20571. ;;
  20572. esac
  20573. rm -rf conftest*
  20574. fi
  20575. fi
  20576. { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  20577. $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  20578. if test "${ac_cv_sys_largefile_source+set}" = set; then
  20579. $as_echo_n "(cached) " >&6
  20580. else
  20581. while :; do
  20582. cat >conftest.$ac_ext <<_ACEOF
  20583. /* confdefs.h. */
  20584. _ACEOF
  20585. cat confdefs.h >>conftest.$ac_ext
  20586. cat >>conftest.$ac_ext <<_ACEOF
  20587. /* end confdefs.h. */
  20588. #include <sys/types.h> /* for off_t */
  20589. #include <stdio.h>
  20590. int
  20591. main ()
  20592. {
  20593. int (*fp) (FILE *, off_t, int) = fseeko;
  20594. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  20595. ;
  20596. return 0;
  20597. }
  20598. _ACEOF
  20599. rm -f conftest.$ac_objext conftest$ac_exeext
  20600. if { (ac_try="$ac_link"
  20601. case "(($ac_try" in
  20602. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20603. *) ac_try_echo=$ac_try;;
  20604. esac
  20605. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20606. $as_echo "$ac_try_echo") >&5
  20607. (eval "$ac_link") 2>conftest.er1
  20608. ac_status=$?
  20609. grep -v '^ *+' conftest.er1 >conftest.err
  20610. rm -f conftest.er1
  20611. cat conftest.err >&5
  20612. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20613. (exit $ac_status); } && {
  20614. test -z "$ac_c_werror_flag" ||
  20615. test ! -s conftest.err
  20616. } && test -s conftest$ac_exeext && {
  20617. test "$cross_compiling" = yes ||
  20618. $as_test_x conftest$ac_exeext
  20619. }; then
  20620. ac_cv_sys_largefile_source=no; break
  20621. else
  20622. $as_echo "$as_me: failed program was:" >&5
  20623. sed 's/^/| /' conftest.$ac_ext >&5
  20624. fi
  20625. rm -rf conftest.dSYM
  20626. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20627. conftest$ac_exeext conftest.$ac_ext
  20628. cat >conftest.$ac_ext <<_ACEOF
  20629. /* confdefs.h. */
  20630. _ACEOF
  20631. cat confdefs.h >>conftest.$ac_ext
  20632. cat >>conftest.$ac_ext <<_ACEOF
  20633. /* end confdefs.h. */
  20634. #define _LARGEFILE_SOURCE 1
  20635. #include <sys/types.h> /* for off_t */
  20636. #include <stdio.h>
  20637. int
  20638. main ()
  20639. {
  20640. int (*fp) (FILE *, off_t, int) = fseeko;
  20641. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  20642. ;
  20643. return 0;
  20644. }
  20645. _ACEOF
  20646. rm -f conftest.$ac_objext conftest$ac_exeext
  20647. if { (ac_try="$ac_link"
  20648. case "(($ac_try" in
  20649. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20650. *) ac_try_echo=$ac_try;;
  20651. esac
  20652. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20653. $as_echo "$ac_try_echo") >&5
  20654. (eval "$ac_link") 2>conftest.er1
  20655. ac_status=$?
  20656. grep -v '^ *+' conftest.er1 >conftest.err
  20657. rm -f conftest.er1
  20658. cat conftest.err >&5
  20659. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20660. (exit $ac_status); } && {
  20661. test -z "$ac_c_werror_flag" ||
  20662. test ! -s conftest.err
  20663. } && test -s conftest$ac_exeext && {
  20664. test "$cross_compiling" = yes ||
  20665. $as_test_x conftest$ac_exeext
  20666. }; then
  20667. ac_cv_sys_largefile_source=1; break
  20668. else
  20669. $as_echo "$as_me: failed program was:" >&5
  20670. sed 's/^/| /' conftest.$ac_ext >&5
  20671. fi
  20672. rm -rf conftest.dSYM
  20673. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20674. conftest$ac_exeext conftest.$ac_ext
  20675. ac_cv_sys_largefile_source=unknown
  20676. break
  20677. done
  20678. fi
  20679. { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
  20680. $as_echo "$ac_cv_sys_largefile_source" >&6; }
  20681. case $ac_cv_sys_largefile_source in #(
  20682. no | unknown) ;;
  20683. *)
  20684. cat >>confdefs.h <<_ACEOF
  20685. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  20686. _ACEOF
  20687. ;;
  20688. esac
  20689. rm -rf conftest*
  20690. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  20691. # in glibc 2.1.3, but that breaks too many other things.
  20692. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  20693. if test $ac_cv_sys_largefile_source != unknown; then
  20694. cat >>confdefs.h <<\_ACEOF
  20695. #define HAVE_FSEEKO 1
  20696. _ACEOF
  20697. fi
  20698. { $as_echo "$as_me:$LINENO: checking for u_int8_t" >&5
  20699. $as_echo_n "checking for u_int8_t... " >&6; }
  20700. if test "${ac_cv_type_u_int8_t+set}" = set; then
  20701. $as_echo_n "(cached) " >&6
  20702. else
  20703. ac_cv_type_u_int8_t=no
  20704. cat >conftest.$ac_ext <<_ACEOF
  20705. /* confdefs.h. */
  20706. _ACEOF
  20707. cat confdefs.h >>conftest.$ac_ext
  20708. cat >>conftest.$ac_ext <<_ACEOF
  20709. /* end confdefs.h. */
  20710. $ac_includes_default
  20711. int
  20712. main ()
  20713. {
  20714. if (sizeof (u_int8_t))
  20715. return 0;
  20716. ;
  20717. return 0;
  20718. }
  20719. _ACEOF
  20720. rm -f conftest.$ac_objext
  20721. if { (ac_try="$ac_compile"
  20722. case "(($ac_try" in
  20723. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20724. *) ac_try_echo=$ac_try;;
  20725. esac
  20726. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20727. $as_echo "$ac_try_echo") >&5
  20728. (eval "$ac_compile") 2>conftest.er1
  20729. ac_status=$?
  20730. grep -v '^ *+' conftest.er1 >conftest.err
  20731. rm -f conftest.er1
  20732. cat conftest.err >&5
  20733. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20734. (exit $ac_status); } && {
  20735. test -z "$ac_c_werror_flag" ||
  20736. test ! -s conftest.err
  20737. } && test -s conftest.$ac_objext; then
  20738. cat >conftest.$ac_ext <<_ACEOF
  20739. /* confdefs.h. */
  20740. _ACEOF
  20741. cat confdefs.h >>conftest.$ac_ext
  20742. cat >>conftest.$ac_ext <<_ACEOF
  20743. /* end confdefs.h. */
  20744. $ac_includes_default
  20745. int
  20746. main ()
  20747. {
  20748. if (sizeof ((u_int8_t)))
  20749. return 0;
  20750. ;
  20751. return 0;
  20752. }
  20753. _ACEOF
  20754. rm -f conftest.$ac_objext
  20755. if { (ac_try="$ac_compile"
  20756. case "(($ac_try" in
  20757. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20758. *) ac_try_echo=$ac_try;;
  20759. esac
  20760. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20761. $as_echo "$ac_try_echo") >&5
  20762. (eval "$ac_compile") 2>conftest.er1
  20763. ac_status=$?
  20764. grep -v '^ *+' conftest.er1 >conftest.err
  20765. rm -f conftest.er1
  20766. cat conftest.err >&5
  20767. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20768. (exit $ac_status); } && {
  20769. test -z "$ac_c_werror_flag" ||
  20770. test ! -s conftest.err
  20771. } && test -s conftest.$ac_objext; then
  20772. :
  20773. else
  20774. $as_echo "$as_me: failed program was:" >&5
  20775. sed 's/^/| /' conftest.$ac_ext >&5
  20776. ac_cv_type_u_int8_t=yes
  20777. fi
  20778. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20779. else
  20780. $as_echo "$as_me: failed program was:" >&5
  20781. sed 's/^/| /' conftest.$ac_ext >&5
  20782. fi
  20783. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20784. fi
  20785. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
  20786. $as_echo "$ac_cv_type_u_int8_t" >&6; }
  20787. if test $ac_cv_type_u_int8_t = yes; then
  20788. :
  20789. else
  20790. cat >>confdefs.h <<_ACEOF
  20791. #define u_int8_t uint8_t
  20792. _ACEOF
  20793. fi
  20794. { $as_echo "$as_me:$LINENO: checking for u_int16_t" >&5
  20795. $as_echo_n "checking for u_int16_t... " >&6; }
  20796. if test "${ac_cv_type_u_int16_t+set}" = set; then
  20797. $as_echo_n "(cached) " >&6
  20798. else
  20799. ac_cv_type_u_int16_t=no
  20800. cat >conftest.$ac_ext <<_ACEOF
  20801. /* confdefs.h. */
  20802. _ACEOF
  20803. cat confdefs.h >>conftest.$ac_ext
  20804. cat >>conftest.$ac_ext <<_ACEOF
  20805. /* end confdefs.h. */
  20806. $ac_includes_default
  20807. int
  20808. main ()
  20809. {
  20810. if (sizeof (u_int16_t))
  20811. return 0;
  20812. ;
  20813. return 0;
  20814. }
  20815. _ACEOF
  20816. rm -f conftest.$ac_objext
  20817. if { (ac_try="$ac_compile"
  20818. case "(($ac_try" in
  20819. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20820. *) ac_try_echo=$ac_try;;
  20821. esac
  20822. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20823. $as_echo "$ac_try_echo") >&5
  20824. (eval "$ac_compile") 2>conftest.er1
  20825. ac_status=$?
  20826. grep -v '^ *+' conftest.er1 >conftest.err
  20827. rm -f conftest.er1
  20828. cat conftest.err >&5
  20829. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20830. (exit $ac_status); } && {
  20831. test -z "$ac_c_werror_flag" ||
  20832. test ! -s conftest.err
  20833. } && test -s conftest.$ac_objext; then
  20834. cat >conftest.$ac_ext <<_ACEOF
  20835. /* confdefs.h. */
  20836. _ACEOF
  20837. cat confdefs.h >>conftest.$ac_ext
  20838. cat >>conftest.$ac_ext <<_ACEOF
  20839. /* end confdefs.h. */
  20840. $ac_includes_default
  20841. int
  20842. main ()
  20843. {
  20844. if (sizeof ((u_int16_t)))
  20845. return 0;
  20846. ;
  20847. return 0;
  20848. }
  20849. _ACEOF
  20850. rm -f conftest.$ac_objext
  20851. if { (ac_try="$ac_compile"
  20852. case "(($ac_try" in
  20853. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20854. *) ac_try_echo=$ac_try;;
  20855. esac
  20856. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20857. $as_echo "$ac_try_echo") >&5
  20858. (eval "$ac_compile") 2>conftest.er1
  20859. ac_status=$?
  20860. grep -v '^ *+' conftest.er1 >conftest.err
  20861. rm -f conftest.er1
  20862. cat conftest.err >&5
  20863. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20864. (exit $ac_status); } && {
  20865. test -z "$ac_c_werror_flag" ||
  20866. test ! -s conftest.err
  20867. } && test -s conftest.$ac_objext; then
  20868. :
  20869. else
  20870. $as_echo "$as_me: failed program was:" >&5
  20871. sed 's/^/| /' conftest.$ac_ext >&5
  20872. ac_cv_type_u_int16_t=yes
  20873. fi
  20874. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20875. else
  20876. $as_echo "$as_me: failed program was:" >&5
  20877. sed 's/^/| /' conftest.$ac_ext >&5
  20878. fi
  20879. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20880. fi
  20881. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
  20882. $as_echo "$ac_cv_type_u_int16_t" >&6; }
  20883. if test $ac_cv_type_u_int16_t = yes; then
  20884. :
  20885. else
  20886. cat >>confdefs.h <<_ACEOF
  20887. #define u_int16_t uint16_t
  20888. _ACEOF
  20889. fi
  20890. { $as_echo "$as_me:$LINENO: checking for u_int32_t" >&5
  20891. $as_echo_n "checking for u_int32_t... " >&6; }
  20892. if test "${ac_cv_type_u_int32_t+set}" = set; then
  20893. $as_echo_n "(cached) " >&6
  20894. else
  20895. ac_cv_type_u_int32_t=no
  20896. cat >conftest.$ac_ext <<_ACEOF
  20897. /* confdefs.h. */
  20898. _ACEOF
  20899. cat confdefs.h >>conftest.$ac_ext
  20900. cat >>conftest.$ac_ext <<_ACEOF
  20901. /* end confdefs.h. */
  20902. $ac_includes_default
  20903. int
  20904. main ()
  20905. {
  20906. if (sizeof (u_int32_t))
  20907. return 0;
  20908. ;
  20909. return 0;
  20910. }
  20911. _ACEOF
  20912. rm -f conftest.$ac_objext
  20913. if { (ac_try="$ac_compile"
  20914. case "(($ac_try" in
  20915. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20916. *) ac_try_echo=$ac_try;;
  20917. esac
  20918. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20919. $as_echo "$ac_try_echo") >&5
  20920. (eval "$ac_compile") 2>conftest.er1
  20921. ac_status=$?
  20922. grep -v '^ *+' conftest.er1 >conftest.err
  20923. rm -f conftest.er1
  20924. cat conftest.err >&5
  20925. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20926. (exit $ac_status); } && {
  20927. test -z "$ac_c_werror_flag" ||
  20928. test ! -s conftest.err
  20929. } && test -s conftest.$ac_objext; then
  20930. cat >conftest.$ac_ext <<_ACEOF
  20931. /* confdefs.h. */
  20932. _ACEOF
  20933. cat confdefs.h >>conftest.$ac_ext
  20934. cat >>conftest.$ac_ext <<_ACEOF
  20935. /* end confdefs.h. */
  20936. $ac_includes_default
  20937. int
  20938. main ()
  20939. {
  20940. if (sizeof ((u_int32_t)))
  20941. return 0;
  20942. ;
  20943. return 0;
  20944. }
  20945. _ACEOF
  20946. rm -f conftest.$ac_objext
  20947. if { (ac_try="$ac_compile"
  20948. case "(($ac_try" in
  20949. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20950. *) ac_try_echo=$ac_try;;
  20951. esac
  20952. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20953. $as_echo "$ac_try_echo") >&5
  20954. (eval "$ac_compile") 2>conftest.er1
  20955. ac_status=$?
  20956. grep -v '^ *+' conftest.er1 >conftest.err
  20957. rm -f conftest.er1
  20958. cat conftest.err >&5
  20959. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20960. (exit $ac_status); } && {
  20961. test -z "$ac_c_werror_flag" ||
  20962. test ! -s conftest.err
  20963. } && test -s conftest.$ac_objext; then
  20964. :
  20965. else
  20966. $as_echo "$as_me: failed program was:" >&5
  20967. sed 's/^/| /' conftest.$ac_ext >&5
  20968. ac_cv_type_u_int32_t=yes
  20969. fi
  20970. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20971. else
  20972. $as_echo "$as_me: failed program was:" >&5
  20973. sed 's/^/| /' conftest.$ac_ext >&5
  20974. fi
  20975. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20976. fi
  20977. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
  20978. $as_echo "$ac_cv_type_u_int32_t" >&6; }
  20979. if test $ac_cv_type_u_int32_t = yes; then
  20980. :
  20981. else
  20982. cat >>confdefs.h <<_ACEOF
  20983. #define u_int32_t uint32_t
  20984. _ACEOF
  20985. fi
  20986. { $as_echo "$as_me:$LINENO: checking for u_int64_t" >&5
  20987. $as_echo_n "checking for u_int64_t... " >&6; }
  20988. if test "${ac_cv_type_u_int64_t+set}" = set; then
  20989. $as_echo_n "(cached) " >&6
  20990. else
  20991. ac_cv_type_u_int64_t=no
  20992. cat >conftest.$ac_ext <<_ACEOF
  20993. /* confdefs.h. */
  20994. _ACEOF
  20995. cat confdefs.h >>conftest.$ac_ext
  20996. cat >>conftest.$ac_ext <<_ACEOF
  20997. /* end confdefs.h. */
  20998. $ac_includes_default
  20999. int
  21000. main ()
  21001. {
  21002. if (sizeof (u_int64_t))
  21003. return 0;
  21004. ;
  21005. return 0;
  21006. }
  21007. _ACEOF
  21008. rm -f conftest.$ac_objext
  21009. if { (ac_try="$ac_compile"
  21010. case "(($ac_try" in
  21011. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21012. *) ac_try_echo=$ac_try;;
  21013. esac
  21014. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21015. $as_echo "$ac_try_echo") >&5
  21016. (eval "$ac_compile") 2>conftest.er1
  21017. ac_status=$?
  21018. grep -v '^ *+' conftest.er1 >conftest.err
  21019. rm -f conftest.er1
  21020. cat conftest.err >&5
  21021. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21022. (exit $ac_status); } && {
  21023. test -z "$ac_c_werror_flag" ||
  21024. test ! -s conftest.err
  21025. } && test -s conftest.$ac_objext; then
  21026. cat >conftest.$ac_ext <<_ACEOF
  21027. /* confdefs.h. */
  21028. _ACEOF
  21029. cat confdefs.h >>conftest.$ac_ext
  21030. cat >>conftest.$ac_ext <<_ACEOF
  21031. /* end confdefs.h. */
  21032. $ac_includes_default
  21033. int
  21034. main ()
  21035. {
  21036. if (sizeof ((u_int64_t)))
  21037. return 0;
  21038. ;
  21039. return 0;
  21040. }
  21041. _ACEOF
  21042. rm -f conftest.$ac_objext
  21043. if { (ac_try="$ac_compile"
  21044. case "(($ac_try" in
  21045. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21046. *) ac_try_echo=$ac_try;;
  21047. esac
  21048. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21049. $as_echo "$ac_try_echo") >&5
  21050. (eval "$ac_compile") 2>conftest.er1
  21051. ac_status=$?
  21052. grep -v '^ *+' conftest.er1 >conftest.err
  21053. rm -f conftest.er1
  21054. cat conftest.err >&5
  21055. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21056. (exit $ac_status); } && {
  21057. test -z "$ac_c_werror_flag" ||
  21058. test ! -s conftest.err
  21059. } && test -s conftest.$ac_objext; then
  21060. :
  21061. else
  21062. $as_echo "$as_me: failed program was:" >&5
  21063. sed 's/^/| /' conftest.$ac_ext >&5
  21064. ac_cv_type_u_int64_t=yes
  21065. fi
  21066. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21067. else
  21068. $as_echo "$as_me: failed program was:" >&5
  21069. sed 's/^/| /' conftest.$ac_ext >&5
  21070. fi
  21071. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21072. fi
  21073. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
  21074. $as_echo "$ac_cv_type_u_int64_t" >&6; }
  21075. if test $ac_cv_type_u_int64_t = yes; then
  21076. :
  21077. else
  21078. cat >>confdefs.h <<_ACEOF
  21079. #define u_int64_t uint64_t
  21080. _ACEOF
  21081. fi
  21082. { $as_echo "$as_me:$LINENO: checking for $CC -Wextra support" >&5
  21083. $as_echo_n "checking for $CC -Wextra support... " >&6; }
  21084. OLD_CFLAGS=$CFLAGS
  21085. CFLAGS="$CFLAGS -Wextra"
  21086. wextra=""
  21087. cat >conftest.$ac_ext <<_ACEOF
  21088. #include <stdlib.h>
  21089. int main(int argc, char *argv) { return(0); }
  21090. _ACEOF
  21091. rm -f conftest.$ac_objext
  21092. if { (ac_try="$ac_compile"
  21093. case "(($ac_try" in
  21094. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21095. *) ac_try_echo=$ac_try;;
  21096. esac
  21097. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21098. $as_echo "$ac_try_echo") >&5
  21099. (eval "$ac_compile") 2>conftest.er1
  21100. ac_status=$?
  21101. grep -v '^ *+' conftest.er1 >conftest.err
  21102. rm -f conftest.er1
  21103. cat conftest.err >&5
  21104. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21105. (exit $ac_status); } && {
  21106. test -z "$ac_c_werror_flag" ||
  21107. test ! -s conftest.err
  21108. } && test -s conftest.$ac_objext; then
  21109. { $as_echo "$as_me:$LINENO: result: yes" >&5
  21110. $as_echo "yes" >&6; }
  21111. wextra="-Wextra"
  21112. else
  21113. $as_echo "$as_me: failed program was:" >&5
  21114. sed 's/^/| /' conftest.$ac_ext >&5
  21115. { $as_echo "$as_me:$LINENO: result: no" >&5
  21116. $as_echo "no" >&6; }
  21117. fi
  21118. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21119. CFLAGS="$OLD_CFLAGS $wextra"
  21120. { $as_echo "$as_me:$LINENO: checking for $CC -Wno-variadic-macros support" >&5
  21121. $as_echo_n "checking for $CC -Wno-variadic-macros support... " >&6; }
  21122. OLD_CFLAGS=$CFLAGS
  21123. CFLAGS="$CFLAGS -Wno-variadic-macros"
  21124. wno_variadic_macros=""
  21125. cat >conftest.$ac_ext <<_ACEOF
  21126. #include <stdlib.h>
  21127. int main(int argc, char *argv) { return(0); }
  21128. _ACEOF
  21129. rm -f conftest.$ac_objext
  21130. if { (ac_try="$ac_compile"
  21131. case "(($ac_try" in
  21132. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21133. *) ac_try_echo=$ac_try;;
  21134. esac
  21135. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21136. $as_echo "$ac_try_echo") >&5
  21137. (eval "$ac_compile") 2>conftest.er1
  21138. ac_status=$?
  21139. grep -v '^ *+' conftest.er1 >conftest.err
  21140. rm -f conftest.er1
  21141. cat conftest.err >&5
  21142. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21143. (exit $ac_status); } && {
  21144. test -z "$ac_c_werror_flag" ||
  21145. test ! -s conftest.err
  21146. } && test -s conftest.$ac_objext; then
  21147. { $as_echo "$as_me:$LINENO: result: yes" >&5
  21148. $as_echo "yes" >&6; }
  21149. wno_variadic_macros="-Wno-variadic-macros"
  21150. else
  21151. $as_echo "$as_me: failed program was:" >&5
  21152. sed 's/^/| /' conftest.$ac_ext >&5
  21153. { $as_echo "$as_me:$LINENO: result: no" >&5
  21154. $as_echo "no" >&6; }
  21155. fi
  21156. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21157. CFLAGS="$OLD_CFLAGS $wno_variadic_macros"
  21158. { $as_echo "$as_me:$LINENO: checking for $CC -Wfatal-errors support" >&5
  21159. $as_echo_n "checking for $CC -Wfatal-errors support... " >&6; }
  21160. OLD_CFLAGS=$CFLAGS
  21161. CFLAGS="$CFLAGS -Wfatal-errors"
  21162. wfatal_errors=""
  21163. cat >conftest.$ac_ext <<_ACEOF
  21164. #include <stdlib.h>
  21165. int main(int argc, char *argv) { return(0); }
  21166. _ACEOF
  21167. rm -f conftest.$ac_objext
  21168. if { (ac_try="$ac_compile"
  21169. case "(($ac_try" in
  21170. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21171. *) ac_try_echo=$ac_try;;
  21172. esac
  21173. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21174. $as_echo "$ac_try_echo") >&5
  21175. (eval "$ac_compile") 2>conftest.er1
  21176. ac_status=$?
  21177. grep -v '^ *+' conftest.er1 >conftest.err
  21178. rm -f conftest.er1
  21179. cat conftest.err >&5
  21180. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21181. (exit $ac_status); } && {
  21182. test -z "$ac_c_werror_flag" ||
  21183. test ! -s conftest.err
  21184. } && test -s conftest.$ac_objext; then
  21185. { $as_echo "$as_me:$LINENO: result: yes" >&5
  21186. $as_echo "yes" >&6; }
  21187. wfatal_errors="-Wfatal-errors"
  21188. else
  21189. $as_echo "$as_me: failed program was:" >&5
  21190. sed 's/^/| /' conftest.$ac_ext >&5
  21191. { $as_echo "$as_me:$LINENO: result: no" >&5
  21192. $as_echo "no" >&6; }
  21193. fi
  21194. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21195. CFLAGS="$OLD_CFLAGS $wfatal_errors"
  21196. 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 stdint.h sys/select.h netinet/in.h poll.h sys/poll.h unistd.h sys/param.h
  21197. do
  21198. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  21199. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21200. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  21201. $as_echo_n "checking for $ac_header... " >&6; }
  21202. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21203. $as_echo_n "(cached) " >&6
  21204. fi
  21205. ac_res=`eval 'as_val=${'$as_ac_Header'}
  21206. $as_echo "$as_val"'`
  21207. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  21208. $as_echo "$ac_res" >&6; }
  21209. else
  21210. # Is the header compilable?
  21211. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  21212. $as_echo_n "checking $ac_header usability... " >&6; }
  21213. cat >conftest.$ac_ext <<_ACEOF
  21214. /* confdefs.h. */
  21215. _ACEOF
  21216. cat confdefs.h >>conftest.$ac_ext
  21217. cat >>conftest.$ac_ext <<_ACEOF
  21218. /* end confdefs.h. */
  21219. $ac_includes_default
  21220. #include <$ac_header>
  21221. _ACEOF
  21222. rm -f conftest.$ac_objext
  21223. if { (ac_try="$ac_compile"
  21224. case "(($ac_try" in
  21225. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21226. *) ac_try_echo=$ac_try;;
  21227. esac
  21228. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21229. $as_echo "$ac_try_echo") >&5
  21230. (eval "$ac_compile") 2>conftest.er1
  21231. ac_status=$?
  21232. grep -v '^ *+' conftest.er1 >conftest.err
  21233. rm -f conftest.er1
  21234. cat conftest.err >&5
  21235. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21236. (exit $ac_status); } && {
  21237. test -z "$ac_c_werror_flag" ||
  21238. test ! -s conftest.err
  21239. } && test -s conftest.$ac_objext; then
  21240. ac_header_compiler=yes
  21241. else
  21242. $as_echo "$as_me: failed program was:" >&5
  21243. sed 's/^/| /' conftest.$ac_ext >&5
  21244. ac_header_compiler=no
  21245. fi
  21246. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21247. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  21248. $as_echo "$ac_header_compiler" >&6; }
  21249. # Is the header present?
  21250. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  21251. $as_echo_n "checking $ac_header presence... " >&6; }
  21252. cat >conftest.$ac_ext <<_ACEOF
  21253. /* confdefs.h. */
  21254. _ACEOF
  21255. cat confdefs.h >>conftest.$ac_ext
  21256. cat >>conftest.$ac_ext <<_ACEOF
  21257. /* end confdefs.h. */
  21258. #include <$ac_header>
  21259. _ACEOF
  21260. if { (ac_try="$ac_cpp conftest.$ac_ext"
  21261. case "(($ac_try" in
  21262. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21263. *) ac_try_echo=$ac_try;;
  21264. esac
  21265. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21266. $as_echo "$ac_try_echo") >&5
  21267. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  21268. ac_status=$?
  21269. grep -v '^ *+' conftest.er1 >conftest.err
  21270. rm -f conftest.er1
  21271. cat conftest.err >&5
  21272. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21273. (exit $ac_status); } >/dev/null && {
  21274. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  21275. test ! -s conftest.err
  21276. }; then
  21277. ac_header_preproc=yes
  21278. else
  21279. $as_echo "$as_me: failed program was:" >&5
  21280. sed 's/^/| /' conftest.$ac_ext >&5
  21281. ac_header_preproc=no
  21282. fi
  21283. rm -f conftest.err conftest.$ac_ext
  21284. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  21285. $as_echo "$ac_header_preproc" >&6; }
  21286. # So? What about this header?
  21287. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  21288. yes:no: )
  21289. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  21290. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  21291. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  21292. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  21293. ac_header_preproc=yes
  21294. ;;
  21295. no:yes:* )
  21296. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  21297. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  21298. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  21299. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  21300. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  21301. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  21302. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  21303. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  21304. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  21305. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  21306. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  21307. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  21308. ;;
  21309. esac
  21310. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  21311. $as_echo_n "checking for $ac_header... " >&6; }
  21312. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21313. $as_echo_n "(cached) " >&6
  21314. else
  21315. eval "$as_ac_Header=\$ac_header_preproc"
  21316. fi
  21317. ac_res=`eval 'as_val=${'$as_ac_Header'}
  21318. $as_echo "$as_val"'`
  21319. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  21320. $as_echo "$ac_res" >&6; }
  21321. fi
  21322. if test `eval 'as_val=${'$as_ac_Header'}
  21323. $as_echo "$as_val"'` = yes; then
  21324. cat >>confdefs.h <<_ACEOF
  21325. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  21326. _ACEOF
  21327. fi
  21328. done
  21329. for ac_header in sys/sysctl.h net/route.h
  21330. do
  21331. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  21332. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  21333. $as_echo_n "checking for $ac_header... " >&6; }
  21334. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21335. $as_echo_n "(cached) " >&6
  21336. else
  21337. cat >conftest.$ac_ext <<_ACEOF
  21338. /* confdefs.h. */
  21339. _ACEOF
  21340. cat confdefs.h >>conftest.$ac_ext
  21341. cat >>conftest.$ac_ext <<_ACEOF
  21342. /* end confdefs.h. */
  21343. #if HAVE_SYS_PARAM_H
  21344. #include <sys/param.h>
  21345. #endif
  21346. #if HAVE_SYS_TYPES_H
  21347. #include <sys/types.h>
  21348. #endif
  21349. #if HAVE_SYS_SOCKET_H
  21350. #include <sys/socket.h>
  21351. #endif
  21352. #include <$ac_header>
  21353. _ACEOF
  21354. rm -f conftest.$ac_objext
  21355. if { (ac_try="$ac_compile"
  21356. case "(($ac_try" in
  21357. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21358. *) ac_try_echo=$ac_try;;
  21359. esac
  21360. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21361. $as_echo "$ac_try_echo") >&5
  21362. (eval "$ac_compile") 2>conftest.er1
  21363. ac_status=$?
  21364. grep -v '^ *+' conftest.er1 >conftest.err
  21365. rm -f conftest.er1
  21366. cat conftest.err >&5
  21367. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21368. (exit $ac_status); } && {
  21369. test -z "$ac_c_werror_flag" ||
  21370. test ! -s conftest.err
  21371. } && test -s conftest.$ac_objext; then
  21372. eval "$as_ac_Header=yes"
  21373. else
  21374. $as_echo "$as_me: failed program was:" >&5
  21375. sed 's/^/| /' conftest.$ac_ext >&5
  21376. eval "$as_ac_Header=no"
  21377. fi
  21378. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21379. fi
  21380. ac_res=`eval 'as_val=${'$as_ac_Header'}
  21381. $as_echo "$as_val"'`
  21382. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  21383. $as_echo "$ac_res" >&6; }
  21384. if test `eval 'as_val=${'$as_ac_Header'}
  21385. $as_echo "$as_val"'` = yes; then
  21386. cat >>confdefs.h <<_ACEOF
  21387. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  21388. _ACEOF
  21389. fi
  21390. done
  21391. { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  21392. $as_echo_n "checking for socket in -lsocket... " >&6; }
  21393. if test "${ac_cv_lib_socket_socket+set}" = set; then
  21394. $as_echo_n "(cached) " >&6
  21395. else
  21396. ac_check_lib_save_LIBS=$LIBS
  21397. LIBS="-lsocket $LIBS"
  21398. cat >conftest.$ac_ext <<_ACEOF
  21399. /* confdefs.h. */
  21400. _ACEOF
  21401. cat confdefs.h >>conftest.$ac_ext
  21402. cat >>conftest.$ac_ext <<_ACEOF
  21403. /* end confdefs.h. */
  21404. /* Override any GCC internal prototype to avoid an error.
  21405. Use char because int might match the return type of a GCC
  21406. builtin and then its argument prototype would still apply. */
  21407. #ifdef __cplusplus
  21408. extern "C"
  21409. #endif
  21410. char socket ();
  21411. int
  21412. main ()
  21413. {
  21414. return socket ();
  21415. ;
  21416. return 0;
  21417. }
  21418. _ACEOF
  21419. rm -f conftest.$ac_objext conftest$ac_exeext
  21420. if { (ac_try="$ac_link"
  21421. case "(($ac_try" in
  21422. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21423. *) ac_try_echo=$ac_try;;
  21424. esac
  21425. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21426. $as_echo "$ac_try_echo") >&5
  21427. (eval "$ac_link") 2>conftest.er1
  21428. ac_status=$?
  21429. grep -v '^ *+' conftest.er1 >conftest.err
  21430. rm -f conftest.er1
  21431. cat conftest.err >&5
  21432. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21433. (exit $ac_status); } && {
  21434. test -z "$ac_c_werror_flag" ||
  21435. test ! -s conftest.err
  21436. } && test -s conftest$ac_exeext && {
  21437. test "$cross_compiling" = yes ||
  21438. $as_test_x conftest$ac_exeext
  21439. }; then
  21440. ac_cv_lib_socket_socket=yes
  21441. else
  21442. $as_echo "$as_me: failed program was:" >&5
  21443. sed 's/^/| /' conftest.$ac_ext >&5
  21444. ac_cv_lib_socket_socket=no
  21445. fi
  21446. rm -rf conftest.dSYM
  21447. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21448. conftest$ac_exeext conftest.$ac_ext
  21449. LIBS=$ac_check_lib_save_LIBS
  21450. fi
  21451. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  21452. $as_echo "$ac_cv_lib_socket_socket" >&6; }
  21453. if test $ac_cv_lib_socket_socket = yes; then
  21454. cat >>confdefs.h <<_ACEOF
  21455. #define HAVE_LIBSOCKET 1
  21456. _ACEOF
  21457. LIBS="-lsocket $LIBS"
  21458. fi
  21459. { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
  21460. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  21461. if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  21462. $as_echo_n "(cached) " >&6
  21463. else
  21464. ac_check_lib_save_LIBS=$LIBS
  21465. LIBS="-lnsl $LIBS"
  21466. cat >conftest.$ac_ext <<_ACEOF
  21467. /* confdefs.h. */
  21468. _ACEOF
  21469. cat confdefs.h >>conftest.$ac_ext
  21470. cat >>conftest.$ac_ext <<_ACEOF
  21471. /* end confdefs.h. */
  21472. /* Override any GCC internal prototype to avoid an error.
  21473. Use char because int might match the return type of a GCC
  21474. builtin and then its argument prototype would still apply. */
  21475. #ifdef __cplusplus
  21476. extern "C"
  21477. #endif
  21478. char gethostbyname ();
  21479. int
  21480. main ()
  21481. {
  21482. return gethostbyname ();
  21483. ;
  21484. return 0;
  21485. }
  21486. _ACEOF
  21487. rm -f conftest.$ac_objext conftest$ac_exeext
  21488. if { (ac_try="$ac_link"
  21489. case "(($ac_try" in
  21490. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21491. *) ac_try_echo=$ac_try;;
  21492. esac
  21493. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21494. $as_echo "$ac_try_echo") >&5
  21495. (eval "$ac_link") 2>conftest.er1
  21496. ac_status=$?
  21497. grep -v '^ *+' conftest.er1 >conftest.err
  21498. rm -f conftest.er1
  21499. cat conftest.err >&5
  21500. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21501. (exit $ac_status); } && {
  21502. test -z "$ac_c_werror_flag" ||
  21503. test ! -s conftest.err
  21504. } && test -s conftest$ac_exeext && {
  21505. test "$cross_compiling" = yes ||
  21506. $as_test_x conftest$ac_exeext
  21507. }; then
  21508. ac_cv_lib_nsl_gethostbyname=yes
  21509. else
  21510. $as_echo "$as_me: failed program was:" >&5
  21511. sed 's/^/| /' conftest.$ac_ext >&5
  21512. ac_cv_lib_nsl_gethostbyname=no
  21513. fi
  21514. rm -rf conftest.dSYM
  21515. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21516. conftest$ac_exeext conftest.$ac_ext
  21517. LIBS=$ac_check_lib_save_LIBS
  21518. fi
  21519. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
  21520. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  21521. if test $ac_cv_lib_nsl_gethostbyname = yes; then
  21522. cat >>confdefs.h <<_ACEOF
  21523. #define HAVE_LIBNSL 1
  21524. _ACEOF
  21525. LIBS="-lnsl $LIBS"
  21526. fi
  21527. { $as_echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
  21528. $as_echo_n "checking for nanosleep in -lrt... " >&6; }
  21529. if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
  21530. $as_echo_n "(cached) " >&6
  21531. else
  21532. ac_check_lib_save_LIBS=$LIBS
  21533. LIBS="-lrt $LIBS"
  21534. cat >conftest.$ac_ext <<_ACEOF
  21535. /* confdefs.h. */
  21536. _ACEOF
  21537. cat confdefs.h >>conftest.$ac_ext
  21538. cat >>conftest.$ac_ext <<_ACEOF
  21539. /* end confdefs.h. */
  21540. /* Override any GCC internal prototype to avoid an error.
  21541. Use char because int might match the return type of a GCC
  21542. builtin and then its argument prototype would still apply. */
  21543. #ifdef __cplusplus
  21544. extern "C"
  21545. #endif
  21546. char nanosleep ();
  21547. int
  21548. main ()
  21549. {
  21550. return nanosleep ();
  21551. ;
  21552. return 0;
  21553. }
  21554. _ACEOF
  21555. rm -f conftest.$ac_objext conftest$ac_exeext
  21556. if { (ac_try="$ac_link"
  21557. case "(($ac_try" in
  21558. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21559. *) ac_try_echo=$ac_try;;
  21560. esac
  21561. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21562. $as_echo "$ac_try_echo") >&5
  21563. (eval "$ac_link") 2>conftest.er1
  21564. ac_status=$?
  21565. grep -v '^ *+' conftest.er1 >conftest.err
  21566. rm -f conftest.er1
  21567. cat conftest.err >&5
  21568. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21569. (exit $ac_status); } && {
  21570. test -z "$ac_c_werror_flag" ||
  21571. test ! -s conftest.err
  21572. } && test -s conftest$ac_exeext && {
  21573. test "$cross_compiling" = yes ||
  21574. $as_test_x conftest$ac_exeext
  21575. }; then
  21576. ac_cv_lib_rt_nanosleep=yes
  21577. else
  21578. $as_echo "$as_me: failed program was:" >&5
  21579. sed 's/^/| /' conftest.$ac_ext >&5
  21580. ac_cv_lib_rt_nanosleep=no
  21581. fi
  21582. rm -rf conftest.dSYM
  21583. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21584. conftest$ac_exeext conftest.$ac_ext
  21585. LIBS=$ac_check_lib_save_LIBS
  21586. fi
  21587. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
  21588. $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
  21589. if test $ac_cv_lib_rt_nanosleep = yes; then
  21590. cat >>confdefs.h <<_ACEOF
  21591. #define HAVE_LIBRT 1
  21592. _ACEOF
  21593. LIBS="-lrt $LIBS"
  21594. fi
  21595. { $as_echo "$as_me:$LINENO: checking for resolv in -lresolv" >&5
  21596. $as_echo_n "checking for resolv in -lresolv... " >&6; }
  21597. if test "${ac_cv_lib_resolv_resolv+set}" = set; then
  21598. $as_echo_n "(cached) " >&6
  21599. else
  21600. ac_check_lib_save_LIBS=$LIBS
  21601. LIBS="-lresolv $LIBS"
  21602. cat >conftest.$ac_ext <<_ACEOF
  21603. /* confdefs.h. */
  21604. _ACEOF
  21605. cat confdefs.h >>conftest.$ac_ext
  21606. cat >>conftest.$ac_ext <<_ACEOF
  21607. /* end confdefs.h. */
  21608. /* Override any GCC internal prototype to avoid an error.
  21609. Use char because int might match the return type of a GCC
  21610. builtin and then its argument prototype would still apply. */
  21611. #ifdef __cplusplus
  21612. extern "C"
  21613. #endif
  21614. char resolv ();
  21615. int
  21616. main ()
  21617. {
  21618. return resolv ();
  21619. ;
  21620. return 0;
  21621. }
  21622. _ACEOF
  21623. rm -f conftest.$ac_objext conftest$ac_exeext
  21624. if { (ac_try="$ac_link"
  21625. case "(($ac_try" in
  21626. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21627. *) ac_try_echo=$ac_try;;
  21628. esac
  21629. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21630. $as_echo "$ac_try_echo") >&5
  21631. (eval "$ac_link") 2>conftest.er1
  21632. ac_status=$?
  21633. grep -v '^ *+' conftest.er1 >conftest.err
  21634. rm -f conftest.er1
  21635. cat conftest.err >&5
  21636. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21637. (exit $ac_status); } && {
  21638. test -z "$ac_c_werror_flag" ||
  21639. test ! -s conftest.err
  21640. } && test -s conftest$ac_exeext && {
  21641. test "$cross_compiling" = yes ||
  21642. $as_test_x conftest$ac_exeext
  21643. }; then
  21644. ac_cv_lib_resolv_resolv=yes
  21645. else
  21646. $as_echo "$as_me: failed program was:" >&5
  21647. sed 's/^/| /' conftest.$ac_ext >&5
  21648. ac_cv_lib_resolv_resolv=no
  21649. fi
  21650. rm -rf conftest.dSYM
  21651. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21652. conftest$ac_exeext conftest.$ac_ext
  21653. LIBS=$ac_check_lib_save_LIBS
  21654. fi
  21655. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_resolv" >&5
  21656. $as_echo "$ac_cv_lib_resolv_resolv" >&6; }
  21657. if test $ac_cv_lib_resolv_resolv = yes; then
  21658. cat >>confdefs.h <<_ACEOF
  21659. #define HAVE_LIBRESOLV 1
  21660. _ACEOF
  21661. LIBS="-lresolv $LIBS"
  21662. fi
  21663. for ac_header in stdlib.h
  21664. do
  21665. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  21666. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21667. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  21668. $as_echo_n "checking for $ac_header... " >&6; }
  21669. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21670. $as_echo_n "(cached) " >&6
  21671. fi
  21672. ac_res=`eval 'as_val=${'$as_ac_Header'}
  21673. $as_echo "$as_val"'`
  21674. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  21675. $as_echo "$ac_res" >&6; }
  21676. else
  21677. # Is the header compilable?
  21678. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  21679. $as_echo_n "checking $ac_header usability... " >&6; }
  21680. cat >conftest.$ac_ext <<_ACEOF
  21681. /* confdefs.h. */
  21682. _ACEOF
  21683. cat confdefs.h >>conftest.$ac_ext
  21684. cat >>conftest.$ac_ext <<_ACEOF
  21685. /* end confdefs.h. */
  21686. $ac_includes_default
  21687. #include <$ac_header>
  21688. _ACEOF
  21689. rm -f conftest.$ac_objext
  21690. if { (ac_try="$ac_compile"
  21691. case "(($ac_try" in
  21692. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21693. *) ac_try_echo=$ac_try;;
  21694. esac
  21695. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21696. $as_echo "$ac_try_echo") >&5
  21697. (eval "$ac_compile") 2>conftest.er1
  21698. ac_status=$?
  21699. grep -v '^ *+' conftest.er1 >conftest.err
  21700. rm -f conftest.er1
  21701. cat conftest.err >&5
  21702. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21703. (exit $ac_status); } && {
  21704. test -z "$ac_c_werror_flag" ||
  21705. test ! -s conftest.err
  21706. } && test -s conftest.$ac_objext; then
  21707. ac_header_compiler=yes
  21708. else
  21709. $as_echo "$as_me: failed program was:" >&5
  21710. sed 's/^/| /' conftest.$ac_ext >&5
  21711. ac_header_compiler=no
  21712. fi
  21713. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21714. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  21715. $as_echo "$ac_header_compiler" >&6; }
  21716. # Is the header present?
  21717. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  21718. $as_echo_n "checking $ac_header presence... " >&6; }
  21719. cat >conftest.$ac_ext <<_ACEOF
  21720. /* confdefs.h. */
  21721. _ACEOF
  21722. cat confdefs.h >>conftest.$ac_ext
  21723. cat >>conftest.$ac_ext <<_ACEOF
  21724. /* end confdefs.h. */
  21725. #include <$ac_header>
  21726. _ACEOF
  21727. if { (ac_try="$ac_cpp conftest.$ac_ext"
  21728. case "(($ac_try" in
  21729. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21730. *) ac_try_echo=$ac_try;;
  21731. esac
  21732. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21733. $as_echo "$ac_try_echo") >&5
  21734. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  21735. ac_status=$?
  21736. grep -v '^ *+' conftest.er1 >conftest.err
  21737. rm -f conftest.er1
  21738. cat conftest.err >&5
  21739. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21740. (exit $ac_status); } >/dev/null && {
  21741. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  21742. test ! -s conftest.err
  21743. }; then
  21744. ac_header_preproc=yes
  21745. else
  21746. $as_echo "$as_me: failed program was:" >&5
  21747. sed 's/^/| /' conftest.$ac_ext >&5
  21748. ac_header_preproc=no
  21749. fi
  21750. rm -f conftest.err conftest.$ac_ext
  21751. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  21752. $as_echo "$ac_header_preproc" >&6; }
  21753. # So? What about this header?
  21754. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  21755. yes:no: )
  21756. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  21757. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  21758. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  21759. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  21760. ac_header_preproc=yes
  21761. ;;
  21762. no:yes:* )
  21763. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  21764. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  21765. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  21766. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  21767. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  21768. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  21769. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  21770. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  21771. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  21772. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  21773. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  21774. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  21775. ;;
  21776. esac
  21777. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  21778. $as_echo_n "checking for $ac_header... " >&6; }
  21779. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21780. $as_echo_n "(cached) " >&6
  21781. else
  21782. eval "$as_ac_Header=\$ac_header_preproc"
  21783. fi
  21784. ac_res=`eval 'as_val=${'$as_ac_Header'}
  21785. $as_echo "$as_val"'`
  21786. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  21787. $as_echo "$ac_res" >&6; }
  21788. fi
  21789. if test `eval 'as_val=${'$as_ac_Header'}
  21790. $as_echo "$as_val"'` = yes; then
  21791. cat >>confdefs.h <<_ACEOF
  21792. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  21793. _ACEOF
  21794. fi
  21795. done
  21796. { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  21797. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  21798. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  21799. $as_echo_n "(cached) " >&6
  21800. else
  21801. if test "$cross_compiling" = yes; then
  21802. ac_cv_func_malloc_0_nonnull=no
  21803. else
  21804. cat >conftest.$ac_ext <<_ACEOF
  21805. /* confdefs.h. */
  21806. _ACEOF
  21807. cat confdefs.h >>conftest.$ac_ext
  21808. cat >>conftest.$ac_ext <<_ACEOF
  21809. /* end confdefs.h. */
  21810. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  21811. # include <stdlib.h>
  21812. #else
  21813. char *malloc ();
  21814. #endif
  21815. int
  21816. main ()
  21817. {
  21818. return ! malloc (0);
  21819. ;
  21820. return 0;
  21821. }
  21822. _ACEOF
  21823. rm -f conftest$ac_exeext
  21824. if { (ac_try="$ac_link"
  21825. case "(($ac_try" in
  21826. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21827. *) ac_try_echo=$ac_try;;
  21828. esac
  21829. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21830. $as_echo "$ac_try_echo") >&5
  21831. (eval "$ac_link") 2>&5
  21832. ac_status=$?
  21833. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21834. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  21835. { (case "(($ac_try" in
  21836. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21837. *) ac_try_echo=$ac_try;;
  21838. esac
  21839. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21840. $as_echo "$ac_try_echo") >&5
  21841. (eval "$ac_try") 2>&5
  21842. ac_status=$?
  21843. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21844. (exit $ac_status); }; }; then
  21845. ac_cv_func_malloc_0_nonnull=yes
  21846. else
  21847. $as_echo "$as_me: program exited with status $ac_status" >&5
  21848. $as_echo "$as_me: failed program was:" >&5
  21849. sed 's/^/| /' conftest.$ac_ext >&5
  21850. ( exit $ac_status )
  21851. ac_cv_func_malloc_0_nonnull=no
  21852. fi
  21853. rm -rf conftest.dSYM
  21854. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  21855. fi
  21856. fi
  21857. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  21858. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  21859. if test $ac_cv_func_malloc_0_nonnull = yes; then
  21860. cat >>confdefs.h <<\_ACEOF
  21861. #define HAVE_MALLOC 1
  21862. _ACEOF
  21863. else
  21864. cat >>confdefs.h <<\_ACEOF
  21865. #define HAVE_MALLOC 0
  21866. _ACEOF
  21867. case " $LIBOBJS " in
  21868. *" malloc.$ac_objext "* ) ;;
  21869. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  21870. ;;
  21871. esac
  21872. cat >>confdefs.h <<\_ACEOF
  21873. #define malloc rpl_malloc
  21874. _ACEOF
  21875. fi
  21876. { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
  21877. $as_echo_n "checking for working memcmp... " >&6; }
  21878. if test "${ac_cv_func_memcmp_working+set}" = set; then
  21879. $as_echo_n "(cached) " >&6
  21880. else
  21881. if test "$cross_compiling" = yes; then
  21882. ac_cv_func_memcmp_working=no
  21883. else
  21884. cat >conftest.$ac_ext <<_ACEOF
  21885. /* confdefs.h. */
  21886. _ACEOF
  21887. cat confdefs.h >>conftest.$ac_ext
  21888. cat >>conftest.$ac_ext <<_ACEOF
  21889. /* end confdefs.h. */
  21890. $ac_includes_default
  21891. int
  21892. main ()
  21893. {
  21894. /* Some versions of memcmp are not 8-bit clean. */
  21895. char c0 = '\100', c1 = '\200', c2 = '\201';
  21896. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  21897. return 1;
  21898. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  21899. or more and with at least one buffer not starting on a 4-byte boundary.
  21900. William Lewis provided this test program. */
  21901. {
  21902. char foo[21];
  21903. char bar[21];
  21904. int i;
  21905. for (i = 0; i < 4; i++)
  21906. {
  21907. char *a = foo + i;
  21908. char *b = bar + i;
  21909. strcpy (a, "--------01111111");
  21910. strcpy (b, "--------10000000");
  21911. if (memcmp (a, b, 16) >= 0)
  21912. return 1;
  21913. }
  21914. return 0;
  21915. }
  21916. ;
  21917. return 0;
  21918. }
  21919. _ACEOF
  21920. rm -f conftest$ac_exeext
  21921. if { (ac_try="$ac_link"
  21922. case "(($ac_try" in
  21923. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21924. *) ac_try_echo=$ac_try;;
  21925. esac
  21926. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21927. $as_echo "$ac_try_echo") >&5
  21928. (eval "$ac_link") 2>&5
  21929. ac_status=$?
  21930. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21931. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  21932. { (case "(($ac_try" in
  21933. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21934. *) ac_try_echo=$ac_try;;
  21935. esac
  21936. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21937. $as_echo "$ac_try_echo") >&5
  21938. (eval "$ac_try") 2>&5
  21939. ac_status=$?
  21940. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21941. (exit $ac_status); }; }; then
  21942. ac_cv_func_memcmp_working=yes
  21943. else
  21944. $as_echo "$as_me: program exited with status $ac_status" >&5
  21945. $as_echo "$as_me: failed program was:" >&5
  21946. sed 's/^/| /' conftest.$ac_ext >&5
  21947. ( exit $ac_status )
  21948. ac_cv_func_memcmp_working=no
  21949. fi
  21950. rm -rf conftest.dSYM
  21951. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  21952. fi
  21953. fi
  21954. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  21955. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  21956. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  21957. *" memcmp.$ac_objext "* ) ;;
  21958. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  21959. ;;
  21960. esac
  21961. { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  21962. $as_echo_n "checking return type of signal handlers... " >&6; }
  21963. if test "${ac_cv_type_signal+set}" = set; then
  21964. $as_echo_n "(cached) " >&6
  21965. else
  21966. cat >conftest.$ac_ext <<_ACEOF
  21967. /* confdefs.h. */
  21968. _ACEOF
  21969. cat confdefs.h >>conftest.$ac_ext
  21970. cat >>conftest.$ac_ext <<_ACEOF
  21971. /* end confdefs.h. */
  21972. #include <sys/types.h>
  21973. #include <signal.h>
  21974. int
  21975. main ()
  21976. {
  21977. return *(signal (0, 0)) (0) == 1;
  21978. ;
  21979. return 0;
  21980. }
  21981. _ACEOF
  21982. rm -f conftest.$ac_objext
  21983. if { (ac_try="$ac_compile"
  21984. case "(($ac_try" in
  21985. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21986. *) ac_try_echo=$ac_try;;
  21987. esac
  21988. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21989. $as_echo "$ac_try_echo") >&5
  21990. (eval "$ac_compile") 2>conftest.er1
  21991. ac_status=$?
  21992. grep -v '^ *+' conftest.er1 >conftest.err
  21993. rm -f conftest.er1
  21994. cat conftest.err >&5
  21995. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21996. (exit $ac_status); } && {
  21997. test -z "$ac_c_werror_flag" ||
  21998. test ! -s conftest.err
  21999. } && test -s conftest.$ac_objext; then
  22000. ac_cv_type_signal=int
  22001. else
  22002. $as_echo "$as_me: failed program was:" >&5
  22003. sed 's/^/| /' conftest.$ac_ext >&5
  22004. ac_cv_type_signal=void
  22005. fi
  22006. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22007. fi
  22008. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  22009. $as_echo "$ac_cv_type_signal" >&6; }
  22010. cat >>confdefs.h <<_ACEOF
  22011. #define RETSIGTYPE $ac_cv_type_signal
  22012. _ACEOF
  22013. for ac_func in vprintf
  22014. do
  22015. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  22016. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  22017. $as_echo_n "checking for $ac_func... " >&6; }
  22018. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  22019. $as_echo_n "(cached) " >&6
  22020. else
  22021. cat >conftest.$ac_ext <<_ACEOF
  22022. /* confdefs.h. */
  22023. _ACEOF
  22024. cat confdefs.h >>conftest.$ac_ext
  22025. cat >>conftest.$ac_ext <<_ACEOF
  22026. /* end confdefs.h. */
  22027. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  22028. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  22029. #define $ac_func innocuous_$ac_func
  22030. /* System header to define __stub macros and hopefully few prototypes,
  22031. which can conflict with char $ac_func (); below.
  22032. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22033. <limits.h> exists even on freestanding compilers. */
  22034. #ifdef __STDC__
  22035. # include <limits.h>
  22036. #else
  22037. # include <assert.h>
  22038. #endif
  22039. #undef $ac_func
  22040. /* Override any GCC internal prototype to avoid an error.
  22041. Use char because int might match the return type of a GCC
  22042. builtin and then its argument prototype would still apply. */
  22043. #ifdef __cplusplus
  22044. extern "C"
  22045. #endif
  22046. char $ac_func ();
  22047. /* The GNU C library defines this for functions which it implements
  22048. to always fail with ENOSYS. Some functions are actually named
  22049. something starting with __ and the normal name is an alias. */
  22050. #if defined __stub_$ac_func || defined __stub___$ac_func
  22051. choke me
  22052. #endif
  22053. int
  22054. main ()
  22055. {
  22056. return $ac_func ();
  22057. ;
  22058. return 0;
  22059. }
  22060. _ACEOF
  22061. rm -f conftest.$ac_objext conftest$ac_exeext
  22062. if { (ac_try="$ac_link"
  22063. case "(($ac_try" in
  22064. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22065. *) ac_try_echo=$ac_try;;
  22066. esac
  22067. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22068. $as_echo "$ac_try_echo") >&5
  22069. (eval "$ac_link") 2>conftest.er1
  22070. ac_status=$?
  22071. grep -v '^ *+' conftest.er1 >conftest.err
  22072. rm -f conftest.er1
  22073. cat conftest.err >&5
  22074. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22075. (exit $ac_status); } && {
  22076. test -z "$ac_c_werror_flag" ||
  22077. test ! -s conftest.err
  22078. } && test -s conftest$ac_exeext && {
  22079. test "$cross_compiling" = yes ||
  22080. $as_test_x conftest$ac_exeext
  22081. }; then
  22082. eval "$as_ac_var=yes"
  22083. else
  22084. $as_echo "$as_me: failed program was:" >&5
  22085. sed 's/^/| /' conftest.$ac_ext >&5
  22086. eval "$as_ac_var=no"
  22087. fi
  22088. rm -rf conftest.dSYM
  22089. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22090. conftest$ac_exeext conftest.$ac_ext
  22091. fi
  22092. ac_res=`eval 'as_val=${'$as_ac_var'}
  22093. $as_echo "$as_val"'`
  22094. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  22095. $as_echo "$ac_res" >&6; }
  22096. if test `eval 'as_val=${'$as_ac_var'}
  22097. $as_echo "$as_val"'` = yes; then
  22098. cat >>confdefs.h <<_ACEOF
  22099. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  22100. _ACEOF
  22101. { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
  22102. $as_echo_n "checking for _doprnt... " >&6; }
  22103. if test "${ac_cv_func__doprnt+set}" = set; then
  22104. $as_echo_n "(cached) " >&6
  22105. else
  22106. cat >conftest.$ac_ext <<_ACEOF
  22107. /* confdefs.h. */
  22108. _ACEOF
  22109. cat confdefs.h >>conftest.$ac_ext
  22110. cat >>conftest.$ac_ext <<_ACEOF
  22111. /* end confdefs.h. */
  22112. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  22113. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  22114. #define _doprnt innocuous__doprnt
  22115. /* System header to define __stub macros and hopefully few prototypes,
  22116. which can conflict with char _doprnt (); below.
  22117. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22118. <limits.h> exists even on freestanding compilers. */
  22119. #ifdef __STDC__
  22120. # include <limits.h>
  22121. #else
  22122. # include <assert.h>
  22123. #endif
  22124. #undef _doprnt
  22125. /* Override any GCC internal prototype to avoid an error.
  22126. Use char because int might match the return type of a GCC
  22127. builtin and then its argument prototype would still apply. */
  22128. #ifdef __cplusplus
  22129. extern "C"
  22130. #endif
  22131. char _doprnt ();
  22132. /* The GNU C library defines this for functions which it implements
  22133. to always fail with ENOSYS. Some functions are actually named
  22134. something starting with __ and the normal name is an alias. */
  22135. #if defined __stub__doprnt || defined __stub____doprnt
  22136. choke me
  22137. #endif
  22138. int
  22139. main ()
  22140. {
  22141. return _doprnt ();
  22142. ;
  22143. return 0;
  22144. }
  22145. _ACEOF
  22146. rm -f conftest.$ac_objext conftest$ac_exeext
  22147. if { (ac_try="$ac_link"
  22148. case "(($ac_try" in
  22149. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22150. *) ac_try_echo=$ac_try;;
  22151. esac
  22152. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22153. $as_echo "$ac_try_echo") >&5
  22154. (eval "$ac_link") 2>conftest.er1
  22155. ac_status=$?
  22156. grep -v '^ *+' conftest.er1 >conftest.err
  22157. rm -f conftest.er1
  22158. cat conftest.err >&5
  22159. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22160. (exit $ac_status); } && {
  22161. test -z "$ac_c_werror_flag" ||
  22162. test ! -s conftest.err
  22163. } && test -s conftest$ac_exeext && {
  22164. test "$cross_compiling" = yes ||
  22165. $as_test_x conftest$ac_exeext
  22166. }; then
  22167. ac_cv_func__doprnt=yes
  22168. else
  22169. $as_echo "$as_me: failed program was:" >&5
  22170. sed 's/^/| /' conftest.$ac_ext >&5
  22171. ac_cv_func__doprnt=no
  22172. fi
  22173. rm -rf conftest.dSYM
  22174. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22175. conftest$ac_exeext conftest.$ac_ext
  22176. fi
  22177. { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  22178. $as_echo "$ac_cv_func__doprnt" >&6; }
  22179. if test $ac_cv_func__doprnt = yes; then
  22180. cat >>confdefs.h <<\_ACEOF
  22181. #define HAVE_DOPRNT 1
  22182. _ACEOF
  22183. fi
  22184. fi
  22185. done
  22186. { $as_echo "$as_me:$LINENO: checking for struct timeval.tv_sec" >&5
  22187. $as_echo_n "checking for struct timeval.tv_sec... " >&6; }
  22188. if test "${ac_cv_member_struct_timeval_tv_sec+set}" = set; then
  22189. $as_echo_n "(cached) " >&6
  22190. else
  22191. cat >conftest.$ac_ext <<_ACEOF
  22192. /* confdefs.h. */
  22193. _ACEOF
  22194. cat confdefs.h >>conftest.$ac_ext
  22195. cat >>conftest.$ac_ext <<_ACEOF
  22196. /* end confdefs.h. */
  22197. $ac_includes_default
  22198. int
  22199. main ()
  22200. {
  22201. static struct timeval ac_aggr;
  22202. if (ac_aggr.tv_sec)
  22203. return 0;
  22204. ;
  22205. return 0;
  22206. }
  22207. _ACEOF
  22208. rm -f conftest.$ac_objext
  22209. if { (ac_try="$ac_compile"
  22210. case "(($ac_try" in
  22211. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22212. *) ac_try_echo=$ac_try;;
  22213. esac
  22214. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22215. $as_echo "$ac_try_echo") >&5
  22216. (eval "$ac_compile") 2>conftest.er1
  22217. ac_status=$?
  22218. grep -v '^ *+' conftest.er1 >conftest.err
  22219. rm -f conftest.er1
  22220. cat conftest.err >&5
  22221. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22222. (exit $ac_status); } && {
  22223. test -z "$ac_c_werror_flag" ||
  22224. test ! -s conftest.err
  22225. } && test -s conftest.$ac_objext; then
  22226. ac_cv_member_struct_timeval_tv_sec=yes
  22227. else
  22228. $as_echo "$as_me: failed program was:" >&5
  22229. sed 's/^/| /' conftest.$ac_ext >&5
  22230. cat >conftest.$ac_ext <<_ACEOF
  22231. /* confdefs.h. */
  22232. _ACEOF
  22233. cat confdefs.h >>conftest.$ac_ext
  22234. cat >>conftest.$ac_ext <<_ACEOF
  22235. /* end confdefs.h. */
  22236. $ac_includes_default
  22237. int
  22238. main ()
  22239. {
  22240. static struct timeval ac_aggr;
  22241. if (sizeof ac_aggr.tv_sec)
  22242. return 0;
  22243. ;
  22244. return 0;
  22245. }
  22246. _ACEOF
  22247. rm -f conftest.$ac_objext
  22248. if { (ac_try="$ac_compile"
  22249. case "(($ac_try" in
  22250. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22251. *) ac_try_echo=$ac_try;;
  22252. esac
  22253. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22254. $as_echo "$ac_try_echo") >&5
  22255. (eval "$ac_compile") 2>conftest.er1
  22256. ac_status=$?
  22257. grep -v '^ *+' conftest.er1 >conftest.err
  22258. rm -f conftest.er1
  22259. cat conftest.err >&5
  22260. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22261. (exit $ac_status); } && {
  22262. test -z "$ac_c_werror_flag" ||
  22263. test ! -s conftest.err
  22264. } && test -s conftest.$ac_objext; then
  22265. ac_cv_member_struct_timeval_tv_sec=yes
  22266. else
  22267. $as_echo "$as_me: failed program was:" >&5
  22268. sed 's/^/| /' conftest.$ac_ext >&5
  22269. ac_cv_member_struct_timeval_tv_sec=no
  22270. fi
  22271. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22272. fi
  22273. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22274. fi
  22275. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_timeval_tv_sec" >&5
  22276. $as_echo "$ac_cv_member_struct_timeval_tv_sec" >&6; }
  22277. if test $ac_cv_member_struct_timeval_tv_sec = yes; then
  22278. cat >>confdefs.h <<_ACEOF
  22279. #define HAVE_STRUCT_TIMEVAL_TV_SEC 1
  22280. _ACEOF
  22281. fi
  22282. for ac_func in gettimeofday ctime memset regcomp strdup strchr strerror strtol strncpy strtoull poll ntohll mmap snprintf vsnprintf strsignal
  22283. do
  22284. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  22285. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  22286. $as_echo_n "checking for $ac_func... " >&6; }
  22287. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  22288. $as_echo_n "(cached) " >&6
  22289. else
  22290. cat >conftest.$ac_ext <<_ACEOF
  22291. /* confdefs.h. */
  22292. _ACEOF
  22293. cat confdefs.h >>conftest.$ac_ext
  22294. cat >>conftest.$ac_ext <<_ACEOF
  22295. /* end confdefs.h. */
  22296. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  22297. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  22298. #define $ac_func innocuous_$ac_func
  22299. /* System header to define __stub macros and hopefully few prototypes,
  22300. which can conflict with char $ac_func (); below.
  22301. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22302. <limits.h> exists even on freestanding compilers. */
  22303. #ifdef __STDC__
  22304. # include <limits.h>
  22305. #else
  22306. # include <assert.h>
  22307. #endif
  22308. #undef $ac_func
  22309. /* Override any GCC internal prototype to avoid an error.
  22310. Use char because int might match the return type of a GCC
  22311. builtin and then its argument prototype would still apply. */
  22312. #ifdef __cplusplus
  22313. extern "C"
  22314. #endif
  22315. char $ac_func ();
  22316. /* The GNU C library defines this for functions which it implements
  22317. to always fail with ENOSYS. Some functions are actually named
  22318. something starting with __ and the normal name is an alias. */
  22319. #if defined __stub_$ac_func || defined __stub___$ac_func
  22320. choke me
  22321. #endif
  22322. int
  22323. main ()
  22324. {
  22325. return $ac_func ();
  22326. ;
  22327. return 0;
  22328. }
  22329. _ACEOF
  22330. rm -f conftest.$ac_objext conftest$ac_exeext
  22331. if { (ac_try="$ac_link"
  22332. case "(($ac_try" in
  22333. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22334. *) ac_try_echo=$ac_try;;
  22335. esac
  22336. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22337. $as_echo "$ac_try_echo") >&5
  22338. (eval "$ac_link") 2>conftest.er1
  22339. ac_status=$?
  22340. grep -v '^ *+' conftest.er1 >conftest.err
  22341. rm -f conftest.er1
  22342. cat conftest.err >&5
  22343. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22344. (exit $ac_status); } && {
  22345. test -z "$ac_c_werror_flag" ||
  22346. test ! -s conftest.err
  22347. } && test -s conftest$ac_exeext && {
  22348. test "$cross_compiling" = yes ||
  22349. $as_test_x conftest$ac_exeext
  22350. }; then
  22351. eval "$as_ac_var=yes"
  22352. else
  22353. $as_echo "$as_me: failed program was:" >&5
  22354. sed 's/^/| /' conftest.$ac_ext >&5
  22355. eval "$as_ac_var=no"
  22356. fi
  22357. rm -rf conftest.dSYM
  22358. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22359. conftest$ac_exeext conftest.$ac_ext
  22360. fi
  22361. ac_res=`eval 'as_val=${'$as_ac_var'}
  22362. $as_echo "$as_val"'`
  22363. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  22364. $as_echo "$ac_res" >&6; }
  22365. if test `eval 'as_val=${'$as_ac_var'}
  22366. $as_echo "$as_val"'` = yes; then
  22367. cat >>confdefs.h <<_ACEOF
  22368. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  22369. _ACEOF
  22370. fi
  22371. done
  22372. for ac_func in strlcpy
  22373. do
  22374. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  22375. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  22376. $as_echo_n "checking for $ac_func... " >&6; }
  22377. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  22378. $as_echo_n "(cached) " >&6
  22379. else
  22380. cat >conftest.$ac_ext <<_ACEOF
  22381. /* confdefs.h. */
  22382. _ACEOF
  22383. cat confdefs.h >>conftest.$ac_ext
  22384. cat >>conftest.$ac_ext <<_ACEOF
  22385. /* end confdefs.h. */
  22386. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  22387. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  22388. #define $ac_func innocuous_$ac_func
  22389. /* System header to define __stub macros and hopefully few prototypes,
  22390. which can conflict with char $ac_func (); below.
  22391. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22392. <limits.h> exists even on freestanding compilers. */
  22393. #ifdef __STDC__
  22394. # include <limits.h>
  22395. #else
  22396. # include <assert.h>
  22397. #endif
  22398. #undef $ac_func
  22399. /* Override any GCC internal prototype to avoid an error.
  22400. Use char because int might match the return type of a GCC
  22401. builtin and then its argument prototype would still apply. */
  22402. #ifdef __cplusplus
  22403. extern "C"
  22404. #endif
  22405. char $ac_func ();
  22406. /* The GNU C library defines this for functions which it implements
  22407. to always fail with ENOSYS. Some functions are actually named
  22408. something starting with __ and the normal name is an alias. */
  22409. #if defined __stub_$ac_func || defined __stub___$ac_func
  22410. choke me
  22411. #endif
  22412. int
  22413. main ()
  22414. {
  22415. return $ac_func ();
  22416. ;
  22417. return 0;
  22418. }
  22419. _ACEOF
  22420. rm -f conftest.$ac_objext conftest$ac_exeext
  22421. if { (ac_try="$ac_link"
  22422. case "(($ac_try" in
  22423. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22424. *) ac_try_echo=$ac_try;;
  22425. esac
  22426. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22427. $as_echo "$ac_try_echo") >&5
  22428. (eval "$ac_link") 2>conftest.er1
  22429. ac_status=$?
  22430. grep -v '^ *+' conftest.er1 >conftest.err
  22431. rm -f conftest.er1
  22432. cat conftest.err >&5
  22433. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22434. (exit $ac_status); } && {
  22435. test -z "$ac_c_werror_flag" ||
  22436. test ! -s conftest.err
  22437. } && test -s conftest$ac_exeext && {
  22438. test "$cross_compiling" = yes ||
  22439. $as_test_x conftest$ac_exeext
  22440. }; then
  22441. eval "$as_ac_var=yes"
  22442. else
  22443. $as_echo "$as_me: failed program was:" >&5
  22444. sed 's/^/| /' conftest.$ac_ext >&5
  22445. eval "$as_ac_var=no"
  22446. fi
  22447. rm -rf conftest.dSYM
  22448. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22449. conftest$ac_exeext conftest.$ac_ext
  22450. fi
  22451. ac_res=`eval 'as_val=${'$as_ac_var'}
  22452. $as_echo "$as_val"'`
  22453. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  22454. $as_echo "$ac_res" >&6; }
  22455. if test `eval 'as_val=${'$as_ac_var'}
  22456. $as_echo "$as_val"'` = yes; then
  22457. cat >>confdefs.h <<_ACEOF
  22458. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  22459. _ACEOF
  22460. have_strlcpy=true
  22461. else
  22462. have_strlcpy=false
  22463. fi
  22464. done
  22465. if test x$have_strlcpy = xtrue; then
  22466. SYSTEM_STRLCPY_TRUE=
  22467. SYSTEM_STRLCPY_FALSE='#'
  22468. else
  22469. SYSTEM_STRLCPY_TRUE='#'
  22470. SYSTEM_STRLCPY_FALSE=
  22471. fi
  22472. { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  22473. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  22474. if test "${ac_cv_c_bigendian+set}" = set; then
  22475. $as_echo_n "(cached) " >&6
  22476. else
  22477. ac_cv_c_bigendian=unknown
  22478. # See if __BIG_ENDIAN__ or __LITTLE_ENDIAN__ is defined.
  22479. cat >conftest.$ac_ext <<_ACEOF
  22480. /* confdefs.h. */
  22481. _ACEOF
  22482. cat confdefs.h >>conftest.$ac_ext
  22483. cat >>conftest.$ac_ext <<_ACEOF
  22484. /* end confdefs.h. */
  22485. #if ! (defined __BIG_ENDIAN__ || defined __LITTLE_ENDIAN__)
  22486. neither is defined;
  22487. #endif
  22488. typedef int dummy;
  22489. _ACEOF
  22490. rm -f conftest.$ac_objext
  22491. if { (ac_try="$ac_compile"
  22492. case "(($ac_try" in
  22493. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22494. *) ac_try_echo=$ac_try;;
  22495. esac
  22496. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22497. $as_echo "$ac_try_echo") >&5
  22498. (eval "$ac_compile") 2>conftest.er1
  22499. ac_status=$?
  22500. grep -v '^ *+' conftest.er1 >conftest.err
  22501. rm -f conftest.er1
  22502. cat conftest.err >&5
  22503. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22504. (exit $ac_status); } && {
  22505. test -z "$ac_c_werror_flag" ||
  22506. test ! -s conftest.err
  22507. } && test -s conftest.$ac_objext; then
  22508. ac_cv_c_bigendian=universal
  22509. else
  22510. $as_echo "$as_me: failed program was:" >&5
  22511. sed 's/^/| /' conftest.$ac_ext >&5
  22512. fi
  22513. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22514. if test $ac_cv_c_bigendian = unknown; then
  22515. # See if sys/param.h defines the BYTE_ORDER macro.
  22516. cat >conftest.$ac_ext <<_ACEOF
  22517. /* confdefs.h. */
  22518. _ACEOF
  22519. cat confdefs.h >>conftest.$ac_ext
  22520. cat >>conftest.$ac_ext <<_ACEOF
  22521. /* end confdefs.h. */
  22522. #include <sys/types.h>
  22523. #include <sys/param.h>
  22524. int
  22525. main ()
  22526. {
  22527. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  22528. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  22529. && LITTLE_ENDIAN)
  22530. bogus endian macros
  22531. #endif
  22532. ;
  22533. return 0;
  22534. }
  22535. _ACEOF
  22536. rm -f conftest.$ac_objext
  22537. if { (ac_try="$ac_compile"
  22538. case "(($ac_try" in
  22539. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22540. *) ac_try_echo=$ac_try;;
  22541. esac
  22542. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22543. $as_echo "$ac_try_echo") >&5
  22544. (eval "$ac_compile") 2>conftest.er1
  22545. ac_status=$?
  22546. grep -v '^ *+' conftest.er1 >conftest.err
  22547. rm -f conftest.er1
  22548. cat conftest.err >&5
  22549. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22550. (exit $ac_status); } && {
  22551. test -z "$ac_c_werror_flag" ||
  22552. test ! -s conftest.err
  22553. } && test -s conftest.$ac_objext; then
  22554. # It does; now see whether it defined to BIG_ENDIAN or not.
  22555. cat >conftest.$ac_ext <<_ACEOF
  22556. /* confdefs.h. */
  22557. _ACEOF
  22558. cat confdefs.h >>conftest.$ac_ext
  22559. cat >>conftest.$ac_ext <<_ACEOF
  22560. /* end confdefs.h. */
  22561. #include <sys/types.h>
  22562. #include <sys/param.h>
  22563. int
  22564. main ()
  22565. {
  22566. #if BYTE_ORDER != BIG_ENDIAN
  22567. not big endian
  22568. #endif
  22569. ;
  22570. return 0;
  22571. }
  22572. _ACEOF
  22573. rm -f conftest.$ac_objext
  22574. if { (ac_try="$ac_compile"
  22575. case "(($ac_try" in
  22576. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22577. *) ac_try_echo=$ac_try;;
  22578. esac
  22579. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22580. $as_echo "$ac_try_echo") >&5
  22581. (eval "$ac_compile") 2>conftest.er1
  22582. ac_status=$?
  22583. grep -v '^ *+' conftest.er1 >conftest.err
  22584. rm -f conftest.er1
  22585. cat conftest.err >&5
  22586. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22587. (exit $ac_status); } && {
  22588. test -z "$ac_c_werror_flag" ||
  22589. test ! -s conftest.err
  22590. } && test -s conftest.$ac_objext; then
  22591. ac_cv_c_bigendian=yes
  22592. else
  22593. $as_echo "$as_me: failed program was:" >&5
  22594. sed 's/^/| /' conftest.$ac_ext >&5
  22595. ac_cv_c_bigendian=no
  22596. fi
  22597. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22598. else
  22599. $as_echo "$as_me: failed program was:" >&5
  22600. sed 's/^/| /' conftest.$ac_ext >&5
  22601. fi
  22602. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22603. fi
  22604. if test $ac_cv_c_bigendian = unknown; then
  22605. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  22606. cat >conftest.$ac_ext <<_ACEOF
  22607. /* confdefs.h. */
  22608. _ACEOF
  22609. cat confdefs.h >>conftest.$ac_ext
  22610. cat >>conftest.$ac_ext <<_ACEOF
  22611. /* end confdefs.h. */
  22612. #include <limits.h>
  22613. int
  22614. main ()
  22615. {
  22616. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  22617. bogus endian macros
  22618. #endif
  22619. ;
  22620. return 0;
  22621. }
  22622. _ACEOF
  22623. rm -f conftest.$ac_objext
  22624. if { (ac_try="$ac_compile"
  22625. case "(($ac_try" in
  22626. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22627. *) ac_try_echo=$ac_try;;
  22628. esac
  22629. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22630. $as_echo "$ac_try_echo") >&5
  22631. (eval "$ac_compile") 2>conftest.er1
  22632. ac_status=$?
  22633. grep -v '^ *+' conftest.er1 >conftest.err
  22634. rm -f conftest.er1
  22635. cat conftest.err >&5
  22636. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22637. (exit $ac_status); } && {
  22638. test -z "$ac_c_werror_flag" ||
  22639. test ! -s conftest.err
  22640. } && test -s conftest.$ac_objext; then
  22641. # It does; now see whether it defined to _BIG_ENDIAN or not.
  22642. cat >conftest.$ac_ext <<_ACEOF
  22643. /* confdefs.h. */
  22644. _ACEOF
  22645. cat confdefs.h >>conftest.$ac_ext
  22646. cat >>conftest.$ac_ext <<_ACEOF
  22647. /* end confdefs.h. */
  22648. #include <limits.h>
  22649. int
  22650. main ()
  22651. {
  22652. #ifndef _BIG_ENDIAN
  22653. not big endian
  22654. #endif
  22655. ;
  22656. return 0;
  22657. }
  22658. _ACEOF
  22659. rm -f conftest.$ac_objext
  22660. if { (ac_try="$ac_compile"
  22661. case "(($ac_try" in
  22662. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22663. *) ac_try_echo=$ac_try;;
  22664. esac
  22665. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22666. $as_echo "$ac_try_echo") >&5
  22667. (eval "$ac_compile") 2>conftest.er1
  22668. ac_status=$?
  22669. grep -v '^ *+' conftest.er1 >conftest.err
  22670. rm -f conftest.er1
  22671. cat conftest.err >&5
  22672. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22673. (exit $ac_status); } && {
  22674. test -z "$ac_c_werror_flag" ||
  22675. test ! -s conftest.err
  22676. } && test -s conftest.$ac_objext; then
  22677. ac_cv_c_bigendian=yes
  22678. else
  22679. $as_echo "$as_me: failed program was:" >&5
  22680. sed 's/^/| /' conftest.$ac_ext >&5
  22681. ac_cv_c_bigendian=no
  22682. fi
  22683. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22684. else
  22685. $as_echo "$as_me: failed program was:" >&5
  22686. sed 's/^/| /' conftest.$ac_ext >&5
  22687. fi
  22688. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22689. fi
  22690. if test $ac_cv_c_bigendian = unknown; then
  22691. # Compile a test program.
  22692. if test "$cross_compiling" = yes; then
  22693. # Try to guess by grepping values from an object file.
  22694. cat >conftest.$ac_ext <<_ACEOF
  22695. /* confdefs.h. */
  22696. _ACEOF
  22697. cat confdefs.h >>conftest.$ac_ext
  22698. cat >>conftest.$ac_ext <<_ACEOF
  22699. /* end confdefs.h. */
  22700. short int ascii_mm[] =
  22701. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  22702. short int ascii_ii[] =
  22703. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  22704. int use_ascii (int i) {
  22705. return ascii_mm[i] + ascii_ii[i];
  22706. }
  22707. short int ebcdic_ii[] =
  22708. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  22709. short int ebcdic_mm[] =
  22710. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  22711. int use_ebcdic (int i) {
  22712. return ebcdic_mm[i] + ebcdic_ii[i];
  22713. }
  22714. extern int foo;
  22715. int
  22716. main ()
  22717. {
  22718. return use_ascii (foo) == use_ebcdic (foo);
  22719. ;
  22720. return 0;
  22721. }
  22722. _ACEOF
  22723. rm -f conftest.$ac_objext
  22724. if { (ac_try="$ac_compile"
  22725. case "(($ac_try" in
  22726. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22727. *) ac_try_echo=$ac_try;;
  22728. esac
  22729. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22730. $as_echo "$ac_try_echo") >&5
  22731. (eval "$ac_compile") 2>conftest.er1
  22732. ac_status=$?
  22733. grep -v '^ *+' conftest.er1 >conftest.err
  22734. rm -f conftest.er1
  22735. cat conftest.err >&5
  22736. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22737. (exit $ac_status); } && {
  22738. test -z "$ac_c_werror_flag" ||
  22739. test ! -s conftest.err
  22740. } && test -s conftest.$ac_objext; then
  22741. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  22742. ac_cv_c_bigendian=yes
  22743. fi
  22744. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  22745. if test "$ac_cv_c_bigendian" = unknown; then
  22746. ac_cv_c_bigendian=no
  22747. else
  22748. # finding both strings is unlikely to happen, but who knows?
  22749. ac_cv_c_bigendian=unknown
  22750. fi
  22751. fi
  22752. else
  22753. $as_echo "$as_me: failed program was:" >&5
  22754. sed 's/^/| /' conftest.$ac_ext >&5
  22755. fi
  22756. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22757. else
  22758. cat >conftest.$ac_ext <<_ACEOF
  22759. /* confdefs.h. */
  22760. _ACEOF
  22761. cat confdefs.h >>conftest.$ac_ext
  22762. cat >>conftest.$ac_ext <<_ACEOF
  22763. /* end confdefs.h. */
  22764. $ac_includes_default
  22765. int
  22766. main ()
  22767. {
  22768. /* Are we little or big endian? From Harbison&Steele. */
  22769. union
  22770. {
  22771. long int l;
  22772. char c[sizeof (long int)];
  22773. } u;
  22774. u.l = 1;
  22775. return u.c[sizeof (long int) - 1] == 1;
  22776. ;
  22777. return 0;
  22778. }
  22779. _ACEOF
  22780. rm -f conftest$ac_exeext
  22781. if { (ac_try="$ac_link"
  22782. case "(($ac_try" in
  22783. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22784. *) ac_try_echo=$ac_try;;
  22785. esac
  22786. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22787. $as_echo "$ac_try_echo") >&5
  22788. (eval "$ac_link") 2>&5
  22789. ac_status=$?
  22790. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22791. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22792. { (case "(($ac_try" in
  22793. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22794. *) ac_try_echo=$ac_try;;
  22795. esac
  22796. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22797. $as_echo "$ac_try_echo") >&5
  22798. (eval "$ac_try") 2>&5
  22799. ac_status=$?
  22800. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22801. (exit $ac_status); }; }; then
  22802. ac_cv_c_bigendian=no
  22803. else
  22804. $as_echo "$as_me: program exited with status $ac_status" >&5
  22805. $as_echo "$as_me: failed program was:" >&5
  22806. sed 's/^/| /' conftest.$ac_ext >&5
  22807. ( exit $ac_status )
  22808. ac_cv_c_bigendian=yes
  22809. fi
  22810. rm -rf conftest.dSYM
  22811. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22812. fi
  22813. fi
  22814. fi
  22815. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  22816. $as_echo "$ac_cv_c_bigendian" >&6; }
  22817. case $ac_cv_c_bigendian in #(
  22818. yes)
  22819. cat >>confdefs.h <<\_ACEOF
  22820. #define WORDS_BIGENDIAN 1
  22821. _ACEOF
  22822. ;; #(
  22823. no)
  22824. ;; #(
  22825. universal)
  22826. ;; #(
  22827. *)
  22828. { { $as_echo "$as_me:$LINENO: error: unknown endianness
  22829. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  22830. $as_echo "$as_me: error: unknown endianness
  22831. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  22832. { (exit 1); exit 1; }; } ;;
  22833. esac
  22834. if test x$ac_cv_c_bigendian = xyes ; then
  22835. WORDS_BIGENDIAN_TRUE=
  22836. WORDS_BIGENDIAN_FALSE='#'
  22837. else
  22838. WORDS_BIGENDIAN_TRUE='#'
  22839. WORDS_BIGENDIAN_FALSE=
  22840. fi
  22841. debug=no
  22842. # Check whether --enable-debug was given.
  22843. if test "${enable_debug+set}" = set; then
  22844. enableval=$enable_debug; if test x$enableval = xyes; then
  22845. debug=yes
  22846. CFLAGS="${USER_CFLAGS} -ggdb -std=gnu99 -Wall $wextra $wfatal_errors $wno_variadic_macros"
  22847. # We may also want to add:
  22848. # -Wformat-security -Wswitch-default -Wunused-paramter -Wpadded"
  22849. cat >>confdefs.h <<\_ACEOF
  22850. #define DEBUG 1
  22851. _ACEOF
  22852. fi
  22853. fi
  22854. # Check whether --enable-dmalloc was given.
  22855. if test "${enable_dmalloc+set}" = set; then
  22856. enableval=$enable_dmalloc; if test x$enableval = xyes ; then
  22857. dmalloc=yes
  22858. cat >>confdefs.h <<\_ACEOF
  22859. #define ENABLE_DMALLOC 1
  22860. _ACEOF
  22861. cat >>confdefs.h <<\_ACEOF
  22862. #define DMALLOC_FUNC_CHECK 1
  22863. _ACEOF
  22864. CFLAGS="${CFLAGS} -I/opt/local/include"
  22865. DMALLOC_LIB="/opt/local/lib/libdmalloc.a"
  22866. fi
  22867. fi
  22868. # Check whether --enable-pedantic was given.
  22869. if test "${enable_pedantic+set}" = set; then
  22870. enableval=$enable_pedantic; if test x$enableval = xyes; then
  22871. CFLAGS="$CFLAGS -pedantic"
  22872. fi
  22873. fi
  22874. # Check whether --enable-efence was given.
  22875. if test "${enable_efence+set}" = set; then
  22876. enableval=$enable_efence; if test x$enableval = xyes; then
  22877. CFLAGS="$CFLAGS -lefence"
  22878. cat >>confdefs.h <<\_ACEOF
  22879. #define EFENCE 1
  22880. _ACEOF
  22881. fi
  22882. fi
  22883. # Check whether --enable-gprof was given.
  22884. if test "${enable_gprof+set}" = set; then
  22885. enableval=$enable_gprof; if test x$enableval = xyes; then
  22886. if test $debug = yes; then
  22887. CFLAGS="$CFLAGS -pg"
  22888. else
  22889. # GPROF requires gdb
  22890. CFLAGS="$CFLAGS -ggdb -pg -fprofile-arcs"
  22891. fi
  22892. cat >>confdefs.h <<\_ACEOF
  22893. #define GPROF 1
  22894. _ACEOF
  22895. fi
  22896. fi
  22897. use64bit_counters=yes
  22898. # Check whether --enable-64bits was given.
  22899. if test "${enable_64bits+set}" = set; then
  22900. enableval=$enable_64bits;
  22901. { $as_echo "$as_me:$LINENO: Using u_int32_t for packet counters" >&5
  22902. $as_echo "$as_me: Using u_int32_t for packet counters" >&6;}
  22903. else
  22904. cat >>confdefs.h <<\_ACEOF
  22905. #define ENABLE_64BITS 1
  22906. _ACEOF
  22907. { $as_echo "$as_me:$LINENO: Using u_int64_t for packet counters" >&5
  22908. $as_echo "$as_me: Using u_int64_t for packet counters" >&6;}
  22909. fi
  22910. # If we're running gcc add '-D_U_="__attribute__((unused))"' to CFLAGS as well,
  22911. # so we can use _U_ to flag unused function arguments and not get warnings
  22912. # about them. Otherwise, add '-D_U_=""', so that _U_ used to flag an unused
  22913. # function argument will compile with non-GCC compilers.
  22914. #
  22915. if test "x$GCC" = "xyes" ; then
  22916. CFLAGS="-D_U_=\"__attribute__((unused))\" $CFLAGS"
  22917. else
  22918. CFLAGS="-D_U_=\"\" $CFLAGS"
  22919. fi
  22920. # Check whether --enable-force-bpf was given.
  22921. if test "${enable_force_bpf+set}" = set; then
  22922. enableval=$enable_force_bpf;
  22923. cat >>confdefs.h <<\_ACEOF
  22924. #define FORCE_INJECT_BPF 1
  22925. _ACEOF
  22926. fi
  22927. # Check whether --enable-force-pf was given.
  22928. if test "${enable_force_pf+set}" = set; then
  22929. enableval=$enable_force_pf;
  22930. cat >>confdefs.h <<\_ACEOF
  22931. #define FORCE_INJECT_PF 1
  22932. _ACEOF
  22933. fi
  22934. # Check whether --enable-force-libnet was given.
  22935. if test "${enable_force_libnet+set}" = set; then
  22936. enableval=$enable_force_libnet;
  22937. cat >>confdefs.h <<\_ACEOF
  22938. #define FORCE_INJECT_LIBNET 1
  22939. _ACEOF
  22940. fi
  22941. # Check whether --enable-force-inject was given.
  22942. if test "${enable_force_inject+set}" = set; then
  22943. enableval=$enable_force_inject;
  22944. cat >>confdefs.h <<\_ACEOF
  22945. #define FORCE_INJECT_PCAP_INJECT 1
  22946. _ACEOF
  22947. fi
  22948. # Check whether --enable-force-sendpacket was given.
  22949. if test "${enable_force_sendpacket+set}" = set; then
  22950. enableval=$enable_force_sendpacket;
  22951. cat >>confdefs.h <<\_ACEOF
  22952. #define FORCE_INJECT_PCAP_SENDPACKET 1
  22953. _ACEOF
  22954. fi
  22955. tcpreplay_edit=no
  22956. # Check whether --enable-tcpreplay-edit was given.
  22957. if test "${enable_tcpreplay_edit+set}" = set; then
  22958. enableval=$enable_tcpreplay_edit;
  22959. cat >>confdefs.h <<\_ACEOF
  22960. #define TCPREPLAY_EDIT 1
  22961. _ACEOF
  22962. tcpreplay_edit=yes
  22963. fi
  22964. if test x$tcpreplay_edit = xyes; then
  22965. ENABLE_TCPREPLAY_EDIT_TRUE=
  22966. ENABLE_TCPREPLAY_EDIT_FALSE='#'
  22967. else
  22968. ENABLE_TCPREPLAY_EDIT_TRUE='#'
  22969. ENABLE_TCPREPLAY_EDIT_FALSE=
  22970. fi
  22971. dynamic_link=no
  22972. # Check whether --enable-dynamic-link was given.
  22973. if test "${enable_dynamic_link+set}" = set; then
  22974. enableval=$enable_dynamic_link; if test x$enableval = xyes; then
  22975. cat >>confdefs.h <<\_ACEOF
  22976. #define ENABLE_DYNAMIC_LINK 1
  22977. _ACEOF
  22978. dynamic_link=yes
  22979. fi
  22980. fi
  22981. { $as_echo "$as_me:$LINENO: checking for inet_aton" >&5
  22982. $as_echo_n "checking for inet_aton... " >&6; }
  22983. if test "${ac_cv_func_inet_aton+set}" = set; then
  22984. $as_echo_n "(cached) " >&6
  22985. else
  22986. cat >conftest.$ac_ext <<_ACEOF
  22987. /* confdefs.h. */
  22988. _ACEOF
  22989. cat confdefs.h >>conftest.$ac_ext
  22990. cat >>conftest.$ac_ext <<_ACEOF
  22991. /* end confdefs.h. */
  22992. /* Define inet_aton to an innocuous variant, in case <limits.h> declares inet_aton.
  22993. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  22994. #define inet_aton innocuous_inet_aton
  22995. /* System header to define __stub macros and hopefully few prototypes,
  22996. which can conflict with char inet_aton (); below.
  22997. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22998. <limits.h> exists even on freestanding compilers. */
  22999. #ifdef __STDC__
  23000. # include <limits.h>
  23001. #else
  23002. # include <assert.h>
  23003. #endif
  23004. #undef inet_aton
  23005. /* Override any GCC internal prototype to avoid an error.
  23006. Use char because int might match the return type of a GCC
  23007. builtin and then its argument prototype would still apply. */
  23008. #ifdef __cplusplus
  23009. extern "C"
  23010. #endif
  23011. char inet_aton ();
  23012. /* The GNU C library defines this for functions which it implements
  23013. to always fail with ENOSYS. Some functions are actually named
  23014. something starting with __ and the normal name is an alias. */
  23015. #if defined __stub_inet_aton || defined __stub___inet_aton
  23016. choke me
  23017. #endif
  23018. int
  23019. main ()
  23020. {
  23021. return inet_aton ();
  23022. ;
  23023. return 0;
  23024. }
  23025. _ACEOF
  23026. rm -f conftest.$ac_objext conftest$ac_exeext
  23027. if { (ac_try="$ac_link"
  23028. case "(($ac_try" in
  23029. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23030. *) ac_try_echo=$ac_try;;
  23031. esac
  23032. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23033. $as_echo "$ac_try_echo") >&5
  23034. (eval "$ac_link") 2>conftest.er1
  23035. ac_status=$?
  23036. grep -v '^ *+' conftest.er1 >conftest.err
  23037. rm -f conftest.er1
  23038. cat conftest.err >&5
  23039. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23040. (exit $ac_status); } && {
  23041. test -z "$ac_c_werror_flag" ||
  23042. test ! -s conftest.err
  23043. } && test -s conftest$ac_exeext && {
  23044. test "$cross_compiling" = yes ||
  23045. $as_test_x conftest$ac_exeext
  23046. }; then
  23047. ac_cv_func_inet_aton=yes
  23048. else
  23049. $as_echo "$as_me: failed program was:" >&5
  23050. sed 's/^/| /' conftest.$ac_ext >&5
  23051. ac_cv_func_inet_aton=no
  23052. fi
  23053. rm -rf conftest.dSYM
  23054. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23055. conftest$ac_exeext conftest.$ac_ext
  23056. fi
  23057. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton" >&5
  23058. $as_echo "$ac_cv_func_inet_aton" >&6; }
  23059. if test $ac_cv_func_inet_aton = yes; then
  23060. cat >>confdefs.h <<\_ACEOF
  23061. #define HAVE_INET_ATON 1
  23062. _ACEOF
  23063. inet_aton=yes
  23064. else
  23065. inet_aton=no
  23066. fi
  23067. { $as_echo "$as_me:$LINENO: checking for inet_pton" >&5
  23068. $as_echo_n "checking for inet_pton... " >&6; }
  23069. if test "${ac_cv_func_inet_pton+set}" = set; then
  23070. $as_echo_n "(cached) " >&6
  23071. else
  23072. cat >conftest.$ac_ext <<_ACEOF
  23073. /* confdefs.h. */
  23074. _ACEOF
  23075. cat confdefs.h >>conftest.$ac_ext
  23076. cat >>conftest.$ac_ext <<_ACEOF
  23077. /* end confdefs.h. */
  23078. /* Define inet_pton to an innocuous variant, in case <limits.h> declares inet_pton.
  23079. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  23080. #define inet_pton innocuous_inet_pton
  23081. /* System header to define __stub macros and hopefully few prototypes,
  23082. which can conflict with char inet_pton (); below.
  23083. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  23084. <limits.h> exists even on freestanding compilers. */
  23085. #ifdef __STDC__
  23086. # include <limits.h>
  23087. #else
  23088. # include <assert.h>
  23089. #endif
  23090. #undef inet_pton
  23091. /* Override any GCC internal prototype to avoid an error.
  23092. Use char because int might match the return type of a GCC
  23093. builtin and then its argument prototype would still apply. */
  23094. #ifdef __cplusplus
  23095. extern "C"
  23096. #endif
  23097. char inet_pton ();
  23098. /* The GNU C library defines this for functions which it implements
  23099. to always fail with ENOSYS. Some functions are actually named
  23100. something starting with __ and the normal name is an alias. */
  23101. #if defined __stub_inet_pton || defined __stub___inet_pton
  23102. choke me
  23103. #endif
  23104. int
  23105. main ()
  23106. {
  23107. return inet_pton ();
  23108. ;
  23109. return 0;
  23110. }
  23111. _ACEOF
  23112. rm -f conftest.$ac_objext conftest$ac_exeext
  23113. if { (ac_try="$ac_link"
  23114. case "(($ac_try" in
  23115. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23116. *) ac_try_echo=$ac_try;;
  23117. esac
  23118. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23119. $as_echo "$ac_try_echo") >&5
  23120. (eval "$ac_link") 2>conftest.er1
  23121. ac_status=$?
  23122. grep -v '^ *+' conftest.er1 >conftest.err
  23123. rm -f conftest.er1
  23124. cat conftest.err >&5
  23125. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23126. (exit $ac_status); } && {
  23127. test -z "$ac_c_werror_flag" ||
  23128. test ! -s conftest.err
  23129. } && test -s conftest$ac_exeext && {
  23130. test "$cross_compiling" = yes ||
  23131. $as_test_x conftest$ac_exeext
  23132. }; then
  23133. ac_cv_func_inet_pton=yes
  23134. else
  23135. $as_echo "$as_me: failed program was:" >&5
  23136. sed 's/^/| /' conftest.$ac_ext >&5
  23137. ac_cv_func_inet_pton=no
  23138. fi
  23139. rm -rf conftest.dSYM
  23140. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23141. conftest$ac_exeext conftest.$ac_ext
  23142. fi
  23143. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_inet_pton" >&5
  23144. $as_echo "$ac_cv_func_inet_pton" >&6; }
  23145. if test $ac_cv_func_inet_pton = yes; then
  23146. cat >>confdefs.h <<\_ACEOF
  23147. #define HAVE_INET_PTON 1
  23148. _ACEOF
  23149. inet_pton=yes
  23150. else
  23151. inet_pton=no
  23152. fi
  23153. { $as_echo "$as_me:$LINENO: checking for inet_ntop" >&5
  23154. $as_echo_n "checking for inet_ntop... " >&6; }
  23155. if test "${ac_cv_func_inet_ntop+set}" = set; then
  23156. $as_echo_n "(cached) " >&6
  23157. else
  23158. cat >conftest.$ac_ext <<_ACEOF
  23159. /* confdefs.h. */
  23160. _ACEOF
  23161. cat confdefs.h >>conftest.$ac_ext
  23162. cat >>conftest.$ac_ext <<_ACEOF
  23163. /* end confdefs.h. */
  23164. /* Define inet_ntop to an innocuous variant, in case <limits.h> declares inet_ntop.
  23165. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  23166. #define inet_ntop innocuous_inet_ntop
  23167. /* System header to define __stub macros and hopefully few prototypes,
  23168. which can conflict with char inet_ntop (); below.
  23169. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  23170. <limits.h> exists even on freestanding compilers. */
  23171. #ifdef __STDC__
  23172. # include <limits.h>
  23173. #else
  23174. # include <assert.h>
  23175. #endif
  23176. #undef inet_ntop
  23177. /* Override any GCC internal prototype to avoid an error.
  23178. Use char because int might match the return type of a GCC
  23179. builtin and then its argument prototype would still apply. */
  23180. #ifdef __cplusplus
  23181. extern "C"
  23182. #endif
  23183. char inet_ntop ();
  23184. /* The GNU C library defines this for functions which it implements
  23185. to always fail with ENOSYS. Some functions are actually named
  23186. something starting with __ and the normal name is an alias. */
  23187. #if defined __stub_inet_ntop || defined __stub___inet_ntop
  23188. choke me
  23189. #endif
  23190. int
  23191. main ()
  23192. {
  23193. return inet_ntop ();
  23194. ;
  23195. return 0;
  23196. }
  23197. _ACEOF
  23198. rm -f conftest.$ac_objext conftest$ac_exeext
  23199. if { (ac_try="$ac_link"
  23200. case "(($ac_try" in
  23201. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23202. *) ac_try_echo=$ac_try;;
  23203. esac
  23204. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23205. $as_echo "$ac_try_echo") >&5
  23206. (eval "$ac_link") 2>conftest.er1
  23207. ac_status=$?
  23208. grep -v '^ *+' conftest.er1 >conftest.err
  23209. rm -f conftest.er1
  23210. cat conftest.err >&5
  23211. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23212. (exit $ac_status); } && {
  23213. test -z "$ac_c_werror_flag" ||
  23214. test ! -s conftest.err
  23215. } && test -s conftest$ac_exeext && {
  23216. test "$cross_compiling" = yes ||
  23217. $as_test_x conftest$ac_exeext
  23218. }; then
  23219. ac_cv_func_inet_ntop=yes
  23220. else
  23221. $as_echo "$as_me: failed program was:" >&5
  23222. sed 's/^/| /' conftest.$ac_ext >&5
  23223. ac_cv_func_inet_ntop=no
  23224. fi
  23225. rm -rf conftest.dSYM
  23226. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23227. conftest$ac_exeext conftest.$ac_ext
  23228. fi
  23229. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
  23230. $as_echo "$ac_cv_func_inet_ntop" >&6; }
  23231. if test $ac_cv_func_inet_ntop = yes; then
  23232. cat >>confdefs.h <<\_ACEOF
  23233. #define HAVE_INET_NTOP 1
  23234. _ACEOF
  23235. inet_ntop=yes
  23236. else
  23237. inet_ntop=no
  23238. fi
  23239. if test "$inet_ntop" = "no" -a "$inet_pton" = "no" ; then
  23240. { { $as_echo "$as_me:$LINENO: error: We need either inet_ntop or inet_pton" >&5
  23241. $as_echo "$as_me: error: We need either inet_ntop or inet_pton" >&2;}
  23242. { (exit 1); exit 1; }; }
  23243. fi
  23244. { $as_echo "$as_me:$LINENO: checking for inet_addr" >&5
  23245. $as_echo_n "checking for inet_addr... " >&6; }
  23246. if test "${ac_cv_func_inet_addr+set}" = set; then
  23247. $as_echo_n "(cached) " >&6
  23248. else
  23249. cat >conftest.$ac_ext <<_ACEOF
  23250. /* confdefs.h. */
  23251. _ACEOF
  23252. cat confdefs.h >>conftest.$ac_ext
  23253. cat >>conftest.$ac_ext <<_ACEOF
  23254. /* end confdefs.h. */
  23255. /* Define inet_addr to an innocuous variant, in case <limits.h> declares inet_addr.
  23256. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  23257. #define inet_addr innocuous_inet_addr
  23258. /* System header to define __stub macros and hopefully few prototypes,
  23259. which can conflict with char inet_addr (); below.
  23260. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  23261. <limits.h> exists even on freestanding compilers. */
  23262. #ifdef __STDC__
  23263. # include <limits.h>
  23264. #else
  23265. # include <assert.h>
  23266. #endif
  23267. #undef inet_addr
  23268. /* Override any GCC internal prototype to avoid an error.
  23269. Use char because int might match the return type of a GCC
  23270. builtin and then its argument prototype would still apply. */
  23271. #ifdef __cplusplus
  23272. extern "C"
  23273. #endif
  23274. char inet_addr ();
  23275. /* The GNU C library defines this for functions which it implements
  23276. to always fail with ENOSYS. Some functions are actually named
  23277. something starting with __ and the normal name is an alias. */
  23278. #if defined __stub_inet_addr || defined __stub___inet_addr
  23279. choke me
  23280. #endif
  23281. int
  23282. main ()
  23283. {
  23284. return inet_addr ();
  23285. ;
  23286. return 0;
  23287. }
  23288. _ACEOF
  23289. rm -f conftest.$ac_objext conftest$ac_exeext
  23290. if { (ac_try="$ac_link"
  23291. case "(($ac_try" in
  23292. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23293. *) ac_try_echo=$ac_try;;
  23294. esac
  23295. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23296. $as_echo "$ac_try_echo") >&5
  23297. (eval "$ac_link") 2>conftest.er1
  23298. ac_status=$?
  23299. grep -v '^ *+' conftest.er1 >conftest.err
  23300. rm -f conftest.er1
  23301. cat conftest.err >&5
  23302. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23303. (exit $ac_status); } && {
  23304. test -z "$ac_c_werror_flag" ||
  23305. test ! -s conftest.err
  23306. } && test -s conftest$ac_exeext && {
  23307. test "$cross_compiling" = yes ||
  23308. $as_test_x conftest$ac_exeext
  23309. }; then
  23310. ac_cv_func_inet_addr=yes
  23311. else
  23312. $as_echo "$as_me: failed program was:" >&5
  23313. sed 's/^/| /' conftest.$ac_ext >&5
  23314. ac_cv_func_inet_addr=no
  23315. fi
  23316. rm -rf conftest.dSYM
  23317. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23318. conftest$ac_exeext conftest.$ac_ext
  23319. fi
  23320. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_inet_addr" >&5
  23321. $as_echo "$ac_cv_func_inet_addr" >&6; }
  23322. if test $ac_cv_func_inet_addr = yes; then
  23323. cat >>confdefs.h <<\_ACEOF
  23324. #define HAVE_INET_ADDR 1
  23325. _ACEOF
  23326. inet_addr=yes
  23327. else
  23328. inet_addr=no
  23329. fi
  23330. if test x$inet_addr = no ; then
  23331. { { $as_echo "$as_me:$LINENO: error: We need inet_addr. See bug 26" >&5
  23332. $as_echo "$as_me: error: We need inet_addr. See bug 26" >&2;}
  23333. { (exit 1); exit 1; }; }
  23334. fi
  23335. foundnet=no
  23336. trynetdir=no
  23337. have_libnet=no
  23338. use_libnet=no
  23339. # Check whether --enable-libnet was given.
  23340. if test "${enable_libnet+set}" = set; then
  23341. enableval=$enable_libnet; if test x$enableval = xyes; then
  23342. use_libnet=yes
  23343. { $as_echo "$as_me:$LINENO: WARNING: Due to bugs in libnet, it is no longer officially supported" >&5
  23344. $as_echo "$as_me: WARNING: Due to bugs in libnet, it is no longer officially supported" >&2;}
  23345. fi
  23346. fi
  23347. # Check whether --with-libnet was given.
  23348. if test "${with_libnet+set}" = set; then
  23349. withval=$with_libnet; trynetdir=$withval
  23350. fi
  23351. if test x$use_libnet = xyes ; then
  23352. { $as_echo "$as_me:$LINENO: checking for libnet" >&5
  23353. $as_echo_n "checking for libnet... " >&6; }
  23354. for testdir in $trynetdir /usr/local /opt/local /usr ; do
  23355. if test -f "${testdir}/include/libnet.h" -a $foundnet = no ; then
  23356. LNETINC="${testdir}/include/libnet.h"
  23357. LNETINCDIR="${testdir}/include"
  23358. if test $dynamic_link = yes; then
  23359. if test -f "${testdir}/lib64/libnet${shrext_cmds}" ; then
  23360. LNETLIB="-L${testdir}/lib64 -lnet"
  23361. elif test -f "${testdir}/lib/libnet${shrext_cmds}" ; then
  23362. LNETLIB="-L${testdir}/lib -lnet"
  23363. else
  23364. { { $as_echo "$as_me:$LINENO: error: Unable to find libnet in ${testdir}" >&5
  23365. $as_echo "$as_me: error: Unable to find libnet in ${testdir}" >&2;}
  23366. { (exit 1); exit 1; }; }
  23367. fi
  23368. elif test -f "${testdir}/lib64/libnet.${libext}" ; then
  23369. LNETLIB="${testdir}/lib64/libnet.${libext}"
  23370. elif test -f "${testdir}/lib/libnet.${libext}" ; then
  23371. LNETLIB="${testdir}/lib/libnet.${libext}"
  23372. else
  23373. { { $as_echo "$as_me:$LINENO: error: Unable to find matching library for header file in ${testdir}" >&5
  23374. $as_echo "$as_me: error: Unable to find matching library for header file in ${testdir}" >&2;}
  23375. { (exit 1); exit 1; }; }
  23376. fi
  23377. foundnet=$testdir
  23378. fi
  23379. done
  23380. if test x$foundnet = xno ; then
  23381. { $as_echo "$as_me:$LINENO: result: no" >&5
  23382. $as_echo "no" >&6; }
  23383. else
  23384. { $as_echo "$as_me:$LINENO: result: $foundnet" >&5
  23385. $as_echo "$foundnet" >&6; }
  23386. have_libnet=yes
  23387. cat >>confdefs.h <<\_ACEOF
  23388. #define HAVE_LIBNET 1
  23389. _ACEOF
  23390. fi
  23391. fi
  23392. if test $foundnet != no ; then
  23393. OLDLIBS="$LIBS"
  23394. OLDCFLAGS="$CFLAGS"
  23395. LIBS="$LNETLIB"
  23396. CFLAGS="$CFLAGS -I$LNETINCDIR"
  23397. { $as_echo "$as_me:$LINENO: checking for libnet version" >&5
  23398. $as_echo_n "checking for libnet version... " >&6; }
  23399. if test "$cross_compiling" = yes; then
  23400. libnet_ver_10=no
  23401. else
  23402. cat >conftest.$ac_ext <<_ACEOF
  23403. /* confdefs.h. */
  23404. _ACEOF
  23405. cat confdefs.h >>conftest.$ac_ext
  23406. cat >>conftest.$ac_ext <<_ACEOF
  23407. /* end confdefs.h. */
  23408. #include <string.h>
  23409. #define LIBNET_LIL_ENDIAN 1
  23410. #include "$LNETINC"
  23411. #define LIB_TEST "1.0"
  23412. /*
  23413. * simple proggy to test the version of libnet
  23414. * returns zero if it's 1.0.x
  23415. * or one otherwise
  23416. */
  23417. int
  23418. main (int argc, char *argv[])
  23419. {
  23420. if (strncmp(LIB_TEST, LIBNET_VERSION, 3) == 0)
  23421. exit(0);
  23422. exit(1);
  23423. }
  23424. _ACEOF
  23425. rm -f conftest$ac_exeext
  23426. if { (ac_try="$ac_link"
  23427. case "(($ac_try" in
  23428. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23429. *) ac_try_echo=$ac_try;;
  23430. esac
  23431. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23432. $as_echo "$ac_try_echo") >&5
  23433. (eval "$ac_link") 2>&5
  23434. ac_status=$?
  23435. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23436. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23437. { (case "(($ac_try" in
  23438. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23439. *) ac_try_echo=$ac_try;;
  23440. esac
  23441. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23442. $as_echo "$ac_try_echo") >&5
  23443. (eval "$ac_try") 2>&5
  23444. ac_status=$?
  23445. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23446. (exit $ac_status); }; }; then
  23447. libnet_ver_10=yes
  23448. { $as_echo "$as_me:$LINENO: result: 1.0.x" >&5
  23449. $as_echo "1.0.x" >&6; }
  23450. else
  23451. $as_echo "$as_me: program exited with status $ac_status" >&5
  23452. $as_echo "$as_me: failed program was:" >&5
  23453. sed 's/^/| /' conftest.$ac_ext >&5
  23454. ( exit $ac_status )
  23455. libnet_ver_10=no
  23456. fi
  23457. rm -rf conftest.dSYM
  23458. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23459. fi
  23460. if test "$cross_compiling" = yes; then
  23461. libnet_ver_11=no
  23462. else
  23463. cat >conftest.$ac_ext <<_ACEOF
  23464. /* confdefs.h. */
  23465. _ACEOF
  23466. cat confdefs.h >>conftest.$ac_ext
  23467. cat >>conftest.$ac_ext <<_ACEOF
  23468. /* end confdefs.h. */
  23469. #include <string.h>
  23470. #include "$LNETINC"
  23471. #define LIB_TEST "1.1"
  23472. /*
  23473. * simple proggy to test the version of libnet
  23474. * returns zero if it's 1.0.x
  23475. * or one otherwise
  23476. */
  23477. int
  23478. main (int argc, char *argv[])
  23479. {
  23480. if (strncmp(LIB_TEST, LIBNET_VERSION, 3) == 0)
  23481. exit(0);
  23482. exit(1);
  23483. }
  23484. _ACEOF
  23485. rm -f conftest$ac_exeext
  23486. if { (ac_try="$ac_link"
  23487. case "(($ac_try" in
  23488. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23489. *) ac_try_echo=$ac_try;;
  23490. esac
  23491. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23492. $as_echo "$ac_try_echo") >&5
  23493. (eval "$ac_link") 2>&5
  23494. ac_status=$?
  23495. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23496. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23497. { (case "(($ac_try" in
  23498. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23499. *) ac_try_echo=$ac_try;;
  23500. esac
  23501. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23502. $as_echo "$ac_try_echo") >&5
  23503. (eval "$ac_try") 2>&5
  23504. ac_status=$?
  23505. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23506. (exit $ac_status); }; }; then
  23507. libnet_ver_11=yes
  23508. { $as_echo "$as_me:$LINENO: result: 1.1.x" >&5
  23509. $as_echo "1.1.x" >&6; }
  23510. else
  23511. $as_echo "$as_me: program exited with status $ac_status" >&5
  23512. $as_echo "$as_me: failed program was:" >&5
  23513. sed 's/^/| /' conftest.$ac_ext >&5
  23514. ( exit $ac_status )
  23515. libnet_ver_11=no
  23516. fi
  23517. rm -rf conftest.dSYM
  23518. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23519. fi
  23520. if test $libnet_ver_10 = no -a $libnet_ver_11 = no ; then
  23521. { $as_echo "$as_me:$LINENO: result: unknown" >&5
  23522. $as_echo "unknown" >&6; }
  23523. { { $as_echo "$as_me:$LINENO: error: Unable to determine version of libnet" >&5
  23524. $as_echo "$as_me: error: Unable to determine version of libnet" >&2;}
  23525. { (exit 1); exit 1; }; }
  23526. fi
  23527. if test $libnet_ver_10 = yes ; then
  23528. { { $as_echo "$as_me:$LINENO: error: Libnet version 1.0.x is no longer supported.
  23529. Please upgrade to 1.1.0 or better" >&5
  23530. $as_echo "$as_me: error: Libnet version 1.0.x is no longer supported.
  23531. Please upgrade to 1.1.0 or better" >&2;}
  23532. { (exit 1); exit 1; }; }
  23533. fi
  23534. LIBS="$OLDLIBS"
  23535. CFLAGS="$OLDCFLAGS"
  23536. fi
  23537. foundpcap=no
  23538. trypcapdir=/usr/local
  23539. { $as_echo "$as_me:$LINENO: checking for libpcap" >&5
  23540. $as_echo_n "checking for libpcap... " >&6; }
  23541. # Check whether --with-libpcap was given.
  23542. if test "${with_libpcap+set}" = set; then
  23543. withval=$with_libpcap; trypcapdir=$withval
  23544. fi
  23545. for testdir in $trypcapdir /usr/local /opt/local /usr /wpdpack ; do
  23546. if test -f "${testdir}/include/pcap.h" -a $foundpcap = no ; then
  23547. LPCAPINC="${testdir}/include/pcap.h"
  23548. LPCAPINCDIR="${testdir}/include"
  23549. if test $dynamic_link = yes; then
  23550. if test -f "${testdir}/lib64/libpcap${shrext_cmds}" ; then
  23551. LPCAPLIB="-L${testdir}/lib64 -lpcap"
  23552. elif test -f "${testdir}/lib/libpcap${shrext_cmds}" ; then
  23553. LPCAPLIB="-L${testdir}/lib -lpcap"
  23554. else
  23555. { { $as_echo "$as_me:$LINENO: error: Unable to find libpcap in ${testdir}" >&5
  23556. $as_echo "$as_me: error: Unable to find libpcap in ${testdir}" >&2;}
  23557. { (exit 1); exit 1; }; }
  23558. fi
  23559. elif test -f "${testdir}/lib64/libpcap.${libext}" ; then
  23560. LPCAPLIB="${testdir}/lib64/libpcap.${libext}"
  23561. elif test -f "${testdir}/lib/libpcap.${libext}" ; then
  23562. LPCAPLIB="${testdir}/lib/libpcap.${libext}"
  23563. elif test -f "${testdir}/lib/libwpcap.${libext}" ; then
  23564. LPCAPLIB="${testdir}/lib/libwpcap.${libext}"
  23565. cat >>confdefs.h <<\_ACEOF
  23566. #define HAVE_WINPCAP 1
  23567. _ACEOF
  23568. else
  23569. { { $as_echo "$as_me:$LINENO: error: Unable to find matching library for header file in ${testdir}" >&5
  23570. $as_echo "$as_me: error: Unable to find matching library for header file in ${testdir}" >&2;}
  23571. { (exit 1); exit 1; }; }
  23572. fi
  23573. foundpcap=$testdir
  23574. fi
  23575. done
  23576. if test $foundpcap = no ; then
  23577. { $as_echo "$as_me:$LINENO: result: no" >&5
  23578. $as_echo "no" >&6; }
  23579. { { $as_echo "$as_me:$LINENO: error: libpcap not found" >&5
  23580. $as_echo "$as_me: error: libpcap not found" >&2;}
  23581. { (exit 1); exit 1; }; }
  23582. else
  23583. { $as_echo "$as_me:$LINENO: result: $foundpcap" >&5
  23584. $as_echo "$foundpcap" >&6; }
  23585. fi
  23586. OLDLIBS="$LIBS"
  23587. OLDCFLAGS="$CFLAGS -I$LPCAPINCDIR"
  23588. LIBS="$LPCAPLIB"
  23589. CFLAGS="$CFLAGS -I$LPCAPINCDIR"
  23590. { $as_echo "$as_me:$LINENO: checking for libpcap version" >&5
  23591. $as_echo_n "checking for libpcap version... " >&6; }
  23592. libpcap_version_096=no
  23593. if test "$cross_compiling" = yes; then
  23594. { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  23595. See \`config.log' for more details." >&5
  23596. $as_echo "$as_me: error: cannot run test program while cross compiling
  23597. See \`config.log' for more details." >&2;}
  23598. { (exit 1); exit 1; }; }
  23599. else
  23600. cat >conftest.$ac_ext <<_ACEOF
  23601. /* confdefs.h. */
  23602. _ACEOF
  23603. cat confdefs.h >>conftest.$ac_ext
  23604. cat >>conftest.$ac_ext <<_ACEOF
  23605. /* end confdefs.h. */
  23606. #include <string.h>
  23607. #include <stdlib.h>
  23608. #include <stdio.h>
  23609. #include "$LPCAPINC"
  23610. #define PCAP_TEST "0.9.6"
  23611. int
  23612. main ()
  23613. {
  23614. /*
  23615. * simple proggy to test the version of libpcap
  23616. * returns zero if version >= 0.9.6
  23617. * or one otherwise
  23618. */
  23619. if (strncmp(pcap_lib_version(), PCAP_TEST, 5) >= 0)
  23620. exit(0);
  23621. exit(1);
  23622. ;
  23623. return 0;
  23624. }
  23625. _ACEOF
  23626. rm -f conftest$ac_exeext
  23627. if { (ac_try="$ac_link"
  23628. case "(($ac_try" in
  23629. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23630. *) ac_try_echo=$ac_try;;
  23631. esac
  23632. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23633. $as_echo "$ac_try_echo") >&5
  23634. (eval "$ac_link") 2>&5
  23635. ac_status=$?
  23636. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23637. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23638. { (case "(($ac_try" in
  23639. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23640. *) ac_try_echo=$ac_try;;
  23641. esac
  23642. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23643. $as_echo "$ac_try_echo") >&5
  23644. (eval "$ac_try") 2>&5
  23645. ac_status=$?
  23646. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23647. (exit $ac_status); }; }; then
  23648. libpcap_version_096=yes
  23649. else
  23650. $as_echo "$as_me: program exited with status $ac_status" >&5
  23651. $as_echo "$as_me: failed program was:" >&5
  23652. sed 's/^/| /' conftest.$ac_ext >&5
  23653. fi
  23654. rm -rf conftest.dSYM
  23655. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23656. fi
  23657. if test "$cross_compiling" = yes; then
  23658. { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  23659. See \`config.log' for more details." >&5
  23660. $as_echo "$as_me: error: cannot run test program while cross compiling
  23661. See \`config.log' for more details." >&2;}
  23662. { (exit 1); exit 1; }; }
  23663. else
  23664. cat >conftest.$ac_ext <<_ACEOF
  23665. /* confdefs.h. */
  23666. _ACEOF
  23667. cat confdefs.h >>conftest.$ac_ext
  23668. cat >>conftest.$ac_ext <<_ACEOF
  23669. /* end confdefs.h. */
  23670. #include <string.h>
  23671. #include <stdlib.h>
  23672. #include <stdio.h>
  23673. #include "$LPCAPINC"
  23674. #define PCAP_TEST "0.8"
  23675. int
  23676. main ()
  23677. {
  23678. /*
  23679. * simple proggy to test the version of libpcap
  23680. * returns zero if version >= 0.8.0
  23681. * or one otherwise
  23682. */
  23683. if (strncmp(pcap_lib_version(), PCAP_TEST, 3) >= 0)
  23684. exit(0);
  23685. /* winpcap? */
  23686. if (strncmp(pcap_lib_version(), "WinPcap", 7) == 0)
  23687. exit(0);
  23688. exit(1);
  23689. ;
  23690. return 0;
  23691. }
  23692. _ACEOF
  23693. rm -f conftest$ac_exeext
  23694. if { (ac_try="$ac_link"
  23695. case "(($ac_try" in
  23696. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23697. *) ac_try_echo=$ac_try;;
  23698. esac
  23699. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23700. $as_echo "$ac_try_echo") >&5
  23701. (eval "$ac_link") 2>&5
  23702. ac_status=$?
  23703. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23704. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23705. { (case "(($ac_try" in
  23706. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23707. *) ac_try_echo=$ac_try;;
  23708. esac
  23709. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23710. $as_echo "$ac_try_echo") >&5
  23711. (eval "$ac_try") 2>&5
  23712. ac_status=$?
  23713. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23714. (exit $ac_status); }; }; then
  23715. libpcap_ver8=yes
  23716. else
  23717. $as_echo "$as_me: program exited with status $ac_status" >&5
  23718. $as_echo "$as_me: failed program was:" >&5
  23719. sed 's/^/| /' conftest.$ac_ext >&5
  23720. ( exit $ac_status )
  23721. libpcap_ver8=no
  23722. fi
  23723. rm -rf conftest.dSYM
  23724. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23725. fi
  23726. if test "$cross_compiling" = yes; then
  23727. { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  23728. See \`config.log' for more details." >&5
  23729. $as_echo "$as_me: error: cannot run test program while cross compiling
  23730. See \`config.log' for more details." >&2;}
  23731. { (exit 1); exit 1; }; }
  23732. else
  23733. cat >conftest.$ac_ext <<_ACEOF
  23734. /* confdefs.h. */
  23735. _ACEOF
  23736. cat confdefs.h >>conftest.$ac_ext
  23737. cat >>conftest.$ac_ext <<_ACEOF
  23738. /* end confdefs.h. */
  23739. #include <string.h>
  23740. #include <stdlib.h>
  23741. #include <stdio.h>
  23742. #include "$LPCAPINC"
  23743. #define PCAP_TEST "0.7.2"
  23744. extern const char pcap_version[]; /* double up since autoconf escapes things */
  23745. int
  23746. main ()
  23747. {
  23748. /*
  23749. * simple proggy to test the version of libpcap
  23750. * returns zero if version >= 0.7.2
  23751. * or one otherwise
  23752. */
  23753. if (strncmp(pcap_version, PCAP_TEST, 5) >= 0)
  23754. exit(0);
  23755. exit(1);
  23756. ;
  23757. return 0;
  23758. }
  23759. _ACEOF
  23760. rm -f conftest$ac_exeext
  23761. if { (ac_try="$ac_link"
  23762. case "(($ac_try" in
  23763. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23764. *) ac_try_echo=$ac_try;;
  23765. esac
  23766. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23767. $as_echo "$ac_try_echo") >&5
  23768. (eval "$ac_link") 2>&5
  23769. ac_status=$?
  23770. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23771. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23772. { (case "(($ac_try" in
  23773. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23774. *) ac_try_echo=$ac_try;;
  23775. esac
  23776. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23777. $as_echo "$ac_try_echo") >&5
  23778. (eval "$ac_try") 2>&5
  23779. ac_status=$?
  23780. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23781. (exit $ac_status); }; }; then
  23782. libpcap_ver7=yes
  23783. else
  23784. $as_echo "$as_me: program exited with status $ac_status" >&5
  23785. $as_echo "$as_me: failed program was:" >&5
  23786. sed 's/^/| /' conftest.$ac_ext >&5
  23787. ( exit $ac_status )
  23788. libpcap_ver7=no
  23789. fi
  23790. rm -rf conftest.dSYM
  23791. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23792. fi
  23793. if test $libpcap_ver8 = yes ; then
  23794. { $as_echo "$as_me:$LINENO: result: >= 0.8.0" >&5
  23795. $as_echo ">= 0.8.0" >&6; }
  23796. elif test $libpcap_ver7 = yes ; then
  23797. { $as_echo "$as_me:$LINENO: result: >= 0.7.2" >&5
  23798. $as_echo ">= 0.7.2" >&6; }
  23799. else
  23800. { { $as_echo "$as_me:$LINENO: error: Libpcap versions < 0.7.2 are not supported
  23801. Please upgrade to version 0.7.2 or better" >&5
  23802. $as_echo "$as_me: error: Libpcap versions < 0.7.2 are not supported
  23803. Please upgrade to version 0.7.2 or better" >&2;}
  23804. { (exit 1); exit 1; }; }
  23805. fi
  23806. libpcap_version=unknown
  23807. if test $libpcap_version_096 = yes ; then
  23808. libpcap_version=">= 0.9.6"
  23809. elif test $libpcap_ver8 = yes ; then
  23810. libpcap_version=">= 0.8.0"
  23811. elif test $libcap_ver7 = yes ; then
  23812. libpcap_version=">= 0.7.0"
  23813. fi
  23814. { $as_echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
  23815. $as_echo_n "checking for pcap_datalink_val_to_description... " >&6; }
  23816. cat >conftest.$ac_ext <<_ACEOF
  23817. /* confdefs.h. */
  23818. _ACEOF
  23819. cat confdefs.h >>conftest.$ac_ext
  23820. cat >>conftest.$ac_ext <<_ACEOF
  23821. /* end confdefs.h. */
  23822. #include <stdio.h>
  23823. #include <stdlib.h>
  23824. #include <string.h>
  23825. #include "$LPCAPINC"
  23826. int
  23827. main ()
  23828. {
  23829. if (strcmp(pcap_datalink_val_to_description(1), "Ethernet (10Mb)") == 0)
  23830. exit(0);
  23831. exit(1);
  23832. ;
  23833. return 0;
  23834. }
  23835. _ACEOF
  23836. rm -f conftest.$ac_objext conftest$ac_exeext
  23837. if { (ac_try="$ac_link"
  23838. case "(($ac_try" in
  23839. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23840. *) ac_try_echo=$ac_try;;
  23841. esac
  23842. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23843. $as_echo "$ac_try_echo") >&5
  23844. (eval "$ac_link") 2>conftest.er1
  23845. ac_status=$?
  23846. grep -v '^ *+' conftest.er1 >conftest.err
  23847. rm -f conftest.er1
  23848. cat conftest.err >&5
  23849. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23850. (exit $ac_status); } && {
  23851. test -z "$ac_c_werror_flag" ||
  23852. test ! -s conftest.err
  23853. } && test -s conftest$ac_exeext && {
  23854. test "$cross_compiling" = yes ||
  23855. $as_test_x conftest$ac_exeext
  23856. }; then
  23857. have_dlt_to_desc=yes
  23858. { $as_echo "$as_me:$LINENO: result: yes" >&5
  23859. $as_echo "yes" >&6; }
  23860. else
  23861. $as_echo "$as_me: failed program was:" >&5
  23862. sed 's/^/| /' conftest.$ac_ext >&5
  23863. have_dlt_to_desc=no
  23864. { $as_echo "$as_me:$LINENO: result: no" >&5
  23865. $as_echo "no" >&6; }
  23866. fi
  23867. rm -rf conftest.dSYM
  23868. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23869. conftest$ac_exeext conftest.$ac_ext
  23870. if test $have_dlt_to_desc = yes ; then
  23871. cat >>confdefs.h <<\_ACEOF
  23872. #define HAVE_DLT_VAL_TO_DESC 1
  23873. _ACEOF
  23874. fi
  23875. { $as_echo "$as_me:$LINENO: checking for pcap_dump_fopen" >&5
  23876. $as_echo_n "checking for pcap_dump_fopen... " >&6; }
  23877. cat >conftest.$ac_ext <<_ACEOF
  23878. /* confdefs.h. */
  23879. _ACEOF
  23880. cat confdefs.h >>conftest.$ac_ext
  23881. cat >>conftest.$ac_ext <<_ACEOF
  23882. /* end confdefs.h. */
  23883. #include <stdio.h>
  23884. #include <stdlib.h>
  23885. #include <string.h>
  23886. #include "$LPCAPINC"
  23887. int
  23888. main ()
  23889. {
  23890. pcap_dumper_t *dump;
  23891. pcap_t *pcap;
  23892. FILE *foo;
  23893. dump = pcap_dump_fopen(pcap, foo);
  23894. ;
  23895. return 0;
  23896. }
  23897. _ACEOF
  23898. rm -f conftest.$ac_objext conftest$ac_exeext
  23899. if { (ac_try="$ac_link"
  23900. case "(($ac_try" in
  23901. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23902. *) ac_try_echo=$ac_try;;
  23903. esac
  23904. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23905. $as_echo "$ac_try_echo") >&5
  23906. (eval "$ac_link") 2>conftest.er1
  23907. ac_status=$?
  23908. grep -v '^ *+' conftest.er1 >conftest.err
  23909. rm -f conftest.er1
  23910. cat conftest.err >&5
  23911. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23912. (exit $ac_status); } && {
  23913. test -z "$ac_c_werror_flag" ||
  23914. test ! -s conftest.err
  23915. } && test -s conftest$ac_exeext && {
  23916. test "$cross_compiling" = yes ||
  23917. $as_test_x conftest$ac_exeext
  23918. }; then
  23919. have_pcap_dump_fopen=yes
  23920. { $as_echo "$as_me:$LINENO: result: yes" >&5
  23921. $as_echo "yes" >&6; }
  23922. else
  23923. $as_echo "$as_me: failed program was:" >&5
  23924. sed 's/^/| /' conftest.$ac_ext >&5
  23925. have_pcap_dump_fopen=no
  23926. { $as_echo "$as_me:$LINENO: result: no" >&5
  23927. $as_echo "no" >&6; }
  23928. fi
  23929. rm -rf conftest.dSYM
  23930. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23931. conftest$ac_exeext conftest.$ac_ext
  23932. if test $have_pcap_dump_fopen = yes ; then
  23933. cat >>confdefs.h <<\_ACEOF
  23934. #define HAVE_PCAP_DUMP_FOPEN 1
  23935. _ACEOF
  23936. else
  23937. { $as_echo "$as_me:$LINENO: --verbose mode requires libpcap >= 0.9.0" >&5
  23938. $as_echo "$as_me: --verbose mode requires libpcap >= 0.9.0" >&6;}
  23939. fi
  23940. have_pcap_inject=no
  23941. { $as_echo "$as_me:$LINENO: checking for pcap_inject sending support" >&5
  23942. $as_echo_n "checking for pcap_inject sending support... " >&6; }
  23943. cat >conftest.$ac_ext <<_ACEOF
  23944. /* confdefs.h. */
  23945. _ACEOF
  23946. cat confdefs.h >>conftest.$ac_ext
  23947. cat >>conftest.$ac_ext <<_ACEOF
  23948. /* end confdefs.h. */
  23949. #include <stdio.h>
  23950. #include <stdlib.h>
  23951. #include <string.h>
  23952. #include "$LPCAPINC"
  23953. int
  23954. main ()
  23955. {
  23956. pcap_t *pcap;
  23957. char *buf;
  23958. pcap_inject(pcap, (void *)buf, 0);
  23959. ;
  23960. return 0;
  23961. }
  23962. _ACEOF
  23963. rm -f conftest.$ac_objext
  23964. if { (ac_try="$ac_compile"
  23965. case "(($ac_try" in
  23966. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23967. *) ac_try_echo=$ac_try;;
  23968. esac
  23969. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23970. $as_echo "$ac_try_echo") >&5
  23971. (eval "$ac_compile") 2>conftest.er1
  23972. ac_status=$?
  23973. grep -v '^ *+' conftest.er1 >conftest.err
  23974. rm -f conftest.er1
  23975. cat conftest.err >&5
  23976. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23977. (exit $ac_status); } && {
  23978. test -z "$ac_c_werror_flag" ||
  23979. test ! -s conftest.err
  23980. } && test -s conftest.$ac_objext; then
  23981. cat >>confdefs.h <<\_ACEOF
  23982. #define HAVE_PCAP_INJECT 1
  23983. _ACEOF
  23984. { $as_echo "$as_me:$LINENO: result: yes" >&5
  23985. $as_echo "yes" >&6; }
  23986. have_pcap_inject=yes
  23987. else
  23988. $as_echo "$as_me: failed program was:" >&5
  23989. sed 's/^/| /' conftest.$ac_ext >&5
  23990. { $as_echo "$as_me:$LINENO: result: no" >&5
  23991. $as_echo "no" >&6; }
  23992. fi
  23993. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23994. have_pcap_version=no
  23995. { $as_echo "$as_me:$LINENO: checking for pcap_version" >&5
  23996. $as_echo_n "checking for pcap_version... " >&6; }
  23997. cat >conftest.$ac_ext <<_ACEOF
  23998. /* confdefs.h. */
  23999. _ACEOF
  24000. cat confdefs.h >>conftest.$ac_ext
  24001. cat >>conftest.$ac_ext <<_ACEOF
  24002. /* end confdefs.h. */
  24003. #include <stdio.h>
  24004. #include <stdlib.h>
  24005. #include <string.h>
  24006. #include "$LPCAPINC"
  24007. extern char pcap_version[];
  24008. int
  24009. main ()
  24010. {
  24011. printf("%s", pcap_version);
  24012. ;
  24013. return 0;
  24014. }
  24015. _ACEOF
  24016. rm -f conftest.$ac_objext
  24017. if { (ac_try="$ac_compile"
  24018. case "(($ac_try" in
  24019. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24020. *) ac_try_echo=$ac_try;;
  24021. esac
  24022. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24023. $as_echo "$ac_try_echo") >&5
  24024. (eval "$ac_compile") 2>conftest.er1
  24025. ac_status=$?
  24026. grep -v '^ *+' conftest.er1 >conftest.err
  24027. rm -f conftest.er1
  24028. cat conftest.err >&5
  24029. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24030. (exit $ac_status); } && {
  24031. test -z "$ac_c_werror_flag" ||
  24032. test ! -s conftest.err
  24033. } && test -s conftest.$ac_objext; then
  24034. cat >>confdefs.h <<\_ACEOF
  24035. #define HAVE_PCAP_VERSION 1
  24036. _ACEOF
  24037. { $as_echo "$as_me:$LINENO: result: yes" >&5
  24038. $as_echo "yes" >&6; }
  24039. else
  24040. $as_echo "$as_me: failed program was:" >&5
  24041. sed 's/^/| /' conftest.$ac_ext >&5
  24042. { $as_echo "$as_me:$LINENO: result: no" >&5
  24043. $as_echo "no" >&6; }
  24044. fi
  24045. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24046. have_pcap_sendpacket=no
  24047. { $as_echo "$as_me:$LINENO: checking for pcap_sendpacket sending support" >&5
  24048. $as_echo_n "checking for pcap_sendpacket sending support... " >&6; }
  24049. cat >conftest.$ac_ext <<_ACEOF
  24050. /* confdefs.h. */
  24051. _ACEOF
  24052. cat confdefs.h >>conftest.$ac_ext
  24053. cat >>conftest.$ac_ext <<_ACEOF
  24054. /* end confdefs.h. */
  24055. #include <stdio.h>
  24056. #include <stdlib.h>
  24057. #include <string.h>
  24058. #include "$LPCAPINC"
  24059. int
  24060. main ()
  24061. {
  24062. pcap_t *pcap;
  24063. u_char *buf;
  24064. pcap_sendpacket(pcap, buf, 0);
  24065. ;
  24066. return 0;
  24067. }
  24068. _ACEOF
  24069. rm -f conftest.$ac_objext
  24070. if { (ac_try="$ac_compile"
  24071. case "(($ac_try" in
  24072. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24073. *) ac_try_echo=$ac_try;;
  24074. esac
  24075. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24076. $as_echo "$ac_try_echo") >&5
  24077. (eval "$ac_compile") 2>conftest.er1
  24078. ac_status=$?
  24079. grep -v '^ *+' conftest.er1 >conftest.err
  24080. rm -f conftest.er1
  24081. cat conftest.err >&5
  24082. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24083. (exit $ac_status); } && {
  24084. test -z "$ac_c_werror_flag" ||
  24085. test ! -s conftest.err
  24086. } && test -s conftest.$ac_objext; then
  24087. cat >>confdefs.h <<\_ACEOF
  24088. #define HAVE_PCAP_SENDPACKET 1
  24089. _ACEOF
  24090. { $as_echo "$as_me:$LINENO: result: yes" >&5
  24091. $as_echo "yes" >&6; }
  24092. have_pcap_sendpacket=yes
  24093. else
  24094. $as_echo "$as_me: failed program was:" >&5
  24095. sed 's/^/| /' conftest.$ac_ext >&5
  24096. { $as_echo "$as_me:$LINENO: result: no" >&5
  24097. $as_echo "no" >&6; }
  24098. fi
  24099. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24100. have_pf=no
  24101. { $as_echo "$as_me:$LINENO: checking for PF_PACKET socket sending support" >&5
  24102. $as_echo_n "checking for PF_PACKET socket sending support... " >&6; }
  24103. cat >conftest.$ac_ext <<_ACEOF
  24104. /* confdefs.h. */
  24105. _ACEOF
  24106. cat confdefs.h >>conftest.$ac_ext
  24107. cat >>conftest.$ac_ext <<_ACEOF
  24108. /* end confdefs.h. */
  24109. #include <sys/socket.h>
  24110. #include <netpacket/packet.h>
  24111. #include <net/ethernet.h> /* the L2 protocols */
  24112. #include <netinet/in.h> /* htons */
  24113. int
  24114. main ()
  24115. {
  24116. int pf_socket;
  24117. pf_socket = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
  24118. ;
  24119. return 0;
  24120. }
  24121. _ACEOF
  24122. rm -f conftest.$ac_objext
  24123. if { (ac_try="$ac_compile"
  24124. case "(($ac_try" in
  24125. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24126. *) ac_try_echo=$ac_try;;
  24127. esac
  24128. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24129. $as_echo "$ac_try_echo") >&5
  24130. (eval "$ac_compile") 2>conftest.er1
  24131. ac_status=$?
  24132. grep -v '^ *+' conftest.er1 >conftest.err
  24133. rm -f conftest.er1
  24134. cat conftest.err >&5
  24135. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24136. (exit $ac_status); } && {
  24137. test -z "$ac_c_werror_flag" ||
  24138. test ! -s conftest.err
  24139. } && test -s conftest.$ac_objext; then
  24140. cat >>confdefs.h <<\_ACEOF
  24141. #define HAVE_PF_PACKET 1
  24142. _ACEOF
  24143. { $as_echo "$as_me:$LINENO: result: yes" >&5
  24144. $as_echo "yes" >&6; }
  24145. have_pf=yes
  24146. else
  24147. $as_echo "$as_me: failed program was:" >&5
  24148. sed 's/^/| /' conftest.$ac_ext >&5
  24149. { $as_echo "$as_me:$LINENO: result: no" >&5
  24150. $as_echo "no" >&6; }
  24151. fi
  24152. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24153. have_bpf=no
  24154. { $as_echo "$as_me:$LINENO: checking for BPF device sending support" >&5
  24155. $as_echo_n "checking for BPF device sending support... " >&6; }
  24156. if test "$cross_compiling" = yes; then
  24157. { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  24158. See \`config.log' for more details." >&5
  24159. $as_echo "$as_me: error: cannot run test program while cross compiling
  24160. See \`config.log' for more details." >&2;}
  24161. { (exit 1); exit 1; }; }
  24162. else
  24163. cat >conftest.$ac_ext <<_ACEOF
  24164. /* confdefs.h. */
  24165. _ACEOF
  24166. cat confdefs.h >>conftest.$ac_ext
  24167. cat >>conftest.$ac_ext <<_ACEOF
  24168. /* end confdefs.h. */
  24169. #include <stdio.h>
  24170. #include <stdlib.h>
  24171. #include <sys/types.h>
  24172. #include <sys/socket.h>
  24173. #include <fcntl.h>
  24174. #include <sys/time.h>
  24175. #include <sys/ioctl.h>
  24176. #include <stdint.h>
  24177. #include <net/bpf.h>
  24178. #include <errno.h>
  24179. int
  24180. main(int argc, char *argv[]) {
  24181. int fd;
  24182. fd = open("/dev/bpf0", O_RDONLY, 0);
  24183. /* if we opened it, we're good */
  24184. if (fd > 1)
  24185. exit(0);
  24186. /* if we got EBUSY or permission denied it exists, so we're good */
  24187. if (fd < 0 && (errno == EBUSY || errno == 13))
  24188. exit(0);
  24189. /* else suck, no good */
  24190. exit(-1);
  24191. }
  24192. _ACEOF
  24193. rm -f conftest$ac_exeext
  24194. if { (ac_try="$ac_link"
  24195. case "(($ac_try" in
  24196. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24197. *) ac_try_echo=$ac_try;;
  24198. esac
  24199. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24200. $as_echo "$ac_try_echo") >&5
  24201. (eval "$ac_link") 2>&5
  24202. ac_status=$?
  24203. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24204. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  24205. { (case "(($ac_try" in
  24206. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24207. *) ac_try_echo=$ac_try;;
  24208. esac
  24209. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24210. $as_echo "$ac_try_echo") >&5
  24211. (eval "$ac_try") 2>&5
  24212. ac_status=$?
  24213. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24214. (exit $ac_status); }; }; then
  24215. cat >>confdefs.h <<\_ACEOF
  24216. #define HAVE_BPF 1
  24217. _ACEOF
  24218. { $as_echo "$as_me:$LINENO: result: yes" >&5
  24219. $as_echo "yes" >&6; }
  24220. have_bpf=yes
  24221. else
  24222. $as_echo "$as_me: program exited with status $ac_status" >&5
  24223. $as_echo "$as_me: failed program was:" >&5
  24224. sed 's/^/| /' conftest.$ac_ext >&5
  24225. ( exit $ac_status )
  24226. { $as_echo "$as_me:$LINENO: result: no" >&5
  24227. $as_echo "no" >&6; }
  24228. fi
  24229. rm -rf conftest.dSYM
  24230. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  24231. fi
  24232. if test $have_bpf = no -a $have_pcap_inject = no -a $have_pcap_sendpacket = no \
  24233. -a $have_libnet = no -a $have_pf = no ; then
  24234. { { $as_echo "$as_me:$LINENO: error: Unable to find a supported method to send packets. Please upgrade your libpcap or enable libnet" >&5
  24235. $as_echo "$as_me: error: Unable to find a supported method to send packets. Please upgrade your libpcap or enable libnet" >&2;}
  24236. { (exit 1); exit 1; }; }
  24237. fi
  24238. enable_tcpbridge=yes
  24239. if test $have_bpf = no -a $have_libnet = no -a $have_pf = no ; then
  24240. { $as_echo "$as_me:$LINENO: tcpbridge support disabled without BPF, Libnet or Linux PF_PACKET" >&5
  24241. $as_echo "$as_me: tcpbridge support disabled without BPF, Libnet or Linux PF_PACKET" >&6;}
  24242. enable_tcpbridge=no
  24243. fi
  24244. # ADT: Commented for now
  24245. # AM_CONDITIONAL(ENABLE_TCPBRIDGE, [test $enable_tcpbridge = yes])
  24246. { $as_echo "$as_me:$LINENO: checking for DLT_LINUX_SLL in libpcap" >&5
  24247. $as_echo_n "checking for DLT_LINUX_SLL in libpcap... " >&6; }
  24248. cat >conftest.$ac_ext <<_ACEOF
  24249. /* confdefs.h. */
  24250. _ACEOF
  24251. cat confdefs.h >>conftest.$ac_ext
  24252. cat >>conftest.$ac_ext <<_ACEOF
  24253. /* end confdefs.h. */
  24254. #include "$LPCAPINC"
  24255. int
  24256. main ()
  24257. {
  24258. int foo;
  24259. foo = DLT_LINUX_SLL
  24260. ;
  24261. return 0;
  24262. }
  24263. _ACEOF
  24264. rm -f conftest.$ac_objext
  24265. if { (ac_try="$ac_compile"
  24266. case "(($ac_try" in
  24267. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24268. *) ac_try_echo=$ac_try;;
  24269. esac
  24270. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24271. $as_echo "$ac_try_echo") >&5
  24272. (eval "$ac_compile") 2>conftest.er1
  24273. ac_status=$?
  24274. grep -v '^ *+' conftest.er1 >conftest.err
  24275. rm -f conftest.er1
  24276. cat conftest.err >&5
  24277. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24278. (exit $ac_status); } && {
  24279. test -z "$ac_c_werror_flag" ||
  24280. test ! -s conftest.err
  24281. } && test -s conftest.$ac_objext; then
  24282. cat >>confdefs.h <<\_ACEOF
  24283. #define HAVE_DLT_LINUX_SLL 1
  24284. _ACEOF
  24285. { $as_echo "$as_me:$LINENO: result: yes" >&5
  24286. $as_echo "yes" >&6; }
  24287. else
  24288. $as_echo "$as_me: failed program was:" >&5
  24289. sed 's/^/| /' conftest.$ac_ext >&5
  24290. { $as_echo "$as_me:$LINENO: result: no" >&5
  24291. $as_echo "no" >&6; }
  24292. fi
  24293. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24294. { $as_echo "$as_me:$LINENO: checking for DLT_C_HDLC in libpcap" >&5
  24295. $as_echo_n "checking for DLT_C_HDLC in libpcap... " >&6; }
  24296. cat >conftest.$ac_ext <<_ACEOF
  24297. /* confdefs.h. */
  24298. _ACEOF
  24299. cat confdefs.h >>conftest.$ac_ext
  24300. cat >>conftest.$ac_ext <<_ACEOF
  24301. /* end confdefs.h. */
  24302. #include "$LPCAPINC"
  24303. int
  24304. main ()
  24305. {
  24306. int foo;
  24307. foo = DLT_C_HDLC
  24308. ;
  24309. return 0;
  24310. }
  24311. _ACEOF
  24312. rm -f conftest.$ac_objext
  24313. if { (ac_try="$ac_compile"
  24314. case "(($ac_try" in
  24315. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24316. *) ac_try_echo=$ac_try;;
  24317. esac
  24318. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24319. $as_echo "$ac_try_echo") >&5
  24320. (eval "$ac_compile") 2>conftest.er1
  24321. ac_status=$?
  24322. grep -v '^ *+' conftest.er1 >conftest.err
  24323. rm -f conftest.er1
  24324. cat conftest.err >&5
  24325. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24326. (exit $ac_status); } && {
  24327. test -z "$ac_c_werror_flag" ||
  24328. test ! -s conftest.err
  24329. } && test -s conftest.$ac_objext; then
  24330. cat >>confdefs.h <<\_ACEOF
  24331. #define HAVE_DLT_C_HDLC 1
  24332. _ACEOF
  24333. { $as_echo "$as_me:$LINENO: result: yes" >&5
  24334. $as_echo "yes" >&6; }
  24335. else
  24336. $as_echo "$as_me: failed program was:" >&5
  24337. sed 's/^/| /' conftest.$ac_ext >&5
  24338. { $as_echo "$as_me:$LINENO: result: no" >&5
  24339. $as_echo "no" >&6; }
  24340. fi
  24341. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24342. PCAP_BPF_H_FILE="$LPCAPINCDIR/pcap-bpf.h"
  24343. { $as_echo "$as_me:$LINENO: checking for $PCAP_BPF_H_FILE" >&5
  24344. $as_echo_n "checking for $PCAP_BPF_H_FILE... " >&6; }
  24345. cat >conftest.$ac_ext <<_ACEOF
  24346. /* confdefs.h. */
  24347. _ACEOF
  24348. cat confdefs.h >>conftest.$ac_ext
  24349. cat >>conftest.$ac_ext <<_ACEOF
  24350. /* end confdefs.h. */
  24351. #include <sys/types.h>
  24352. #include <sys/time.h>
  24353. #include <stdint.h>
  24354. #include "$PCAP_BPF_H_FILE"
  24355. int
  24356. main ()
  24357. {
  24358. int foo;
  24359. foo = BPF_MAJOR_VERSION;
  24360. ;
  24361. return 0;
  24362. }
  24363. _ACEOF
  24364. rm -f conftest.$ac_objext
  24365. if { (ac_try="$ac_compile"
  24366. case "(($ac_try" in
  24367. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24368. *) ac_try_echo=$ac_try;;
  24369. esac
  24370. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24371. $as_echo "$ac_try_echo") >&5
  24372. (eval "$ac_compile") 2>conftest.er1
  24373. ac_status=$?
  24374. grep -v '^ *+' conftest.er1 >conftest.err
  24375. rm -f conftest.er1
  24376. cat conftest.err >&5
  24377. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24378. (exit $ac_status); } && {
  24379. test -z "$ac_c_werror_flag" ||
  24380. test ! -s conftest.err
  24381. } && test -s conftest.$ac_objext; then
  24382. cat >>confdefs.h <<\_ACEOF
  24383. #define INCLUDE_PCAP_BPF_HEADER 1
  24384. _ACEOF
  24385. { $as_echo "$as_me:$LINENO: result: yes" >&5
  24386. $as_echo "yes" >&6; }
  24387. else
  24388. $as_echo "$as_me: failed program was:" >&5
  24389. sed 's/^/| /' conftest.$ac_ext >&5
  24390. { $as_echo "$as_me:$LINENO: result: no" >&5
  24391. $as_echo "no" >&6; }
  24392. fi
  24393. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24394. foundbpfheader=no
  24395. { $as_echo "$as_me:$LINENO: checking for libpcap bpf header" >&5
  24396. $as_echo_n "checking for libpcap bpf header... " >&6; }
  24397. for testfile in $LPCAPINCDIR/pcap/bpf.h $LPCAPINCDIR/pcap-bpf.h ; do
  24398. if test -f "${testfile}" -a $foundbpfheader = no ; then
  24399. cat >conftest.$ac_ext <<_ACEOF
  24400. /* confdefs.h. */
  24401. _ACEOF
  24402. cat confdefs.h >>conftest.$ac_ext
  24403. cat >>conftest.$ac_ext <<_ACEOF
  24404. /* end confdefs.h. */
  24405. #include <sys/types.h>
  24406. #include <sys/time.h>
  24407. #include <stdint.h>
  24408. #include "$testfile"
  24409. int
  24410. main ()
  24411. {
  24412. int foo;
  24413. foo = BPF_MAJOR_VERSION;
  24414. ;
  24415. return 0;
  24416. }
  24417. _ACEOF
  24418. rm -f conftest.$ac_objext
  24419. if { (ac_try="$ac_compile"
  24420. case "(($ac_try" in
  24421. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24422. *) ac_try_echo=$ac_try;;
  24423. esac
  24424. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24425. $as_echo "$ac_try_echo") >&5
  24426. (eval "$ac_compile") 2>conftest.er1
  24427. ac_status=$?
  24428. grep -v '^ *+' conftest.er1 >conftest.err
  24429. rm -f conftest.er1
  24430. cat conftest.err >&5
  24431. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24432. (exit $ac_status); } && {
  24433. test -z "$ac_c_werror_flag" ||
  24434. test ! -s conftest.err
  24435. } && test -s conftest.$ac_objext; then
  24436. foundbpfheader=yes
  24437. PCAP_BPF_H_FILE=$testfile
  24438. cat >>confdefs.h <<\_ACEOF
  24439. #define INCLUDE_PCAP_BPF_HEADER 1
  24440. _ACEOF
  24441. { $as_echo "$as_me:$LINENO: result: $testfile" >&5
  24442. $as_echo "$testfile" >&6; }
  24443. else
  24444. $as_echo "$as_me: failed program was:" >&5
  24445. sed 's/^/| /' conftest.$ac_ext >&5
  24446. { $as_echo "$as_me:$LINENO: result: no" >&5
  24447. $as_echo "no" >&6; }
  24448. fi
  24449. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24450. fi
  24451. done
  24452. LIBS="$OLDLIBS"
  24453. CFLAGS="$OLDCFLAGS"
  24454. founddnet=no
  24455. enable_fragroute=no
  24456. trydnetdir=/usr/local
  24457. { $as_echo "$as_me:$LINENO: checking for libdnet" >&5
  24458. $as_echo_n "checking for libdnet... " >&6; }
  24459. # Check whether --with-libdnet was given.
  24460. if test "${with_libdnet+set}" = set; then
  24461. withval=$with_libdnet; trydnetdir=$withval
  24462. fi
  24463. for testdir in $trydnetdir /usr/local /opt/local /usr ; do
  24464. if test -x ${testdir}/bin/dnet-config -a $founddnet = no ; then
  24465. LDNETINC="`$testdir/bin/dnet-config --cflags`"
  24466. LDNETLIB="`$testdir/bin/dnet-config --libs`"
  24467. founddnet=$testdir
  24468. fi
  24469. done
  24470. if test $founddnet = no ; then
  24471. { $as_echo "$as_me:$LINENO: result: no" >&5
  24472. $as_echo "no" >&6; }
  24473. { $as_echo "$as_me:$LINENO: WARNING: libdnet not found, disabling fragroute feature" >&5
  24474. $as_echo "$as_me: WARNING: libdnet not found, disabling fragroute feature" >&2;}
  24475. else
  24476. { $as_echo "$as_me:$LINENO: result: $founddnet" >&5
  24477. $as_echo "$founddnet" >&6; }
  24478. enable_fragroute=yes
  24479. cat >>confdefs.h <<\_ACEOF
  24480. #define HAVE_LIBDNET 1
  24481. _ACEOF
  24482. fi
  24483. if test x$founddnet != xno; then
  24484. COMPILE_FRAGROUTE_TRUE=
  24485. COMPILE_FRAGROUTE_FALSE='#'
  24486. else
  24487. COMPILE_FRAGROUTE_TRUE='#'
  24488. COMPILE_FRAGROUTE_FALSE=
  24489. fi
  24490. if test x$founddnet != xno ; then
  24491. cat >>confdefs.h <<\_ACEOF
  24492. #define ENABLE_FRAGROUTE 1
  24493. _ACEOF
  24494. fi
  24495. pcapnav_ver=no
  24496. pcncfg=no
  24497. # Check whether --with-pcapnav-config was given.
  24498. if test "${with_pcapnav_config+set}" = set; then
  24499. withval=$with_pcapnav_config; { $as_echo "$as_me:$LINENO: checking for pcapnav-config" >&5
  24500. $as_echo_n "checking for pcapnav-config... " >&6; }
  24501. if test -x $withval ; then
  24502. pcncfg=$withval
  24503. { $as_echo "$as_me:$LINENO: result: $pcncfg" >&5
  24504. $as_echo "$pcncfg" >&6; }
  24505. elif test x$withval = xno ; then
  24506. { $as_echo "$as_me:$LINENO: result: no" >&5
  24507. $as_echo "no" >&6; }
  24508. else
  24509. { $as_echo "$as_me:$LINENO: result: Can't find pcapnav-config: disabling offset jump feature" >&5
  24510. $as_echo "Can't find pcapnav-config: disabling offset jump feature" >&6; }
  24511. fi
  24512. else
  24513. # Extract the first word of "pcapnav-config", so it can be a program name with args.
  24514. set dummy pcapnav-config; ac_word=$2
  24515. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  24516. $as_echo_n "checking for $ac_word... " >&6; }
  24517. if test "${ac_cv_path_pcncfg+set}" = set; then
  24518. $as_echo_n "(cached) " >&6
  24519. else
  24520. case $pcncfg in
  24521. [\\/]* | ?:[\\/]*)
  24522. ac_cv_path_pcncfg="$pcncfg" # Let the user override the test with a path.
  24523. ;;
  24524. *)
  24525. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24526. for as_dir in $PATH
  24527. do
  24528. IFS=$as_save_IFS
  24529. test -z "$as_dir" && as_dir=.
  24530. for ac_exec_ext in '' $ac_executable_extensions; do
  24531. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24532. ac_cv_path_pcncfg="$as_dir/$ac_word$ac_exec_ext"
  24533. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24534. break 2
  24535. fi
  24536. done
  24537. done
  24538. IFS=$as_save_IFS
  24539. test -z "$ac_cv_path_pcncfg" && ac_cv_path_pcncfg="no "
  24540. ;;
  24541. esac
  24542. fi
  24543. pcncfg=$ac_cv_path_pcncfg
  24544. if test -n "$pcncfg"; then
  24545. { $as_echo "$as_me:$LINENO: result: $pcncfg" >&5
  24546. $as_echo "$pcncfg" >&6; }
  24547. else
  24548. { $as_echo "$as_me:$LINENO: result: no" >&5
  24549. $as_echo "no" >&6; }
  24550. fi
  24551. fi
  24552. if test $pcncfg != no ; then
  24553. LNAVLIB=`$pcncfg --libs`
  24554. LNAV_CFLAGS=`$pcncfg --cflags`
  24555. PCAPNAV_VERSION=`$pcncfg --version`
  24556. cat >>confdefs.h <<_ACEOF
  24557. #define PCAPNAV_VERSION "$PCAPNAV_VERSION"
  24558. _ACEOF
  24559. { $as_echo "$as_me:$LINENO: checking for libpcapnav version" >&5
  24560. $as_echo_n "checking for libpcapnav version... " >&6; }
  24561. if test "$cross_compiling" = yes; then
  24562. libpcapnav_ver=no
  24563. else
  24564. cat >conftest.$ac_ext <<_ACEOF
  24565. /* confdefs.h. */
  24566. _ACEOF
  24567. cat confdefs.h >>conftest.$ac_ext
  24568. cat >>conftest.$ac_ext <<_ACEOF
  24569. /* end confdefs.h. */
  24570. #include <string.h>
  24571. #define PCAPNAV_TEST "0.4"
  24572. /*
  24573. * simple proggy to test the version of libpcapnav
  24574. * returns zero if version >= 0.4
  24575. * or one otherwise
  24576. */
  24577. int
  24578. main (int argc, char *argv[])
  24579. {
  24580. if (strncmp(PCAPNAV_VERSION, PCAPNAV_TEST, 3) >= 0)
  24581. exit(0);
  24582. exit(1);
  24583. }
  24584. _ACEOF
  24585. rm -f conftest$ac_exeext
  24586. if { (ac_try="$ac_link"
  24587. case "(($ac_try" in
  24588. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24589. *) ac_try_echo=$ac_try;;
  24590. esac
  24591. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24592. $as_echo "$ac_try_echo") >&5
  24593. (eval "$ac_link") 2>&5
  24594. ac_status=$?
  24595. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24596. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  24597. { (case "(($ac_try" in
  24598. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24599. *) ac_try_echo=$ac_try;;
  24600. esac
  24601. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24602. $as_echo "$ac_try_echo") >&5
  24603. (eval "$ac_try") 2>&5
  24604. ac_status=$?
  24605. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24606. (exit $ac_status); }; }; then
  24607. libpcapnav_ver=yes
  24608. { $as_echo "$as_me:$LINENO: result: >= 0.4" >&5
  24609. $as_echo ">= 0.4" >&6; }
  24610. else
  24611. $as_echo "$as_me: program exited with status $ac_status" >&5
  24612. $as_echo "$as_me: failed program was:" >&5
  24613. sed 's/^/| /' conftest.$ac_ext >&5
  24614. ( exit $ac_status )
  24615. libpcapnav_ver=no
  24616. { $as_echo "$as_me:$LINENO: result: < 0.4" >&5
  24617. $as_echo "< 0.4" >&6; }
  24618. fi
  24619. rm -rf conftest.dSYM
  24620. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  24621. fi
  24622. if test x$libpcapnav_ver = xno ; then
  24623. { $as_echo "$as_me:$LINENO: WARNING: Libpcapnav versions < 0.4 are not supported.
  24624. Please upgrade to version 0.4 or better.
  24625. Disabling offset jump feature." >&5
  24626. $as_echo "$as_me: WARNING: Libpcapnav versions < 0.4 are not supported.
  24627. Please upgrade to version 0.4 or better.
  24628. Disabling offset jump feature." >&2;}
  24629. else
  24630. cat >>confdefs.h <<\_ACEOF
  24631. #define HAVE_PCAPNAV 1
  24632. _ACEOF
  24633. fi
  24634. fi # checking pcapnav version
  24635. { $as_echo "$as_me:$LINENO: checking for requires strict byte alignment" >&5
  24636. $as_echo_n "checking for requires strict byte alignment... " >&6; }
  24637. if test "${unaligned_cv_fail+set}" = set; then
  24638. $as_echo_n "(cached) " >&6
  24639. else
  24640. case "$host_cpu" in
  24641. # XXX: should also check that they don't do weird things (like on arm)
  24642. alpha*|arm*|hp*|mips*|sparc*|ia64)
  24643. unaligned_cv_fail=yes
  24644. ;;
  24645. *)
  24646. cat >conftest.c <<EOF
  24647. #include <sys/types.h>
  24648. #include <sys/wait.h>
  24649. #include <stdio.h>
  24650. unsigned char a[5] = { 1, 2, 3, 4, 5 };
  24651. main() {
  24652. unsigned int i;
  24653. pid_t pid;
  24654. int status;
  24655. /* avoid "core dumped" message */
  24656. pid = fork();
  24657. if (pid < 0)
  24658. exit(2);
  24659. if (pid > 0) {
  24660. /* parent */
  24661. pid = waitpid(pid, &status, 0);
  24662. if (pid < 0)
  24663. exit(3);
  24664. exit(!WIFEXITED(status));
  24665. }
  24666. /* child */
  24667. i = *(unsigned int *)&a[1];
  24668. printf("%d\n", i);
  24669. exit(0);
  24670. }
  24671. EOF
  24672. ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
  24673. conftest.c $LIBS >/dev/null 2>&1
  24674. if test ! -x conftest ; then
  24675. unaligned_cv_fail=yes
  24676. else
  24677. ./conftest >conftest.out
  24678. if test ! -s conftest.out ; then
  24679. unaligned_cv_fail=yes
  24680. else
  24681. unaligned_cv_fail=no
  24682. fi
  24683. fi
  24684. rm -f conftest* core core.conftest
  24685. ;;
  24686. esac
  24687. fi
  24688. { $as_echo "$as_me:$LINENO: result: $unaligned_cv_fail" >&5
  24689. $as_echo "$unaligned_cv_fail" >&6; }
  24690. if test $unaligned_cv_fail = yes ; then
  24691. cat >>confdefs.h <<\_ACEOF
  24692. #define FORCE_ALIGN 1
  24693. _ACEOF
  24694. fi
  24695. tcpdump_path=no
  24696. # Check whether --with-tcpdump was given.
  24697. if test "${with_tcpdump+set}" = set; then
  24698. withval=$with_tcpdump; if test -x $withval ; then
  24699. tcpdump_path=$withval
  24700. { $as_echo "$as_me:$LINENO: result: Using tcpdump in $tcpdump_path" >&5
  24701. $as_echo "Using tcpdump in $tcpdump_path" >&6; }
  24702. else
  24703. { $as_echo "$as_me:$LINENO: result: Error: $withval does not exist or is not executable" >&5
  24704. $as_echo "Error: $withval does not exist or is not executable" >&6; }
  24705. fi
  24706. else
  24707. # Extract the first word of "tcpdump", so it can be a program name with args.
  24708. set dummy tcpdump; ac_word=$2
  24709. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  24710. $as_echo_n "checking for $ac_word... " >&6; }
  24711. if test "${ac_cv_path_tcpdump_path+set}" = set; then
  24712. $as_echo_n "(cached) " >&6
  24713. else
  24714. case $tcpdump_path in
  24715. [\\/]* | ?:[\\/]*)
  24716. ac_cv_path_tcpdump_path="$tcpdump_path" # Let the user override the test with a path.
  24717. ;;
  24718. *)
  24719. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24720. as_dummy="$PATH:/usr/sbin:/sbin:/usr/local/sbin"
  24721. for as_dir in $as_dummy
  24722. do
  24723. IFS=$as_save_IFS
  24724. test -z "$as_dir" && as_dir=.
  24725. for ac_exec_ext in '' $ac_executable_extensions; do
  24726. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24727. ac_cv_path_tcpdump_path="$as_dir/$ac_word$ac_exec_ext"
  24728. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24729. break 2
  24730. fi
  24731. done
  24732. done
  24733. IFS=$as_save_IFS
  24734. test -z "$ac_cv_path_tcpdump_path" && ac_cv_path_tcpdump_path=""no""
  24735. ;;
  24736. esac
  24737. fi
  24738. tcpdump_path=$ac_cv_path_tcpdump_path
  24739. if test -n "$tcpdump_path"; then
  24740. { $as_echo "$as_me:$LINENO: result: $tcpdump_path" >&5
  24741. $as_echo "$tcpdump_path" >&6; }
  24742. else
  24743. { $as_echo "$as_me:$LINENO: result: no" >&5
  24744. $as_echo "no" >&6; }
  24745. fi
  24746. fi
  24747. if test "$tcpdump_path" = "no"; then
  24748. { $as_echo "$as_me:$LINENO: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.
  24749. Disabling --verbose" >&5
  24750. $as_echo "$as_me: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.
  24751. Disabling --verbose" >&2;}
  24752. else
  24753. cat >>confdefs.h <<\_ACEOF
  24754. #define HAVE_TCPDUMP 1
  24755. _ACEOF
  24756. cat >>confdefs.h <<_ACEOF
  24757. #define TCPDUMP_BINARY "$tcpdump_path"
  24758. _ACEOF
  24759. fi
  24760. if test "$tcpdump_path" != "no" -a x$have_pcap_dump_fopen = xyes; then
  24761. ENABLE_TCPDUMP_TRUE=
  24762. ENABLE_TCPDUMP_FALSE='#'
  24763. else
  24764. ENABLE_TCPDUMP_TRUE='#'
  24765. ENABLE_TCPDUMP_FALSE=
  24766. fi
  24767. if test x$tcpdump_path != xno -a x$have_pcap_dump_fopen = xyes ; then
  24768. cat >>confdefs.h <<\_ACEOF
  24769. #define ENABLE_VERBOSE 1
  24770. _ACEOF
  24771. else
  24772. { $as_echo "$as_me:$LINENO: WARNING: Your version of libpcap is too old for --verbose support" >&5
  24773. $as_echo "$as_me: WARNING: Your version of libpcap is too old for --verbose support" >&2;}
  24774. fi
  24775. { $as_echo "$as_me:$LINENO: checking for 'make test' profile" >&5
  24776. $as_echo_n "checking for 'make test' profile... " >&6; }
  24777. if test "$host" != "$build" ; then
  24778. { $as_echo "$as_me:$LINENO: WARNING: Unable to do tests when cross-compiling" >&5
  24779. $as_echo "$as_me: WARNING: Unable to do tests when cross-compiling" >&2;}
  24780. fi
  24781. # Check whether --with-testnic was given.
  24782. if test "${with_testnic+set}" = set; then
  24783. withval=$with_testnic; nic1=$withval
  24784. nic2=$withval
  24785. { $as_echo "$as_me:$LINENO: result: Using --with-testnic=$withval" >&5
  24786. $as_echo "Using --with-testnic=$withval" >&6; }
  24787. else
  24788. disable_pcap_findalldevs=no
  24789. osx_frameworks=no
  24790. case $host in
  24791. *-*-linux*)
  24792. nic1=eth0
  24793. nic2=eth0
  24794. { $as_echo "$as_me:$LINENO: result: Linux" >&5
  24795. $as_echo "Linux" >&6; }
  24796. ;;
  24797. *-*-solaris*)
  24798. nic1=hme0
  24799. nic2=hme0
  24800. { $as_echo "$as_me:$LINENO: result: Solaris" >&5
  24801. $as_echo "Solaris" >&6; }
  24802. ;;
  24803. *-*-sunos*)
  24804. nic1=hme0
  24805. nic2=hme0
  24806. { $as_echo "$as_me:$LINENO: result: SunOS" >&5
  24807. $as_echo "SunOS" >&6; }
  24808. ;;
  24809. *-apple-darwin*)
  24810. nic1=en0
  24811. nic2=en0
  24812. if test x$libpcap_version_096 = xno ; then
  24813. disable_pcap_findalldevs=yes
  24814. fi
  24815. cat >>confdefs.h <<\_ACEOF
  24816. #define HAVE_ABSOLUTE_TIME 1
  24817. _ACEOF
  24818. osx_frameworks=yes
  24819. { $as_echo "$as_me:$LINENO: result: Apple OS X" >&5
  24820. $as_echo "Apple OS X" >&6; }
  24821. ;;
  24822. *-*-openbsd*)
  24823. nic1=xl0
  24824. nic2=xl0
  24825. { $as_echo "$as_me:$LINENO: result: OpenBSD" >&5
  24826. $as_echo "OpenBSD" >&6; }
  24827. ;;
  24828. *-*-cygwin)
  24829. { $as_echo "$as_me:$LINENO: result: Win32/Cygwin" >&5
  24830. $as_echo "Win32/Cygwin" >&6; }
  24831. nic1=%0
  24832. nic2=%0
  24833. ;;
  24834. *)
  24835. { $as_echo "$as_me:$LINENO: result: $host is unknown! Using first non-loopback interface" >&5
  24836. $as_echo "$host is unknown! Using first non-loopback interface" >&6; }
  24837. nic1=%0
  24838. nic2=%0
  24839. ;;
  24840. esac
  24841. fi
  24842. if test "$osx_frameworks" == "yes"; then
  24843. ENABLE_OSX_FRAMEWORKS_TRUE=
  24844. ENABLE_OSX_FRAMEWORKS_FALSE='#'
  24845. else
  24846. ENABLE_OSX_FRAMEWORKS_TRUE='#'
  24847. ENABLE_OSX_FRAMEWORKS_FALSE=
  24848. fi
  24849. # Check whether --with-testnic2 was given.
  24850. if test "${with_testnic2+set}" = set; then
  24851. withval=$with_testnic2; nic2=$withval
  24852. fi
  24853. { $as_echo "$as_me:$LINENO: Using $nic1 for 1st test network interface card" >&5
  24854. $as_echo "$as_me: Using $nic1 for 1st test network interface card" >&6;}
  24855. { $as_echo "$as_me:$LINENO: Using $nic2 for 2nd test network interface card" >&5
  24856. $as_echo "$as_me: Using $nic2 for 2nd test network interface card" >&6;}
  24857. { $as_echo "$as_me:$LINENO: checking if it's ok to use pcap_findalldevs()" >&5
  24858. $as_echo_n "checking if it's ok to use pcap_findalldevs()... " >&6; }
  24859. if test x$disable_pcap_findalldevs = xno ; then
  24860. cat >>confdefs.h <<\_ACEOF
  24861. #define ENABLE_PCAP_FINDALLDEVS 1
  24862. _ACEOF
  24863. { $as_echo "$as_me:$LINENO: result: yes" >&5
  24864. $as_echo "yes" >&6; }
  24865. else
  24866. { $as_echo "$as_me:$LINENO: result: no" >&5
  24867. $as_echo "no" >&6; }
  24868. fi
  24869. case "${enable_local_libopts+set}" in
  24870. set) ;;
  24871. *) enable_local_libopts=yes ;;
  24872. esac
  24873. case "${enable_libopts_install+set}" in
  24874. set) ;;
  24875. *) enable_libopts_install=no ;;
  24876. esac
  24877. NEED_LIBOPTS_DIR=''
  24878. LIBOPTS_DIR=libopts
  24879. # Check whether --enable-local-libopts was given.
  24880. if test "${enable_local_libopts+set}" = set; then
  24881. enableval=$enable_local_libopts;
  24882. if test x$enableval = xyes ; then
  24883. { $as_echo "$as_me:$LINENO: Using supplied libopts tearoff" >&5
  24884. $as_echo "$as_me: Using supplied libopts tearoff" >&6;}
  24885. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  24886. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  24887. NEED_LIBOPTS_DIR=true
  24888. fi
  24889. fi
  24890. # Check whether --enable-libopts-install was given.
  24891. if test "${enable_libopts_install+set}" = set; then
  24892. enableval=$enable_libopts_install;
  24893. fi
  24894. if test "X${enable_libopts_install}" != Xno; then
  24895. INSTALL_LIBOPTS_TRUE=
  24896. INSTALL_LIBOPTS_FALSE='#'
  24897. else
  24898. INSTALL_LIBOPTS_TRUE='#'
  24899. INSTALL_LIBOPTS_FALSE=
  24900. fi
  24901. if test -z "${NEED_LIBOPTS_DIR}" ; then
  24902. { $as_echo "$as_me:$LINENO: checking whether autoopts-config can be found" >&5
  24903. $as_echo_n "checking whether autoopts-config can be found... " >&6; }
  24904. # Check whether --with-autoopts-config was given.
  24905. if test "${with_autoopts_config+set}" = set; then
  24906. withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
  24907. else
  24908. { $as_echo "$as_me:$LINENO: checking whether autoopts-config is specified" >&5
  24909. $as_echo_n "checking whether autoopts-config is specified... " >&6; }
  24910. if test "${lo_cv_with_autoopts_config+set}" = set; then
  24911. $as_echo_n "(cached) " >&6
  24912. else
  24913. if autoopts-config --help 2>/dev/null 1>&2
  24914. then lo_cv_with_autoopts_config=autoopts-config
  24915. elif libopts-config --help 2>/dev/null 1>&2
  24916. then lo_cv_with_autoopts_config=libopts-config
  24917. else lo_cv_with_autoopts_config=no ; fi
  24918. fi
  24919. { $as_echo "$as_me:$LINENO: result: $lo_cv_with_autoopts_config" >&5
  24920. $as_echo "$lo_cv_with_autoopts_config" >&6; }
  24921. fi
  24922. # end of AC_ARG_WITH
  24923. if test "${lo_cv_test_autoopts+set}" = set; then
  24924. $as_echo_n "(cached) " >&6
  24925. else
  24926. if test -z "${lo_cv_with_autoopts_config}" \
  24927. -o X"${lo_cv_with_autoopts_config}" = Xno
  24928. then
  24929. if autoopts-config --help 2>/dev/null 1>&2
  24930. then lo_cv_with_autoopts_config=autoopts-config
  24931. elif libopts-config --help 2>/dev/null 1>&2
  24932. then lo_cv_with_autoopts_config=libopts-config
  24933. else lo_cv_with_autoopts_config=false ; fi
  24934. fi
  24935. lo_cv_test_autoopts=`
  24936. ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
  24937. if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
  24938. then lo_cv_test_autoopts=no ; fi
  24939. fi
  24940. # end of CACHE_VAL
  24941. { $as_echo "$as_me:$LINENO: result: ${lo_cv_test_autoopts}" >&5
  24942. $as_echo "${lo_cv_test_autoopts}" >&6; }
  24943. if test "X${lo_cv_test_autoopts}" != Xno
  24944. then
  24945. LIBOPTS_LDADD="${lo_cv_test_autoopts}"
  24946. LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
  24947. else
  24948. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  24949. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  24950. NEED_LIBOPTS_DIR=true
  24951. fi
  24952. fi # end of if test -z "${NEED_LIBOPTS_DIR}"
  24953. if test -n "${NEED_LIBOPTS_DIR}"; then
  24954. NEED_LIBOPTS_TRUE=
  24955. NEED_LIBOPTS_FALSE='#'
  24956. else
  24957. NEED_LIBOPTS_TRUE='#'
  24958. NEED_LIBOPTS_FALSE=
  24959. fi
  24960. LIBOPTS_DIR=libopts
  24961. ac_config_files="$ac_config_files libopts/Makefile"
  24962. if test -n "${NEED_LIBOPTS_DIR}" ; then
  24963. if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
  24964. # =================
  24965. # AC_HEADER_STDC
  24966. # =================
  24967. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  24968. $as_echo_n "checking for ANSI C header files... " >&6; }
  24969. if test "${ac_cv_header_stdc+set}" = set; then
  24970. $as_echo_n "(cached) " >&6
  24971. else
  24972. cat >conftest.$ac_ext <<_ACEOF
  24973. /* confdefs.h. */
  24974. _ACEOF
  24975. cat confdefs.h >>conftest.$ac_ext
  24976. cat >>conftest.$ac_ext <<_ACEOF
  24977. /* end confdefs.h. */
  24978. #include <stdlib.h>
  24979. #include <stdarg.h>
  24980. #include <string.h>
  24981. #include <float.h>
  24982. int
  24983. main ()
  24984. {
  24985. ;
  24986. return 0;
  24987. }
  24988. _ACEOF
  24989. rm -f conftest.$ac_objext
  24990. if { (ac_try="$ac_compile"
  24991. case "(($ac_try" in
  24992. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24993. *) ac_try_echo=$ac_try;;
  24994. esac
  24995. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24996. $as_echo "$ac_try_echo") >&5
  24997. (eval "$ac_compile") 2>conftest.er1
  24998. ac_status=$?
  24999. grep -v '^ *+' conftest.er1 >conftest.err
  25000. rm -f conftest.er1
  25001. cat conftest.err >&5
  25002. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25003. (exit $ac_status); } && {
  25004. test -z "$ac_c_werror_flag" ||
  25005. test ! -s conftest.err
  25006. } && test -s conftest.$ac_objext; then
  25007. ac_cv_header_stdc=yes
  25008. else
  25009. $as_echo "$as_me: failed program was:" >&5
  25010. sed 's/^/| /' conftest.$ac_ext >&5
  25011. ac_cv_header_stdc=no
  25012. fi
  25013. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25014. if test $ac_cv_header_stdc = yes; then
  25015. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  25016. cat >conftest.$ac_ext <<_ACEOF
  25017. /* confdefs.h. */
  25018. _ACEOF
  25019. cat confdefs.h >>conftest.$ac_ext
  25020. cat >>conftest.$ac_ext <<_ACEOF
  25021. /* end confdefs.h. */
  25022. #include <string.h>
  25023. _ACEOF
  25024. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  25025. $EGREP "memchr" >/dev/null 2>&1; then
  25026. :
  25027. else
  25028. ac_cv_header_stdc=no
  25029. fi
  25030. rm -f conftest*
  25031. fi
  25032. if test $ac_cv_header_stdc = yes; then
  25033. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  25034. cat >conftest.$ac_ext <<_ACEOF
  25035. /* confdefs.h. */
  25036. _ACEOF
  25037. cat confdefs.h >>conftest.$ac_ext
  25038. cat >>conftest.$ac_ext <<_ACEOF
  25039. /* end confdefs.h. */
  25040. #include <stdlib.h>
  25041. _ACEOF
  25042. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  25043. $EGREP "free" >/dev/null 2>&1; then
  25044. :
  25045. else
  25046. ac_cv_header_stdc=no
  25047. fi
  25048. rm -f conftest*
  25049. fi
  25050. if test $ac_cv_header_stdc = yes; then
  25051. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  25052. if test "$cross_compiling" = yes; then
  25053. :
  25054. else
  25055. cat >conftest.$ac_ext <<_ACEOF
  25056. /* confdefs.h. */
  25057. _ACEOF
  25058. cat confdefs.h >>conftest.$ac_ext
  25059. cat >>conftest.$ac_ext <<_ACEOF
  25060. /* end confdefs.h. */
  25061. #include <ctype.h>
  25062. #include <stdlib.h>
  25063. #if ((' ' & 0x0FF) == 0x020)
  25064. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  25065. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  25066. #else
  25067. # define ISLOWER(c) \
  25068. (('a' <= (c) && (c) <= 'i') \
  25069. || ('j' <= (c) && (c) <= 'r') \
  25070. || ('s' <= (c) && (c) <= 'z'))
  25071. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  25072. #endif
  25073. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  25074. int
  25075. main ()
  25076. {
  25077. int i;
  25078. for (i = 0; i < 256; i++)
  25079. if (XOR (islower (i), ISLOWER (i))
  25080. || toupper (i) != TOUPPER (i))
  25081. return 2;
  25082. return 0;
  25083. }
  25084. _ACEOF
  25085. rm -f conftest$ac_exeext
  25086. if { (ac_try="$ac_link"
  25087. case "(($ac_try" in
  25088. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25089. *) ac_try_echo=$ac_try;;
  25090. esac
  25091. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25092. $as_echo "$ac_try_echo") >&5
  25093. (eval "$ac_link") 2>&5
  25094. ac_status=$?
  25095. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25096. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  25097. { (case "(($ac_try" in
  25098. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25099. *) ac_try_echo=$ac_try;;
  25100. esac
  25101. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25102. $as_echo "$ac_try_echo") >&5
  25103. (eval "$ac_try") 2>&5
  25104. ac_status=$?
  25105. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25106. (exit $ac_status); }; }; then
  25107. :
  25108. else
  25109. $as_echo "$as_me: program exited with status $ac_status" >&5
  25110. $as_echo "$as_me: failed program was:" >&5
  25111. sed 's/^/| /' conftest.$ac_ext >&5
  25112. ( exit $ac_status )
  25113. ac_cv_header_stdc=no
  25114. fi
  25115. rm -rf conftest.dSYM
  25116. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  25117. fi
  25118. fi
  25119. fi
  25120. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  25121. $as_echo "$ac_cv_header_stdc" >&6; }
  25122. if test $ac_cv_header_stdc = yes; then
  25123. cat >>confdefs.h <<\_ACEOF
  25124. #define STDC_HEADERS 1
  25125. _ACEOF
  25126. fi
  25127. # =================
  25128. # AC_HEADER_DIRENT
  25129. # =================
  25130. ac_header_dirent=no
  25131. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  25132. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  25133. { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  25134. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  25135. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25136. $as_echo_n "(cached) " >&6
  25137. else
  25138. cat >conftest.$ac_ext <<_ACEOF
  25139. /* confdefs.h. */
  25140. _ACEOF
  25141. cat confdefs.h >>conftest.$ac_ext
  25142. cat >>conftest.$ac_ext <<_ACEOF
  25143. /* end confdefs.h. */
  25144. #include <sys/types.h>
  25145. #include <$ac_hdr>
  25146. int
  25147. main ()
  25148. {
  25149. if ((DIR *) 0)
  25150. return 0;
  25151. ;
  25152. return 0;
  25153. }
  25154. _ACEOF
  25155. rm -f conftest.$ac_objext
  25156. if { (ac_try="$ac_compile"
  25157. case "(($ac_try" in
  25158. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25159. *) ac_try_echo=$ac_try;;
  25160. esac
  25161. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25162. $as_echo "$ac_try_echo") >&5
  25163. (eval "$ac_compile") 2>conftest.er1
  25164. ac_status=$?
  25165. grep -v '^ *+' conftest.er1 >conftest.err
  25166. rm -f conftest.er1
  25167. cat conftest.err >&5
  25168. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25169. (exit $ac_status); } && {
  25170. test -z "$ac_c_werror_flag" ||
  25171. test ! -s conftest.err
  25172. } && test -s conftest.$ac_objext; then
  25173. eval "$as_ac_Header=yes"
  25174. else
  25175. $as_echo "$as_me: failed program was:" >&5
  25176. sed 's/^/| /' conftest.$ac_ext >&5
  25177. eval "$as_ac_Header=no"
  25178. fi
  25179. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25180. fi
  25181. ac_res=`eval 'as_val=${'$as_ac_Header'}
  25182. $as_echo "$as_val"'`
  25183. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  25184. $as_echo "$ac_res" >&6; }
  25185. if test `eval 'as_val=${'$as_ac_Header'}
  25186. $as_echo "$as_val"'` = yes; then
  25187. cat >>confdefs.h <<_ACEOF
  25188. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  25189. _ACEOF
  25190. ac_header_dirent=$ac_hdr; break
  25191. fi
  25192. done
  25193. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  25194. if test $ac_header_dirent = dirent.h; then
  25195. { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
  25196. $as_echo_n "checking for library containing opendir... " >&6; }
  25197. if test "${ac_cv_search_opendir+set}" = set; then
  25198. $as_echo_n "(cached) " >&6
  25199. else
  25200. ac_func_search_save_LIBS=$LIBS
  25201. cat >conftest.$ac_ext <<_ACEOF
  25202. /* confdefs.h. */
  25203. _ACEOF
  25204. cat confdefs.h >>conftest.$ac_ext
  25205. cat >>conftest.$ac_ext <<_ACEOF
  25206. /* end confdefs.h. */
  25207. /* Override any GCC internal prototype to avoid an error.
  25208. Use char because int might match the return type of a GCC
  25209. builtin and then its argument prototype would still apply. */
  25210. #ifdef __cplusplus
  25211. extern "C"
  25212. #endif
  25213. char opendir ();
  25214. int
  25215. main ()
  25216. {
  25217. return opendir ();
  25218. ;
  25219. return 0;
  25220. }
  25221. _ACEOF
  25222. for ac_lib in '' dir; do
  25223. if test -z "$ac_lib"; then
  25224. ac_res="none required"
  25225. else
  25226. ac_res=-l$ac_lib
  25227. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  25228. fi
  25229. rm -f conftest.$ac_objext conftest$ac_exeext
  25230. if { (ac_try="$ac_link"
  25231. case "(($ac_try" in
  25232. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25233. *) ac_try_echo=$ac_try;;
  25234. esac
  25235. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25236. $as_echo "$ac_try_echo") >&5
  25237. (eval "$ac_link") 2>conftest.er1
  25238. ac_status=$?
  25239. grep -v '^ *+' conftest.er1 >conftest.err
  25240. rm -f conftest.er1
  25241. cat conftest.err >&5
  25242. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25243. (exit $ac_status); } && {
  25244. test -z "$ac_c_werror_flag" ||
  25245. test ! -s conftest.err
  25246. } && test -s conftest$ac_exeext && {
  25247. test "$cross_compiling" = yes ||
  25248. $as_test_x conftest$ac_exeext
  25249. }; then
  25250. ac_cv_search_opendir=$ac_res
  25251. else
  25252. $as_echo "$as_me: failed program was:" >&5
  25253. sed 's/^/| /' conftest.$ac_ext >&5
  25254. fi
  25255. rm -rf conftest.dSYM
  25256. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  25257. conftest$ac_exeext
  25258. if test "${ac_cv_search_opendir+set}" = set; then
  25259. break
  25260. fi
  25261. done
  25262. if test "${ac_cv_search_opendir+set}" = set; then
  25263. :
  25264. else
  25265. ac_cv_search_opendir=no
  25266. fi
  25267. rm conftest.$ac_ext
  25268. LIBS=$ac_func_search_save_LIBS
  25269. fi
  25270. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  25271. $as_echo "$ac_cv_search_opendir" >&6; }
  25272. ac_res=$ac_cv_search_opendir
  25273. if test "$ac_res" != no; then
  25274. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  25275. fi
  25276. else
  25277. { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
  25278. $as_echo_n "checking for library containing opendir... " >&6; }
  25279. if test "${ac_cv_search_opendir+set}" = set; then
  25280. $as_echo_n "(cached) " >&6
  25281. else
  25282. ac_func_search_save_LIBS=$LIBS
  25283. cat >conftest.$ac_ext <<_ACEOF
  25284. /* confdefs.h. */
  25285. _ACEOF
  25286. cat confdefs.h >>conftest.$ac_ext
  25287. cat >>conftest.$ac_ext <<_ACEOF
  25288. /* end confdefs.h. */
  25289. /* Override any GCC internal prototype to avoid an error.
  25290. Use char because int might match the return type of a GCC
  25291. builtin and then its argument prototype would still apply. */
  25292. #ifdef __cplusplus
  25293. extern "C"
  25294. #endif
  25295. char opendir ();
  25296. int
  25297. main ()
  25298. {
  25299. return opendir ();
  25300. ;
  25301. return 0;
  25302. }
  25303. _ACEOF
  25304. for ac_lib in '' x; do
  25305. if test -z "$ac_lib"; then
  25306. ac_res="none required"
  25307. else
  25308. ac_res=-l$ac_lib
  25309. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  25310. fi
  25311. rm -f conftest.$ac_objext conftest$ac_exeext
  25312. if { (ac_try="$ac_link"
  25313. case "(($ac_try" in
  25314. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25315. *) ac_try_echo=$ac_try;;
  25316. esac
  25317. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25318. $as_echo "$ac_try_echo") >&5
  25319. (eval "$ac_link") 2>conftest.er1
  25320. ac_status=$?
  25321. grep -v '^ *+' conftest.er1 >conftest.err
  25322. rm -f conftest.er1
  25323. cat conftest.err >&5
  25324. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25325. (exit $ac_status); } && {
  25326. test -z "$ac_c_werror_flag" ||
  25327. test ! -s conftest.err
  25328. } && test -s conftest$ac_exeext && {
  25329. test "$cross_compiling" = yes ||
  25330. $as_test_x conftest$ac_exeext
  25331. }; then
  25332. ac_cv_search_opendir=$ac_res
  25333. else
  25334. $as_echo "$as_me: failed program was:" >&5
  25335. sed 's/^/| /' conftest.$ac_ext >&5
  25336. fi
  25337. rm -rf conftest.dSYM
  25338. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  25339. conftest$ac_exeext
  25340. if test "${ac_cv_search_opendir+set}" = set; then
  25341. break
  25342. fi
  25343. done
  25344. if test "${ac_cv_search_opendir+set}" = set; then
  25345. :
  25346. else
  25347. ac_cv_search_opendir=no
  25348. fi
  25349. rm conftest.$ac_ext
  25350. LIBS=$ac_func_search_save_LIBS
  25351. fi
  25352. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  25353. $as_echo "$ac_cv_search_opendir" >&6; }
  25354. ac_res=$ac_cv_search_opendir
  25355. if test "$ac_res" != no; then
  25356. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  25357. fi
  25358. fi
  25359. # =================
  25360. # AC_CHECK_HEADERS
  25361. # =================
  25362. for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
  25363. setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
  25364. sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h \
  25365. utime.h sysexits.h
  25366. do
  25367. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  25368. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25369. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  25370. $as_echo_n "checking for $ac_header... " >&6; }
  25371. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25372. $as_echo_n "(cached) " >&6
  25373. fi
  25374. ac_res=`eval 'as_val=${'$as_ac_Header'}
  25375. $as_echo "$as_val"'`
  25376. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  25377. $as_echo "$ac_res" >&6; }
  25378. else
  25379. # Is the header compilable?
  25380. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  25381. $as_echo_n "checking $ac_header usability... " >&6; }
  25382. cat >conftest.$ac_ext <<_ACEOF
  25383. /* confdefs.h. */
  25384. _ACEOF
  25385. cat confdefs.h >>conftest.$ac_ext
  25386. cat >>conftest.$ac_ext <<_ACEOF
  25387. /* end confdefs.h. */
  25388. $ac_includes_default
  25389. #include <$ac_header>
  25390. _ACEOF
  25391. rm -f conftest.$ac_objext
  25392. if { (ac_try="$ac_compile"
  25393. case "(($ac_try" in
  25394. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25395. *) ac_try_echo=$ac_try;;
  25396. esac
  25397. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25398. $as_echo "$ac_try_echo") >&5
  25399. (eval "$ac_compile") 2>conftest.er1
  25400. ac_status=$?
  25401. grep -v '^ *+' conftest.er1 >conftest.err
  25402. rm -f conftest.er1
  25403. cat conftest.err >&5
  25404. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25405. (exit $ac_status); } && {
  25406. test -z "$ac_c_werror_flag" ||
  25407. test ! -s conftest.err
  25408. } && test -s conftest.$ac_objext; then
  25409. ac_header_compiler=yes
  25410. else
  25411. $as_echo "$as_me: failed program was:" >&5
  25412. sed 's/^/| /' conftest.$ac_ext >&5
  25413. ac_header_compiler=no
  25414. fi
  25415. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25416. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  25417. $as_echo "$ac_header_compiler" >&6; }
  25418. # Is the header present?
  25419. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  25420. $as_echo_n "checking $ac_header presence... " >&6; }
  25421. cat >conftest.$ac_ext <<_ACEOF
  25422. /* confdefs.h. */
  25423. _ACEOF
  25424. cat confdefs.h >>conftest.$ac_ext
  25425. cat >>conftest.$ac_ext <<_ACEOF
  25426. /* end confdefs.h. */
  25427. #include <$ac_header>
  25428. _ACEOF
  25429. if { (ac_try="$ac_cpp conftest.$ac_ext"
  25430. case "(($ac_try" in
  25431. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25432. *) ac_try_echo=$ac_try;;
  25433. esac
  25434. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25435. $as_echo "$ac_try_echo") >&5
  25436. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  25437. ac_status=$?
  25438. grep -v '^ *+' conftest.er1 >conftest.err
  25439. rm -f conftest.er1
  25440. cat conftest.err >&5
  25441. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25442. (exit $ac_status); } >/dev/null && {
  25443. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  25444. test ! -s conftest.err
  25445. }; then
  25446. ac_header_preproc=yes
  25447. else
  25448. $as_echo "$as_me: failed program was:" >&5
  25449. sed 's/^/| /' conftest.$ac_ext >&5
  25450. ac_header_preproc=no
  25451. fi
  25452. rm -f conftest.err conftest.$ac_ext
  25453. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  25454. $as_echo "$ac_header_preproc" >&6; }
  25455. # So? What about this header?
  25456. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  25457. yes:no: )
  25458. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  25459. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  25460. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  25461. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  25462. ac_header_preproc=yes
  25463. ;;
  25464. no:yes:* )
  25465. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  25466. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  25467. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  25468. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  25469. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  25470. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  25471. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  25472. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  25473. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  25474. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  25475. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  25476. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  25477. ;;
  25478. esac
  25479. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  25480. $as_echo_n "checking for $ac_header... " >&6; }
  25481. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25482. $as_echo_n "(cached) " >&6
  25483. else
  25484. eval "$as_ac_Header=\$ac_header_preproc"
  25485. fi
  25486. ac_res=`eval 'as_val=${'$as_ac_Header'}
  25487. $as_echo "$as_val"'`
  25488. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  25489. $as_echo "$ac_res" >&6; }
  25490. fi
  25491. if test `eval 'as_val=${'$as_ac_Header'}
  25492. $as_echo "$as_val"'` = yes; then
  25493. cat >>confdefs.h <<_ACEOF
  25494. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  25495. _ACEOF
  25496. fi
  25497. done
  25498. # --------------------------------------------
  25499. # Verify certain entries from AC_CHECK_HEADERS
  25500. # --------------------------------------------
  25501. for f in sys_types sys_mman sys_param sys_stat sys_wait \
  25502. string errno stdlib memory setjmp
  25503. do eval as_ac_var=\${ac_cv_header_${f}_h+set}
  25504. test "${as_ac_var}" = set || \
  25505. { { $as_echo "$as_me:$LINENO: error: You must have ${f}.h on your system" >&5
  25506. $as_echo "$as_me: error: You must have ${f}.h on your system" >&2;}
  25507. { (exit 1); exit 1; }; }
  25508. done
  25509. # ================================================
  25510. # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
  25511. # if varargs.h is present define HAVE_VARARGS_H.
  25512. # ================================================
  25513. for ac_header in stdarg.h varargs.h
  25514. do
  25515. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  25516. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25517. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  25518. $as_echo_n "checking for $ac_header... " >&6; }
  25519. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25520. $as_echo_n "(cached) " >&6
  25521. fi
  25522. ac_res=`eval 'as_val=${'$as_ac_Header'}
  25523. $as_echo "$as_val"'`
  25524. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  25525. $as_echo "$ac_res" >&6; }
  25526. else
  25527. # Is the header compilable?
  25528. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  25529. $as_echo_n "checking $ac_header usability... " >&6; }
  25530. cat >conftest.$ac_ext <<_ACEOF
  25531. /* confdefs.h. */
  25532. _ACEOF
  25533. cat confdefs.h >>conftest.$ac_ext
  25534. cat >>conftest.$ac_ext <<_ACEOF
  25535. /* end confdefs.h. */
  25536. $ac_includes_default
  25537. #include <$ac_header>
  25538. _ACEOF
  25539. rm -f conftest.$ac_objext
  25540. if { (ac_try="$ac_compile"
  25541. case "(($ac_try" in
  25542. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25543. *) ac_try_echo=$ac_try;;
  25544. esac
  25545. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25546. $as_echo "$ac_try_echo") >&5
  25547. (eval "$ac_compile") 2>conftest.er1
  25548. ac_status=$?
  25549. grep -v '^ *+' conftest.er1 >conftest.err
  25550. rm -f conftest.er1
  25551. cat conftest.err >&5
  25552. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25553. (exit $ac_status); } && {
  25554. test -z "$ac_c_werror_flag" ||
  25555. test ! -s conftest.err
  25556. } && test -s conftest.$ac_objext; then
  25557. ac_header_compiler=yes
  25558. else
  25559. $as_echo "$as_me: failed program was:" >&5
  25560. sed 's/^/| /' conftest.$ac_ext >&5
  25561. ac_header_compiler=no
  25562. fi
  25563. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25564. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  25565. $as_echo "$ac_header_compiler" >&6; }
  25566. # Is the header present?
  25567. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  25568. $as_echo_n "checking $ac_header presence... " >&6; }
  25569. cat >conftest.$ac_ext <<_ACEOF
  25570. /* confdefs.h. */
  25571. _ACEOF
  25572. cat confdefs.h >>conftest.$ac_ext
  25573. cat >>conftest.$ac_ext <<_ACEOF
  25574. /* end confdefs.h. */
  25575. #include <$ac_header>
  25576. _ACEOF
  25577. if { (ac_try="$ac_cpp conftest.$ac_ext"
  25578. case "(($ac_try" in
  25579. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25580. *) ac_try_echo=$ac_try;;
  25581. esac
  25582. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25583. $as_echo "$ac_try_echo") >&5
  25584. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  25585. ac_status=$?
  25586. grep -v '^ *+' conftest.er1 >conftest.err
  25587. rm -f conftest.er1
  25588. cat conftest.err >&5
  25589. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25590. (exit $ac_status); } >/dev/null && {
  25591. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  25592. test ! -s conftest.err
  25593. }; then
  25594. ac_header_preproc=yes
  25595. else
  25596. $as_echo "$as_me: failed program was:" >&5
  25597. sed 's/^/| /' conftest.$ac_ext >&5
  25598. ac_header_preproc=no
  25599. fi
  25600. rm -f conftest.err conftest.$ac_ext
  25601. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  25602. $as_echo "$ac_header_preproc" >&6; }
  25603. # So? What about this header?
  25604. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  25605. yes:no: )
  25606. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  25607. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  25608. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  25609. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  25610. ac_header_preproc=yes
  25611. ;;
  25612. no:yes:* )
  25613. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  25614. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  25615. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  25616. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  25617. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  25618. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  25619. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  25620. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  25621. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  25622. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  25623. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  25624. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  25625. ;;
  25626. esac
  25627. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  25628. $as_echo_n "checking for $ac_header... " >&6; }
  25629. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25630. $as_echo_n "(cached) " >&6
  25631. else
  25632. eval "$as_ac_Header=\$ac_header_preproc"
  25633. fi
  25634. ac_res=`eval 'as_val=${'$as_ac_Header'}
  25635. $as_echo "$as_val"'`
  25636. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  25637. $as_echo "$ac_res" >&6; }
  25638. fi
  25639. if test `eval 'as_val=${'$as_ac_Header'}
  25640. $as_echo "$as_val"'` = yes; then
  25641. cat >>confdefs.h <<_ACEOF
  25642. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  25643. _ACEOF
  25644. break
  25645. fi
  25646. done
  25647. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  25648. { { $as_echo "$as_me:$LINENO: error: You must have stdarg.h or varargs.h on your system" >&5
  25649. $as_echo "$as_me: error: You must have stdarg.h or varargs.h on your system" >&2;}
  25650. { (exit 1); exit 1; }; }
  25651. fi
  25652. # ================================================
  25653. # Similarly for the string.h and strings.h headers
  25654. # ================================================
  25655. for ac_header in string.h strings.h
  25656. do
  25657. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  25658. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25659. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  25660. $as_echo_n "checking for $ac_header... " >&6; }
  25661. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25662. $as_echo_n "(cached) " >&6
  25663. fi
  25664. ac_res=`eval 'as_val=${'$as_ac_Header'}
  25665. $as_echo "$as_val"'`
  25666. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  25667. $as_echo "$ac_res" >&6; }
  25668. else
  25669. # Is the header compilable?
  25670. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  25671. $as_echo_n "checking $ac_header usability... " >&6; }
  25672. cat >conftest.$ac_ext <<_ACEOF
  25673. /* confdefs.h. */
  25674. _ACEOF
  25675. cat confdefs.h >>conftest.$ac_ext
  25676. cat >>conftest.$ac_ext <<_ACEOF
  25677. /* end confdefs.h. */
  25678. $ac_includes_default
  25679. #include <$ac_header>
  25680. _ACEOF
  25681. rm -f conftest.$ac_objext
  25682. if { (ac_try="$ac_compile"
  25683. case "(($ac_try" in
  25684. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25685. *) ac_try_echo=$ac_try;;
  25686. esac
  25687. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25688. $as_echo "$ac_try_echo") >&5
  25689. (eval "$ac_compile") 2>conftest.er1
  25690. ac_status=$?
  25691. grep -v '^ *+' conftest.er1 >conftest.err
  25692. rm -f conftest.er1
  25693. cat conftest.err >&5
  25694. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25695. (exit $ac_status); } && {
  25696. test -z "$ac_c_werror_flag" ||
  25697. test ! -s conftest.err
  25698. } && test -s conftest.$ac_objext; then
  25699. ac_header_compiler=yes
  25700. else
  25701. $as_echo "$as_me: failed program was:" >&5
  25702. sed 's/^/| /' conftest.$ac_ext >&5
  25703. ac_header_compiler=no
  25704. fi
  25705. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25706. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  25707. $as_echo "$ac_header_compiler" >&6; }
  25708. # Is the header present?
  25709. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  25710. $as_echo_n "checking $ac_header presence... " >&6; }
  25711. cat >conftest.$ac_ext <<_ACEOF
  25712. /* confdefs.h. */
  25713. _ACEOF
  25714. cat confdefs.h >>conftest.$ac_ext
  25715. cat >>conftest.$ac_ext <<_ACEOF
  25716. /* end confdefs.h. */
  25717. #include <$ac_header>
  25718. _ACEOF
  25719. if { (ac_try="$ac_cpp conftest.$ac_ext"
  25720. case "(($ac_try" in
  25721. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25722. *) ac_try_echo=$ac_try;;
  25723. esac
  25724. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25725. $as_echo "$ac_try_echo") >&5
  25726. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  25727. ac_status=$?
  25728. grep -v '^ *+' conftest.er1 >conftest.err
  25729. rm -f conftest.er1
  25730. cat conftest.err >&5
  25731. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25732. (exit $ac_status); } >/dev/null && {
  25733. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  25734. test ! -s conftest.err
  25735. }; then
  25736. ac_header_preproc=yes
  25737. else
  25738. $as_echo "$as_me: failed program was:" >&5
  25739. sed 's/^/| /' conftest.$ac_ext >&5
  25740. ac_header_preproc=no
  25741. fi
  25742. rm -f conftest.err conftest.$ac_ext
  25743. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  25744. $as_echo "$ac_header_preproc" >&6; }
  25745. # So? What about this header?
  25746. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  25747. yes:no: )
  25748. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  25749. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  25750. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  25751. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  25752. ac_header_preproc=yes
  25753. ;;
  25754. no:yes:* )
  25755. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  25756. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  25757. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  25758. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  25759. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  25760. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  25761. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  25762. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  25763. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  25764. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  25765. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  25766. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  25767. ;;
  25768. esac
  25769. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  25770. $as_echo_n "checking for $ac_header... " >&6; }
  25771. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25772. $as_echo_n "(cached) " >&6
  25773. else
  25774. eval "$as_ac_Header=\$ac_header_preproc"
  25775. fi
  25776. ac_res=`eval 'as_val=${'$as_ac_Header'}
  25777. $as_echo "$as_val"'`
  25778. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  25779. $as_echo "$ac_res" >&6; }
  25780. fi
  25781. if test `eval 'as_val=${'$as_ac_Header'}
  25782. $as_echo "$as_val"'` = yes; then
  25783. cat >>confdefs.h <<_ACEOF
  25784. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  25785. _ACEOF
  25786. break
  25787. fi
  25788. done
  25789. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  25790. { { $as_echo "$as_me:$LINENO: error: You must have string.h or strings.h on your system" >&5
  25791. $as_echo "$as_me: error: You must have string.h or strings.h on your system" >&2;}
  25792. { (exit 1); exit 1; }; }
  25793. fi
  25794. # =====================
  25795. # ...and limits headers
  25796. # =====================
  25797. for ac_header in limits.h sys/limits.h values.h
  25798. do
  25799. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  25800. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25801. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  25802. $as_echo_n "checking for $ac_header... " >&6; }
  25803. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25804. $as_echo_n "(cached) " >&6
  25805. fi
  25806. ac_res=`eval 'as_val=${'$as_ac_Header'}
  25807. $as_echo "$as_val"'`
  25808. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  25809. $as_echo "$ac_res" >&6; }
  25810. else
  25811. # Is the header compilable?
  25812. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  25813. $as_echo_n "checking $ac_header usability... " >&6; }
  25814. cat >conftest.$ac_ext <<_ACEOF
  25815. /* confdefs.h. */
  25816. _ACEOF
  25817. cat confdefs.h >>conftest.$ac_ext
  25818. cat >>conftest.$ac_ext <<_ACEOF
  25819. /* end confdefs.h. */
  25820. $ac_includes_default
  25821. #include <$ac_header>
  25822. _ACEOF
  25823. rm -f conftest.$ac_objext
  25824. if { (ac_try="$ac_compile"
  25825. case "(($ac_try" in
  25826. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25827. *) ac_try_echo=$ac_try;;
  25828. esac
  25829. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25830. $as_echo "$ac_try_echo") >&5
  25831. (eval "$ac_compile") 2>conftest.er1
  25832. ac_status=$?
  25833. grep -v '^ *+' conftest.er1 >conftest.err
  25834. rm -f conftest.er1
  25835. cat conftest.err >&5
  25836. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25837. (exit $ac_status); } && {
  25838. test -z "$ac_c_werror_flag" ||
  25839. test ! -s conftest.err
  25840. } && test -s conftest.$ac_objext; then
  25841. ac_header_compiler=yes
  25842. else
  25843. $as_echo "$as_me: failed program was:" >&5
  25844. sed 's/^/| /' conftest.$ac_ext >&5
  25845. ac_header_compiler=no
  25846. fi
  25847. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25848. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  25849. $as_echo "$ac_header_compiler" >&6; }
  25850. # Is the header present?
  25851. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  25852. $as_echo_n "checking $ac_header presence... " >&6; }
  25853. cat >conftest.$ac_ext <<_ACEOF
  25854. /* confdefs.h. */
  25855. _ACEOF
  25856. cat confdefs.h >>conftest.$ac_ext
  25857. cat >>conftest.$ac_ext <<_ACEOF
  25858. /* end confdefs.h. */
  25859. #include <$ac_header>
  25860. _ACEOF
  25861. if { (ac_try="$ac_cpp conftest.$ac_ext"
  25862. case "(($ac_try" in
  25863. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25864. *) ac_try_echo=$ac_try;;
  25865. esac
  25866. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25867. $as_echo "$ac_try_echo") >&5
  25868. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  25869. ac_status=$?
  25870. grep -v '^ *+' conftest.er1 >conftest.err
  25871. rm -f conftest.er1
  25872. cat conftest.err >&5
  25873. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25874. (exit $ac_status); } >/dev/null && {
  25875. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  25876. test ! -s conftest.err
  25877. }; then
  25878. ac_header_preproc=yes
  25879. else
  25880. $as_echo "$as_me: failed program was:" >&5
  25881. sed 's/^/| /' conftest.$ac_ext >&5
  25882. ac_header_preproc=no
  25883. fi
  25884. rm -f conftest.err conftest.$ac_ext
  25885. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  25886. $as_echo "$ac_header_preproc" >&6; }
  25887. # So? What about this header?
  25888. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  25889. yes:no: )
  25890. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  25891. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  25892. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  25893. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  25894. ac_header_preproc=yes
  25895. ;;
  25896. no:yes:* )
  25897. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  25898. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  25899. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  25900. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  25901. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  25902. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  25903. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  25904. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  25905. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  25906. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  25907. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  25908. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  25909. ;;
  25910. esac
  25911. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  25912. $as_echo_n "checking for $ac_header... " >&6; }
  25913. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25914. $as_echo_n "(cached) " >&6
  25915. else
  25916. eval "$as_ac_Header=\$ac_header_preproc"
  25917. fi
  25918. ac_res=`eval 'as_val=${'$as_ac_Header'}
  25919. $as_echo "$as_val"'`
  25920. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  25921. $as_echo "$ac_res" >&6; }
  25922. fi
  25923. if test `eval 'as_val=${'$as_ac_Header'}
  25924. $as_echo "$as_val"'` = yes; then
  25925. cat >>confdefs.h <<_ACEOF
  25926. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  25927. _ACEOF
  25928. break
  25929. fi
  25930. done
  25931. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  25932. { { $as_echo "$as_me:$LINENO: error: You must have one of limits.h, sys/limits.h or values.h" >&5
  25933. $as_echo "$as_me: error: You must have one of limits.h, sys/limits.h or values.h" >&2;}
  25934. { (exit 1); exit 1; }; }
  25935. fi
  25936. # ========================
  25937. # ...and int types headers
  25938. # ========================
  25939. for ac_header in stdint.h inttypes.h
  25940. do
  25941. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  25942. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25943. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  25944. $as_echo_n "checking for $ac_header... " >&6; }
  25945. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25946. $as_echo_n "(cached) " >&6
  25947. fi
  25948. ac_res=`eval 'as_val=${'$as_ac_Header'}
  25949. $as_echo "$as_val"'`
  25950. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  25951. $as_echo "$ac_res" >&6; }
  25952. else
  25953. # Is the header compilable?
  25954. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  25955. $as_echo_n "checking $ac_header usability... " >&6; }
  25956. cat >conftest.$ac_ext <<_ACEOF
  25957. /* confdefs.h. */
  25958. _ACEOF
  25959. cat confdefs.h >>conftest.$ac_ext
  25960. cat >>conftest.$ac_ext <<_ACEOF
  25961. /* end confdefs.h. */
  25962. $ac_includes_default
  25963. #include <$ac_header>
  25964. _ACEOF
  25965. rm -f conftest.$ac_objext
  25966. if { (ac_try="$ac_compile"
  25967. case "(($ac_try" in
  25968. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25969. *) ac_try_echo=$ac_try;;
  25970. esac
  25971. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25972. $as_echo "$ac_try_echo") >&5
  25973. (eval "$ac_compile") 2>conftest.er1
  25974. ac_status=$?
  25975. grep -v '^ *+' conftest.er1 >conftest.err
  25976. rm -f conftest.er1
  25977. cat conftest.err >&5
  25978. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25979. (exit $ac_status); } && {
  25980. test -z "$ac_c_werror_flag" ||
  25981. test ! -s conftest.err
  25982. } && test -s conftest.$ac_objext; then
  25983. ac_header_compiler=yes
  25984. else
  25985. $as_echo "$as_me: failed program was:" >&5
  25986. sed 's/^/| /' conftest.$ac_ext >&5
  25987. ac_header_compiler=no
  25988. fi
  25989. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25990. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  25991. $as_echo "$ac_header_compiler" >&6; }
  25992. # Is the header present?
  25993. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  25994. $as_echo_n "checking $ac_header presence... " >&6; }
  25995. cat >conftest.$ac_ext <<_ACEOF
  25996. /* confdefs.h. */
  25997. _ACEOF
  25998. cat confdefs.h >>conftest.$ac_ext
  25999. cat >>conftest.$ac_ext <<_ACEOF
  26000. /* end confdefs.h. */
  26001. #include <$ac_header>
  26002. _ACEOF
  26003. if { (ac_try="$ac_cpp conftest.$ac_ext"
  26004. case "(($ac_try" in
  26005. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26006. *) ac_try_echo=$ac_try;;
  26007. esac
  26008. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26009. $as_echo "$ac_try_echo") >&5
  26010. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  26011. ac_status=$?
  26012. grep -v '^ *+' conftest.er1 >conftest.err
  26013. rm -f conftest.er1
  26014. cat conftest.err >&5
  26015. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26016. (exit $ac_status); } >/dev/null && {
  26017. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  26018. test ! -s conftest.err
  26019. }; then
  26020. ac_header_preproc=yes
  26021. else
  26022. $as_echo "$as_me: failed program was:" >&5
  26023. sed 's/^/| /' conftest.$ac_ext >&5
  26024. ac_header_preproc=no
  26025. fi
  26026. rm -f conftest.err conftest.$ac_ext
  26027. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  26028. $as_echo "$ac_header_preproc" >&6; }
  26029. # So? What about this header?
  26030. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  26031. yes:no: )
  26032. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  26033. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  26034. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  26035. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  26036. ac_header_preproc=yes
  26037. ;;
  26038. no:yes:* )
  26039. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  26040. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  26041. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  26042. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  26043. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  26044. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  26045. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  26046. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  26047. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  26048. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  26049. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  26050. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  26051. ;;
  26052. esac
  26053. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  26054. $as_echo_n "checking for $ac_header... " >&6; }
  26055. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  26056. $as_echo_n "(cached) " >&6
  26057. else
  26058. eval "$as_ac_Header=\$ac_header_preproc"
  26059. fi
  26060. ac_res=`eval 'as_val=${'$as_ac_Header'}
  26061. $as_echo "$as_val"'`
  26062. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  26063. $as_echo "$ac_res" >&6; }
  26064. fi
  26065. if test `eval 'as_val=${'$as_ac_Header'}
  26066. $as_echo "$as_val"'` = yes; then
  26067. cat >>confdefs.h <<_ACEOF
  26068. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  26069. _ACEOF
  26070. break
  26071. fi
  26072. done
  26073. { $as_echo "$as_me:$LINENO: checking for int8_t" >&5
  26074. $as_echo_n "checking for int8_t... " >&6; }
  26075. if test "${ac_cv_type_int8_t+set}" = set; then
  26076. $as_echo_n "(cached) " >&6
  26077. else
  26078. ac_cv_type_int8_t=no
  26079. cat >conftest.$ac_ext <<_ACEOF
  26080. /* confdefs.h. */
  26081. _ACEOF
  26082. cat confdefs.h >>conftest.$ac_ext
  26083. cat >>conftest.$ac_ext <<_ACEOF
  26084. /* end confdefs.h. */
  26085. $ac_includes_default
  26086. int
  26087. main ()
  26088. {
  26089. if (sizeof (int8_t))
  26090. return 0;
  26091. ;
  26092. return 0;
  26093. }
  26094. _ACEOF
  26095. rm -f conftest.$ac_objext
  26096. if { (ac_try="$ac_compile"
  26097. case "(($ac_try" in
  26098. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26099. *) ac_try_echo=$ac_try;;
  26100. esac
  26101. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26102. $as_echo "$ac_try_echo") >&5
  26103. (eval "$ac_compile") 2>conftest.er1
  26104. ac_status=$?
  26105. grep -v '^ *+' conftest.er1 >conftest.err
  26106. rm -f conftest.er1
  26107. cat conftest.err >&5
  26108. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26109. (exit $ac_status); } && {
  26110. test -z "$ac_c_werror_flag" ||
  26111. test ! -s conftest.err
  26112. } && test -s conftest.$ac_objext; then
  26113. cat >conftest.$ac_ext <<_ACEOF
  26114. /* confdefs.h. */
  26115. _ACEOF
  26116. cat confdefs.h >>conftest.$ac_ext
  26117. cat >>conftest.$ac_ext <<_ACEOF
  26118. /* end confdefs.h. */
  26119. $ac_includes_default
  26120. int
  26121. main ()
  26122. {
  26123. if (sizeof ((int8_t)))
  26124. return 0;
  26125. ;
  26126. return 0;
  26127. }
  26128. _ACEOF
  26129. rm -f conftest.$ac_objext
  26130. if { (ac_try="$ac_compile"
  26131. case "(($ac_try" in
  26132. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26133. *) ac_try_echo=$ac_try;;
  26134. esac
  26135. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26136. $as_echo "$ac_try_echo") >&5
  26137. (eval "$ac_compile") 2>conftest.er1
  26138. ac_status=$?
  26139. grep -v '^ *+' conftest.er1 >conftest.err
  26140. rm -f conftest.er1
  26141. cat conftest.err >&5
  26142. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26143. (exit $ac_status); } && {
  26144. test -z "$ac_c_werror_flag" ||
  26145. test ! -s conftest.err
  26146. } && test -s conftest.$ac_objext; then
  26147. :
  26148. else
  26149. $as_echo "$as_me: failed program was:" >&5
  26150. sed 's/^/| /' conftest.$ac_ext >&5
  26151. ac_cv_type_int8_t=yes
  26152. fi
  26153. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26154. else
  26155. $as_echo "$as_me: failed program was:" >&5
  26156. sed 's/^/| /' conftest.$ac_ext >&5
  26157. fi
  26158. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26159. fi
  26160. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
  26161. $as_echo "$ac_cv_type_int8_t" >&6; }
  26162. if test $ac_cv_type_int8_t = yes; then
  26163. cat >>confdefs.h <<_ACEOF
  26164. #define HAVE_INT8_T 1
  26165. _ACEOF
  26166. fi
  26167. { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
  26168. $as_echo_n "checking for uint8_t... " >&6; }
  26169. if test "${ac_cv_type_uint8_t+set}" = set; then
  26170. $as_echo_n "(cached) " >&6
  26171. else
  26172. ac_cv_type_uint8_t=no
  26173. cat >conftest.$ac_ext <<_ACEOF
  26174. /* confdefs.h. */
  26175. _ACEOF
  26176. cat confdefs.h >>conftest.$ac_ext
  26177. cat >>conftest.$ac_ext <<_ACEOF
  26178. /* end confdefs.h. */
  26179. $ac_includes_default
  26180. int
  26181. main ()
  26182. {
  26183. if (sizeof (uint8_t))
  26184. return 0;
  26185. ;
  26186. return 0;
  26187. }
  26188. _ACEOF
  26189. rm -f conftest.$ac_objext
  26190. if { (ac_try="$ac_compile"
  26191. case "(($ac_try" in
  26192. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26193. *) ac_try_echo=$ac_try;;
  26194. esac
  26195. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26196. $as_echo "$ac_try_echo") >&5
  26197. (eval "$ac_compile") 2>conftest.er1
  26198. ac_status=$?
  26199. grep -v '^ *+' conftest.er1 >conftest.err
  26200. rm -f conftest.er1
  26201. cat conftest.err >&5
  26202. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26203. (exit $ac_status); } && {
  26204. test -z "$ac_c_werror_flag" ||
  26205. test ! -s conftest.err
  26206. } && test -s conftest.$ac_objext; then
  26207. cat >conftest.$ac_ext <<_ACEOF
  26208. /* confdefs.h. */
  26209. _ACEOF
  26210. cat confdefs.h >>conftest.$ac_ext
  26211. cat >>conftest.$ac_ext <<_ACEOF
  26212. /* end confdefs.h. */
  26213. $ac_includes_default
  26214. int
  26215. main ()
  26216. {
  26217. if (sizeof ((uint8_t)))
  26218. return 0;
  26219. ;
  26220. return 0;
  26221. }
  26222. _ACEOF
  26223. rm -f conftest.$ac_objext
  26224. if { (ac_try="$ac_compile"
  26225. case "(($ac_try" in
  26226. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26227. *) ac_try_echo=$ac_try;;
  26228. esac
  26229. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26230. $as_echo "$ac_try_echo") >&5
  26231. (eval "$ac_compile") 2>conftest.er1
  26232. ac_status=$?
  26233. grep -v '^ *+' conftest.er1 >conftest.err
  26234. rm -f conftest.er1
  26235. cat conftest.err >&5
  26236. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26237. (exit $ac_status); } && {
  26238. test -z "$ac_c_werror_flag" ||
  26239. test ! -s conftest.err
  26240. } && test -s conftest.$ac_objext; then
  26241. :
  26242. else
  26243. $as_echo "$as_me: failed program was:" >&5
  26244. sed 's/^/| /' conftest.$ac_ext >&5
  26245. ac_cv_type_uint8_t=yes
  26246. fi
  26247. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26248. else
  26249. $as_echo "$as_me: failed program was:" >&5
  26250. sed 's/^/| /' conftest.$ac_ext >&5
  26251. fi
  26252. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26253. fi
  26254. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
  26255. $as_echo "$ac_cv_type_uint8_t" >&6; }
  26256. if test $ac_cv_type_uint8_t = yes; then
  26257. cat >>confdefs.h <<_ACEOF
  26258. #define HAVE_UINT8_T 1
  26259. _ACEOF
  26260. fi
  26261. { $as_echo "$as_me:$LINENO: checking for int16_t" >&5
  26262. $as_echo_n "checking for int16_t... " >&6; }
  26263. if test "${ac_cv_type_int16_t+set}" = set; then
  26264. $as_echo_n "(cached) " >&6
  26265. else
  26266. ac_cv_type_int16_t=no
  26267. cat >conftest.$ac_ext <<_ACEOF
  26268. /* confdefs.h. */
  26269. _ACEOF
  26270. cat confdefs.h >>conftest.$ac_ext
  26271. cat >>conftest.$ac_ext <<_ACEOF
  26272. /* end confdefs.h. */
  26273. $ac_includes_default
  26274. int
  26275. main ()
  26276. {
  26277. if (sizeof (int16_t))
  26278. return 0;
  26279. ;
  26280. return 0;
  26281. }
  26282. _ACEOF
  26283. rm -f conftest.$ac_objext
  26284. if { (ac_try="$ac_compile"
  26285. case "(($ac_try" in
  26286. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26287. *) ac_try_echo=$ac_try;;
  26288. esac
  26289. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26290. $as_echo "$ac_try_echo") >&5
  26291. (eval "$ac_compile") 2>conftest.er1
  26292. ac_status=$?
  26293. grep -v '^ *+' conftest.er1 >conftest.err
  26294. rm -f conftest.er1
  26295. cat conftest.err >&5
  26296. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26297. (exit $ac_status); } && {
  26298. test -z "$ac_c_werror_flag" ||
  26299. test ! -s conftest.err
  26300. } && test -s conftest.$ac_objext; then
  26301. cat >conftest.$ac_ext <<_ACEOF
  26302. /* confdefs.h. */
  26303. _ACEOF
  26304. cat confdefs.h >>conftest.$ac_ext
  26305. cat >>conftest.$ac_ext <<_ACEOF
  26306. /* end confdefs.h. */
  26307. $ac_includes_default
  26308. int
  26309. main ()
  26310. {
  26311. if (sizeof ((int16_t)))
  26312. return 0;
  26313. ;
  26314. return 0;
  26315. }
  26316. _ACEOF
  26317. rm -f conftest.$ac_objext
  26318. if { (ac_try="$ac_compile"
  26319. case "(($ac_try" in
  26320. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26321. *) ac_try_echo=$ac_try;;
  26322. esac
  26323. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26324. $as_echo "$ac_try_echo") >&5
  26325. (eval "$ac_compile") 2>conftest.er1
  26326. ac_status=$?
  26327. grep -v '^ *+' conftest.er1 >conftest.err
  26328. rm -f conftest.er1
  26329. cat conftest.err >&5
  26330. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26331. (exit $ac_status); } && {
  26332. test -z "$ac_c_werror_flag" ||
  26333. test ! -s conftest.err
  26334. } && test -s conftest.$ac_objext; then
  26335. :
  26336. else
  26337. $as_echo "$as_me: failed program was:" >&5
  26338. sed 's/^/| /' conftest.$ac_ext >&5
  26339. ac_cv_type_int16_t=yes
  26340. fi
  26341. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26342. else
  26343. $as_echo "$as_me: failed program was:" >&5
  26344. sed 's/^/| /' conftest.$ac_ext >&5
  26345. fi
  26346. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26347. fi
  26348. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
  26349. $as_echo "$ac_cv_type_int16_t" >&6; }
  26350. if test $ac_cv_type_int16_t = yes; then
  26351. cat >>confdefs.h <<_ACEOF
  26352. #define HAVE_INT16_T 1
  26353. _ACEOF
  26354. fi
  26355. { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
  26356. $as_echo_n "checking for uint16_t... " >&6; }
  26357. if test "${ac_cv_type_uint16_t+set}" = set; then
  26358. $as_echo_n "(cached) " >&6
  26359. else
  26360. ac_cv_type_uint16_t=no
  26361. cat >conftest.$ac_ext <<_ACEOF
  26362. /* confdefs.h. */
  26363. _ACEOF
  26364. cat confdefs.h >>conftest.$ac_ext
  26365. cat >>conftest.$ac_ext <<_ACEOF
  26366. /* end confdefs.h. */
  26367. $ac_includes_default
  26368. int
  26369. main ()
  26370. {
  26371. if (sizeof (uint16_t))
  26372. return 0;
  26373. ;
  26374. return 0;
  26375. }
  26376. _ACEOF
  26377. rm -f conftest.$ac_objext
  26378. if { (ac_try="$ac_compile"
  26379. case "(($ac_try" in
  26380. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26381. *) ac_try_echo=$ac_try;;
  26382. esac
  26383. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26384. $as_echo "$ac_try_echo") >&5
  26385. (eval "$ac_compile") 2>conftest.er1
  26386. ac_status=$?
  26387. grep -v '^ *+' conftest.er1 >conftest.err
  26388. rm -f conftest.er1
  26389. cat conftest.err >&5
  26390. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26391. (exit $ac_status); } && {
  26392. test -z "$ac_c_werror_flag" ||
  26393. test ! -s conftest.err
  26394. } && test -s conftest.$ac_objext; then
  26395. cat >conftest.$ac_ext <<_ACEOF
  26396. /* confdefs.h. */
  26397. _ACEOF
  26398. cat confdefs.h >>conftest.$ac_ext
  26399. cat >>conftest.$ac_ext <<_ACEOF
  26400. /* end confdefs.h. */
  26401. $ac_includes_default
  26402. int
  26403. main ()
  26404. {
  26405. if (sizeof ((uint16_t)))
  26406. return 0;
  26407. ;
  26408. return 0;
  26409. }
  26410. _ACEOF
  26411. rm -f conftest.$ac_objext
  26412. if { (ac_try="$ac_compile"
  26413. case "(($ac_try" in
  26414. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26415. *) ac_try_echo=$ac_try;;
  26416. esac
  26417. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26418. $as_echo "$ac_try_echo") >&5
  26419. (eval "$ac_compile") 2>conftest.er1
  26420. ac_status=$?
  26421. grep -v '^ *+' conftest.er1 >conftest.err
  26422. rm -f conftest.er1
  26423. cat conftest.err >&5
  26424. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26425. (exit $ac_status); } && {
  26426. test -z "$ac_c_werror_flag" ||
  26427. test ! -s conftest.err
  26428. } && test -s conftest.$ac_objext; then
  26429. :
  26430. else
  26431. $as_echo "$as_me: failed program was:" >&5
  26432. sed 's/^/| /' conftest.$ac_ext >&5
  26433. ac_cv_type_uint16_t=yes
  26434. fi
  26435. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26436. else
  26437. $as_echo "$as_me: failed program was:" >&5
  26438. sed 's/^/| /' conftest.$ac_ext >&5
  26439. fi
  26440. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26441. fi
  26442. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
  26443. $as_echo "$ac_cv_type_uint16_t" >&6; }
  26444. if test $ac_cv_type_uint16_t = yes; then
  26445. cat >>confdefs.h <<_ACEOF
  26446. #define HAVE_UINT16_T 1
  26447. _ACEOF
  26448. fi
  26449. { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
  26450. $as_echo_n "checking for int32_t... " >&6; }
  26451. if test "${ac_cv_type_int32_t+set}" = set; then
  26452. $as_echo_n "(cached) " >&6
  26453. else
  26454. ac_cv_type_int32_t=no
  26455. cat >conftest.$ac_ext <<_ACEOF
  26456. /* confdefs.h. */
  26457. _ACEOF
  26458. cat confdefs.h >>conftest.$ac_ext
  26459. cat >>conftest.$ac_ext <<_ACEOF
  26460. /* end confdefs.h. */
  26461. $ac_includes_default
  26462. int
  26463. main ()
  26464. {
  26465. if (sizeof (int32_t))
  26466. return 0;
  26467. ;
  26468. return 0;
  26469. }
  26470. _ACEOF
  26471. rm -f conftest.$ac_objext
  26472. if { (ac_try="$ac_compile"
  26473. case "(($ac_try" in
  26474. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26475. *) ac_try_echo=$ac_try;;
  26476. esac
  26477. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26478. $as_echo "$ac_try_echo") >&5
  26479. (eval "$ac_compile") 2>conftest.er1
  26480. ac_status=$?
  26481. grep -v '^ *+' conftest.er1 >conftest.err
  26482. rm -f conftest.er1
  26483. cat conftest.err >&5
  26484. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26485. (exit $ac_status); } && {
  26486. test -z "$ac_c_werror_flag" ||
  26487. test ! -s conftest.err
  26488. } && test -s conftest.$ac_objext; then
  26489. cat >conftest.$ac_ext <<_ACEOF
  26490. /* confdefs.h. */
  26491. _ACEOF
  26492. cat confdefs.h >>conftest.$ac_ext
  26493. cat >>conftest.$ac_ext <<_ACEOF
  26494. /* end confdefs.h. */
  26495. $ac_includes_default
  26496. int
  26497. main ()
  26498. {
  26499. if (sizeof ((int32_t)))
  26500. return 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26512. $as_echo "$ac_try_echo") >&5
  26513. (eval "$ac_compile") 2>conftest.er1
  26514. ac_status=$?
  26515. grep -v '^ *+' conftest.er1 >conftest.err
  26516. rm -f conftest.er1
  26517. cat conftest.err >&5
  26518. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26519. (exit $ac_status); } && {
  26520. test -z "$ac_c_werror_flag" ||
  26521. test ! -s conftest.err
  26522. } && test -s conftest.$ac_objext; then
  26523. :
  26524. else
  26525. $as_echo "$as_me: failed program was:" >&5
  26526. sed 's/^/| /' conftest.$ac_ext >&5
  26527. ac_cv_type_int32_t=yes
  26528. fi
  26529. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26530. else
  26531. $as_echo "$as_me: failed program was:" >&5
  26532. sed 's/^/| /' conftest.$ac_ext >&5
  26533. fi
  26534. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26535. fi
  26536. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
  26537. $as_echo "$ac_cv_type_int32_t" >&6; }
  26538. if test $ac_cv_type_int32_t = yes; then
  26539. cat >>confdefs.h <<_ACEOF
  26540. #define HAVE_INT32_T 1
  26541. _ACEOF
  26542. fi
  26543. { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
  26544. $as_echo_n "checking for uint32_t... " >&6; }
  26545. if test "${ac_cv_type_uint32_t+set}" = set; then
  26546. $as_echo_n "(cached) " >&6
  26547. else
  26548. ac_cv_type_uint32_t=no
  26549. cat >conftest.$ac_ext <<_ACEOF
  26550. /* confdefs.h. */
  26551. _ACEOF
  26552. cat confdefs.h >>conftest.$ac_ext
  26553. cat >>conftest.$ac_ext <<_ACEOF
  26554. /* end confdefs.h. */
  26555. $ac_includes_default
  26556. int
  26557. main ()
  26558. {
  26559. if (sizeof (uint32_t))
  26560. return 0;
  26561. ;
  26562. return 0;
  26563. }
  26564. _ACEOF
  26565. rm -f conftest.$ac_objext
  26566. if { (ac_try="$ac_compile"
  26567. case "(($ac_try" in
  26568. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26569. *) ac_try_echo=$ac_try;;
  26570. esac
  26571. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26572. $as_echo "$ac_try_echo") >&5
  26573. (eval "$ac_compile") 2>conftest.er1
  26574. ac_status=$?
  26575. grep -v '^ *+' conftest.er1 >conftest.err
  26576. rm -f conftest.er1
  26577. cat conftest.err >&5
  26578. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26579. (exit $ac_status); } && {
  26580. test -z "$ac_c_werror_flag" ||
  26581. test ! -s conftest.err
  26582. } && test -s conftest.$ac_objext; then
  26583. cat >conftest.$ac_ext <<_ACEOF
  26584. /* confdefs.h. */
  26585. _ACEOF
  26586. cat confdefs.h >>conftest.$ac_ext
  26587. cat >>conftest.$ac_ext <<_ACEOF
  26588. /* end confdefs.h. */
  26589. $ac_includes_default
  26590. int
  26591. main ()
  26592. {
  26593. if (sizeof ((uint32_t)))
  26594. return 0;
  26595. ;
  26596. return 0;
  26597. }
  26598. _ACEOF
  26599. rm -f conftest.$ac_objext
  26600. if { (ac_try="$ac_compile"
  26601. case "(($ac_try" in
  26602. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26603. *) ac_try_echo=$ac_try;;
  26604. esac
  26605. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26606. $as_echo "$ac_try_echo") >&5
  26607. (eval "$ac_compile") 2>conftest.er1
  26608. ac_status=$?
  26609. grep -v '^ *+' conftest.er1 >conftest.err
  26610. rm -f conftest.er1
  26611. cat conftest.err >&5
  26612. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26613. (exit $ac_status); } && {
  26614. test -z "$ac_c_werror_flag" ||
  26615. test ! -s conftest.err
  26616. } && test -s conftest.$ac_objext; then
  26617. :
  26618. else
  26619. $as_echo "$as_me: failed program was:" >&5
  26620. sed 's/^/| /' conftest.$ac_ext >&5
  26621. ac_cv_type_uint32_t=yes
  26622. fi
  26623. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26624. else
  26625. $as_echo "$as_me: failed program was:" >&5
  26626. sed 's/^/| /' conftest.$ac_ext >&5
  26627. fi
  26628. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26629. fi
  26630. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
  26631. $as_echo "$ac_cv_type_uint32_t" >&6; }
  26632. if test $ac_cv_type_uint32_t = yes; then
  26633. cat >>confdefs.h <<_ACEOF
  26634. #define HAVE_UINT32_T 1
  26635. _ACEOF
  26636. fi
  26637. { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
  26638. $as_echo_n "checking for intptr_t... " >&6; }
  26639. if test "${ac_cv_type_intptr_t+set}" = set; then
  26640. $as_echo_n "(cached) " >&6
  26641. else
  26642. ac_cv_type_intptr_t=no
  26643. cat >conftest.$ac_ext <<_ACEOF
  26644. /* confdefs.h. */
  26645. _ACEOF
  26646. cat confdefs.h >>conftest.$ac_ext
  26647. cat >>conftest.$ac_ext <<_ACEOF
  26648. /* end confdefs.h. */
  26649. $ac_includes_default
  26650. int
  26651. main ()
  26652. {
  26653. if (sizeof (intptr_t))
  26654. return 0;
  26655. ;
  26656. return 0;
  26657. }
  26658. _ACEOF
  26659. rm -f conftest.$ac_objext
  26660. if { (ac_try="$ac_compile"
  26661. case "(($ac_try" in
  26662. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26663. *) ac_try_echo=$ac_try;;
  26664. esac
  26665. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26666. $as_echo "$ac_try_echo") >&5
  26667. (eval "$ac_compile") 2>conftest.er1
  26668. ac_status=$?
  26669. grep -v '^ *+' conftest.er1 >conftest.err
  26670. rm -f conftest.er1
  26671. cat conftest.err >&5
  26672. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26673. (exit $ac_status); } && {
  26674. test -z "$ac_c_werror_flag" ||
  26675. test ! -s conftest.err
  26676. } && test -s conftest.$ac_objext; then
  26677. cat >conftest.$ac_ext <<_ACEOF
  26678. /* confdefs.h. */
  26679. _ACEOF
  26680. cat confdefs.h >>conftest.$ac_ext
  26681. cat >>conftest.$ac_ext <<_ACEOF
  26682. /* end confdefs.h. */
  26683. $ac_includes_default
  26684. int
  26685. main ()
  26686. {
  26687. if (sizeof ((intptr_t)))
  26688. return 0;
  26689. ;
  26690. return 0;
  26691. }
  26692. _ACEOF
  26693. rm -f conftest.$ac_objext
  26694. if { (ac_try="$ac_compile"
  26695. case "(($ac_try" in
  26696. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26697. *) ac_try_echo=$ac_try;;
  26698. esac
  26699. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26700. $as_echo "$ac_try_echo") >&5
  26701. (eval "$ac_compile") 2>conftest.er1
  26702. ac_status=$?
  26703. grep -v '^ *+' conftest.er1 >conftest.err
  26704. rm -f conftest.er1
  26705. cat conftest.err >&5
  26706. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26707. (exit $ac_status); } && {
  26708. test -z "$ac_c_werror_flag" ||
  26709. test ! -s conftest.err
  26710. } && test -s conftest.$ac_objext; then
  26711. :
  26712. else
  26713. $as_echo "$as_me: failed program was:" >&5
  26714. sed 's/^/| /' conftest.$ac_ext >&5
  26715. ac_cv_type_intptr_t=yes
  26716. fi
  26717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26718. else
  26719. $as_echo "$as_me: failed program was:" >&5
  26720. sed 's/^/| /' conftest.$ac_ext >&5
  26721. fi
  26722. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26723. fi
  26724. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
  26725. $as_echo "$ac_cv_type_intptr_t" >&6; }
  26726. if test $ac_cv_type_intptr_t = yes; then
  26727. cat >>confdefs.h <<_ACEOF
  26728. #define HAVE_INTPTR_T 1
  26729. _ACEOF
  26730. fi
  26731. { $as_echo "$as_me:$LINENO: checking for uint_t" >&5
  26732. $as_echo_n "checking for uint_t... " >&6; }
  26733. if test "${ac_cv_type_uint_t+set}" = set; then
  26734. $as_echo_n "(cached) " >&6
  26735. else
  26736. ac_cv_type_uint_t=no
  26737. cat >conftest.$ac_ext <<_ACEOF
  26738. /* confdefs.h. */
  26739. _ACEOF
  26740. cat confdefs.h >>conftest.$ac_ext
  26741. cat >>conftest.$ac_ext <<_ACEOF
  26742. /* end confdefs.h. */
  26743. $ac_includes_default
  26744. int
  26745. main ()
  26746. {
  26747. if (sizeof (uint_t))
  26748. return 0;
  26749. ;
  26750. return 0;
  26751. }
  26752. _ACEOF
  26753. rm -f conftest.$ac_objext
  26754. if { (ac_try="$ac_compile"
  26755. case "(($ac_try" in
  26756. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26757. *) ac_try_echo=$ac_try;;
  26758. esac
  26759. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26760. $as_echo "$ac_try_echo") >&5
  26761. (eval "$ac_compile") 2>conftest.er1
  26762. ac_status=$?
  26763. grep -v '^ *+' conftest.er1 >conftest.err
  26764. rm -f conftest.er1
  26765. cat conftest.err >&5
  26766. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26767. (exit $ac_status); } && {
  26768. test -z "$ac_c_werror_flag" ||
  26769. test ! -s conftest.err
  26770. } && test -s conftest.$ac_objext; then
  26771. cat >conftest.$ac_ext <<_ACEOF
  26772. /* confdefs.h. */
  26773. _ACEOF
  26774. cat confdefs.h >>conftest.$ac_ext
  26775. cat >>conftest.$ac_ext <<_ACEOF
  26776. /* end confdefs.h. */
  26777. $ac_includes_default
  26778. int
  26779. main ()
  26780. {
  26781. if (sizeof ((uint_t)))
  26782. return 0;
  26783. ;
  26784. return 0;
  26785. }
  26786. _ACEOF
  26787. rm -f conftest.$ac_objext
  26788. if { (ac_try="$ac_compile"
  26789. case "(($ac_try" in
  26790. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26791. *) ac_try_echo=$ac_try;;
  26792. esac
  26793. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26794. $as_echo "$ac_try_echo") >&5
  26795. (eval "$ac_compile") 2>conftest.er1
  26796. ac_status=$?
  26797. grep -v '^ *+' conftest.er1 >conftest.err
  26798. rm -f conftest.er1
  26799. cat conftest.err >&5
  26800. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26801. (exit $ac_status); } && {
  26802. test -z "$ac_c_werror_flag" ||
  26803. test ! -s conftest.err
  26804. } && test -s conftest.$ac_objext; then
  26805. :
  26806. else
  26807. $as_echo "$as_me: failed program was:" >&5
  26808. sed 's/^/| /' conftest.$ac_ext >&5
  26809. ac_cv_type_uint_t=yes
  26810. fi
  26811. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26812. else
  26813. $as_echo "$as_me: failed program was:" >&5
  26814. sed 's/^/| /' conftest.$ac_ext >&5
  26815. fi
  26816. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26817. fi
  26818. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint_t" >&5
  26819. $as_echo "$ac_cv_type_uint_t" >&6; }
  26820. if test $ac_cv_type_uint_t = yes; then
  26821. cat >>confdefs.h <<_ACEOF
  26822. #define HAVE_UINT_T 1
  26823. _ACEOF
  26824. fi
  26825. # ====================
  26826. # uintptr type & sizes
  26827. # ====================
  26828. { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
  26829. $as_echo_n "checking for uintptr_t... " >&6; }
  26830. if test "${ac_cv_type_uintptr_t+set}" = set; then
  26831. $as_echo_n "(cached) " >&6
  26832. else
  26833. ac_cv_type_uintptr_t=no
  26834. cat >conftest.$ac_ext <<_ACEOF
  26835. /* confdefs.h. */
  26836. _ACEOF
  26837. cat confdefs.h >>conftest.$ac_ext
  26838. cat >>conftest.$ac_ext <<_ACEOF
  26839. /* end confdefs.h. */
  26840. $ac_includes_default
  26841. int
  26842. main ()
  26843. {
  26844. if (sizeof (uintptr_t))
  26845. return 0;
  26846. ;
  26847. return 0;
  26848. }
  26849. _ACEOF
  26850. rm -f conftest.$ac_objext
  26851. if { (ac_try="$ac_compile"
  26852. case "(($ac_try" in
  26853. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26854. *) ac_try_echo=$ac_try;;
  26855. esac
  26856. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26857. $as_echo "$ac_try_echo") >&5
  26858. (eval "$ac_compile") 2>conftest.er1
  26859. ac_status=$?
  26860. grep -v '^ *+' conftest.er1 >conftest.err
  26861. rm -f conftest.er1
  26862. cat conftest.err >&5
  26863. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26864. (exit $ac_status); } && {
  26865. test -z "$ac_c_werror_flag" ||
  26866. test ! -s conftest.err
  26867. } && test -s conftest.$ac_objext; then
  26868. cat >conftest.$ac_ext <<_ACEOF
  26869. /* confdefs.h. */
  26870. _ACEOF
  26871. cat confdefs.h >>conftest.$ac_ext
  26872. cat >>conftest.$ac_ext <<_ACEOF
  26873. /* end confdefs.h. */
  26874. $ac_includes_default
  26875. int
  26876. main ()
  26877. {
  26878. if (sizeof ((uintptr_t)))
  26879. return 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26891. $as_echo "$ac_try_echo") >&5
  26892. (eval "$ac_compile") 2>conftest.er1
  26893. ac_status=$?
  26894. grep -v '^ *+' conftest.er1 >conftest.err
  26895. rm -f conftest.er1
  26896. cat conftest.err >&5
  26897. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26898. (exit $ac_status); } && {
  26899. test -z "$ac_c_werror_flag" ||
  26900. test ! -s conftest.err
  26901. } && test -s conftest.$ac_objext; then
  26902. :
  26903. else
  26904. $as_echo "$as_me: failed program was:" >&5
  26905. sed 's/^/| /' conftest.$ac_ext >&5
  26906. ac_cv_type_uintptr_t=yes
  26907. fi
  26908. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26909. else
  26910. $as_echo "$as_me: failed program was:" >&5
  26911. sed 's/^/| /' conftest.$ac_ext >&5
  26912. fi
  26913. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26914. fi
  26915. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
  26916. $as_echo "$ac_cv_type_uintptr_t" >&6; }
  26917. if test $ac_cv_type_uintptr_t = yes; then
  26918. cat >>confdefs.h <<_ACEOF
  26919. #define HAVE_UINTPTR_T 1
  26920. _ACEOF
  26921. else
  26922. cat >>confdefs.h <<\_ACEOF
  26923. #define uintptr_t unsigned long
  26924. _ACEOF
  26925. fi
  26926. # The cast to long int works around a bug in the HP C Compiler
  26927. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  26928. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  26929. # This bug is HP SR number 8606223364.
  26930. { $as_echo "$as_me:$LINENO: checking size of char*" >&5
  26931. $as_echo_n "checking size of char*... " >&6; }
  26932. if test "${ac_cv_sizeof_charp+set}" = set; then
  26933. $as_echo_n "(cached) " >&6
  26934. else
  26935. if test "$cross_compiling" = yes; then
  26936. # Depending upon the size, compute the lo and hi bounds.
  26937. cat >conftest.$ac_ext <<_ACEOF
  26938. /* confdefs.h. */
  26939. _ACEOF
  26940. cat confdefs.h >>conftest.$ac_ext
  26941. cat >>conftest.$ac_ext <<_ACEOF
  26942. /* end confdefs.h. */
  26943. $ac_includes_default
  26944. int
  26945. main ()
  26946. {
  26947. static int test_array [1 - 2 * !(((long int) (sizeof (char*))) >= 0)];
  26948. test_array [0] = 0
  26949. ;
  26950. return 0;
  26951. }
  26952. _ACEOF
  26953. rm -f conftest.$ac_objext
  26954. if { (ac_try="$ac_compile"
  26955. case "(($ac_try" in
  26956. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26957. *) ac_try_echo=$ac_try;;
  26958. esac
  26959. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26960. $as_echo "$ac_try_echo") >&5
  26961. (eval "$ac_compile") 2>conftest.er1
  26962. ac_status=$?
  26963. grep -v '^ *+' conftest.er1 >conftest.err
  26964. rm -f conftest.er1
  26965. cat conftest.err >&5
  26966. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26967. (exit $ac_status); } && {
  26968. test -z "$ac_c_werror_flag" ||
  26969. test ! -s conftest.err
  26970. } && test -s conftest.$ac_objext; then
  26971. ac_lo=0 ac_mid=0
  26972. while :; do
  26973. cat >conftest.$ac_ext <<_ACEOF
  26974. /* confdefs.h. */
  26975. _ACEOF
  26976. cat confdefs.h >>conftest.$ac_ext
  26977. cat >>conftest.$ac_ext <<_ACEOF
  26978. /* end confdefs.h. */
  26979. $ac_includes_default
  26980. int
  26981. main ()
  26982. {
  26983. static int test_array [1 - 2 * !(((long int) (sizeof (char*))) <= $ac_mid)];
  26984. test_array [0] = 0
  26985. ;
  26986. return 0;
  26987. }
  26988. _ACEOF
  26989. rm -f conftest.$ac_objext
  26990. if { (ac_try="$ac_compile"
  26991. case "(($ac_try" in
  26992. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26993. *) ac_try_echo=$ac_try;;
  26994. esac
  26995. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26996. $as_echo "$ac_try_echo") >&5
  26997. (eval "$ac_compile") 2>conftest.er1
  26998. ac_status=$?
  26999. grep -v '^ *+' conftest.er1 >conftest.err
  27000. rm -f conftest.er1
  27001. cat conftest.err >&5
  27002. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27003. (exit $ac_status); } && {
  27004. test -z "$ac_c_werror_flag" ||
  27005. test ! -s conftest.err
  27006. } && test -s conftest.$ac_objext; then
  27007. ac_hi=$ac_mid; break
  27008. else
  27009. $as_echo "$as_me: failed program was:" >&5
  27010. sed 's/^/| /' conftest.$ac_ext >&5
  27011. ac_lo=`expr $ac_mid + 1`
  27012. if test $ac_lo -le $ac_mid; then
  27013. ac_lo= ac_hi=
  27014. break
  27015. fi
  27016. ac_mid=`expr 2 '*' $ac_mid + 1`
  27017. fi
  27018. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27019. done
  27020. else
  27021. $as_echo "$as_me: failed program was:" >&5
  27022. sed 's/^/| /' conftest.$ac_ext >&5
  27023. cat >conftest.$ac_ext <<_ACEOF
  27024. /* confdefs.h. */
  27025. _ACEOF
  27026. cat confdefs.h >>conftest.$ac_ext
  27027. cat >>conftest.$ac_ext <<_ACEOF
  27028. /* end confdefs.h. */
  27029. $ac_includes_default
  27030. int
  27031. main ()
  27032. {
  27033. static int test_array [1 - 2 * !(((long int) (sizeof (char*))) < 0)];
  27034. test_array [0] = 0
  27035. ;
  27036. return 0;
  27037. }
  27038. _ACEOF
  27039. rm -f conftest.$ac_objext
  27040. if { (ac_try="$ac_compile"
  27041. case "(($ac_try" in
  27042. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27043. *) ac_try_echo=$ac_try;;
  27044. esac
  27045. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27046. $as_echo "$ac_try_echo") >&5
  27047. (eval "$ac_compile") 2>conftest.er1
  27048. ac_status=$?
  27049. grep -v '^ *+' conftest.er1 >conftest.err
  27050. rm -f conftest.er1
  27051. cat conftest.err >&5
  27052. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27053. (exit $ac_status); } && {
  27054. test -z "$ac_c_werror_flag" ||
  27055. test ! -s conftest.err
  27056. } && test -s conftest.$ac_objext; then
  27057. ac_hi=-1 ac_mid=-1
  27058. while :; do
  27059. cat >conftest.$ac_ext <<_ACEOF
  27060. /* confdefs.h. */
  27061. _ACEOF
  27062. cat confdefs.h >>conftest.$ac_ext
  27063. cat >>conftest.$ac_ext <<_ACEOF
  27064. /* end confdefs.h. */
  27065. $ac_includes_default
  27066. int
  27067. main ()
  27068. {
  27069. static int test_array [1 - 2 * !(((long int) (sizeof (char*))) >= $ac_mid)];
  27070. test_array [0] = 0
  27071. ;
  27072. return 0;
  27073. }
  27074. _ACEOF
  27075. rm -f conftest.$ac_objext
  27076. if { (ac_try="$ac_compile"
  27077. case "(($ac_try" in
  27078. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27079. *) ac_try_echo=$ac_try;;
  27080. esac
  27081. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27082. $as_echo "$ac_try_echo") >&5
  27083. (eval "$ac_compile") 2>conftest.er1
  27084. ac_status=$?
  27085. grep -v '^ *+' conftest.er1 >conftest.err
  27086. rm -f conftest.er1
  27087. cat conftest.err >&5
  27088. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27089. (exit $ac_status); } && {
  27090. test -z "$ac_c_werror_flag" ||
  27091. test ! -s conftest.err
  27092. } && test -s conftest.$ac_objext; then
  27093. ac_lo=$ac_mid; break
  27094. else
  27095. $as_echo "$as_me: failed program was:" >&5
  27096. sed 's/^/| /' conftest.$ac_ext >&5
  27097. ac_hi=`expr '(' $ac_mid ')' - 1`
  27098. if test $ac_mid -le $ac_hi; then
  27099. ac_lo= ac_hi=
  27100. break
  27101. fi
  27102. ac_mid=`expr 2 '*' $ac_mid`
  27103. fi
  27104. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27105. done
  27106. else
  27107. $as_echo "$as_me: failed program was:" >&5
  27108. sed 's/^/| /' conftest.$ac_ext >&5
  27109. ac_lo= ac_hi=
  27110. fi
  27111. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27112. fi
  27113. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27114. # Binary search between lo and hi bounds.
  27115. while test "x$ac_lo" != "x$ac_hi"; do
  27116. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  27117. cat >conftest.$ac_ext <<_ACEOF
  27118. /* confdefs.h. */
  27119. _ACEOF
  27120. cat confdefs.h >>conftest.$ac_ext
  27121. cat >>conftest.$ac_ext <<_ACEOF
  27122. /* end confdefs.h. */
  27123. $ac_includes_default
  27124. int
  27125. main ()
  27126. {
  27127. static int test_array [1 - 2 * !(((long int) (sizeof (char*))) <= $ac_mid)];
  27128. test_array [0] = 0
  27129. ;
  27130. return 0;
  27131. }
  27132. _ACEOF
  27133. rm -f conftest.$ac_objext
  27134. if { (ac_try="$ac_compile"
  27135. case "(($ac_try" in
  27136. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27137. *) ac_try_echo=$ac_try;;
  27138. esac
  27139. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27140. $as_echo "$ac_try_echo") >&5
  27141. (eval "$ac_compile") 2>conftest.er1
  27142. ac_status=$?
  27143. grep -v '^ *+' conftest.er1 >conftest.err
  27144. rm -f conftest.er1
  27145. cat conftest.err >&5
  27146. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27147. (exit $ac_status); } && {
  27148. test -z "$ac_c_werror_flag" ||
  27149. test ! -s conftest.err
  27150. } && test -s conftest.$ac_objext; then
  27151. ac_hi=$ac_mid
  27152. else
  27153. $as_echo "$as_me: failed program was:" >&5
  27154. sed 's/^/| /' conftest.$ac_ext >&5
  27155. ac_lo=`expr '(' $ac_mid ')' + 1`
  27156. fi
  27157. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27158. done
  27159. case $ac_lo in
  27160. ?*) ac_cv_sizeof_charp=$ac_lo;;
  27161. '') if test "$ac_cv_type_charp" = yes; then
  27162. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char*)
  27163. See \`config.log' for more details." >&5
  27164. $as_echo "$as_me: error: cannot compute sizeof (char*)
  27165. See \`config.log' for more details." >&2;}
  27166. { (exit 77); exit 77; }; }
  27167. else
  27168. ac_cv_sizeof_charp=0
  27169. fi ;;
  27170. esac
  27171. else
  27172. cat >conftest.$ac_ext <<_ACEOF
  27173. /* confdefs.h. */
  27174. _ACEOF
  27175. cat confdefs.h >>conftest.$ac_ext
  27176. cat >>conftest.$ac_ext <<_ACEOF
  27177. /* end confdefs.h. */
  27178. $ac_includes_default
  27179. static long int longval () { return (long int) (sizeof (char*)); }
  27180. static unsigned long int ulongval () { return (long int) (sizeof (char*)); }
  27181. #include <stdio.h>
  27182. #include <stdlib.h>
  27183. int
  27184. main ()
  27185. {
  27186. FILE *f = fopen ("conftest.val", "w");
  27187. if (! f)
  27188. return 1;
  27189. if (((long int) (sizeof (char*))) < 0)
  27190. {
  27191. long int i = longval ();
  27192. if (i != ((long int) (sizeof (char*))))
  27193. return 1;
  27194. fprintf (f, "%ld", i);
  27195. }
  27196. else
  27197. {
  27198. unsigned long int i = ulongval ();
  27199. if (i != ((long int) (sizeof (char*))))
  27200. return 1;
  27201. fprintf (f, "%lu", i);
  27202. }
  27203. /* Do not output a trailing newline, as this causes \r\n confusion
  27204. on some platforms. */
  27205. return ferror (f) || fclose (f) != 0;
  27206. ;
  27207. return 0;
  27208. }
  27209. _ACEOF
  27210. rm -f conftest$ac_exeext
  27211. if { (ac_try="$ac_link"
  27212. case "(($ac_try" in
  27213. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27214. *) ac_try_echo=$ac_try;;
  27215. esac
  27216. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27217. $as_echo "$ac_try_echo") >&5
  27218. (eval "$ac_link") 2>&5
  27219. ac_status=$?
  27220. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27221. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  27222. { (case "(($ac_try" in
  27223. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27224. *) ac_try_echo=$ac_try;;
  27225. esac
  27226. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27227. $as_echo "$ac_try_echo") >&5
  27228. (eval "$ac_try") 2>&5
  27229. ac_status=$?
  27230. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27231. (exit $ac_status); }; }; then
  27232. ac_cv_sizeof_charp=`cat conftest.val`
  27233. else
  27234. $as_echo "$as_me: program exited with status $ac_status" >&5
  27235. $as_echo "$as_me: failed program was:" >&5
  27236. sed 's/^/| /' conftest.$ac_ext >&5
  27237. ( exit $ac_status )
  27238. if test "$ac_cv_type_charp" = yes; then
  27239. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char*)
  27240. See \`config.log' for more details." >&5
  27241. $as_echo "$as_me: error: cannot compute sizeof (char*)
  27242. See \`config.log' for more details." >&2;}
  27243. { (exit 77); exit 77; }; }
  27244. else
  27245. ac_cv_sizeof_charp=0
  27246. fi
  27247. fi
  27248. rm -rf conftest.dSYM
  27249. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  27250. fi
  27251. rm -f conftest.val
  27252. fi
  27253. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_charp" >&5
  27254. $as_echo "$ac_cv_sizeof_charp" >&6; }
  27255. cat >>confdefs.h <<_ACEOF
  27256. #define SIZEOF_CHARP $ac_cv_sizeof_charp
  27257. _ACEOF
  27258. # The cast to long int works around a bug in the HP C Compiler
  27259. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  27260. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  27261. # This bug is HP SR number 8606223364.
  27262. { $as_echo "$as_me:$LINENO: checking size of int" >&5
  27263. $as_echo_n "checking size of int... " >&6; }
  27264. if test "${ac_cv_sizeof_int+set}" = set; then
  27265. $as_echo_n "(cached) " >&6
  27266. else
  27267. if test "$cross_compiling" = yes; then
  27268. # Depending upon the size, compute the lo and hi bounds.
  27269. cat >conftest.$ac_ext <<_ACEOF
  27270. /* confdefs.h. */
  27271. _ACEOF
  27272. cat confdefs.h >>conftest.$ac_ext
  27273. cat >>conftest.$ac_ext <<_ACEOF
  27274. /* end confdefs.h. */
  27275. $ac_includes_default
  27276. int
  27277. main ()
  27278. {
  27279. static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
  27280. test_array [0] = 0
  27281. ;
  27282. return 0;
  27283. }
  27284. _ACEOF
  27285. rm -f conftest.$ac_objext
  27286. if { (ac_try="$ac_compile"
  27287. case "(($ac_try" in
  27288. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27289. *) ac_try_echo=$ac_try;;
  27290. esac
  27291. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27292. $as_echo "$ac_try_echo") >&5
  27293. (eval "$ac_compile") 2>conftest.er1
  27294. ac_status=$?
  27295. grep -v '^ *+' conftest.er1 >conftest.err
  27296. rm -f conftest.er1
  27297. cat conftest.err >&5
  27298. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27299. (exit $ac_status); } && {
  27300. test -z "$ac_c_werror_flag" ||
  27301. test ! -s conftest.err
  27302. } && test -s conftest.$ac_objext; then
  27303. ac_lo=0 ac_mid=0
  27304. while :; do
  27305. cat >conftest.$ac_ext <<_ACEOF
  27306. /* confdefs.h. */
  27307. _ACEOF
  27308. cat confdefs.h >>conftest.$ac_ext
  27309. cat >>conftest.$ac_ext <<_ACEOF
  27310. /* end confdefs.h. */
  27311. $ac_includes_default
  27312. int
  27313. main ()
  27314. {
  27315. static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27328. $as_echo "$ac_try_echo") >&5
  27329. (eval "$ac_compile") 2>conftest.er1
  27330. ac_status=$?
  27331. grep -v '^ *+' conftest.er1 >conftest.err
  27332. rm -f conftest.er1
  27333. cat conftest.err >&5
  27334. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27335. (exit $ac_status); } && {
  27336. test -z "$ac_c_werror_flag" ||
  27337. test ! -s conftest.err
  27338. } && test -s conftest.$ac_objext; then
  27339. ac_hi=$ac_mid; break
  27340. else
  27341. $as_echo "$as_me: failed program was:" >&5
  27342. sed 's/^/| /' conftest.$ac_ext >&5
  27343. ac_lo=`expr $ac_mid + 1`
  27344. if test $ac_lo -le $ac_mid; then
  27345. ac_lo= ac_hi=
  27346. break
  27347. fi
  27348. ac_mid=`expr 2 '*' $ac_mid + 1`
  27349. fi
  27350. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27351. done
  27352. else
  27353. $as_echo "$as_me: failed program was:" >&5
  27354. sed 's/^/| /' conftest.$ac_ext >&5
  27355. cat >conftest.$ac_ext <<_ACEOF
  27356. /* confdefs.h. */
  27357. _ACEOF
  27358. cat confdefs.h >>conftest.$ac_ext
  27359. cat >>conftest.$ac_ext <<_ACEOF
  27360. /* end confdefs.h. */
  27361. $ac_includes_default
  27362. int
  27363. main ()
  27364. {
  27365. static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
  27366. test_array [0] = 0
  27367. ;
  27368. return 0;
  27369. }
  27370. _ACEOF
  27371. rm -f conftest.$ac_objext
  27372. if { (ac_try="$ac_compile"
  27373. case "(($ac_try" in
  27374. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27375. *) ac_try_echo=$ac_try;;
  27376. esac
  27377. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27378. $as_echo "$ac_try_echo") >&5
  27379. (eval "$ac_compile") 2>conftest.er1
  27380. ac_status=$?
  27381. grep -v '^ *+' conftest.er1 >conftest.err
  27382. rm -f conftest.er1
  27383. cat conftest.err >&5
  27384. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27385. (exit $ac_status); } && {
  27386. test -z "$ac_c_werror_flag" ||
  27387. test ! -s conftest.err
  27388. } && test -s conftest.$ac_objext; then
  27389. ac_hi=-1 ac_mid=-1
  27390. while :; do
  27391. cat >conftest.$ac_ext <<_ACEOF
  27392. /* confdefs.h. */
  27393. _ACEOF
  27394. cat confdefs.h >>conftest.$ac_ext
  27395. cat >>conftest.$ac_ext <<_ACEOF
  27396. /* end confdefs.h. */
  27397. $ac_includes_default
  27398. int
  27399. main ()
  27400. {
  27401. static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
  27402. test_array [0] = 0
  27403. ;
  27404. return 0;
  27405. }
  27406. _ACEOF
  27407. rm -f conftest.$ac_objext
  27408. if { (ac_try="$ac_compile"
  27409. case "(($ac_try" in
  27410. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27411. *) ac_try_echo=$ac_try;;
  27412. esac
  27413. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27414. $as_echo "$ac_try_echo") >&5
  27415. (eval "$ac_compile") 2>conftest.er1
  27416. ac_status=$?
  27417. grep -v '^ *+' conftest.er1 >conftest.err
  27418. rm -f conftest.er1
  27419. cat conftest.err >&5
  27420. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27421. (exit $ac_status); } && {
  27422. test -z "$ac_c_werror_flag" ||
  27423. test ! -s conftest.err
  27424. } && test -s conftest.$ac_objext; then
  27425. ac_lo=$ac_mid; break
  27426. else
  27427. $as_echo "$as_me: failed program was:" >&5
  27428. sed 's/^/| /' conftest.$ac_ext >&5
  27429. ac_hi=`expr '(' $ac_mid ')' - 1`
  27430. if test $ac_mid -le $ac_hi; then
  27431. ac_lo= ac_hi=
  27432. break
  27433. fi
  27434. ac_mid=`expr 2 '*' $ac_mid`
  27435. fi
  27436. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27437. done
  27438. else
  27439. $as_echo "$as_me: failed program was:" >&5
  27440. sed 's/^/| /' conftest.$ac_ext >&5
  27441. ac_lo= ac_hi=
  27442. fi
  27443. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27444. fi
  27445. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27446. # Binary search between lo and hi bounds.
  27447. while test "x$ac_lo" != "x$ac_hi"; do
  27448. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  27449. cat >conftest.$ac_ext <<_ACEOF
  27450. /* confdefs.h. */
  27451. _ACEOF
  27452. cat confdefs.h >>conftest.$ac_ext
  27453. cat >>conftest.$ac_ext <<_ACEOF
  27454. /* end confdefs.h. */
  27455. $ac_includes_default
  27456. int
  27457. main ()
  27458. {
  27459. static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
  27460. test_array [0] = 0
  27461. ;
  27462. return 0;
  27463. }
  27464. _ACEOF
  27465. rm -f conftest.$ac_objext
  27466. if { (ac_try="$ac_compile"
  27467. case "(($ac_try" in
  27468. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27469. *) ac_try_echo=$ac_try;;
  27470. esac
  27471. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27472. $as_echo "$ac_try_echo") >&5
  27473. (eval "$ac_compile") 2>conftest.er1
  27474. ac_status=$?
  27475. grep -v '^ *+' conftest.er1 >conftest.err
  27476. rm -f conftest.er1
  27477. cat conftest.err >&5
  27478. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27479. (exit $ac_status); } && {
  27480. test -z "$ac_c_werror_flag" ||
  27481. test ! -s conftest.err
  27482. } && test -s conftest.$ac_objext; then
  27483. ac_hi=$ac_mid
  27484. else
  27485. $as_echo "$as_me: failed program was:" >&5
  27486. sed 's/^/| /' conftest.$ac_ext >&5
  27487. ac_lo=`expr '(' $ac_mid ')' + 1`
  27488. fi
  27489. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27490. done
  27491. case $ac_lo in
  27492. ?*) ac_cv_sizeof_int=$ac_lo;;
  27493. '') if test "$ac_cv_type_int" = yes; then
  27494. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  27495. See \`config.log' for more details." >&5
  27496. $as_echo "$as_me: error: cannot compute sizeof (int)
  27497. See \`config.log' for more details." >&2;}
  27498. { (exit 77); exit 77; }; }
  27499. else
  27500. ac_cv_sizeof_int=0
  27501. fi ;;
  27502. esac
  27503. else
  27504. cat >conftest.$ac_ext <<_ACEOF
  27505. /* confdefs.h. */
  27506. _ACEOF
  27507. cat confdefs.h >>conftest.$ac_ext
  27508. cat >>conftest.$ac_ext <<_ACEOF
  27509. /* end confdefs.h. */
  27510. $ac_includes_default
  27511. static long int longval () { return (long int) (sizeof (int)); }
  27512. static unsigned long int ulongval () { return (long int) (sizeof (int)); }
  27513. #include <stdio.h>
  27514. #include <stdlib.h>
  27515. int
  27516. main ()
  27517. {
  27518. FILE *f = fopen ("conftest.val", "w");
  27519. if (! f)
  27520. return 1;
  27521. if (((long int) (sizeof (int))) < 0)
  27522. {
  27523. long int i = longval ();
  27524. if (i != ((long int) (sizeof (int))))
  27525. return 1;
  27526. fprintf (f, "%ld", i);
  27527. }
  27528. else
  27529. {
  27530. unsigned long int i = ulongval ();
  27531. if (i != ((long int) (sizeof (int))))
  27532. return 1;
  27533. fprintf (f, "%lu", i);
  27534. }
  27535. /* Do not output a trailing newline, as this causes \r\n confusion
  27536. on some platforms. */
  27537. return ferror (f) || fclose (f) != 0;
  27538. ;
  27539. return 0;
  27540. }
  27541. _ACEOF
  27542. rm -f conftest$ac_exeext
  27543. if { (ac_try="$ac_link"
  27544. case "(($ac_try" in
  27545. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27546. *) ac_try_echo=$ac_try;;
  27547. esac
  27548. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27549. $as_echo "$ac_try_echo") >&5
  27550. (eval "$ac_link") 2>&5
  27551. ac_status=$?
  27552. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27553. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  27554. { (case "(($ac_try" in
  27555. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27556. *) ac_try_echo=$ac_try;;
  27557. esac
  27558. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27559. $as_echo "$ac_try_echo") >&5
  27560. (eval "$ac_try") 2>&5
  27561. ac_status=$?
  27562. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27563. (exit $ac_status); }; }; then
  27564. ac_cv_sizeof_int=`cat conftest.val`
  27565. else
  27566. $as_echo "$as_me: program exited with status $ac_status" >&5
  27567. $as_echo "$as_me: failed program was:" >&5
  27568. sed 's/^/| /' conftest.$ac_ext >&5
  27569. ( exit $ac_status )
  27570. if test "$ac_cv_type_int" = yes; then
  27571. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  27572. See \`config.log' for more details." >&5
  27573. $as_echo "$as_me: error: cannot compute sizeof (int)
  27574. See \`config.log' for more details." >&2;}
  27575. { (exit 77); exit 77; }; }
  27576. else
  27577. ac_cv_sizeof_int=0
  27578. fi
  27579. fi
  27580. rm -rf conftest.dSYM
  27581. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  27582. fi
  27583. rm -f conftest.val
  27584. fi
  27585. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  27586. $as_echo "$ac_cv_sizeof_int" >&6; }
  27587. cat >>confdefs.h <<_ACEOF
  27588. #define SIZEOF_INT $ac_cv_sizeof_int
  27589. _ACEOF
  27590. # The cast to long int works around a bug in the HP C Compiler
  27591. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  27592. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  27593. # This bug is HP SR number 8606223364.
  27594. { $as_echo "$as_me:$LINENO: checking size of long" >&5
  27595. $as_echo_n "checking size of long... " >&6; }
  27596. if test "${ac_cv_sizeof_long+set}" = set; then
  27597. $as_echo_n "(cached) " >&6
  27598. else
  27599. if test "$cross_compiling" = yes; then
  27600. # Depending upon the size, compute the lo and hi bounds.
  27601. cat >conftest.$ac_ext <<_ACEOF
  27602. /* confdefs.h. */
  27603. _ACEOF
  27604. cat confdefs.h >>conftest.$ac_ext
  27605. cat >>conftest.$ac_ext <<_ACEOF
  27606. /* end confdefs.h. */
  27607. $ac_includes_default
  27608. int
  27609. main ()
  27610. {
  27611. static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
  27612. test_array [0] = 0
  27613. ;
  27614. return 0;
  27615. }
  27616. _ACEOF
  27617. rm -f conftest.$ac_objext
  27618. if { (ac_try="$ac_compile"
  27619. case "(($ac_try" in
  27620. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27621. *) ac_try_echo=$ac_try;;
  27622. esac
  27623. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27624. $as_echo "$ac_try_echo") >&5
  27625. (eval "$ac_compile") 2>conftest.er1
  27626. ac_status=$?
  27627. grep -v '^ *+' conftest.er1 >conftest.err
  27628. rm -f conftest.er1
  27629. cat conftest.err >&5
  27630. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27631. (exit $ac_status); } && {
  27632. test -z "$ac_c_werror_flag" ||
  27633. test ! -s conftest.err
  27634. } && test -s conftest.$ac_objext; then
  27635. ac_lo=0 ac_mid=0
  27636. while :; do
  27637. cat >conftest.$ac_ext <<_ACEOF
  27638. /* confdefs.h. */
  27639. _ACEOF
  27640. cat confdefs.h >>conftest.$ac_ext
  27641. cat >>conftest.$ac_ext <<_ACEOF
  27642. /* end confdefs.h. */
  27643. $ac_includes_default
  27644. int
  27645. main ()
  27646. {
  27647. static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
  27648. test_array [0] = 0
  27649. ;
  27650. return 0;
  27651. }
  27652. _ACEOF
  27653. rm -f conftest.$ac_objext
  27654. if { (ac_try="$ac_compile"
  27655. case "(($ac_try" in
  27656. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27657. *) ac_try_echo=$ac_try;;
  27658. esac
  27659. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27660. $as_echo "$ac_try_echo") >&5
  27661. (eval "$ac_compile") 2>conftest.er1
  27662. ac_status=$?
  27663. grep -v '^ *+' conftest.er1 >conftest.err
  27664. rm -f conftest.er1
  27665. cat conftest.err >&5
  27666. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27667. (exit $ac_status); } && {
  27668. test -z "$ac_c_werror_flag" ||
  27669. test ! -s conftest.err
  27670. } && test -s conftest.$ac_objext; then
  27671. ac_hi=$ac_mid; break
  27672. else
  27673. $as_echo "$as_me: failed program was:" >&5
  27674. sed 's/^/| /' conftest.$ac_ext >&5
  27675. ac_lo=`expr $ac_mid + 1`
  27676. if test $ac_lo -le $ac_mid; then
  27677. ac_lo= ac_hi=
  27678. break
  27679. fi
  27680. ac_mid=`expr 2 '*' $ac_mid + 1`
  27681. fi
  27682. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27683. done
  27684. else
  27685. $as_echo "$as_me: failed program was:" >&5
  27686. sed 's/^/| /' conftest.$ac_ext >&5
  27687. cat >conftest.$ac_ext <<_ACEOF
  27688. /* confdefs.h. */
  27689. _ACEOF
  27690. cat confdefs.h >>conftest.$ac_ext
  27691. cat >>conftest.$ac_ext <<_ACEOF
  27692. /* end confdefs.h. */
  27693. $ac_includes_default
  27694. int
  27695. main ()
  27696. {
  27697. static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
  27698. test_array [0] = 0
  27699. ;
  27700. return 0;
  27701. }
  27702. _ACEOF
  27703. rm -f conftest.$ac_objext
  27704. if { (ac_try="$ac_compile"
  27705. case "(($ac_try" in
  27706. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27707. *) ac_try_echo=$ac_try;;
  27708. esac
  27709. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27710. $as_echo "$ac_try_echo") >&5
  27711. (eval "$ac_compile") 2>conftest.er1
  27712. ac_status=$?
  27713. grep -v '^ *+' conftest.er1 >conftest.err
  27714. rm -f conftest.er1
  27715. cat conftest.err >&5
  27716. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27717. (exit $ac_status); } && {
  27718. test -z "$ac_c_werror_flag" ||
  27719. test ! -s conftest.err
  27720. } && test -s conftest.$ac_objext; then
  27721. ac_hi=-1 ac_mid=-1
  27722. while :; do
  27723. cat >conftest.$ac_ext <<_ACEOF
  27724. /* confdefs.h. */
  27725. _ACEOF
  27726. cat confdefs.h >>conftest.$ac_ext
  27727. cat >>conftest.$ac_ext <<_ACEOF
  27728. /* end confdefs.h. */
  27729. $ac_includes_default
  27730. int
  27731. main ()
  27732. {
  27733. static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
  27734. test_array [0] = 0
  27735. ;
  27736. return 0;
  27737. }
  27738. _ACEOF
  27739. rm -f conftest.$ac_objext
  27740. if { (ac_try="$ac_compile"
  27741. case "(($ac_try" in
  27742. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27743. *) ac_try_echo=$ac_try;;
  27744. esac
  27745. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27746. $as_echo "$ac_try_echo") >&5
  27747. (eval "$ac_compile") 2>conftest.er1
  27748. ac_status=$?
  27749. grep -v '^ *+' conftest.er1 >conftest.err
  27750. rm -f conftest.er1
  27751. cat conftest.err >&5
  27752. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27753. (exit $ac_status); } && {
  27754. test -z "$ac_c_werror_flag" ||
  27755. test ! -s conftest.err
  27756. } && test -s conftest.$ac_objext; then
  27757. ac_lo=$ac_mid; break
  27758. else
  27759. $as_echo "$as_me: failed program was:" >&5
  27760. sed 's/^/| /' conftest.$ac_ext >&5
  27761. ac_hi=`expr '(' $ac_mid ')' - 1`
  27762. if test $ac_mid -le $ac_hi; then
  27763. ac_lo= ac_hi=
  27764. break
  27765. fi
  27766. ac_mid=`expr 2 '*' $ac_mid`
  27767. fi
  27768. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27769. done
  27770. else
  27771. $as_echo "$as_me: failed program was:" >&5
  27772. sed 's/^/| /' conftest.$ac_ext >&5
  27773. ac_lo= ac_hi=
  27774. fi
  27775. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27776. fi
  27777. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27778. # Binary search between lo and hi bounds.
  27779. while test "x$ac_lo" != "x$ac_hi"; do
  27780. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  27781. cat >conftest.$ac_ext <<_ACEOF
  27782. /* confdefs.h. */
  27783. _ACEOF
  27784. cat confdefs.h >>conftest.$ac_ext
  27785. cat >>conftest.$ac_ext <<_ACEOF
  27786. /* end confdefs.h. */
  27787. $ac_includes_default
  27788. int
  27789. main ()
  27790. {
  27791. static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
  27792. test_array [0] = 0
  27793. ;
  27794. return 0;
  27795. }
  27796. _ACEOF
  27797. rm -f conftest.$ac_objext
  27798. if { (ac_try="$ac_compile"
  27799. case "(($ac_try" in
  27800. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27801. *) ac_try_echo=$ac_try;;
  27802. esac
  27803. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27804. $as_echo "$ac_try_echo") >&5
  27805. (eval "$ac_compile") 2>conftest.er1
  27806. ac_status=$?
  27807. grep -v '^ *+' conftest.er1 >conftest.err
  27808. rm -f conftest.er1
  27809. cat conftest.err >&5
  27810. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27811. (exit $ac_status); } && {
  27812. test -z "$ac_c_werror_flag" ||
  27813. test ! -s conftest.err
  27814. } && test -s conftest.$ac_objext; then
  27815. ac_hi=$ac_mid
  27816. else
  27817. $as_echo "$as_me: failed program was:" >&5
  27818. sed 's/^/| /' conftest.$ac_ext >&5
  27819. ac_lo=`expr '(' $ac_mid ')' + 1`
  27820. fi
  27821. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27822. done
  27823. case $ac_lo in
  27824. ?*) ac_cv_sizeof_long=$ac_lo;;
  27825. '') if test "$ac_cv_type_long" = yes; then
  27826. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  27827. See \`config.log' for more details." >&5
  27828. $as_echo "$as_me: error: cannot compute sizeof (long)
  27829. See \`config.log' for more details." >&2;}
  27830. { (exit 77); exit 77; }; }
  27831. else
  27832. ac_cv_sizeof_long=0
  27833. fi ;;
  27834. esac
  27835. else
  27836. cat >conftest.$ac_ext <<_ACEOF
  27837. /* confdefs.h. */
  27838. _ACEOF
  27839. cat confdefs.h >>conftest.$ac_ext
  27840. cat >>conftest.$ac_ext <<_ACEOF
  27841. /* end confdefs.h. */
  27842. $ac_includes_default
  27843. static long int longval () { return (long int) (sizeof (long)); }
  27844. static unsigned long int ulongval () { return (long int) (sizeof (long)); }
  27845. #include <stdio.h>
  27846. #include <stdlib.h>
  27847. int
  27848. main ()
  27849. {
  27850. FILE *f = fopen ("conftest.val", "w");
  27851. if (! f)
  27852. return 1;
  27853. if (((long int) (sizeof (long))) < 0)
  27854. {
  27855. long int i = longval ();
  27856. if (i != ((long int) (sizeof (long))))
  27857. return 1;
  27858. fprintf (f, "%ld", i);
  27859. }
  27860. else
  27861. {
  27862. unsigned long int i = ulongval ();
  27863. if (i != ((long int) (sizeof (long))))
  27864. return 1;
  27865. fprintf (f, "%lu", i);
  27866. }
  27867. /* Do not output a trailing newline, as this causes \r\n confusion
  27868. on some platforms. */
  27869. return ferror (f) || fclose (f) != 0;
  27870. ;
  27871. return 0;
  27872. }
  27873. _ACEOF
  27874. rm -f conftest$ac_exeext
  27875. if { (ac_try="$ac_link"
  27876. case "(($ac_try" in
  27877. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27878. *) ac_try_echo=$ac_try;;
  27879. esac
  27880. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27881. $as_echo "$ac_try_echo") >&5
  27882. (eval "$ac_link") 2>&5
  27883. ac_status=$?
  27884. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27885. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  27886. { (case "(($ac_try" in
  27887. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27888. *) ac_try_echo=$ac_try;;
  27889. esac
  27890. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27891. $as_echo "$ac_try_echo") >&5
  27892. (eval "$ac_try") 2>&5
  27893. ac_status=$?
  27894. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27895. (exit $ac_status); }; }; then
  27896. ac_cv_sizeof_long=`cat conftest.val`
  27897. else
  27898. $as_echo "$as_me: program exited with status $ac_status" >&5
  27899. $as_echo "$as_me: failed program was:" >&5
  27900. sed 's/^/| /' conftest.$ac_ext >&5
  27901. ( exit $ac_status )
  27902. if test "$ac_cv_type_long" = yes; then
  27903. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  27904. See \`config.log' for more details." >&5
  27905. $as_echo "$as_me: error: cannot compute sizeof (long)
  27906. See \`config.log' for more details." >&2;}
  27907. { (exit 77); exit 77; }; }
  27908. else
  27909. ac_cv_sizeof_long=0
  27910. fi
  27911. fi
  27912. rm -rf conftest.dSYM
  27913. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  27914. fi
  27915. rm -f conftest.val
  27916. fi
  27917. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  27918. $as_echo "$ac_cv_sizeof_long" >&6; }
  27919. cat >>confdefs.h <<_ACEOF
  27920. #define SIZEOF_LONG $ac_cv_sizeof_long
  27921. _ACEOF
  27922. # The cast to long int works around a bug in the HP C Compiler
  27923. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  27924. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  27925. # This bug is HP SR number 8606223364.
  27926. { $as_echo "$as_me:$LINENO: checking size of short" >&5
  27927. $as_echo_n "checking size of short... " >&6; }
  27928. if test "${ac_cv_sizeof_short+set}" = set; then
  27929. $as_echo_n "(cached) " >&6
  27930. else
  27931. if test "$cross_compiling" = yes; then
  27932. # Depending upon the size, compute the lo and hi bounds.
  27933. cat >conftest.$ac_ext <<_ACEOF
  27934. /* confdefs.h. */
  27935. _ACEOF
  27936. cat confdefs.h >>conftest.$ac_ext
  27937. cat >>conftest.$ac_ext <<_ACEOF
  27938. /* end confdefs.h. */
  27939. $ac_includes_default
  27940. int
  27941. main ()
  27942. {
  27943. static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
  27944. test_array [0] = 0
  27945. ;
  27946. return 0;
  27947. }
  27948. _ACEOF
  27949. rm -f conftest.$ac_objext
  27950. if { (ac_try="$ac_compile"
  27951. case "(($ac_try" in
  27952. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27953. *) ac_try_echo=$ac_try;;
  27954. esac
  27955. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27956. $as_echo "$ac_try_echo") >&5
  27957. (eval "$ac_compile") 2>conftest.er1
  27958. ac_status=$?
  27959. grep -v '^ *+' conftest.er1 >conftest.err
  27960. rm -f conftest.er1
  27961. cat conftest.err >&5
  27962. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27963. (exit $ac_status); } && {
  27964. test -z "$ac_c_werror_flag" ||
  27965. test ! -s conftest.err
  27966. } && test -s conftest.$ac_objext; then
  27967. ac_lo=0 ac_mid=0
  27968. while :; do
  27969. cat >conftest.$ac_ext <<_ACEOF
  27970. /* confdefs.h. */
  27971. _ACEOF
  27972. cat confdefs.h >>conftest.$ac_ext
  27973. cat >>conftest.$ac_ext <<_ACEOF
  27974. /* end confdefs.h. */
  27975. $ac_includes_default
  27976. int
  27977. main ()
  27978. {
  27979. static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
  27980. test_array [0] = 0
  27981. ;
  27982. return 0;
  27983. }
  27984. _ACEOF
  27985. rm -f conftest.$ac_objext
  27986. if { (ac_try="$ac_compile"
  27987. case "(($ac_try" in
  27988. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27989. *) ac_try_echo=$ac_try;;
  27990. esac
  27991. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27992. $as_echo "$ac_try_echo") >&5
  27993. (eval "$ac_compile") 2>conftest.er1
  27994. ac_status=$?
  27995. grep -v '^ *+' conftest.er1 >conftest.err
  27996. rm -f conftest.er1
  27997. cat conftest.err >&5
  27998. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27999. (exit $ac_status); } && {
  28000. test -z "$ac_c_werror_flag" ||
  28001. test ! -s conftest.err
  28002. } && test -s conftest.$ac_objext; then
  28003. ac_hi=$ac_mid; break
  28004. else
  28005. $as_echo "$as_me: failed program was:" >&5
  28006. sed 's/^/| /' conftest.$ac_ext >&5
  28007. ac_lo=`expr $ac_mid + 1`
  28008. if test $ac_lo -le $ac_mid; then
  28009. ac_lo= ac_hi=
  28010. break
  28011. fi
  28012. ac_mid=`expr 2 '*' $ac_mid + 1`
  28013. fi
  28014. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28015. done
  28016. else
  28017. $as_echo "$as_me: failed program was:" >&5
  28018. sed 's/^/| /' conftest.$ac_ext >&5
  28019. cat >conftest.$ac_ext <<_ACEOF
  28020. /* confdefs.h. */
  28021. _ACEOF
  28022. cat confdefs.h >>conftest.$ac_ext
  28023. cat >>conftest.$ac_ext <<_ACEOF
  28024. /* end confdefs.h. */
  28025. $ac_includes_default
  28026. int
  28027. main ()
  28028. {
  28029. static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
  28030. test_array [0] = 0
  28031. ;
  28032. return 0;
  28033. }
  28034. _ACEOF
  28035. rm -f conftest.$ac_objext
  28036. if { (ac_try="$ac_compile"
  28037. case "(($ac_try" in
  28038. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28039. *) ac_try_echo=$ac_try;;
  28040. esac
  28041. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28042. $as_echo "$ac_try_echo") >&5
  28043. (eval "$ac_compile") 2>conftest.er1
  28044. ac_status=$?
  28045. grep -v '^ *+' conftest.er1 >conftest.err
  28046. rm -f conftest.er1
  28047. cat conftest.err >&5
  28048. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28049. (exit $ac_status); } && {
  28050. test -z "$ac_c_werror_flag" ||
  28051. test ! -s conftest.err
  28052. } && test -s conftest.$ac_objext; then
  28053. ac_hi=-1 ac_mid=-1
  28054. while :; do
  28055. cat >conftest.$ac_ext <<_ACEOF
  28056. /* confdefs.h. */
  28057. _ACEOF
  28058. cat confdefs.h >>conftest.$ac_ext
  28059. cat >>conftest.$ac_ext <<_ACEOF
  28060. /* end confdefs.h. */
  28061. $ac_includes_default
  28062. int
  28063. main ()
  28064. {
  28065. static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
  28066. test_array [0] = 0
  28067. ;
  28068. return 0;
  28069. }
  28070. _ACEOF
  28071. rm -f conftest.$ac_objext
  28072. if { (ac_try="$ac_compile"
  28073. case "(($ac_try" in
  28074. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28075. *) ac_try_echo=$ac_try;;
  28076. esac
  28077. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28078. $as_echo "$ac_try_echo") >&5
  28079. (eval "$ac_compile") 2>conftest.er1
  28080. ac_status=$?
  28081. grep -v '^ *+' conftest.er1 >conftest.err
  28082. rm -f conftest.er1
  28083. cat conftest.err >&5
  28084. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28085. (exit $ac_status); } && {
  28086. test -z "$ac_c_werror_flag" ||
  28087. test ! -s conftest.err
  28088. } && test -s conftest.$ac_objext; then
  28089. ac_lo=$ac_mid; break
  28090. else
  28091. $as_echo "$as_me: failed program was:" >&5
  28092. sed 's/^/| /' conftest.$ac_ext >&5
  28093. ac_hi=`expr '(' $ac_mid ')' - 1`
  28094. if test $ac_mid -le $ac_hi; then
  28095. ac_lo= ac_hi=
  28096. break
  28097. fi
  28098. ac_mid=`expr 2 '*' $ac_mid`
  28099. fi
  28100. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28101. done
  28102. else
  28103. $as_echo "$as_me: failed program was:" >&5
  28104. sed 's/^/| /' conftest.$ac_ext >&5
  28105. ac_lo= ac_hi=
  28106. fi
  28107. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28108. fi
  28109. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28110. # Binary search between lo and hi bounds.
  28111. while test "x$ac_lo" != "x$ac_hi"; do
  28112. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  28113. cat >conftest.$ac_ext <<_ACEOF
  28114. /* confdefs.h. */
  28115. _ACEOF
  28116. cat confdefs.h >>conftest.$ac_ext
  28117. cat >>conftest.$ac_ext <<_ACEOF
  28118. /* end confdefs.h. */
  28119. $ac_includes_default
  28120. int
  28121. main ()
  28122. {
  28123. static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
  28124. test_array [0] = 0
  28125. ;
  28126. return 0;
  28127. }
  28128. _ACEOF
  28129. rm -f conftest.$ac_objext
  28130. if { (ac_try="$ac_compile"
  28131. case "(($ac_try" in
  28132. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28133. *) ac_try_echo=$ac_try;;
  28134. esac
  28135. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28136. $as_echo "$ac_try_echo") >&5
  28137. (eval "$ac_compile") 2>conftest.er1
  28138. ac_status=$?
  28139. grep -v '^ *+' conftest.er1 >conftest.err
  28140. rm -f conftest.er1
  28141. cat conftest.err >&5
  28142. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28143. (exit $ac_status); } && {
  28144. test -z "$ac_c_werror_flag" ||
  28145. test ! -s conftest.err
  28146. } && test -s conftest.$ac_objext; then
  28147. ac_hi=$ac_mid
  28148. else
  28149. $as_echo "$as_me: failed program was:" >&5
  28150. sed 's/^/| /' conftest.$ac_ext >&5
  28151. ac_lo=`expr '(' $ac_mid ')' + 1`
  28152. fi
  28153. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28154. done
  28155. case $ac_lo in
  28156. ?*) ac_cv_sizeof_short=$ac_lo;;
  28157. '') if test "$ac_cv_type_short" = yes; then
  28158. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  28159. See \`config.log' for more details." >&5
  28160. $as_echo "$as_me: error: cannot compute sizeof (short)
  28161. See \`config.log' for more details." >&2;}
  28162. { (exit 77); exit 77; }; }
  28163. else
  28164. ac_cv_sizeof_short=0
  28165. fi ;;
  28166. esac
  28167. else
  28168. cat >conftest.$ac_ext <<_ACEOF
  28169. /* confdefs.h. */
  28170. _ACEOF
  28171. cat confdefs.h >>conftest.$ac_ext
  28172. cat >>conftest.$ac_ext <<_ACEOF
  28173. /* end confdefs.h. */
  28174. $ac_includes_default
  28175. static long int longval () { return (long int) (sizeof (short)); }
  28176. static unsigned long int ulongval () { return (long int) (sizeof (short)); }
  28177. #include <stdio.h>
  28178. #include <stdlib.h>
  28179. int
  28180. main ()
  28181. {
  28182. FILE *f = fopen ("conftest.val", "w");
  28183. if (! f)
  28184. return 1;
  28185. if (((long int) (sizeof (short))) < 0)
  28186. {
  28187. long int i = longval ();
  28188. if (i != ((long int) (sizeof (short))))
  28189. return 1;
  28190. fprintf (f, "%ld", i);
  28191. }
  28192. else
  28193. {
  28194. unsigned long int i = ulongval ();
  28195. if (i != ((long int) (sizeof (short))))
  28196. return 1;
  28197. fprintf (f, "%lu", i);
  28198. }
  28199. /* Do not output a trailing newline, as this causes \r\n confusion
  28200. on some platforms. */
  28201. return ferror (f) || fclose (f) != 0;
  28202. ;
  28203. return 0;
  28204. }
  28205. _ACEOF
  28206. rm -f conftest$ac_exeext
  28207. if { (ac_try="$ac_link"
  28208. case "(($ac_try" in
  28209. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28210. *) ac_try_echo=$ac_try;;
  28211. esac
  28212. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28213. $as_echo "$ac_try_echo") >&5
  28214. (eval "$ac_link") 2>&5
  28215. ac_status=$?
  28216. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28217. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  28218. { (case "(($ac_try" in
  28219. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28220. *) ac_try_echo=$ac_try;;
  28221. esac
  28222. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28223. $as_echo "$ac_try_echo") >&5
  28224. (eval "$ac_try") 2>&5
  28225. ac_status=$?
  28226. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28227. (exit $ac_status); }; }; then
  28228. ac_cv_sizeof_short=`cat conftest.val`
  28229. else
  28230. $as_echo "$as_me: program exited with status $ac_status" >&5
  28231. $as_echo "$as_me: failed program was:" >&5
  28232. sed 's/^/| /' conftest.$ac_ext >&5
  28233. ( exit $ac_status )
  28234. if test "$ac_cv_type_short" = yes; then
  28235. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  28236. See \`config.log' for more details." >&5
  28237. $as_echo "$as_me: error: cannot compute sizeof (short)
  28238. See \`config.log' for more details." >&2;}
  28239. { (exit 77); exit 77; }; }
  28240. else
  28241. ac_cv_sizeof_short=0
  28242. fi
  28243. fi
  28244. rm -rf conftest.dSYM
  28245. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  28246. fi
  28247. rm -f conftest.val
  28248. fi
  28249. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  28250. $as_echo "$ac_cv_sizeof_short" >&6; }
  28251. cat >>confdefs.h <<_ACEOF
  28252. #define SIZEOF_SHORT $ac_cv_sizeof_short
  28253. _ACEOF
  28254. # ----------------------------------------------------------------------
  28255. # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
  28256. # ----------------------------------------------------------------------
  28257. { $as_echo "$as_me:$LINENO: checking for pathfind in -lgen" >&5
  28258. $as_echo_n "checking for pathfind in -lgen... " >&6; }
  28259. if test "${ac_cv_lib_gen_pathfind+set}" = set; then
  28260. $as_echo_n "(cached) " >&6
  28261. else
  28262. ac_check_lib_save_LIBS=$LIBS
  28263. LIBS="-lgen $LIBS"
  28264. cat >conftest.$ac_ext <<_ACEOF
  28265. /* confdefs.h. */
  28266. _ACEOF
  28267. cat confdefs.h >>conftest.$ac_ext
  28268. cat >>conftest.$ac_ext <<_ACEOF
  28269. /* end confdefs.h. */
  28270. /* Override any GCC internal prototype to avoid an error.
  28271. Use char because int might match the return type of a GCC
  28272. builtin and then its argument prototype would still apply. */
  28273. #ifdef __cplusplus
  28274. extern "C"
  28275. #endif
  28276. char pathfind ();
  28277. int
  28278. main ()
  28279. {
  28280. return pathfind ();
  28281. ;
  28282. return 0;
  28283. }
  28284. _ACEOF
  28285. rm -f conftest.$ac_objext conftest$ac_exeext
  28286. if { (ac_try="$ac_link"
  28287. case "(($ac_try" in
  28288. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28289. *) ac_try_echo=$ac_try;;
  28290. esac
  28291. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28292. $as_echo "$ac_try_echo") >&5
  28293. (eval "$ac_link") 2>conftest.er1
  28294. ac_status=$?
  28295. grep -v '^ *+' conftest.er1 >conftest.err
  28296. rm -f conftest.er1
  28297. cat conftest.err >&5
  28298. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28299. (exit $ac_status); } && {
  28300. test -z "$ac_c_werror_flag" ||
  28301. test ! -s conftest.err
  28302. } && test -s conftest$ac_exeext && {
  28303. test "$cross_compiling" = yes ||
  28304. $as_test_x conftest$ac_exeext
  28305. }; then
  28306. ac_cv_lib_gen_pathfind=yes
  28307. else
  28308. $as_echo "$as_me: failed program was:" >&5
  28309. sed 's/^/| /' conftest.$ac_ext >&5
  28310. ac_cv_lib_gen_pathfind=no
  28311. fi
  28312. rm -rf conftest.dSYM
  28313. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28314. conftest$ac_exeext conftest.$ac_ext
  28315. LIBS=$ac_check_lib_save_LIBS
  28316. fi
  28317. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gen_pathfind" >&5
  28318. $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
  28319. if test $ac_cv_lib_gen_pathfind = yes; then
  28320. cat >>confdefs.h <<_ACEOF
  28321. #define HAVE_LIBGEN 1
  28322. _ACEOF
  28323. LIBS="-lgen $LIBS"
  28324. fi
  28325. for ac_func in vprintf
  28326. do
  28327. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  28328. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  28329. $as_echo_n "checking for $ac_func... " >&6; }
  28330. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  28331. $as_echo_n "(cached) " >&6
  28332. else
  28333. cat >conftest.$ac_ext <<_ACEOF
  28334. /* confdefs.h. */
  28335. _ACEOF
  28336. cat confdefs.h >>conftest.$ac_ext
  28337. cat >>conftest.$ac_ext <<_ACEOF
  28338. /* end confdefs.h. */
  28339. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  28340. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  28341. #define $ac_func innocuous_$ac_func
  28342. /* System header to define __stub macros and hopefully few prototypes,
  28343. which can conflict with char $ac_func (); below.
  28344. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  28345. <limits.h> exists even on freestanding compilers. */
  28346. #ifdef __STDC__
  28347. # include <limits.h>
  28348. #else
  28349. # include <assert.h>
  28350. #endif
  28351. #undef $ac_func
  28352. /* Override any GCC internal prototype to avoid an error.
  28353. Use char because int might match the return type of a GCC
  28354. builtin and then its argument prototype would still apply. */
  28355. #ifdef __cplusplus
  28356. extern "C"
  28357. #endif
  28358. char $ac_func ();
  28359. /* The GNU C library defines this for functions which it implements
  28360. to always fail with ENOSYS. Some functions are actually named
  28361. something starting with __ and the normal name is an alias. */
  28362. #if defined __stub_$ac_func || defined __stub___$ac_func
  28363. choke me
  28364. #endif
  28365. int
  28366. main ()
  28367. {
  28368. return $ac_func ();
  28369. ;
  28370. return 0;
  28371. }
  28372. _ACEOF
  28373. rm -f conftest.$ac_objext conftest$ac_exeext
  28374. if { (ac_try="$ac_link"
  28375. case "(($ac_try" in
  28376. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28377. *) ac_try_echo=$ac_try;;
  28378. esac
  28379. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28380. $as_echo "$ac_try_echo") >&5
  28381. (eval "$ac_link") 2>conftest.er1
  28382. ac_status=$?
  28383. grep -v '^ *+' conftest.er1 >conftest.err
  28384. rm -f conftest.er1
  28385. cat conftest.err >&5
  28386. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28387. (exit $ac_status); } && {
  28388. test -z "$ac_c_werror_flag" ||
  28389. test ! -s conftest.err
  28390. } && test -s conftest$ac_exeext && {
  28391. test "$cross_compiling" = yes ||
  28392. $as_test_x conftest$ac_exeext
  28393. }; then
  28394. eval "$as_ac_var=yes"
  28395. else
  28396. $as_echo "$as_me: failed program was:" >&5
  28397. sed 's/^/| /' conftest.$ac_ext >&5
  28398. eval "$as_ac_var=no"
  28399. fi
  28400. rm -rf conftest.dSYM
  28401. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28402. conftest$ac_exeext conftest.$ac_ext
  28403. fi
  28404. ac_res=`eval 'as_val=${'$as_ac_var'}
  28405. $as_echo "$as_val"'`
  28406. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  28407. $as_echo "$ac_res" >&6; }
  28408. if test `eval 'as_val=${'$as_ac_var'}
  28409. $as_echo "$as_val"'` = yes; then
  28410. cat >>confdefs.h <<_ACEOF
  28411. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  28412. _ACEOF
  28413. { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
  28414. $as_echo_n "checking for _doprnt... " >&6; }
  28415. if test "${ac_cv_func__doprnt+set}" = set; then
  28416. $as_echo_n "(cached) " >&6
  28417. else
  28418. cat >conftest.$ac_ext <<_ACEOF
  28419. /* confdefs.h. */
  28420. _ACEOF
  28421. cat confdefs.h >>conftest.$ac_ext
  28422. cat >>conftest.$ac_ext <<_ACEOF
  28423. /* end confdefs.h. */
  28424. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  28425. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  28426. #define _doprnt innocuous__doprnt
  28427. /* System header to define __stub macros and hopefully few prototypes,
  28428. which can conflict with char _doprnt (); below.
  28429. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  28430. <limits.h> exists even on freestanding compilers. */
  28431. #ifdef __STDC__
  28432. # include <limits.h>
  28433. #else
  28434. # include <assert.h>
  28435. #endif
  28436. #undef _doprnt
  28437. /* Override any GCC internal prototype to avoid an error.
  28438. Use char because int might match the return type of a GCC
  28439. builtin and then its argument prototype would still apply. */
  28440. #ifdef __cplusplus
  28441. extern "C"
  28442. #endif
  28443. char _doprnt ();
  28444. /* The GNU C library defines this for functions which it implements
  28445. to always fail with ENOSYS. Some functions are actually named
  28446. something starting with __ and the normal name is an alias. */
  28447. #if defined __stub__doprnt || defined __stub____doprnt
  28448. choke me
  28449. #endif
  28450. int
  28451. main ()
  28452. {
  28453. return _doprnt ();
  28454. ;
  28455. return 0;
  28456. }
  28457. _ACEOF
  28458. rm -f conftest.$ac_objext conftest$ac_exeext
  28459. if { (ac_try="$ac_link"
  28460. case "(($ac_try" in
  28461. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28462. *) ac_try_echo=$ac_try;;
  28463. esac
  28464. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28465. $as_echo "$ac_try_echo") >&5
  28466. (eval "$ac_link") 2>conftest.er1
  28467. ac_status=$?
  28468. grep -v '^ *+' conftest.er1 >conftest.err
  28469. rm -f conftest.er1
  28470. cat conftest.err >&5
  28471. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28472. (exit $ac_status); } && {
  28473. test -z "$ac_c_werror_flag" ||
  28474. test ! -s conftest.err
  28475. } && test -s conftest$ac_exeext && {
  28476. test "$cross_compiling" = yes ||
  28477. $as_test_x conftest$ac_exeext
  28478. }; then
  28479. ac_cv_func__doprnt=yes
  28480. else
  28481. $as_echo "$as_me: failed program was:" >&5
  28482. sed 's/^/| /' conftest.$ac_ext >&5
  28483. ac_cv_func__doprnt=no
  28484. fi
  28485. rm -rf conftest.dSYM
  28486. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28487. conftest$ac_exeext conftest.$ac_ext
  28488. fi
  28489. { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  28490. $as_echo "$ac_cv_func__doprnt" >&6; }
  28491. if test $ac_cv_func__doprnt = yes; then
  28492. cat >>confdefs.h <<\_ACEOF
  28493. #define HAVE_DOPRNT 1
  28494. _ACEOF
  28495. fi
  28496. fi
  28497. done
  28498. for ac_func in strsignal mmap canonicalize_file_name snprintf strdup strchr strrchr
  28499. do
  28500. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  28501. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  28502. $as_echo_n "checking for $ac_func... " >&6; }
  28503. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  28504. $as_echo_n "(cached) " >&6
  28505. else
  28506. cat >conftest.$ac_ext <<_ACEOF
  28507. /* confdefs.h. */
  28508. _ACEOF
  28509. cat confdefs.h >>conftest.$ac_ext
  28510. cat >>conftest.$ac_ext <<_ACEOF
  28511. /* end confdefs.h. */
  28512. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  28513. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  28514. #define $ac_func innocuous_$ac_func
  28515. /* System header to define __stub macros and hopefully few prototypes,
  28516. which can conflict with char $ac_func (); below.
  28517. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  28518. <limits.h> exists even on freestanding compilers. */
  28519. #ifdef __STDC__
  28520. # include <limits.h>
  28521. #else
  28522. # include <assert.h>
  28523. #endif
  28524. #undef $ac_func
  28525. /* Override any GCC internal prototype to avoid an error.
  28526. Use char because int might match the return type of a GCC
  28527. builtin and then its argument prototype would still apply. */
  28528. #ifdef __cplusplus
  28529. extern "C"
  28530. #endif
  28531. char $ac_func ();
  28532. /* The GNU C library defines this for functions which it implements
  28533. to always fail with ENOSYS. Some functions are actually named
  28534. something starting with __ and the normal name is an alias. */
  28535. #if defined __stub_$ac_func || defined __stub___$ac_func
  28536. choke me
  28537. #endif
  28538. int
  28539. main ()
  28540. {
  28541. return $ac_func ();
  28542. ;
  28543. return 0;
  28544. }
  28545. _ACEOF
  28546. rm -f conftest.$ac_objext conftest$ac_exeext
  28547. if { (ac_try="$ac_link"
  28548. case "(($ac_try" in
  28549. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28550. *) ac_try_echo=$ac_try;;
  28551. esac
  28552. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28553. $as_echo "$ac_try_echo") >&5
  28554. (eval "$ac_link") 2>conftest.er1
  28555. ac_status=$?
  28556. grep -v '^ *+' conftest.er1 >conftest.err
  28557. rm -f conftest.er1
  28558. cat conftest.err >&5
  28559. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28560. (exit $ac_status); } && {
  28561. test -z "$ac_c_werror_flag" ||
  28562. test ! -s conftest.err
  28563. } && test -s conftest$ac_exeext && {
  28564. test "$cross_compiling" = yes ||
  28565. $as_test_x conftest$ac_exeext
  28566. }; then
  28567. eval "$as_ac_var=yes"
  28568. else
  28569. $as_echo "$as_me: failed program was:" >&5
  28570. sed 's/^/| /' conftest.$ac_ext >&5
  28571. eval "$as_ac_var=no"
  28572. fi
  28573. rm -rf conftest.dSYM
  28574. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28575. conftest$ac_exeext conftest.$ac_ext
  28576. fi
  28577. ac_res=`eval 'as_val=${'$as_ac_var'}
  28578. $as_echo "$as_val"'`
  28579. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  28580. $as_echo "$ac_res" >&6; }
  28581. if test `eval 'as_val=${'$as_ac_var'}
  28582. $as_echo "$as_val"'` = yes; then
  28583. cat >>confdefs.h <<_ACEOF
  28584. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  28585. _ACEOF
  28586. fi
  28587. done
  28588. INVOKE_LIBOPTS_MACROS_FIRST_done=yes
  28589. fi
  28590. # Check to see if a reg expr header is specified.
  28591. # Check whether --with-regex-header was given.
  28592. if test "${with_regex_header+set}" = set; then
  28593. withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header}
  28594. else
  28595. { $as_echo "$as_me:$LINENO: checking whether a reg expr header is specified" >&5
  28596. $as_echo_n "checking whether a reg expr header is specified... " >&6; }
  28597. if test "${libopts_cv_with_regex_header+set}" = set; then
  28598. $as_echo_n "(cached) " >&6
  28599. else
  28600. libopts_cv_with_regex_header=no
  28601. fi
  28602. { $as_echo "$as_me:$LINENO: result: $libopts_cv_with_regex_header" >&5
  28603. $as_echo "$libopts_cv_with_regex_header" >&6; }
  28604. fi
  28605. # end of AC_ARG_WITH
  28606. if test "X${libopts_cv_with_regex_header}" != Xno
  28607. then
  28608. cat >>confdefs.h <<_ACEOF
  28609. #define REGEX_HEADER <${libopts_cv_with_regex_header}>
  28610. _ACEOF
  28611. else
  28612. cat >>confdefs.h <<\_ACEOF
  28613. #define REGEX_HEADER <regex.h>
  28614. _ACEOF
  28615. fi
  28616. # Check to see if a working libregex can be found.
  28617. # Check whether --with-libregex was given.
  28618. if test "${with_libregex+set}" = set; then
  28619. withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex}
  28620. else
  28621. { $as_echo "$as_me:$LINENO: checking whether with-libregex was specified" >&5
  28622. $as_echo_n "checking whether with-libregex was specified... " >&6; }
  28623. if test "${libopts_cv_with_libregex_root+set}" = set; then
  28624. $as_echo_n "(cached) " >&6
  28625. else
  28626. libopts_cv_with_libregex_root=no
  28627. fi
  28628. { $as_echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_root" >&5
  28629. $as_echo "$libopts_cv_with_libregex_root" >&6; }
  28630. fi
  28631. # end of AC_ARG_WITH libregex
  28632. if test "${with_libguile+set}" = set && \
  28633. test "${withval}" = no
  28634. then ## disabled by request
  28635. libopts_cv_with_libregex_root=no
  28636. libopts_cv_with_libregex_cflags=no
  28637. libopts_cv_with_libregex_libs=no
  28638. else
  28639. # Check whether --with-libregex-cflags was given.
  28640. if test "${with_libregex_cflags+set}" = set; then
  28641. withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_regex_cflags}
  28642. else
  28643. { $as_echo "$as_me:$LINENO: checking whether with-libregex-cflags was specified" >&5
  28644. $as_echo_n "checking whether with-libregex-cflags was specified... " >&6; }
  28645. if test "${libopts_cv_with_libregex_cflags+set}" = set; then
  28646. $as_echo_n "(cached) " >&6
  28647. else
  28648. libopts_cv_with_libregex_cflags=no
  28649. fi
  28650. { $as_echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_cflags" >&5
  28651. $as_echo "$libopts_cv_with_libregex_cflags" >&6; }
  28652. fi
  28653. # end of AC_ARG_WITH libregex-cflags
  28654. # Check whether --with-libregex-libs was given.
  28655. if test "${with_libregex_libs+set}" = set; then
  28656. withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_regex_libs}
  28657. else
  28658. { $as_echo "$as_me:$LINENO: checking whether with-libregex-libs was specified" >&5
  28659. $as_echo_n "checking whether with-libregex-libs was specified... " >&6; }
  28660. if test "${libopts_cv_with_libregex_libs+set}" = set; then
  28661. $as_echo_n "(cached) " >&6
  28662. else
  28663. libopts_cv_with_libregex_libs=no
  28664. fi
  28665. { $as_echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_libs" >&5
  28666. $as_echo "$libopts_cv_with_libregex_libs" >&6; }
  28667. fi
  28668. # end of AC_ARG_WITH libregex-libs
  28669. case "X${libopts_cv_with_libregex_cflags}" in
  28670. Xyes|Xno|X )
  28671. case "X${libopts_cv_with_libregex_root}" in
  28672. Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
  28673. * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
  28674. esac
  28675. esac
  28676. case "X${libopts_cv_with_libregex_libs}" in
  28677. Xyes|Xno|X )
  28678. case "X${libopts_cv_with_libregex_root}" in
  28679. Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
  28680. * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex";;
  28681. esac
  28682. esac
  28683. libopts_save_CPPFLAGS="${CPPFLAGS}"
  28684. libopts_save_LIBS="${LIBS}"
  28685. fi ## disabled by request
  28686. case "X${libopts_cv_with_libregex_cflags}" in
  28687. Xyes|Xno|X )
  28688. libopts_cv_with_libregex_cflags="" ;;
  28689. * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
  28690. esac
  28691. case "X${libopts_cv_with_libregex_libs}" in
  28692. Xyes|Xno|X )
  28693. libopts_cv_with_libregex_libs="" ;;
  28694. * )
  28695. LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
  28696. esac
  28697. LIBREGEX_CFLAGS=""
  28698. LIBREGEX_LIBS=""
  28699. { $as_echo "$as_me:$LINENO: checking whether libregex functions properly" >&5
  28700. $as_echo_n "checking whether libregex functions properly... " >&6; }
  28701. if test "${libopts_cv_with_libregex+set}" = set; then
  28702. $as_echo_n "(cached) " >&6
  28703. else
  28704. if test "$cross_compiling" = yes; then
  28705. libopts_cv_with_libregex=no
  28706. else
  28707. cat >conftest.$ac_ext <<_ACEOF
  28708. /* confdefs.h. */
  28709. _ACEOF
  28710. cat confdefs.h >>conftest.$ac_ext
  28711. cat >>conftest.$ac_ext <<_ACEOF
  28712. /* end confdefs.h. */
  28713. #include <stdio.h>
  28714. #include <stdlib.h>
  28715. #include <sys/types.h>
  28716. #include REGEX_HEADER
  28717. static regex_t re;
  28718. void comp_re( char const* pzPat ) {
  28719. int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
  28720. if (res == 0) return;
  28721. exit( res ); }
  28722. int main() {
  28723. regmatch_t m[2];
  28724. comp_re( "^.*\$" );
  28725. comp_re( "()|no.*" );
  28726. comp_re( "." );
  28727. if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
  28728. if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
  28729. fputs( "error: regex -->.<-- did not match\n", stderr );
  28730. return 1;
  28731. }
  28732. return 0; }
  28733. _ACEOF
  28734. rm -f conftest$ac_exeext
  28735. if { (ac_try="$ac_link"
  28736. case "(($ac_try" in
  28737. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28738. *) ac_try_echo=$ac_try;;
  28739. esac
  28740. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28741. $as_echo "$ac_try_echo") >&5
  28742. (eval "$ac_link") 2>&5
  28743. ac_status=$?
  28744. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28745. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  28746. { (case "(($ac_try" in
  28747. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28748. *) ac_try_echo=$ac_try;;
  28749. esac
  28750. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28751. $as_echo "$ac_try_echo") >&5
  28752. (eval "$ac_try") 2>&5
  28753. ac_status=$?
  28754. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28755. (exit $ac_status); }; }; then
  28756. libopts_cv_with_libregex=yes
  28757. else
  28758. $as_echo "$as_me: program exited with status $ac_status" >&5
  28759. $as_echo "$as_me: failed program was:" >&5
  28760. sed 's/^/| /' conftest.$ac_ext >&5
  28761. ( exit $ac_status )
  28762. libopts_cv_with_libregex=no
  28763. fi
  28764. rm -rf conftest.dSYM
  28765. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  28766. fi
  28767. # end of AC_TRY_RUN
  28768. fi
  28769. # end of AC_CACHE_VAL for libopts_cv_with_libregex
  28770. { $as_echo "$as_me:$LINENO: result: ${libopts_cv_with_libregex}" >&5
  28771. $as_echo "${libopts_cv_with_libregex}" >&6; }
  28772. if test "X${libopts_cv_with_libregex}" != Xno
  28773. then
  28774. cat >>confdefs.h <<\_ACEOF
  28775. #define WITH_LIBREGEX 1
  28776. _ACEOF
  28777. else
  28778. CPPFLAGS="${libopts_save_CPPFLAGS}"
  28779. LIBS="${libopts_save_LIBS}"
  28780. fi
  28781. # Check to see if pathfind(3) works.
  28782. { $as_echo "$as_me:$LINENO: checking whether pathfind(3) works" >&5
  28783. $as_echo_n "checking whether pathfind(3) works... " >&6; }
  28784. if test "${libopts_cv_run_pathfind+set}" = set; then
  28785. $as_echo_n "(cached) " >&6
  28786. else
  28787. if test "$cross_compiling" = yes; then
  28788. libopts_cv_run_pathfind=no
  28789. else
  28790. cat >conftest.$ac_ext <<_ACEOF
  28791. /* confdefs.h. */
  28792. _ACEOF
  28793. cat confdefs.h >>conftest.$ac_ext
  28794. cat >>conftest.$ac_ext <<_ACEOF
  28795. /* end confdefs.h. */
  28796. #include <string.h>
  28797. #include <stdlib.h>
  28798. int main (int argc, char** argv) {
  28799. char* pz = pathfind( getenv( "PATH" ), "sh", "x" );
  28800. return (pz == 0) ? 1 : 0;
  28801. }
  28802. _ACEOF
  28803. rm -f conftest$ac_exeext
  28804. if { (ac_try="$ac_link"
  28805. case "(($ac_try" in
  28806. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28807. *) ac_try_echo=$ac_try;;
  28808. esac
  28809. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28810. $as_echo "$ac_try_echo") >&5
  28811. (eval "$ac_link") 2>&5
  28812. ac_status=$?
  28813. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28814. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  28815. { (case "(($ac_try" in
  28816. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28817. *) ac_try_echo=$ac_try;;
  28818. esac
  28819. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28820. $as_echo "$ac_try_echo") >&5
  28821. (eval "$ac_try") 2>&5
  28822. ac_status=$?
  28823. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28824. (exit $ac_status); }; }; then
  28825. libopts_cv_run_pathfind=yes
  28826. else
  28827. $as_echo "$as_me: program exited with status $ac_status" >&5
  28828. $as_echo "$as_me: failed program was:" >&5
  28829. sed 's/^/| /' conftest.$ac_ext >&5
  28830. ( exit $ac_status )
  28831. libopts_cv_run_pathfind=no
  28832. fi
  28833. rm -rf conftest.dSYM
  28834. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  28835. fi
  28836. # end of TRY_RUN
  28837. fi
  28838. # end of AC_CACHE_VAL for libopts_cv_run_pathfind
  28839. { $as_echo "$as_me:$LINENO: result: ${libopts_cv_run_pathfind}" >&5
  28840. $as_echo "${libopts_cv_run_pathfind}" >&6; }
  28841. if test "X${libopts_cv_run_pathfind}" != Xno
  28842. then
  28843. cat >>confdefs.h <<\_ACEOF
  28844. #define HAVE_PATHFIND 1
  28845. _ACEOF
  28846. fi
  28847. # Check to see if /dev/zero is readable device.
  28848. { $as_echo "$as_me:$LINENO: checking whether /dev/zero is readable device" >&5
  28849. $as_echo_n "checking whether /dev/zero is readable device... " >&6; }
  28850. if test "${libopts_cv_test_dev_zero+set}" = set; then
  28851. $as_echo_n "(cached) " >&6
  28852. else
  28853. libopts_cv_test_dev_zero=`exec 2> /dev/null
  28854. dzero=\`ls -lL /dev/zero | egrep ^c......r\`
  28855. test -z "${dzero}" && exit 1
  28856. echo ${dzero}`
  28857. if test $? -ne 0
  28858. then libopts_cv_test_dev_zero=no
  28859. elif test -z "$libopts_cv_test_dev_zero"
  28860. then libopts_cv_test_dev_zero=no
  28861. fi
  28862. fi
  28863. # end of CACHE_VAL of libopts_cv_test_dev_zero
  28864. { $as_echo "$as_me:$LINENO: result: ${libopts_cv_test_dev_zero}" >&5
  28865. $as_echo "${libopts_cv_test_dev_zero}" >&6; }
  28866. if test "X${libopts_cv_test_dev_zero}" != Xno
  28867. then
  28868. cat >>confdefs.h <<\_ACEOF
  28869. #define HAVE_DEV_ZERO 1
  28870. _ACEOF
  28871. fi
  28872. # Check to see if we have a functional realpath(3C).
  28873. { $as_echo "$as_me:$LINENO: checking whether we have a functional realpath(3C)" >&5
  28874. $as_echo_n "checking whether we have a functional realpath(3C)... " >&6; }
  28875. if test "${libopts_cv_run_realpath+set}" = set; then
  28876. $as_echo_n "(cached) " >&6
  28877. else
  28878. if test "$cross_compiling" = yes; then
  28879. libopts_cv_run_realpath=no
  28880. else
  28881. cat >conftest.$ac_ext <<_ACEOF
  28882. /* confdefs.h. */
  28883. _ACEOF
  28884. cat confdefs.h >>conftest.$ac_ext
  28885. cat >>conftest.$ac_ext <<_ACEOF
  28886. /* end confdefs.h. */
  28887. #include <limits.h>
  28888. #include <stdlib.h>
  28889. int main (int argc, char** argv) {
  28890. #ifndef PATH_MAX
  28891. choke me!!
  28892. #else
  28893. char zPath[PATH_MAX+1];
  28894. #endif
  28895. char *pz = realpath(argv[0], zPath);
  28896. return (pz == zPath) ? 0 : 1;
  28897. }
  28898. _ACEOF
  28899. rm -f conftest$ac_exeext
  28900. if { (ac_try="$ac_link"
  28901. case "(($ac_try" in
  28902. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28903. *) ac_try_echo=$ac_try;;
  28904. esac
  28905. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28906. $as_echo "$ac_try_echo") >&5
  28907. (eval "$ac_link") 2>&5
  28908. ac_status=$?
  28909. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28910. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  28911. { (case "(($ac_try" in
  28912. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28913. *) ac_try_echo=$ac_try;;
  28914. esac
  28915. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28916. $as_echo "$ac_try_echo") >&5
  28917. (eval "$ac_try") 2>&5
  28918. ac_status=$?
  28919. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28920. (exit $ac_status); }; }; then
  28921. libopts_cv_run_realpath=yes
  28922. else
  28923. $as_echo "$as_me: program exited with status $ac_status" >&5
  28924. $as_echo "$as_me: failed program was:" >&5
  28925. sed 's/^/| /' conftest.$ac_ext >&5
  28926. ( exit $ac_status )
  28927. libopts_cv_run_realpath=no
  28928. fi
  28929. rm -rf conftest.dSYM
  28930. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  28931. fi
  28932. # end of TRY_RUN
  28933. fi
  28934. # end of AC_CACHE_VAL for libopts_cv_run_realpath
  28935. { $as_echo "$as_me:$LINENO: result: ${libopts_cv_run_realpath}" >&5
  28936. $as_echo "${libopts_cv_run_realpath}" >&6; }
  28937. if test "X${libopts_cv_run_realpath}" != Xno
  28938. then
  28939. cat >>confdefs.h <<\_ACEOF
  28940. #define HAVE_REALPATH 1
  28941. _ACEOF
  28942. fi
  28943. # Check to see if strftime() works.
  28944. { $as_echo "$as_me:$LINENO: checking whether strftime() works" >&5
  28945. $as_echo_n "checking whether strftime() works... " >&6; }
  28946. if test "${libopts_cv_run_strftime+set}" = set; then
  28947. $as_echo_n "(cached) " >&6
  28948. else
  28949. if test "$cross_compiling" = yes; then
  28950. libopts_cv_run_strftime=no
  28951. else
  28952. cat >conftest.$ac_ext <<_ACEOF
  28953. /* confdefs.h. */
  28954. _ACEOF
  28955. cat confdefs.h >>conftest.$ac_ext
  28956. cat >>conftest.$ac_ext <<_ACEOF
  28957. /* end confdefs.h. */
  28958. #include <time.h>
  28959. #include <string.h>
  28960. char t_buf[ 64 ];
  28961. int main() {
  28962. static char const z[] = "Thursday Aug 28 240";
  28963. struct tm tm;
  28964. tm.tm_sec = 36; /* seconds after the minute [0, 61] */
  28965. tm.tm_min = 44; /* minutes after the hour [0, 59] */
  28966. tm.tm_hour = 12; /* hour since midnight [0, 23] */
  28967. tm.tm_mday = 28; /* day of the month [1, 31] */
  28968. tm.tm_mon = 7; /* months since January [0, 11] */
  28969. tm.tm_year = 86; /* years since 1900 */
  28970. tm.tm_wday = 4; /* days since Sunday [0, 6] */
  28971. tm.tm_yday = 239; /* days since January 1 [0, 365] */
  28972. tm.tm_isdst = 1; /* flag for daylight savings time */
  28973. strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
  28974. return (strcmp( t_buf, z ) != 0); }
  28975. _ACEOF
  28976. rm -f conftest$ac_exeext
  28977. if { (ac_try="$ac_link"
  28978. case "(($ac_try" in
  28979. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28980. *) ac_try_echo=$ac_try;;
  28981. esac
  28982. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28983. $as_echo "$ac_try_echo") >&5
  28984. (eval "$ac_link") 2>&5
  28985. ac_status=$?
  28986. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28987. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  28988. { (case "(($ac_try" in
  28989. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28990. *) ac_try_echo=$ac_try;;
  28991. esac
  28992. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28993. $as_echo "$ac_try_echo") >&5
  28994. (eval "$ac_try") 2>&5
  28995. ac_status=$?
  28996. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28997. (exit $ac_status); }; }; then
  28998. libopts_cv_run_strftime=yes
  28999. else
  29000. $as_echo "$as_me: program exited with status $ac_status" >&5
  29001. $as_echo "$as_me: failed program was:" >&5
  29002. sed 's/^/| /' conftest.$ac_ext >&5
  29003. ( exit $ac_status )
  29004. libopts_cv_run_strftime=no
  29005. fi
  29006. rm -rf conftest.dSYM
  29007. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  29008. fi
  29009. # end of TRY_RUN
  29010. fi
  29011. # end of AC_CACHE_VAL for libopts_cv_run_strftime
  29012. { $as_echo "$as_me:$LINENO: result: ${libopts_cv_run_strftime}" >&5
  29013. $as_echo "${libopts_cv_run_strftime}" >&6; }
  29014. if test "X${libopts_cv_run_strftime}" != Xno
  29015. then
  29016. cat >>confdefs.h <<\_ACEOF
  29017. #define HAVE_STRFTIME 1
  29018. _ACEOF
  29019. fi
  29020. # Check to see if fopen accepts "b" mode.
  29021. { $as_echo "$as_me:$LINENO: checking whether fopen accepts \"b\" mode" >&5
  29022. $as_echo_n "checking whether fopen accepts \"b\" mode... " >&6; }
  29023. if test "${libopts_cv_run_fopen_binary+set}" = set; then
  29024. $as_echo_n "(cached) " >&6
  29025. else
  29026. if test "$cross_compiling" = yes; then
  29027. libopts_cv_run_fopen_binary=no
  29028. else
  29029. cat >conftest.$ac_ext <<_ACEOF
  29030. /* confdefs.h. */
  29031. _ACEOF
  29032. cat confdefs.h >>conftest.$ac_ext
  29033. cat >>conftest.$ac_ext <<_ACEOF
  29034. /* end confdefs.h. */
  29035. #include <stdio.h>
  29036. int main (int argc, char** argv) {
  29037. FILE* fp = fopen("conftest.$ac_ext", "rb");
  29038. return (fp == NULL) ? 1 : fclose(fp); }
  29039. _ACEOF
  29040. rm -f conftest$ac_exeext
  29041. if { (ac_try="$ac_link"
  29042. case "(($ac_try" in
  29043. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29044. *) ac_try_echo=$ac_try;;
  29045. esac
  29046. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29047. $as_echo "$ac_try_echo") >&5
  29048. (eval "$ac_link") 2>&5
  29049. ac_status=$?
  29050. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29051. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  29052. { (case "(($ac_try" in
  29053. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29054. *) ac_try_echo=$ac_try;;
  29055. esac
  29056. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29057. $as_echo "$ac_try_echo") >&5
  29058. (eval "$ac_try") 2>&5
  29059. ac_status=$?
  29060. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29061. (exit $ac_status); }; }; then
  29062. libopts_cv_run_fopen_binary=yes
  29063. else
  29064. $as_echo "$as_me: program exited with status $ac_status" >&5
  29065. $as_echo "$as_me: failed program was:" >&5
  29066. sed 's/^/| /' conftest.$ac_ext >&5
  29067. ( exit $ac_status )
  29068. libopts_cv_run_fopen_binary=no
  29069. fi
  29070. rm -rf conftest.dSYM
  29071. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  29072. fi
  29073. # end of TRY_RUN
  29074. fi
  29075. # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
  29076. { $as_echo "$as_me:$LINENO: result: ${libopts_cv_run_fopen_binary}" >&5
  29077. $as_echo "${libopts_cv_run_fopen_binary}" >&6; }
  29078. if test "X${libopts_cv_run_fopen_binary}" != Xno
  29079. then
  29080. cat >>confdefs.h <<\_ACEOF
  29081. #define FOPEN_BINARY_FLAG "b"
  29082. _ACEOF
  29083. else
  29084. cat >>confdefs.h <<\_ACEOF
  29085. #define FOPEN_BINARY_FLAG ""
  29086. _ACEOF
  29087. fi
  29088. # Check to see if fopen accepts "t" mode.
  29089. { $as_echo "$as_me:$LINENO: checking whether fopen accepts \"t\" mode" >&5
  29090. $as_echo_n "checking whether fopen accepts \"t\" mode... " >&6; }
  29091. if test "${libopts_cv_run_fopen_text+set}" = set; then
  29092. $as_echo_n "(cached) " >&6
  29093. else
  29094. if test "$cross_compiling" = yes; then
  29095. libopts_cv_run_fopen_text=no
  29096. else
  29097. cat >conftest.$ac_ext <<_ACEOF
  29098. /* confdefs.h. */
  29099. _ACEOF
  29100. cat confdefs.h >>conftest.$ac_ext
  29101. cat >>conftest.$ac_ext <<_ACEOF
  29102. /* end confdefs.h. */
  29103. #include <stdio.h>
  29104. int main (int argc, char** argv) {
  29105. FILE* fp = fopen("conftest.$ac_ext", "rt");
  29106. return (fp == NULL) ? 1 : fclose(fp); }
  29107. _ACEOF
  29108. rm -f conftest$ac_exeext
  29109. if { (ac_try="$ac_link"
  29110. case "(($ac_try" in
  29111. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29112. *) ac_try_echo=$ac_try;;
  29113. esac
  29114. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29115. $as_echo "$ac_try_echo") >&5
  29116. (eval "$ac_link") 2>&5
  29117. ac_status=$?
  29118. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29119. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  29120. { (case "(($ac_try" in
  29121. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29122. *) ac_try_echo=$ac_try;;
  29123. esac
  29124. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29125. $as_echo "$ac_try_echo") >&5
  29126. (eval "$ac_try") 2>&5
  29127. ac_status=$?
  29128. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29129. (exit $ac_status); }; }; then
  29130. libopts_cv_run_fopen_text=yes
  29131. else
  29132. $as_echo "$as_me: program exited with status $ac_status" >&5
  29133. $as_echo "$as_me: failed program was:" >&5
  29134. sed 's/^/| /' conftest.$ac_ext >&5
  29135. ( exit $ac_status )
  29136. libopts_cv_run_fopen_text=no
  29137. fi
  29138. rm -rf conftest.dSYM
  29139. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  29140. fi
  29141. # end of TRY_RUN
  29142. fi
  29143. # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
  29144. { $as_echo "$as_me:$LINENO: result: ${libopts_cv_run_fopen_text}" >&5
  29145. $as_echo "${libopts_cv_run_fopen_text}" >&6; }
  29146. if test "X${libopts_cv_run_fopen_text}" != Xno
  29147. then
  29148. cat >>confdefs.h <<\_ACEOF
  29149. #define FOPEN_TEXT_FLAG "t"
  29150. _ACEOF
  29151. else
  29152. cat >>confdefs.h <<\_ACEOF
  29153. #define FOPEN_TEXT_FLAG ""
  29154. _ACEOF
  29155. fi
  29156. # Check to see if not wanting optional option args.
  29157. # Check whether --enable-optional-args was given.
  29158. if test "${enable_optional_args+set}" = set; then
  29159. enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args}
  29160. else
  29161. { $as_echo "$as_me:$LINENO: checking whether not wanting optional option args" >&5
  29162. $as_echo_n "checking whether not wanting optional option args... " >&6; }
  29163. if test "${libopts_cv_enable_optional_args+set}" = set; then
  29164. $as_echo_n "(cached) " >&6
  29165. else
  29166. libopts_cv_enable_optional_args=yes
  29167. fi
  29168. { $as_echo "$as_me:$LINENO: result: $libopts_cv_enable_optional_args" >&5
  29169. $as_echo "$libopts_cv_enable_optional_args" >&6; }
  29170. fi
  29171. # end of AC_ARG_ENABLE
  29172. if test "X${libopts_cv_enable_optional_args}" = Xno
  29173. then
  29174. cat >>confdefs.h <<\_ACEOF
  29175. #define NO_OPTIONAL_OPT_ARGS 1
  29176. _ACEOF
  29177. fi
  29178. else
  29179. if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
  29180. # =================
  29181. # AC_HEADER_STDC
  29182. # =================
  29183. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  29184. $as_echo_n "checking for ANSI C header files... " >&6; }
  29185. if test "${ac_cv_header_stdc+set}" = set; then
  29186. $as_echo_n "(cached) " >&6
  29187. else
  29188. cat >conftest.$ac_ext <<_ACEOF
  29189. /* confdefs.h. */
  29190. _ACEOF
  29191. cat confdefs.h >>conftest.$ac_ext
  29192. cat >>conftest.$ac_ext <<_ACEOF
  29193. /* end confdefs.h. */
  29194. #include <stdlib.h>
  29195. #include <stdarg.h>
  29196. #include <string.h>
  29197. #include <float.h>
  29198. int
  29199. main ()
  29200. {
  29201. ;
  29202. return 0;
  29203. }
  29204. _ACEOF
  29205. rm -f conftest.$ac_objext
  29206. if { (ac_try="$ac_compile"
  29207. case "(($ac_try" in
  29208. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29209. *) ac_try_echo=$ac_try;;
  29210. esac
  29211. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29212. $as_echo "$ac_try_echo") >&5
  29213. (eval "$ac_compile") 2>conftest.er1
  29214. ac_status=$?
  29215. grep -v '^ *+' conftest.er1 >conftest.err
  29216. rm -f conftest.er1
  29217. cat conftest.err >&5
  29218. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29219. (exit $ac_status); } && {
  29220. test -z "$ac_c_werror_flag" ||
  29221. test ! -s conftest.err
  29222. } && test -s conftest.$ac_objext; then
  29223. ac_cv_header_stdc=yes
  29224. else
  29225. $as_echo "$as_me: failed program was:" >&5
  29226. sed 's/^/| /' conftest.$ac_ext >&5
  29227. ac_cv_header_stdc=no
  29228. fi
  29229. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29230. if test $ac_cv_header_stdc = yes; then
  29231. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  29232. cat >conftest.$ac_ext <<_ACEOF
  29233. /* confdefs.h. */
  29234. _ACEOF
  29235. cat confdefs.h >>conftest.$ac_ext
  29236. cat >>conftest.$ac_ext <<_ACEOF
  29237. /* end confdefs.h. */
  29238. #include <string.h>
  29239. _ACEOF
  29240. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  29241. $EGREP "memchr" >/dev/null 2>&1; then
  29242. :
  29243. else
  29244. ac_cv_header_stdc=no
  29245. fi
  29246. rm -f conftest*
  29247. fi
  29248. if test $ac_cv_header_stdc = yes; then
  29249. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  29250. cat >conftest.$ac_ext <<_ACEOF
  29251. /* confdefs.h. */
  29252. _ACEOF
  29253. cat confdefs.h >>conftest.$ac_ext
  29254. cat >>conftest.$ac_ext <<_ACEOF
  29255. /* end confdefs.h. */
  29256. #include <stdlib.h>
  29257. _ACEOF
  29258. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  29259. $EGREP "free" >/dev/null 2>&1; then
  29260. :
  29261. else
  29262. ac_cv_header_stdc=no
  29263. fi
  29264. rm -f conftest*
  29265. fi
  29266. if test $ac_cv_header_stdc = yes; then
  29267. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  29268. if test "$cross_compiling" = yes; then
  29269. :
  29270. else
  29271. cat >conftest.$ac_ext <<_ACEOF
  29272. /* confdefs.h. */
  29273. _ACEOF
  29274. cat confdefs.h >>conftest.$ac_ext
  29275. cat >>conftest.$ac_ext <<_ACEOF
  29276. /* end confdefs.h. */
  29277. #include <ctype.h>
  29278. #include <stdlib.h>
  29279. #if ((' ' & 0x0FF) == 0x020)
  29280. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  29281. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  29282. #else
  29283. # define ISLOWER(c) \
  29284. (('a' <= (c) && (c) <= 'i') \
  29285. || ('j' <= (c) && (c) <= 'r') \
  29286. || ('s' <= (c) && (c) <= 'z'))
  29287. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  29288. #endif
  29289. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  29290. int
  29291. main ()
  29292. {
  29293. int i;
  29294. for (i = 0; i < 256; i++)
  29295. if (XOR (islower (i), ISLOWER (i))
  29296. || toupper (i) != TOUPPER (i))
  29297. return 2;
  29298. return 0;
  29299. }
  29300. _ACEOF
  29301. rm -f conftest$ac_exeext
  29302. if { (ac_try="$ac_link"
  29303. case "(($ac_try" in
  29304. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29305. *) ac_try_echo=$ac_try;;
  29306. esac
  29307. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29308. $as_echo "$ac_try_echo") >&5
  29309. (eval "$ac_link") 2>&5
  29310. ac_status=$?
  29311. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29312. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  29313. { (case "(($ac_try" in
  29314. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29315. *) ac_try_echo=$ac_try;;
  29316. esac
  29317. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29318. $as_echo "$ac_try_echo") >&5
  29319. (eval "$ac_try") 2>&5
  29320. ac_status=$?
  29321. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29322. (exit $ac_status); }; }; then
  29323. :
  29324. else
  29325. $as_echo "$as_me: program exited with status $ac_status" >&5
  29326. $as_echo "$as_me: failed program was:" >&5
  29327. sed 's/^/| /' conftest.$ac_ext >&5
  29328. ( exit $ac_status )
  29329. ac_cv_header_stdc=no
  29330. fi
  29331. rm -rf conftest.dSYM
  29332. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  29333. fi
  29334. fi
  29335. fi
  29336. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  29337. $as_echo "$ac_cv_header_stdc" >&6; }
  29338. if test $ac_cv_header_stdc = yes; then
  29339. cat >>confdefs.h <<\_ACEOF
  29340. #define STDC_HEADERS 1
  29341. _ACEOF
  29342. fi
  29343. # =================
  29344. # AC_HEADER_DIRENT
  29345. # =================
  29346. ac_header_dirent=no
  29347. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  29348. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  29349. { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  29350. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  29351. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  29352. $as_echo_n "(cached) " >&6
  29353. else
  29354. cat >conftest.$ac_ext <<_ACEOF
  29355. /* confdefs.h. */
  29356. _ACEOF
  29357. cat confdefs.h >>conftest.$ac_ext
  29358. cat >>conftest.$ac_ext <<_ACEOF
  29359. /* end confdefs.h. */
  29360. #include <sys/types.h>
  29361. #include <$ac_hdr>
  29362. int
  29363. main ()
  29364. {
  29365. if ((DIR *) 0)
  29366. return 0;
  29367. ;
  29368. return 0;
  29369. }
  29370. _ACEOF
  29371. rm -f conftest.$ac_objext
  29372. if { (ac_try="$ac_compile"
  29373. case "(($ac_try" in
  29374. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29375. *) ac_try_echo=$ac_try;;
  29376. esac
  29377. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29378. $as_echo "$ac_try_echo") >&5
  29379. (eval "$ac_compile") 2>conftest.er1
  29380. ac_status=$?
  29381. grep -v '^ *+' conftest.er1 >conftest.err
  29382. rm -f conftest.er1
  29383. cat conftest.err >&5
  29384. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29385. (exit $ac_status); } && {
  29386. test -z "$ac_c_werror_flag" ||
  29387. test ! -s conftest.err
  29388. } && test -s conftest.$ac_objext; then
  29389. eval "$as_ac_Header=yes"
  29390. else
  29391. $as_echo "$as_me: failed program was:" >&5
  29392. sed 's/^/| /' conftest.$ac_ext >&5
  29393. eval "$as_ac_Header=no"
  29394. fi
  29395. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29396. fi
  29397. ac_res=`eval 'as_val=${'$as_ac_Header'}
  29398. $as_echo "$as_val"'`
  29399. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  29400. $as_echo "$ac_res" >&6; }
  29401. if test `eval 'as_val=${'$as_ac_Header'}
  29402. $as_echo "$as_val"'` = yes; then
  29403. cat >>confdefs.h <<_ACEOF
  29404. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  29405. _ACEOF
  29406. ac_header_dirent=$ac_hdr; break
  29407. fi
  29408. done
  29409. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  29410. if test $ac_header_dirent = dirent.h; then
  29411. { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
  29412. $as_echo_n "checking for library containing opendir... " >&6; }
  29413. if test "${ac_cv_search_opendir+set}" = set; then
  29414. $as_echo_n "(cached) " >&6
  29415. else
  29416. ac_func_search_save_LIBS=$LIBS
  29417. cat >conftest.$ac_ext <<_ACEOF
  29418. /* confdefs.h. */
  29419. _ACEOF
  29420. cat confdefs.h >>conftest.$ac_ext
  29421. cat >>conftest.$ac_ext <<_ACEOF
  29422. /* end confdefs.h. */
  29423. /* Override any GCC internal prototype to avoid an error.
  29424. Use char because int might match the return type of a GCC
  29425. builtin and then its argument prototype would still apply. */
  29426. #ifdef __cplusplus
  29427. extern "C"
  29428. #endif
  29429. char opendir ();
  29430. int
  29431. main ()
  29432. {
  29433. return opendir ();
  29434. ;
  29435. return 0;
  29436. }
  29437. _ACEOF
  29438. for ac_lib in '' dir; do
  29439. if test -z "$ac_lib"; then
  29440. ac_res="none required"
  29441. else
  29442. ac_res=-l$ac_lib
  29443. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  29444. fi
  29445. rm -f conftest.$ac_objext conftest$ac_exeext
  29446. if { (ac_try="$ac_link"
  29447. case "(($ac_try" in
  29448. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29449. *) ac_try_echo=$ac_try;;
  29450. esac
  29451. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29452. $as_echo "$ac_try_echo") >&5
  29453. (eval "$ac_link") 2>conftest.er1
  29454. ac_status=$?
  29455. grep -v '^ *+' conftest.er1 >conftest.err
  29456. rm -f conftest.er1
  29457. cat conftest.err >&5
  29458. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29459. (exit $ac_status); } && {
  29460. test -z "$ac_c_werror_flag" ||
  29461. test ! -s conftest.err
  29462. } && test -s conftest$ac_exeext && {
  29463. test "$cross_compiling" = yes ||
  29464. $as_test_x conftest$ac_exeext
  29465. }; then
  29466. ac_cv_search_opendir=$ac_res
  29467. else
  29468. $as_echo "$as_me: failed program was:" >&5
  29469. sed 's/^/| /' conftest.$ac_ext >&5
  29470. fi
  29471. rm -rf conftest.dSYM
  29472. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  29473. conftest$ac_exeext
  29474. if test "${ac_cv_search_opendir+set}" = set; then
  29475. break
  29476. fi
  29477. done
  29478. if test "${ac_cv_search_opendir+set}" = set; then
  29479. :
  29480. else
  29481. ac_cv_search_opendir=no
  29482. fi
  29483. rm conftest.$ac_ext
  29484. LIBS=$ac_func_search_save_LIBS
  29485. fi
  29486. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  29487. $as_echo "$ac_cv_search_opendir" >&6; }
  29488. ac_res=$ac_cv_search_opendir
  29489. if test "$ac_res" != no; then
  29490. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  29491. fi
  29492. else
  29493. { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
  29494. $as_echo_n "checking for library containing opendir... " >&6; }
  29495. if test "${ac_cv_search_opendir+set}" = set; then
  29496. $as_echo_n "(cached) " >&6
  29497. else
  29498. ac_func_search_save_LIBS=$LIBS
  29499. cat >conftest.$ac_ext <<_ACEOF
  29500. /* confdefs.h. */
  29501. _ACEOF
  29502. cat confdefs.h >>conftest.$ac_ext
  29503. cat >>conftest.$ac_ext <<_ACEOF
  29504. /* end confdefs.h. */
  29505. /* Override any GCC internal prototype to avoid an error.
  29506. Use char because int might match the return type of a GCC
  29507. builtin and then its argument prototype would still apply. */
  29508. #ifdef __cplusplus
  29509. extern "C"
  29510. #endif
  29511. char opendir ();
  29512. int
  29513. main ()
  29514. {
  29515. return opendir ();
  29516. ;
  29517. return 0;
  29518. }
  29519. _ACEOF
  29520. for ac_lib in '' x; do
  29521. if test -z "$ac_lib"; then
  29522. ac_res="none required"
  29523. else
  29524. ac_res=-l$ac_lib
  29525. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  29526. fi
  29527. rm -f conftest.$ac_objext conftest$ac_exeext
  29528. if { (ac_try="$ac_link"
  29529. case "(($ac_try" in
  29530. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29531. *) ac_try_echo=$ac_try;;
  29532. esac
  29533. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29534. $as_echo "$ac_try_echo") >&5
  29535. (eval "$ac_link") 2>conftest.er1
  29536. ac_status=$?
  29537. grep -v '^ *+' conftest.er1 >conftest.err
  29538. rm -f conftest.er1
  29539. cat conftest.err >&5
  29540. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29541. (exit $ac_status); } && {
  29542. test -z "$ac_c_werror_flag" ||
  29543. test ! -s conftest.err
  29544. } && test -s conftest$ac_exeext && {
  29545. test "$cross_compiling" = yes ||
  29546. $as_test_x conftest$ac_exeext
  29547. }; then
  29548. ac_cv_search_opendir=$ac_res
  29549. else
  29550. $as_echo "$as_me: failed program was:" >&5
  29551. sed 's/^/| /' conftest.$ac_ext >&5
  29552. fi
  29553. rm -rf conftest.dSYM
  29554. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  29555. conftest$ac_exeext
  29556. if test "${ac_cv_search_opendir+set}" = set; then
  29557. break
  29558. fi
  29559. done
  29560. if test "${ac_cv_search_opendir+set}" = set; then
  29561. :
  29562. else
  29563. ac_cv_search_opendir=no
  29564. fi
  29565. rm conftest.$ac_ext
  29566. LIBS=$ac_func_search_save_LIBS
  29567. fi
  29568. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  29569. $as_echo "$ac_cv_search_opendir" >&6; }
  29570. ac_res=$ac_cv_search_opendir
  29571. if test "$ac_res" != no; then
  29572. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  29573. fi
  29574. fi
  29575. # =================
  29576. # AC_CHECK_HEADERS
  29577. # =================
  29578. for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
  29579. setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
  29580. sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h \
  29581. utime.h sysexits.h
  29582. do
  29583. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  29584. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  29585. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  29586. $as_echo_n "checking for $ac_header... " >&6; }
  29587. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  29588. $as_echo_n "(cached) " >&6
  29589. fi
  29590. ac_res=`eval 'as_val=${'$as_ac_Header'}
  29591. $as_echo "$as_val"'`
  29592. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  29593. $as_echo "$ac_res" >&6; }
  29594. else
  29595. # Is the header compilable?
  29596. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  29597. $as_echo_n "checking $ac_header usability... " >&6; }
  29598. cat >conftest.$ac_ext <<_ACEOF
  29599. /* confdefs.h. */
  29600. _ACEOF
  29601. cat confdefs.h >>conftest.$ac_ext
  29602. cat >>conftest.$ac_ext <<_ACEOF
  29603. /* end confdefs.h. */
  29604. $ac_includes_default
  29605. #include <$ac_header>
  29606. _ACEOF
  29607. rm -f conftest.$ac_objext
  29608. if { (ac_try="$ac_compile"
  29609. case "(($ac_try" in
  29610. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29611. *) ac_try_echo=$ac_try;;
  29612. esac
  29613. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29614. $as_echo "$ac_try_echo") >&5
  29615. (eval "$ac_compile") 2>conftest.er1
  29616. ac_status=$?
  29617. grep -v '^ *+' conftest.er1 >conftest.err
  29618. rm -f conftest.er1
  29619. cat conftest.err >&5
  29620. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29621. (exit $ac_status); } && {
  29622. test -z "$ac_c_werror_flag" ||
  29623. test ! -s conftest.err
  29624. } && test -s conftest.$ac_objext; then
  29625. ac_header_compiler=yes
  29626. else
  29627. $as_echo "$as_me: failed program was:" >&5
  29628. sed 's/^/| /' conftest.$ac_ext >&5
  29629. ac_header_compiler=no
  29630. fi
  29631. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29632. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  29633. $as_echo "$ac_header_compiler" >&6; }
  29634. # Is the header present?
  29635. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  29636. $as_echo_n "checking $ac_header presence... " >&6; }
  29637. cat >conftest.$ac_ext <<_ACEOF
  29638. /* confdefs.h. */
  29639. _ACEOF
  29640. cat confdefs.h >>conftest.$ac_ext
  29641. cat >>conftest.$ac_ext <<_ACEOF
  29642. /* end confdefs.h. */
  29643. #include <$ac_header>
  29644. _ACEOF
  29645. if { (ac_try="$ac_cpp conftest.$ac_ext"
  29646. case "(($ac_try" in
  29647. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29648. *) ac_try_echo=$ac_try;;
  29649. esac
  29650. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29651. $as_echo "$ac_try_echo") >&5
  29652. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  29653. ac_status=$?
  29654. grep -v '^ *+' conftest.er1 >conftest.err
  29655. rm -f conftest.er1
  29656. cat conftest.err >&5
  29657. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29658. (exit $ac_status); } >/dev/null && {
  29659. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  29660. test ! -s conftest.err
  29661. }; then
  29662. ac_header_preproc=yes
  29663. else
  29664. $as_echo "$as_me: failed program was:" >&5
  29665. sed 's/^/| /' conftest.$ac_ext >&5
  29666. ac_header_preproc=no
  29667. fi
  29668. rm -f conftest.err conftest.$ac_ext
  29669. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  29670. $as_echo "$ac_header_preproc" >&6; }
  29671. # So? What about this header?
  29672. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  29673. yes:no: )
  29674. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  29675. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  29676. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  29677. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  29678. ac_header_preproc=yes
  29679. ;;
  29680. no:yes:* )
  29681. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  29682. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  29683. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  29684. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  29685. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  29686. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  29687. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  29688. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  29689. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  29690. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  29691. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  29692. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  29693. ;;
  29694. esac
  29695. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  29696. $as_echo_n "checking for $ac_header... " >&6; }
  29697. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  29698. $as_echo_n "(cached) " >&6
  29699. else
  29700. eval "$as_ac_Header=\$ac_header_preproc"
  29701. fi
  29702. ac_res=`eval 'as_val=${'$as_ac_Header'}
  29703. $as_echo "$as_val"'`
  29704. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  29705. $as_echo "$ac_res" >&6; }
  29706. fi
  29707. if test `eval 'as_val=${'$as_ac_Header'}
  29708. $as_echo "$as_val"'` = yes; then
  29709. cat >>confdefs.h <<_ACEOF
  29710. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  29711. _ACEOF
  29712. fi
  29713. done
  29714. # --------------------------------------------
  29715. # Verify certain entries from AC_CHECK_HEADERS
  29716. # --------------------------------------------
  29717. for f in sys_types sys_mman sys_param sys_stat sys_wait \
  29718. string errno stdlib memory setjmp
  29719. do eval as_ac_var=\${ac_cv_header_${f}_h+set}
  29720. test "${as_ac_var}" = set || \
  29721. { { $as_echo "$as_me:$LINENO: error: You must have ${f}.h on your system" >&5
  29722. $as_echo "$as_me: error: You must have ${f}.h on your system" >&2;}
  29723. { (exit 1); exit 1; }; }
  29724. done
  29725. # ================================================
  29726. # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
  29727. # if varargs.h is present define HAVE_VARARGS_H.
  29728. # ================================================
  29729. for ac_header in stdarg.h varargs.h
  29730. do
  29731. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  29732. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  29733. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  29734. $as_echo_n "checking for $ac_header... " >&6; }
  29735. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  29736. $as_echo_n "(cached) " >&6
  29737. fi
  29738. ac_res=`eval 'as_val=${'$as_ac_Header'}
  29739. $as_echo "$as_val"'`
  29740. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  29741. $as_echo "$ac_res" >&6; }
  29742. else
  29743. # Is the header compilable?
  29744. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  29745. $as_echo_n "checking $ac_header usability... " >&6; }
  29746. cat >conftest.$ac_ext <<_ACEOF
  29747. /* confdefs.h. */
  29748. _ACEOF
  29749. cat confdefs.h >>conftest.$ac_ext
  29750. cat >>conftest.$ac_ext <<_ACEOF
  29751. /* end confdefs.h. */
  29752. $ac_includes_default
  29753. #include <$ac_header>
  29754. _ACEOF
  29755. rm -f conftest.$ac_objext
  29756. if { (ac_try="$ac_compile"
  29757. case "(($ac_try" in
  29758. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29759. *) ac_try_echo=$ac_try;;
  29760. esac
  29761. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29762. $as_echo "$ac_try_echo") >&5
  29763. (eval "$ac_compile") 2>conftest.er1
  29764. ac_status=$?
  29765. grep -v '^ *+' conftest.er1 >conftest.err
  29766. rm -f conftest.er1
  29767. cat conftest.err >&5
  29768. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29769. (exit $ac_status); } && {
  29770. test -z "$ac_c_werror_flag" ||
  29771. test ! -s conftest.err
  29772. } && test -s conftest.$ac_objext; then
  29773. ac_header_compiler=yes
  29774. else
  29775. $as_echo "$as_me: failed program was:" >&5
  29776. sed 's/^/| /' conftest.$ac_ext >&5
  29777. ac_header_compiler=no
  29778. fi
  29779. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29780. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  29781. $as_echo "$ac_header_compiler" >&6; }
  29782. # Is the header present?
  29783. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  29784. $as_echo_n "checking $ac_header presence... " >&6; }
  29785. cat >conftest.$ac_ext <<_ACEOF
  29786. /* confdefs.h. */
  29787. _ACEOF
  29788. cat confdefs.h >>conftest.$ac_ext
  29789. cat >>conftest.$ac_ext <<_ACEOF
  29790. /* end confdefs.h. */
  29791. #include <$ac_header>
  29792. _ACEOF
  29793. if { (ac_try="$ac_cpp conftest.$ac_ext"
  29794. case "(($ac_try" in
  29795. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29796. *) ac_try_echo=$ac_try;;
  29797. esac
  29798. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29799. $as_echo "$ac_try_echo") >&5
  29800. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  29801. ac_status=$?
  29802. grep -v '^ *+' conftest.er1 >conftest.err
  29803. rm -f conftest.er1
  29804. cat conftest.err >&5
  29805. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29806. (exit $ac_status); } >/dev/null && {
  29807. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  29808. test ! -s conftest.err
  29809. }; then
  29810. ac_header_preproc=yes
  29811. else
  29812. $as_echo "$as_me: failed program was:" >&5
  29813. sed 's/^/| /' conftest.$ac_ext >&5
  29814. ac_header_preproc=no
  29815. fi
  29816. rm -f conftest.err conftest.$ac_ext
  29817. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  29818. $as_echo "$ac_header_preproc" >&6; }
  29819. # So? What about this header?
  29820. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  29821. yes:no: )
  29822. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  29823. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  29824. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  29825. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  29826. ac_header_preproc=yes
  29827. ;;
  29828. no:yes:* )
  29829. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  29830. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  29831. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  29832. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  29833. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  29834. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  29835. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  29836. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  29837. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  29838. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  29839. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  29840. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  29841. ;;
  29842. esac
  29843. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  29844. $as_echo_n "checking for $ac_header... " >&6; }
  29845. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  29846. $as_echo_n "(cached) " >&6
  29847. else
  29848. eval "$as_ac_Header=\$ac_header_preproc"
  29849. fi
  29850. ac_res=`eval 'as_val=${'$as_ac_Header'}
  29851. $as_echo "$as_val"'`
  29852. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  29853. $as_echo "$ac_res" >&6; }
  29854. fi
  29855. if test `eval 'as_val=${'$as_ac_Header'}
  29856. $as_echo "$as_val"'` = yes; then
  29857. cat >>confdefs.h <<_ACEOF
  29858. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  29859. _ACEOF
  29860. break
  29861. fi
  29862. done
  29863. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  29864. { { $as_echo "$as_me:$LINENO: error: You must have stdarg.h or varargs.h on your system" >&5
  29865. $as_echo "$as_me: error: You must have stdarg.h or varargs.h on your system" >&2;}
  29866. { (exit 1); exit 1; }; }
  29867. fi
  29868. # ================================================
  29869. # Similarly for the string.h and strings.h headers
  29870. # ================================================
  29871. for ac_header in string.h strings.h
  29872. do
  29873. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  29874. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  29875. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  29876. $as_echo_n "checking for $ac_header... " >&6; }
  29877. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  29878. $as_echo_n "(cached) " >&6
  29879. fi
  29880. ac_res=`eval 'as_val=${'$as_ac_Header'}
  29881. $as_echo "$as_val"'`
  29882. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  29883. $as_echo "$ac_res" >&6; }
  29884. else
  29885. # Is the header compilable?
  29886. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  29887. $as_echo_n "checking $ac_header usability... " >&6; }
  29888. cat >conftest.$ac_ext <<_ACEOF
  29889. /* confdefs.h. */
  29890. _ACEOF
  29891. cat confdefs.h >>conftest.$ac_ext
  29892. cat >>conftest.$ac_ext <<_ACEOF
  29893. /* end confdefs.h. */
  29894. $ac_includes_default
  29895. #include <$ac_header>
  29896. _ACEOF
  29897. rm -f conftest.$ac_objext
  29898. if { (ac_try="$ac_compile"
  29899. case "(($ac_try" in
  29900. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29901. *) ac_try_echo=$ac_try;;
  29902. esac
  29903. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29904. $as_echo "$ac_try_echo") >&5
  29905. (eval "$ac_compile") 2>conftest.er1
  29906. ac_status=$?
  29907. grep -v '^ *+' conftest.er1 >conftest.err
  29908. rm -f conftest.er1
  29909. cat conftest.err >&5
  29910. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29911. (exit $ac_status); } && {
  29912. test -z "$ac_c_werror_flag" ||
  29913. test ! -s conftest.err
  29914. } && test -s conftest.$ac_objext; then
  29915. ac_header_compiler=yes
  29916. else
  29917. $as_echo "$as_me: failed program was:" >&5
  29918. sed 's/^/| /' conftest.$ac_ext >&5
  29919. ac_header_compiler=no
  29920. fi
  29921. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29922. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  29923. $as_echo "$ac_header_compiler" >&6; }
  29924. # Is the header present?
  29925. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  29926. $as_echo_n "checking $ac_header presence... " >&6; }
  29927. cat >conftest.$ac_ext <<_ACEOF
  29928. /* confdefs.h. */
  29929. _ACEOF
  29930. cat confdefs.h >>conftest.$ac_ext
  29931. cat >>conftest.$ac_ext <<_ACEOF
  29932. /* end confdefs.h. */
  29933. #include <$ac_header>
  29934. _ACEOF
  29935. if { (ac_try="$ac_cpp conftest.$ac_ext"
  29936. case "(($ac_try" in
  29937. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29938. *) ac_try_echo=$ac_try;;
  29939. esac
  29940. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29941. $as_echo "$ac_try_echo") >&5
  29942. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  29943. ac_status=$?
  29944. grep -v '^ *+' conftest.er1 >conftest.err
  29945. rm -f conftest.er1
  29946. cat conftest.err >&5
  29947. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29948. (exit $ac_status); } >/dev/null && {
  29949. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  29950. test ! -s conftest.err
  29951. }; then
  29952. ac_header_preproc=yes
  29953. else
  29954. $as_echo "$as_me: failed program was:" >&5
  29955. sed 's/^/| /' conftest.$ac_ext >&5
  29956. ac_header_preproc=no
  29957. fi
  29958. rm -f conftest.err conftest.$ac_ext
  29959. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  29960. $as_echo "$ac_header_preproc" >&6; }
  29961. # So? What about this header?
  29962. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  29963. yes:no: )
  29964. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  29965. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  29966. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  29967. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  29968. ac_header_preproc=yes
  29969. ;;
  29970. no:yes:* )
  29971. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  29972. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  29973. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  29974. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  29975. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  29976. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  29977. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  29978. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  29979. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  29980. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  29981. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  29982. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  29983. ;;
  29984. esac
  29985. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  29986. $as_echo_n "checking for $ac_header... " >&6; }
  29987. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  29988. $as_echo_n "(cached) " >&6
  29989. else
  29990. eval "$as_ac_Header=\$ac_header_preproc"
  29991. fi
  29992. ac_res=`eval 'as_val=${'$as_ac_Header'}
  29993. $as_echo "$as_val"'`
  29994. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  29995. $as_echo "$ac_res" >&6; }
  29996. fi
  29997. if test `eval 'as_val=${'$as_ac_Header'}
  29998. $as_echo "$as_val"'` = yes; then
  29999. cat >>confdefs.h <<_ACEOF
  30000. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  30001. _ACEOF
  30002. break
  30003. fi
  30004. done
  30005. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  30006. { { $as_echo "$as_me:$LINENO: error: You must have string.h or strings.h on your system" >&5
  30007. $as_echo "$as_me: error: You must have string.h or strings.h on your system" >&2;}
  30008. { (exit 1); exit 1; }; }
  30009. fi
  30010. # =====================
  30011. # ...and limits headers
  30012. # =====================
  30013. for ac_header in limits.h sys/limits.h values.h
  30014. do
  30015. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  30016. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  30017. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  30018. $as_echo_n "checking for $ac_header... " >&6; }
  30019. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  30020. $as_echo_n "(cached) " >&6
  30021. fi
  30022. ac_res=`eval 'as_val=${'$as_ac_Header'}
  30023. $as_echo "$as_val"'`
  30024. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  30025. $as_echo "$ac_res" >&6; }
  30026. else
  30027. # Is the header compilable?
  30028. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  30029. $as_echo_n "checking $ac_header usability... " >&6; }
  30030. cat >conftest.$ac_ext <<_ACEOF
  30031. /* confdefs.h. */
  30032. _ACEOF
  30033. cat confdefs.h >>conftest.$ac_ext
  30034. cat >>conftest.$ac_ext <<_ACEOF
  30035. /* end confdefs.h. */
  30036. $ac_includes_default
  30037. #include <$ac_header>
  30038. _ACEOF
  30039. rm -f conftest.$ac_objext
  30040. if { (ac_try="$ac_compile"
  30041. case "(($ac_try" in
  30042. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30043. *) ac_try_echo=$ac_try;;
  30044. esac
  30045. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30046. $as_echo "$ac_try_echo") >&5
  30047. (eval "$ac_compile") 2>conftest.er1
  30048. ac_status=$?
  30049. grep -v '^ *+' conftest.er1 >conftest.err
  30050. rm -f conftest.er1
  30051. cat conftest.err >&5
  30052. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30053. (exit $ac_status); } && {
  30054. test -z "$ac_c_werror_flag" ||
  30055. test ! -s conftest.err
  30056. } && test -s conftest.$ac_objext; then
  30057. ac_header_compiler=yes
  30058. else
  30059. $as_echo "$as_me: failed program was:" >&5
  30060. sed 's/^/| /' conftest.$ac_ext >&5
  30061. ac_header_compiler=no
  30062. fi
  30063. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30064. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  30065. $as_echo "$ac_header_compiler" >&6; }
  30066. # Is the header present?
  30067. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  30068. $as_echo_n "checking $ac_header presence... " >&6; }
  30069. cat >conftest.$ac_ext <<_ACEOF
  30070. /* confdefs.h. */
  30071. _ACEOF
  30072. cat confdefs.h >>conftest.$ac_ext
  30073. cat >>conftest.$ac_ext <<_ACEOF
  30074. /* end confdefs.h. */
  30075. #include <$ac_header>
  30076. _ACEOF
  30077. if { (ac_try="$ac_cpp conftest.$ac_ext"
  30078. case "(($ac_try" in
  30079. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30080. *) ac_try_echo=$ac_try;;
  30081. esac
  30082. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30083. $as_echo "$ac_try_echo") >&5
  30084. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  30085. ac_status=$?
  30086. grep -v '^ *+' conftest.er1 >conftest.err
  30087. rm -f conftest.er1
  30088. cat conftest.err >&5
  30089. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30090. (exit $ac_status); } >/dev/null && {
  30091. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  30092. test ! -s conftest.err
  30093. }; then
  30094. ac_header_preproc=yes
  30095. else
  30096. $as_echo "$as_me: failed program was:" >&5
  30097. sed 's/^/| /' conftest.$ac_ext >&5
  30098. ac_header_preproc=no
  30099. fi
  30100. rm -f conftest.err conftest.$ac_ext
  30101. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  30102. $as_echo "$ac_header_preproc" >&6; }
  30103. # So? What about this header?
  30104. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  30105. yes:no: )
  30106. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  30107. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  30108. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  30109. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  30110. ac_header_preproc=yes
  30111. ;;
  30112. no:yes:* )
  30113. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  30114. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  30115. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  30116. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  30117. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  30118. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  30119. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  30120. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  30121. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  30122. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  30123. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  30124. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  30125. ;;
  30126. esac
  30127. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  30128. $as_echo_n "checking for $ac_header... " >&6; }
  30129. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  30130. $as_echo_n "(cached) " >&6
  30131. else
  30132. eval "$as_ac_Header=\$ac_header_preproc"
  30133. fi
  30134. ac_res=`eval 'as_val=${'$as_ac_Header'}
  30135. $as_echo "$as_val"'`
  30136. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  30137. $as_echo "$ac_res" >&6; }
  30138. fi
  30139. if test `eval 'as_val=${'$as_ac_Header'}
  30140. $as_echo "$as_val"'` = yes; then
  30141. cat >>confdefs.h <<_ACEOF
  30142. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  30143. _ACEOF
  30144. break
  30145. fi
  30146. done
  30147. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  30148. { { $as_echo "$as_me:$LINENO: error: You must have one of limits.h, sys/limits.h or values.h" >&5
  30149. $as_echo "$as_me: error: You must have one of limits.h, sys/limits.h or values.h" >&2;}
  30150. { (exit 1); exit 1; }; }
  30151. fi
  30152. # ========================
  30153. # ...and int types headers
  30154. # ========================
  30155. for ac_header in stdint.h inttypes.h
  30156. do
  30157. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  30158. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  30159. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  30160. $as_echo_n "checking for $ac_header... " >&6; }
  30161. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  30162. $as_echo_n "(cached) " >&6
  30163. fi
  30164. ac_res=`eval 'as_val=${'$as_ac_Header'}
  30165. $as_echo "$as_val"'`
  30166. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  30167. $as_echo "$ac_res" >&6; }
  30168. else
  30169. # Is the header compilable?
  30170. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  30171. $as_echo_n "checking $ac_header usability... " >&6; }
  30172. cat >conftest.$ac_ext <<_ACEOF
  30173. /* confdefs.h. */
  30174. _ACEOF
  30175. cat confdefs.h >>conftest.$ac_ext
  30176. cat >>conftest.$ac_ext <<_ACEOF
  30177. /* end confdefs.h. */
  30178. $ac_includes_default
  30179. #include <$ac_header>
  30180. _ACEOF
  30181. rm -f conftest.$ac_objext
  30182. if { (ac_try="$ac_compile"
  30183. case "(($ac_try" in
  30184. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30185. *) ac_try_echo=$ac_try;;
  30186. esac
  30187. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30188. $as_echo "$ac_try_echo") >&5
  30189. (eval "$ac_compile") 2>conftest.er1
  30190. ac_status=$?
  30191. grep -v '^ *+' conftest.er1 >conftest.err
  30192. rm -f conftest.er1
  30193. cat conftest.err >&5
  30194. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30195. (exit $ac_status); } && {
  30196. test -z "$ac_c_werror_flag" ||
  30197. test ! -s conftest.err
  30198. } && test -s conftest.$ac_objext; then
  30199. ac_header_compiler=yes
  30200. else
  30201. $as_echo "$as_me: failed program was:" >&5
  30202. sed 's/^/| /' conftest.$ac_ext >&5
  30203. ac_header_compiler=no
  30204. fi
  30205. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30206. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  30207. $as_echo "$ac_header_compiler" >&6; }
  30208. # Is the header present?
  30209. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  30210. $as_echo_n "checking $ac_header presence... " >&6; }
  30211. cat >conftest.$ac_ext <<_ACEOF
  30212. /* confdefs.h. */
  30213. _ACEOF
  30214. cat confdefs.h >>conftest.$ac_ext
  30215. cat >>conftest.$ac_ext <<_ACEOF
  30216. /* end confdefs.h. */
  30217. #include <$ac_header>
  30218. _ACEOF
  30219. if { (ac_try="$ac_cpp conftest.$ac_ext"
  30220. case "(($ac_try" in
  30221. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30222. *) ac_try_echo=$ac_try;;
  30223. esac
  30224. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30225. $as_echo "$ac_try_echo") >&5
  30226. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  30227. ac_status=$?
  30228. grep -v '^ *+' conftest.er1 >conftest.err
  30229. rm -f conftest.er1
  30230. cat conftest.err >&5
  30231. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30232. (exit $ac_status); } >/dev/null && {
  30233. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  30234. test ! -s conftest.err
  30235. }; then
  30236. ac_header_preproc=yes
  30237. else
  30238. $as_echo "$as_me: failed program was:" >&5
  30239. sed 's/^/| /' conftest.$ac_ext >&5
  30240. ac_header_preproc=no
  30241. fi
  30242. rm -f conftest.err conftest.$ac_ext
  30243. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  30244. $as_echo "$ac_header_preproc" >&6; }
  30245. # So? What about this header?
  30246. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  30247. yes:no: )
  30248. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  30249. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  30250. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  30251. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  30252. ac_header_preproc=yes
  30253. ;;
  30254. no:yes:* )
  30255. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  30256. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  30257. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  30258. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  30259. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  30260. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  30261. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  30262. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  30263. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  30264. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  30265. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  30266. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  30267. ;;
  30268. esac
  30269. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  30270. $as_echo_n "checking for $ac_header... " >&6; }
  30271. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  30272. $as_echo_n "(cached) " >&6
  30273. else
  30274. eval "$as_ac_Header=\$ac_header_preproc"
  30275. fi
  30276. ac_res=`eval 'as_val=${'$as_ac_Header'}
  30277. $as_echo "$as_val"'`
  30278. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  30279. $as_echo "$ac_res" >&6; }
  30280. fi
  30281. if test `eval 'as_val=${'$as_ac_Header'}
  30282. $as_echo "$as_val"'` = yes; then
  30283. cat >>confdefs.h <<_ACEOF
  30284. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  30285. _ACEOF
  30286. break
  30287. fi
  30288. done
  30289. { $as_echo "$as_me:$LINENO: checking for int8_t" >&5
  30290. $as_echo_n "checking for int8_t... " >&6; }
  30291. if test "${ac_cv_type_int8_t+set}" = set; then
  30292. $as_echo_n "(cached) " >&6
  30293. else
  30294. ac_cv_type_int8_t=no
  30295. cat >conftest.$ac_ext <<_ACEOF
  30296. /* confdefs.h. */
  30297. _ACEOF
  30298. cat confdefs.h >>conftest.$ac_ext
  30299. cat >>conftest.$ac_ext <<_ACEOF
  30300. /* end confdefs.h. */
  30301. $ac_includes_default
  30302. int
  30303. main ()
  30304. {
  30305. if (sizeof (int8_t))
  30306. return 0;
  30307. ;
  30308. return 0;
  30309. }
  30310. _ACEOF
  30311. rm -f conftest.$ac_objext
  30312. if { (ac_try="$ac_compile"
  30313. case "(($ac_try" in
  30314. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30315. *) ac_try_echo=$ac_try;;
  30316. esac
  30317. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30318. $as_echo "$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. $as_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. cat >conftest.$ac_ext <<_ACEOF
  30330. /* confdefs.h. */
  30331. _ACEOF
  30332. cat confdefs.h >>conftest.$ac_ext
  30333. cat >>conftest.$ac_ext <<_ACEOF
  30334. /* end confdefs.h. */
  30335. $ac_includes_default
  30336. int
  30337. main ()
  30338. {
  30339. if (sizeof ((int8_t)))
  30340. return 0;
  30341. ;
  30342. return 0;
  30343. }
  30344. _ACEOF
  30345. rm -f conftest.$ac_objext
  30346. if { (ac_try="$ac_compile"
  30347. case "(($ac_try" in
  30348. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30349. *) ac_try_echo=$ac_try;;
  30350. esac
  30351. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30352. $as_echo "$ac_try_echo") >&5
  30353. (eval "$ac_compile") 2>conftest.er1
  30354. ac_status=$?
  30355. grep -v '^ *+' conftest.er1 >conftest.err
  30356. rm -f conftest.er1
  30357. cat conftest.err >&5
  30358. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30359. (exit $ac_status); } && {
  30360. test -z "$ac_c_werror_flag" ||
  30361. test ! -s conftest.err
  30362. } && test -s conftest.$ac_objext; then
  30363. :
  30364. else
  30365. $as_echo "$as_me: failed program was:" >&5
  30366. sed 's/^/| /' conftest.$ac_ext >&5
  30367. ac_cv_type_int8_t=yes
  30368. fi
  30369. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30370. else
  30371. $as_echo "$as_me: failed program was:" >&5
  30372. sed 's/^/| /' conftest.$ac_ext >&5
  30373. fi
  30374. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30375. fi
  30376. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
  30377. $as_echo "$ac_cv_type_int8_t" >&6; }
  30378. if test $ac_cv_type_int8_t = yes; then
  30379. cat >>confdefs.h <<_ACEOF
  30380. #define HAVE_INT8_T 1
  30381. _ACEOF
  30382. fi
  30383. { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
  30384. $as_echo_n "checking for uint8_t... " >&6; }
  30385. if test "${ac_cv_type_uint8_t+set}" = set; then
  30386. $as_echo_n "(cached) " >&6
  30387. else
  30388. ac_cv_type_uint8_t=no
  30389. cat >conftest.$ac_ext <<_ACEOF
  30390. /* confdefs.h. */
  30391. _ACEOF
  30392. cat confdefs.h >>conftest.$ac_ext
  30393. cat >>conftest.$ac_ext <<_ACEOF
  30394. /* end confdefs.h. */
  30395. $ac_includes_default
  30396. int
  30397. main ()
  30398. {
  30399. if (sizeof (uint8_t))
  30400. return 0;
  30401. ;
  30402. return 0;
  30403. }
  30404. _ACEOF
  30405. rm -f conftest.$ac_objext
  30406. if { (ac_try="$ac_compile"
  30407. case "(($ac_try" in
  30408. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30409. *) ac_try_echo=$ac_try;;
  30410. esac
  30411. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30412. $as_echo "$ac_try_echo") >&5
  30413. (eval "$ac_compile") 2>conftest.er1
  30414. ac_status=$?
  30415. grep -v '^ *+' conftest.er1 >conftest.err
  30416. rm -f conftest.er1
  30417. cat conftest.err >&5
  30418. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30419. (exit $ac_status); } && {
  30420. test -z "$ac_c_werror_flag" ||
  30421. test ! -s conftest.err
  30422. } && test -s conftest.$ac_objext; then
  30423. cat >conftest.$ac_ext <<_ACEOF
  30424. /* confdefs.h. */
  30425. _ACEOF
  30426. cat confdefs.h >>conftest.$ac_ext
  30427. cat >>conftest.$ac_ext <<_ACEOF
  30428. /* end confdefs.h. */
  30429. $ac_includes_default
  30430. int
  30431. main ()
  30432. {
  30433. if (sizeof ((uint8_t)))
  30434. return 0;
  30435. ;
  30436. return 0;
  30437. }
  30438. _ACEOF
  30439. rm -f conftest.$ac_objext
  30440. if { (ac_try="$ac_compile"
  30441. case "(($ac_try" in
  30442. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30443. *) ac_try_echo=$ac_try;;
  30444. esac
  30445. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30446. $as_echo "$ac_try_echo") >&5
  30447. (eval "$ac_compile") 2>conftest.er1
  30448. ac_status=$?
  30449. grep -v '^ *+' conftest.er1 >conftest.err
  30450. rm -f conftest.er1
  30451. cat conftest.err >&5
  30452. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30453. (exit $ac_status); } && {
  30454. test -z "$ac_c_werror_flag" ||
  30455. test ! -s conftest.err
  30456. } && test -s conftest.$ac_objext; then
  30457. :
  30458. else
  30459. $as_echo "$as_me: failed program was:" >&5
  30460. sed 's/^/| /' conftest.$ac_ext >&5
  30461. ac_cv_type_uint8_t=yes
  30462. fi
  30463. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30464. else
  30465. $as_echo "$as_me: failed program was:" >&5
  30466. sed 's/^/| /' conftest.$ac_ext >&5
  30467. fi
  30468. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30469. fi
  30470. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
  30471. $as_echo "$ac_cv_type_uint8_t" >&6; }
  30472. if test $ac_cv_type_uint8_t = yes; then
  30473. cat >>confdefs.h <<_ACEOF
  30474. #define HAVE_UINT8_T 1
  30475. _ACEOF
  30476. fi
  30477. { $as_echo "$as_me:$LINENO: checking for int16_t" >&5
  30478. $as_echo_n "checking for int16_t... " >&6; }
  30479. if test "${ac_cv_type_int16_t+set}" = set; then
  30480. $as_echo_n "(cached) " >&6
  30481. else
  30482. ac_cv_type_int16_t=no
  30483. cat >conftest.$ac_ext <<_ACEOF
  30484. /* confdefs.h. */
  30485. _ACEOF
  30486. cat confdefs.h >>conftest.$ac_ext
  30487. cat >>conftest.$ac_ext <<_ACEOF
  30488. /* end confdefs.h. */
  30489. $ac_includes_default
  30490. int
  30491. main ()
  30492. {
  30493. if (sizeof (int16_t))
  30494. return 0;
  30495. ;
  30496. return 0;
  30497. }
  30498. _ACEOF
  30499. rm -f conftest.$ac_objext
  30500. if { (ac_try="$ac_compile"
  30501. case "(($ac_try" in
  30502. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30503. *) ac_try_echo=$ac_try;;
  30504. esac
  30505. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30506. $as_echo "$ac_try_echo") >&5
  30507. (eval "$ac_compile") 2>conftest.er1
  30508. ac_status=$?
  30509. grep -v '^ *+' conftest.er1 >conftest.err
  30510. rm -f conftest.er1
  30511. cat conftest.err >&5
  30512. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30513. (exit $ac_status); } && {
  30514. test -z "$ac_c_werror_flag" ||
  30515. test ! -s conftest.err
  30516. } && test -s conftest.$ac_objext; then
  30517. cat >conftest.$ac_ext <<_ACEOF
  30518. /* confdefs.h. */
  30519. _ACEOF
  30520. cat confdefs.h >>conftest.$ac_ext
  30521. cat >>conftest.$ac_ext <<_ACEOF
  30522. /* end confdefs.h. */
  30523. $ac_includes_default
  30524. int
  30525. main ()
  30526. {
  30527. if (sizeof ((int16_t)))
  30528. return 0;
  30529. ;
  30530. return 0;
  30531. }
  30532. _ACEOF
  30533. rm -f conftest.$ac_objext
  30534. if { (ac_try="$ac_compile"
  30535. case "(($ac_try" in
  30536. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30537. *) ac_try_echo=$ac_try;;
  30538. esac
  30539. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30540. $as_echo "$ac_try_echo") >&5
  30541. (eval "$ac_compile") 2>conftest.er1
  30542. ac_status=$?
  30543. grep -v '^ *+' conftest.er1 >conftest.err
  30544. rm -f conftest.er1
  30545. cat conftest.err >&5
  30546. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30547. (exit $ac_status); } && {
  30548. test -z "$ac_c_werror_flag" ||
  30549. test ! -s conftest.err
  30550. } && test -s conftest.$ac_objext; then
  30551. :
  30552. else
  30553. $as_echo "$as_me: failed program was:" >&5
  30554. sed 's/^/| /' conftest.$ac_ext >&5
  30555. ac_cv_type_int16_t=yes
  30556. fi
  30557. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30558. else
  30559. $as_echo "$as_me: failed program was:" >&5
  30560. sed 's/^/| /' conftest.$ac_ext >&5
  30561. fi
  30562. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30563. fi
  30564. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
  30565. $as_echo "$ac_cv_type_int16_t" >&6; }
  30566. if test $ac_cv_type_int16_t = yes; then
  30567. cat >>confdefs.h <<_ACEOF
  30568. #define HAVE_INT16_T 1
  30569. _ACEOF
  30570. fi
  30571. { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
  30572. $as_echo_n "checking for uint16_t... " >&6; }
  30573. if test "${ac_cv_type_uint16_t+set}" = set; then
  30574. $as_echo_n "(cached) " >&6
  30575. else
  30576. ac_cv_type_uint16_t=no
  30577. cat >conftest.$ac_ext <<_ACEOF
  30578. /* confdefs.h. */
  30579. _ACEOF
  30580. cat confdefs.h >>conftest.$ac_ext
  30581. cat >>conftest.$ac_ext <<_ACEOF
  30582. /* end confdefs.h. */
  30583. $ac_includes_default
  30584. int
  30585. main ()
  30586. {
  30587. if (sizeof (uint16_t))
  30588. return 0;
  30589. ;
  30590. return 0;
  30591. }
  30592. _ACEOF
  30593. rm -f conftest.$ac_objext
  30594. if { (ac_try="$ac_compile"
  30595. case "(($ac_try" in
  30596. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30597. *) ac_try_echo=$ac_try;;
  30598. esac
  30599. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30600. $as_echo "$ac_try_echo") >&5
  30601. (eval "$ac_compile") 2>conftest.er1
  30602. ac_status=$?
  30603. grep -v '^ *+' conftest.er1 >conftest.err
  30604. rm -f conftest.er1
  30605. cat conftest.err >&5
  30606. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30607. (exit $ac_status); } && {
  30608. test -z "$ac_c_werror_flag" ||
  30609. test ! -s conftest.err
  30610. } && test -s conftest.$ac_objext; then
  30611. cat >conftest.$ac_ext <<_ACEOF
  30612. /* confdefs.h. */
  30613. _ACEOF
  30614. cat confdefs.h >>conftest.$ac_ext
  30615. cat >>conftest.$ac_ext <<_ACEOF
  30616. /* end confdefs.h. */
  30617. $ac_includes_default
  30618. int
  30619. main ()
  30620. {
  30621. if (sizeof ((uint16_t)))
  30622. return 0;
  30623. ;
  30624. return 0;
  30625. }
  30626. _ACEOF
  30627. rm -f conftest.$ac_objext
  30628. if { (ac_try="$ac_compile"
  30629. case "(($ac_try" in
  30630. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30631. *) ac_try_echo=$ac_try;;
  30632. esac
  30633. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30634. $as_echo "$ac_try_echo") >&5
  30635. (eval "$ac_compile") 2>conftest.er1
  30636. ac_status=$?
  30637. grep -v '^ *+' conftest.er1 >conftest.err
  30638. rm -f conftest.er1
  30639. cat conftest.err >&5
  30640. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30641. (exit $ac_status); } && {
  30642. test -z "$ac_c_werror_flag" ||
  30643. test ! -s conftest.err
  30644. } && test -s conftest.$ac_objext; then
  30645. :
  30646. else
  30647. $as_echo "$as_me: failed program was:" >&5
  30648. sed 's/^/| /' conftest.$ac_ext >&5
  30649. ac_cv_type_uint16_t=yes
  30650. fi
  30651. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30652. else
  30653. $as_echo "$as_me: failed program was:" >&5
  30654. sed 's/^/| /' conftest.$ac_ext >&5
  30655. fi
  30656. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30657. fi
  30658. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
  30659. $as_echo "$ac_cv_type_uint16_t" >&6; }
  30660. if test $ac_cv_type_uint16_t = yes; then
  30661. cat >>confdefs.h <<_ACEOF
  30662. #define HAVE_UINT16_T 1
  30663. _ACEOF
  30664. fi
  30665. { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
  30666. $as_echo_n "checking for int32_t... " >&6; }
  30667. if test "${ac_cv_type_int32_t+set}" = set; then
  30668. $as_echo_n "(cached) " >&6
  30669. else
  30670. ac_cv_type_int32_t=no
  30671. cat >conftest.$ac_ext <<_ACEOF
  30672. /* confdefs.h. */
  30673. _ACEOF
  30674. cat confdefs.h >>conftest.$ac_ext
  30675. cat >>conftest.$ac_ext <<_ACEOF
  30676. /* end confdefs.h. */
  30677. $ac_includes_default
  30678. int
  30679. main ()
  30680. {
  30681. if (sizeof (int32_t))
  30682. return 0;
  30683. ;
  30684. return 0;
  30685. }
  30686. _ACEOF
  30687. rm -f conftest.$ac_objext
  30688. if { (ac_try="$ac_compile"
  30689. case "(($ac_try" in
  30690. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30691. *) ac_try_echo=$ac_try;;
  30692. esac
  30693. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30694. $as_echo "$ac_try_echo") >&5
  30695. (eval "$ac_compile") 2>conftest.er1
  30696. ac_status=$?
  30697. grep -v '^ *+' conftest.er1 >conftest.err
  30698. rm -f conftest.er1
  30699. cat conftest.err >&5
  30700. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30701. (exit $ac_status); } && {
  30702. test -z "$ac_c_werror_flag" ||
  30703. test ! -s conftest.err
  30704. } && test -s conftest.$ac_objext; then
  30705. cat >conftest.$ac_ext <<_ACEOF
  30706. /* confdefs.h. */
  30707. _ACEOF
  30708. cat confdefs.h >>conftest.$ac_ext
  30709. cat >>conftest.$ac_ext <<_ACEOF
  30710. /* end confdefs.h. */
  30711. $ac_includes_default
  30712. int
  30713. main ()
  30714. {
  30715. if (sizeof ((int32_t)))
  30716. return 0;
  30717. ;
  30718. return 0;
  30719. }
  30720. _ACEOF
  30721. rm -f conftest.$ac_objext
  30722. if { (ac_try="$ac_compile"
  30723. case "(($ac_try" in
  30724. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30725. *) ac_try_echo=$ac_try;;
  30726. esac
  30727. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30728. $as_echo "$ac_try_echo") >&5
  30729. (eval "$ac_compile") 2>conftest.er1
  30730. ac_status=$?
  30731. grep -v '^ *+' conftest.er1 >conftest.err
  30732. rm -f conftest.er1
  30733. cat conftest.err >&5
  30734. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30735. (exit $ac_status); } && {
  30736. test -z "$ac_c_werror_flag" ||
  30737. test ! -s conftest.err
  30738. } && test -s conftest.$ac_objext; then
  30739. :
  30740. else
  30741. $as_echo "$as_me: failed program was:" >&5
  30742. sed 's/^/| /' conftest.$ac_ext >&5
  30743. ac_cv_type_int32_t=yes
  30744. fi
  30745. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30746. else
  30747. $as_echo "$as_me: failed program was:" >&5
  30748. sed 's/^/| /' conftest.$ac_ext >&5
  30749. fi
  30750. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30751. fi
  30752. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
  30753. $as_echo "$ac_cv_type_int32_t" >&6; }
  30754. if test $ac_cv_type_int32_t = yes; then
  30755. cat >>confdefs.h <<_ACEOF
  30756. #define HAVE_INT32_T 1
  30757. _ACEOF
  30758. fi
  30759. { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
  30760. $as_echo_n "checking for uint32_t... " >&6; }
  30761. if test "${ac_cv_type_uint32_t+set}" = set; then
  30762. $as_echo_n "(cached) " >&6
  30763. else
  30764. ac_cv_type_uint32_t=no
  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. int
  30773. main ()
  30774. {
  30775. if (sizeof (uint32_t))
  30776. return 0;
  30777. ;
  30778. return 0;
  30779. }
  30780. _ACEOF
  30781. rm -f conftest.$ac_objext
  30782. if { (ac_try="$ac_compile"
  30783. case "(($ac_try" in
  30784. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30785. *) ac_try_echo=$ac_try;;
  30786. esac
  30787. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30788. $as_echo "$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. $as_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. cat >conftest.$ac_ext <<_ACEOF
  30800. /* confdefs.h. */
  30801. _ACEOF
  30802. cat confdefs.h >>conftest.$ac_ext
  30803. cat >>conftest.$ac_ext <<_ACEOF
  30804. /* end confdefs.h. */
  30805. $ac_includes_default
  30806. int
  30807. main ()
  30808. {
  30809. if (sizeof ((uint32_t)))
  30810. return 0;
  30811. ;
  30812. return 0;
  30813. }
  30814. _ACEOF
  30815. rm -f conftest.$ac_objext
  30816. if { (ac_try="$ac_compile"
  30817. case "(($ac_try" in
  30818. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30819. *) ac_try_echo=$ac_try;;
  30820. esac
  30821. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30822. $as_echo "$ac_try_echo") >&5
  30823. (eval "$ac_compile") 2>conftest.er1
  30824. ac_status=$?
  30825. grep -v '^ *+' conftest.er1 >conftest.err
  30826. rm -f conftest.er1
  30827. cat conftest.err >&5
  30828. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30829. (exit $ac_status); } && {
  30830. test -z "$ac_c_werror_flag" ||
  30831. test ! -s conftest.err
  30832. } && test -s conftest.$ac_objext; then
  30833. :
  30834. else
  30835. $as_echo "$as_me: failed program was:" >&5
  30836. sed 's/^/| /' conftest.$ac_ext >&5
  30837. ac_cv_type_uint32_t=yes
  30838. fi
  30839. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30840. else
  30841. $as_echo "$as_me: failed program was:" >&5
  30842. sed 's/^/| /' conftest.$ac_ext >&5
  30843. fi
  30844. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30845. fi
  30846. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
  30847. $as_echo "$ac_cv_type_uint32_t" >&6; }
  30848. if test $ac_cv_type_uint32_t = yes; then
  30849. cat >>confdefs.h <<_ACEOF
  30850. #define HAVE_UINT32_T 1
  30851. _ACEOF
  30852. fi
  30853. { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
  30854. $as_echo_n "checking for intptr_t... " >&6; }
  30855. if test "${ac_cv_type_intptr_t+set}" = set; then
  30856. $as_echo_n "(cached) " >&6
  30857. else
  30858. ac_cv_type_intptr_t=no
  30859. cat >conftest.$ac_ext <<_ACEOF
  30860. /* confdefs.h. */
  30861. _ACEOF
  30862. cat confdefs.h >>conftest.$ac_ext
  30863. cat >>conftest.$ac_ext <<_ACEOF
  30864. /* end confdefs.h. */
  30865. $ac_includes_default
  30866. int
  30867. main ()
  30868. {
  30869. if (sizeof (intptr_t))
  30870. return 0;
  30871. ;
  30872. return 0;
  30873. }
  30874. _ACEOF
  30875. rm -f conftest.$ac_objext
  30876. if { (ac_try="$ac_compile"
  30877. case "(($ac_try" in
  30878. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30879. *) ac_try_echo=$ac_try;;
  30880. esac
  30881. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30882. $as_echo "$ac_try_echo") >&5
  30883. (eval "$ac_compile") 2>conftest.er1
  30884. ac_status=$?
  30885. grep -v '^ *+' conftest.er1 >conftest.err
  30886. rm -f conftest.er1
  30887. cat conftest.err >&5
  30888. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30889. (exit $ac_status); } && {
  30890. test -z "$ac_c_werror_flag" ||
  30891. test ! -s conftest.err
  30892. } && test -s conftest.$ac_objext; then
  30893. cat >conftest.$ac_ext <<_ACEOF
  30894. /* confdefs.h. */
  30895. _ACEOF
  30896. cat confdefs.h >>conftest.$ac_ext
  30897. cat >>conftest.$ac_ext <<_ACEOF
  30898. /* end confdefs.h. */
  30899. $ac_includes_default
  30900. int
  30901. main ()
  30902. {
  30903. if (sizeof ((intptr_t)))
  30904. return 0;
  30905. ;
  30906. return 0;
  30907. }
  30908. _ACEOF
  30909. rm -f conftest.$ac_objext
  30910. if { (ac_try="$ac_compile"
  30911. case "(($ac_try" in
  30912. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30913. *) ac_try_echo=$ac_try;;
  30914. esac
  30915. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30916. $as_echo "$ac_try_echo") >&5
  30917. (eval "$ac_compile") 2>conftest.er1
  30918. ac_status=$?
  30919. grep -v '^ *+' conftest.er1 >conftest.err
  30920. rm -f conftest.er1
  30921. cat conftest.err >&5
  30922. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30923. (exit $ac_status); } && {
  30924. test -z "$ac_c_werror_flag" ||
  30925. test ! -s conftest.err
  30926. } && test -s conftest.$ac_objext; then
  30927. :
  30928. else
  30929. $as_echo "$as_me: failed program was:" >&5
  30930. sed 's/^/| /' conftest.$ac_ext >&5
  30931. ac_cv_type_intptr_t=yes
  30932. fi
  30933. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30934. else
  30935. $as_echo "$as_me: failed program was:" >&5
  30936. sed 's/^/| /' conftest.$ac_ext >&5
  30937. fi
  30938. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30939. fi
  30940. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
  30941. $as_echo "$ac_cv_type_intptr_t" >&6; }
  30942. if test $ac_cv_type_intptr_t = yes; then
  30943. cat >>confdefs.h <<_ACEOF
  30944. #define HAVE_INTPTR_T 1
  30945. _ACEOF
  30946. fi
  30947. { $as_echo "$as_me:$LINENO: checking for uint_t" >&5
  30948. $as_echo_n "checking for uint_t... " >&6; }
  30949. if test "${ac_cv_type_uint_t+set}" = set; then
  30950. $as_echo_n "(cached) " >&6
  30951. else
  30952. ac_cv_type_uint_t=no
  30953. cat >conftest.$ac_ext <<_ACEOF
  30954. /* confdefs.h. */
  30955. _ACEOF
  30956. cat confdefs.h >>conftest.$ac_ext
  30957. cat >>conftest.$ac_ext <<_ACEOF
  30958. /* end confdefs.h. */
  30959. $ac_includes_default
  30960. int
  30961. main ()
  30962. {
  30963. if (sizeof (uint_t))
  30964. return 0;
  30965. ;
  30966. return 0;
  30967. }
  30968. _ACEOF
  30969. rm -f conftest.$ac_objext
  30970. if { (ac_try="$ac_compile"
  30971. case "(($ac_try" in
  30972. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30973. *) ac_try_echo=$ac_try;;
  30974. esac
  30975. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30976. $as_echo "$ac_try_echo") >&5
  30977. (eval "$ac_compile") 2>conftest.er1
  30978. ac_status=$?
  30979. grep -v '^ *+' conftest.er1 >conftest.err
  30980. rm -f conftest.er1
  30981. cat conftest.err >&5
  30982. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30983. (exit $ac_status); } && {
  30984. test -z "$ac_c_werror_flag" ||
  30985. test ! -s conftest.err
  30986. } && test -s conftest.$ac_objext; then
  30987. cat >conftest.$ac_ext <<_ACEOF
  30988. /* confdefs.h. */
  30989. _ACEOF
  30990. cat confdefs.h >>conftest.$ac_ext
  30991. cat >>conftest.$ac_ext <<_ACEOF
  30992. /* end confdefs.h. */
  30993. $ac_includes_default
  30994. int
  30995. main ()
  30996. {
  30997. if (sizeof ((uint_t)))
  30998. return 0;
  30999. ;
  31000. return 0;
  31001. }
  31002. _ACEOF
  31003. rm -f conftest.$ac_objext
  31004. if { (ac_try="$ac_compile"
  31005. case "(($ac_try" in
  31006. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31007. *) ac_try_echo=$ac_try;;
  31008. esac
  31009. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31010. $as_echo "$ac_try_echo") >&5
  31011. (eval "$ac_compile") 2>conftest.er1
  31012. ac_status=$?
  31013. grep -v '^ *+' conftest.er1 >conftest.err
  31014. rm -f conftest.er1
  31015. cat conftest.err >&5
  31016. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31017. (exit $ac_status); } && {
  31018. test -z "$ac_c_werror_flag" ||
  31019. test ! -s conftest.err
  31020. } && test -s conftest.$ac_objext; then
  31021. :
  31022. else
  31023. $as_echo "$as_me: failed program was:" >&5
  31024. sed 's/^/| /' conftest.$ac_ext >&5
  31025. ac_cv_type_uint_t=yes
  31026. fi
  31027. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31028. else
  31029. $as_echo "$as_me: failed program was:" >&5
  31030. sed 's/^/| /' conftest.$ac_ext >&5
  31031. fi
  31032. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31033. fi
  31034. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint_t" >&5
  31035. $as_echo "$ac_cv_type_uint_t" >&6; }
  31036. if test $ac_cv_type_uint_t = yes; then
  31037. cat >>confdefs.h <<_ACEOF
  31038. #define HAVE_UINT_T 1
  31039. _ACEOF
  31040. fi
  31041. # ====================
  31042. # uintptr type & sizes
  31043. # ====================
  31044. { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
  31045. $as_echo_n "checking for uintptr_t... " >&6; }
  31046. if test "${ac_cv_type_uintptr_t+set}" = set; then
  31047. $as_echo_n "(cached) " >&6
  31048. else
  31049. ac_cv_type_uintptr_t=no
  31050. cat >conftest.$ac_ext <<_ACEOF
  31051. /* confdefs.h. */
  31052. _ACEOF
  31053. cat confdefs.h >>conftest.$ac_ext
  31054. cat >>conftest.$ac_ext <<_ACEOF
  31055. /* end confdefs.h. */
  31056. $ac_includes_default
  31057. int
  31058. main ()
  31059. {
  31060. if (sizeof (uintptr_t))
  31061. return 0;
  31062. ;
  31063. return 0;
  31064. }
  31065. _ACEOF
  31066. rm -f conftest.$ac_objext
  31067. if { (ac_try="$ac_compile"
  31068. case "(($ac_try" in
  31069. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31070. *) ac_try_echo=$ac_try;;
  31071. esac
  31072. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31073. $as_echo "$ac_try_echo") >&5
  31074. (eval "$ac_compile") 2>conftest.er1
  31075. ac_status=$?
  31076. grep -v '^ *+' conftest.er1 >conftest.err
  31077. rm -f conftest.er1
  31078. cat conftest.err >&5
  31079. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31080. (exit $ac_status); } && {
  31081. test -z "$ac_c_werror_flag" ||
  31082. test ! -s conftest.err
  31083. } && test -s conftest.$ac_objext; then
  31084. cat >conftest.$ac_ext <<_ACEOF
  31085. /* confdefs.h. */
  31086. _ACEOF
  31087. cat confdefs.h >>conftest.$ac_ext
  31088. cat >>conftest.$ac_ext <<_ACEOF
  31089. /* end confdefs.h. */
  31090. $ac_includes_default
  31091. int
  31092. main ()
  31093. {
  31094. if (sizeof ((uintptr_t)))
  31095. return 0;
  31096. ;
  31097. return 0;
  31098. }
  31099. _ACEOF
  31100. rm -f conftest.$ac_objext
  31101. if { (ac_try="$ac_compile"
  31102. case "(($ac_try" in
  31103. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31104. *) ac_try_echo=$ac_try;;
  31105. esac
  31106. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31107. $as_echo "$ac_try_echo") >&5
  31108. (eval "$ac_compile") 2>conftest.er1
  31109. ac_status=$?
  31110. grep -v '^ *+' conftest.er1 >conftest.err
  31111. rm -f conftest.er1
  31112. cat conftest.err >&5
  31113. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31114. (exit $ac_status); } && {
  31115. test -z "$ac_c_werror_flag" ||
  31116. test ! -s conftest.err
  31117. } && test -s conftest.$ac_objext; then
  31118. :
  31119. else
  31120. $as_echo "$as_me: failed program was:" >&5
  31121. sed 's/^/| /' conftest.$ac_ext >&5
  31122. ac_cv_type_uintptr_t=yes
  31123. fi
  31124. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31125. else
  31126. $as_echo "$as_me: failed program was:" >&5
  31127. sed 's/^/| /' conftest.$ac_ext >&5
  31128. fi
  31129. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31130. fi
  31131. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
  31132. $as_echo "$ac_cv_type_uintptr_t" >&6; }
  31133. if test $ac_cv_type_uintptr_t = yes; then
  31134. cat >>confdefs.h <<_ACEOF
  31135. #define HAVE_UINTPTR_T 1
  31136. _ACEOF
  31137. else
  31138. cat >>confdefs.h <<\_ACEOF
  31139. #define uintptr_t unsigned long
  31140. _ACEOF
  31141. fi
  31142. # The cast to long int works around a bug in the HP C Compiler
  31143. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  31144. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  31145. # This bug is HP SR number 8606223364.
  31146. { $as_echo "$as_me:$LINENO: checking size of char*" >&5
  31147. $as_echo_n "checking size of char*... " >&6; }
  31148. if test "${ac_cv_sizeof_charp+set}" = set; then
  31149. $as_echo_n "(cached) " >&6
  31150. else
  31151. if test "$cross_compiling" = yes; then
  31152. # Depending upon the size, compute the lo and hi bounds.
  31153. cat >conftest.$ac_ext <<_ACEOF
  31154. /* confdefs.h. */
  31155. _ACEOF
  31156. cat confdefs.h >>conftest.$ac_ext
  31157. cat >>conftest.$ac_ext <<_ACEOF
  31158. /* end confdefs.h. */
  31159. $ac_includes_default
  31160. int
  31161. main ()
  31162. {
  31163. static int test_array [1 - 2 * !(((long int) (sizeof (char*))) >= 0)];
  31164. test_array [0] = 0
  31165. ;
  31166. return 0;
  31167. }
  31168. _ACEOF
  31169. rm -f conftest.$ac_objext
  31170. if { (ac_try="$ac_compile"
  31171. case "(($ac_try" in
  31172. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31173. *) ac_try_echo=$ac_try;;
  31174. esac
  31175. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31176. $as_echo "$ac_try_echo") >&5
  31177. (eval "$ac_compile") 2>conftest.er1
  31178. ac_status=$?
  31179. grep -v '^ *+' conftest.er1 >conftest.err
  31180. rm -f conftest.er1
  31181. cat conftest.err >&5
  31182. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31183. (exit $ac_status); } && {
  31184. test -z "$ac_c_werror_flag" ||
  31185. test ! -s conftest.err
  31186. } && test -s conftest.$ac_objext; then
  31187. ac_lo=0 ac_mid=0
  31188. while :; do
  31189. cat >conftest.$ac_ext <<_ACEOF
  31190. /* confdefs.h. */
  31191. _ACEOF
  31192. cat confdefs.h >>conftest.$ac_ext
  31193. cat >>conftest.$ac_ext <<_ACEOF
  31194. /* end confdefs.h. */
  31195. $ac_includes_default
  31196. int
  31197. main ()
  31198. {
  31199. static int test_array [1 - 2 * !(((long int) (sizeof (char*))) <= $ac_mid)];
  31200. test_array [0] = 0
  31201. ;
  31202. return 0;
  31203. }
  31204. _ACEOF
  31205. rm -f conftest.$ac_objext
  31206. if { (ac_try="$ac_compile"
  31207. case "(($ac_try" in
  31208. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31209. *) ac_try_echo=$ac_try;;
  31210. esac
  31211. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31212. $as_echo "$ac_try_echo") >&5
  31213. (eval "$ac_compile") 2>conftest.er1
  31214. ac_status=$?
  31215. grep -v '^ *+' conftest.er1 >conftest.err
  31216. rm -f conftest.er1
  31217. cat conftest.err >&5
  31218. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31219. (exit $ac_status); } && {
  31220. test -z "$ac_c_werror_flag" ||
  31221. test ! -s conftest.err
  31222. } && test -s conftest.$ac_objext; then
  31223. ac_hi=$ac_mid; break
  31224. else
  31225. $as_echo "$as_me: failed program was:" >&5
  31226. sed 's/^/| /' conftest.$ac_ext >&5
  31227. ac_lo=`expr $ac_mid + 1`
  31228. if test $ac_lo -le $ac_mid; then
  31229. ac_lo= ac_hi=
  31230. break
  31231. fi
  31232. ac_mid=`expr 2 '*' $ac_mid + 1`
  31233. fi
  31234. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31235. done
  31236. else
  31237. $as_echo "$as_me: failed program was:" >&5
  31238. sed 's/^/| /' conftest.$ac_ext >&5
  31239. cat >conftest.$ac_ext <<_ACEOF
  31240. /* confdefs.h. */
  31241. _ACEOF
  31242. cat confdefs.h >>conftest.$ac_ext
  31243. cat >>conftest.$ac_ext <<_ACEOF
  31244. /* end confdefs.h. */
  31245. $ac_includes_default
  31246. int
  31247. main ()
  31248. {
  31249. static int test_array [1 - 2 * !(((long int) (sizeof (char*))) < 0)];
  31250. test_array [0] = 0
  31251. ;
  31252. return 0;
  31253. }
  31254. _ACEOF
  31255. rm -f conftest.$ac_objext
  31256. if { (ac_try="$ac_compile"
  31257. case "(($ac_try" in
  31258. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31259. *) ac_try_echo=$ac_try;;
  31260. esac
  31261. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31262. $as_echo "$ac_try_echo") >&5
  31263. (eval "$ac_compile") 2>conftest.er1
  31264. ac_status=$?
  31265. grep -v '^ *+' conftest.er1 >conftest.err
  31266. rm -f conftest.er1
  31267. cat conftest.err >&5
  31268. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31269. (exit $ac_status); } && {
  31270. test -z "$ac_c_werror_flag" ||
  31271. test ! -s conftest.err
  31272. } && test -s conftest.$ac_objext; then
  31273. ac_hi=-1 ac_mid=-1
  31274. while :; do
  31275. cat >conftest.$ac_ext <<_ACEOF
  31276. /* confdefs.h. */
  31277. _ACEOF
  31278. cat confdefs.h >>conftest.$ac_ext
  31279. cat >>conftest.$ac_ext <<_ACEOF
  31280. /* end confdefs.h. */
  31281. $ac_includes_default
  31282. int
  31283. main ()
  31284. {
  31285. static int test_array [1 - 2 * !(((long int) (sizeof (char*))) >= $ac_mid)];
  31286. test_array [0] = 0
  31287. ;
  31288. return 0;
  31289. }
  31290. _ACEOF
  31291. rm -f conftest.$ac_objext
  31292. if { (ac_try="$ac_compile"
  31293. case "(($ac_try" in
  31294. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31295. *) ac_try_echo=$ac_try;;
  31296. esac
  31297. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31298. $as_echo "$ac_try_echo") >&5
  31299. (eval "$ac_compile") 2>conftest.er1
  31300. ac_status=$?
  31301. grep -v '^ *+' conftest.er1 >conftest.err
  31302. rm -f conftest.er1
  31303. cat conftest.err >&5
  31304. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31305. (exit $ac_status); } && {
  31306. test -z "$ac_c_werror_flag" ||
  31307. test ! -s conftest.err
  31308. } && test -s conftest.$ac_objext; then
  31309. ac_lo=$ac_mid; break
  31310. else
  31311. $as_echo "$as_me: failed program was:" >&5
  31312. sed 's/^/| /' conftest.$ac_ext >&5
  31313. ac_hi=`expr '(' $ac_mid ')' - 1`
  31314. if test $ac_mid -le $ac_hi; then
  31315. ac_lo= ac_hi=
  31316. break
  31317. fi
  31318. ac_mid=`expr 2 '*' $ac_mid`
  31319. fi
  31320. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31321. done
  31322. else
  31323. $as_echo "$as_me: failed program was:" >&5
  31324. sed 's/^/| /' conftest.$ac_ext >&5
  31325. ac_lo= ac_hi=
  31326. fi
  31327. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31328. fi
  31329. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31330. # Binary search between lo and hi bounds.
  31331. while test "x$ac_lo" != "x$ac_hi"; do
  31332. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  31333. cat >conftest.$ac_ext <<_ACEOF
  31334. /* confdefs.h. */
  31335. _ACEOF
  31336. cat confdefs.h >>conftest.$ac_ext
  31337. cat >>conftest.$ac_ext <<_ACEOF
  31338. /* end confdefs.h. */
  31339. $ac_includes_default
  31340. int
  31341. main ()
  31342. {
  31343. static int test_array [1 - 2 * !(((long int) (sizeof (char*))) <= $ac_mid)];
  31344. test_array [0] = 0
  31345. ;
  31346. return 0;
  31347. }
  31348. _ACEOF
  31349. rm -f conftest.$ac_objext
  31350. if { (ac_try="$ac_compile"
  31351. case "(($ac_try" in
  31352. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31353. *) ac_try_echo=$ac_try;;
  31354. esac
  31355. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31356. $as_echo "$ac_try_echo") >&5
  31357. (eval "$ac_compile") 2>conftest.er1
  31358. ac_status=$?
  31359. grep -v '^ *+' conftest.er1 >conftest.err
  31360. rm -f conftest.er1
  31361. cat conftest.err >&5
  31362. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31363. (exit $ac_status); } && {
  31364. test -z "$ac_c_werror_flag" ||
  31365. test ! -s conftest.err
  31366. } && test -s conftest.$ac_objext; then
  31367. ac_hi=$ac_mid
  31368. else
  31369. $as_echo "$as_me: failed program was:" >&5
  31370. sed 's/^/| /' conftest.$ac_ext >&5
  31371. ac_lo=`expr '(' $ac_mid ')' + 1`
  31372. fi
  31373. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31374. done
  31375. case $ac_lo in
  31376. ?*) ac_cv_sizeof_charp=$ac_lo;;
  31377. '') if test "$ac_cv_type_charp" = yes; then
  31378. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char*)
  31379. See \`config.log' for more details." >&5
  31380. $as_echo "$as_me: error: cannot compute sizeof (char*)
  31381. See \`config.log' for more details." >&2;}
  31382. { (exit 77); exit 77; }; }
  31383. else
  31384. ac_cv_sizeof_charp=0
  31385. fi ;;
  31386. esac
  31387. else
  31388. cat >conftest.$ac_ext <<_ACEOF
  31389. /* confdefs.h. */
  31390. _ACEOF
  31391. cat confdefs.h >>conftest.$ac_ext
  31392. cat >>conftest.$ac_ext <<_ACEOF
  31393. /* end confdefs.h. */
  31394. $ac_includes_default
  31395. static long int longval () { return (long int) (sizeof (char*)); }
  31396. static unsigned long int ulongval () { return (long int) (sizeof (char*)); }
  31397. #include <stdio.h>
  31398. #include <stdlib.h>
  31399. int
  31400. main ()
  31401. {
  31402. FILE *f = fopen ("conftest.val", "w");
  31403. if (! f)
  31404. return 1;
  31405. if (((long int) (sizeof (char*))) < 0)
  31406. {
  31407. long int i = longval ();
  31408. if (i != ((long int) (sizeof (char*))))
  31409. return 1;
  31410. fprintf (f, "%ld", i);
  31411. }
  31412. else
  31413. {
  31414. unsigned long int i = ulongval ();
  31415. if (i != ((long int) (sizeof (char*))))
  31416. return 1;
  31417. fprintf (f, "%lu", i);
  31418. }
  31419. /* Do not output a trailing newline, as this causes \r\n confusion
  31420. on some platforms. */
  31421. return ferror (f) || fclose (f) != 0;
  31422. ;
  31423. return 0;
  31424. }
  31425. _ACEOF
  31426. rm -f conftest$ac_exeext
  31427. if { (ac_try="$ac_link"
  31428. case "(($ac_try" in
  31429. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31430. *) ac_try_echo=$ac_try;;
  31431. esac
  31432. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31433. $as_echo "$ac_try_echo") >&5
  31434. (eval "$ac_link") 2>&5
  31435. ac_status=$?
  31436. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31437. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  31438. { (case "(($ac_try" in
  31439. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31440. *) ac_try_echo=$ac_try;;
  31441. esac
  31442. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31443. $as_echo "$ac_try_echo") >&5
  31444. (eval "$ac_try") 2>&5
  31445. ac_status=$?
  31446. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31447. (exit $ac_status); }; }; then
  31448. ac_cv_sizeof_charp=`cat conftest.val`
  31449. else
  31450. $as_echo "$as_me: program exited with status $ac_status" >&5
  31451. $as_echo "$as_me: failed program was:" >&5
  31452. sed 's/^/| /' conftest.$ac_ext >&5
  31453. ( exit $ac_status )
  31454. if test "$ac_cv_type_charp" = yes; then
  31455. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char*)
  31456. See \`config.log' for more details." >&5
  31457. $as_echo "$as_me: error: cannot compute sizeof (char*)
  31458. See \`config.log' for more details." >&2;}
  31459. { (exit 77); exit 77; }; }
  31460. else
  31461. ac_cv_sizeof_charp=0
  31462. fi
  31463. fi
  31464. rm -rf conftest.dSYM
  31465. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  31466. fi
  31467. rm -f conftest.val
  31468. fi
  31469. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_charp" >&5
  31470. $as_echo "$ac_cv_sizeof_charp" >&6; }
  31471. cat >>confdefs.h <<_ACEOF
  31472. #define SIZEOF_CHARP $ac_cv_sizeof_charp
  31473. _ACEOF
  31474. # The cast to long int works around a bug in the HP C Compiler
  31475. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  31476. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  31477. # This bug is HP SR number 8606223364.
  31478. { $as_echo "$as_me:$LINENO: checking size of int" >&5
  31479. $as_echo_n "checking size of int... " >&6; }
  31480. if test "${ac_cv_sizeof_int+set}" = set; then
  31481. $as_echo_n "(cached) " >&6
  31482. else
  31483. if test "$cross_compiling" = yes; then
  31484. # Depending upon the size, compute the lo and hi bounds.
  31485. cat >conftest.$ac_ext <<_ACEOF
  31486. /* confdefs.h. */
  31487. _ACEOF
  31488. cat confdefs.h >>conftest.$ac_ext
  31489. cat >>conftest.$ac_ext <<_ACEOF
  31490. /* end confdefs.h. */
  31491. $ac_includes_default
  31492. int
  31493. main ()
  31494. {
  31495. static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
  31496. test_array [0] = 0
  31497. ;
  31498. return 0;
  31499. }
  31500. _ACEOF
  31501. rm -f conftest.$ac_objext
  31502. if { (ac_try="$ac_compile"
  31503. case "(($ac_try" in
  31504. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31505. *) ac_try_echo=$ac_try;;
  31506. esac
  31507. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31508. $as_echo "$ac_try_echo") >&5
  31509. (eval "$ac_compile") 2>conftest.er1
  31510. ac_status=$?
  31511. grep -v '^ *+' conftest.er1 >conftest.err
  31512. rm -f conftest.er1
  31513. cat conftest.err >&5
  31514. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31515. (exit $ac_status); } && {
  31516. test -z "$ac_c_werror_flag" ||
  31517. test ! -s conftest.err
  31518. } && test -s conftest.$ac_objext; then
  31519. ac_lo=0 ac_mid=0
  31520. while :; do
  31521. cat >conftest.$ac_ext <<_ACEOF
  31522. /* confdefs.h. */
  31523. _ACEOF
  31524. cat confdefs.h >>conftest.$ac_ext
  31525. cat >>conftest.$ac_ext <<_ACEOF
  31526. /* end confdefs.h. */
  31527. $ac_includes_default
  31528. int
  31529. main ()
  31530. {
  31531. static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
  31532. test_array [0] = 0
  31533. ;
  31534. return 0;
  31535. }
  31536. _ACEOF
  31537. rm -f conftest.$ac_objext
  31538. if { (ac_try="$ac_compile"
  31539. case "(($ac_try" in
  31540. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31541. *) ac_try_echo=$ac_try;;
  31542. esac
  31543. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31544. $as_echo "$ac_try_echo") >&5
  31545. (eval "$ac_compile") 2>conftest.er1
  31546. ac_status=$?
  31547. grep -v '^ *+' conftest.er1 >conftest.err
  31548. rm -f conftest.er1
  31549. cat conftest.err >&5
  31550. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31551. (exit $ac_status); } && {
  31552. test -z "$ac_c_werror_flag" ||
  31553. test ! -s conftest.err
  31554. } && test -s conftest.$ac_objext; then
  31555. ac_hi=$ac_mid; break
  31556. else
  31557. $as_echo "$as_me: failed program was:" >&5
  31558. sed 's/^/| /' conftest.$ac_ext >&5
  31559. ac_lo=`expr $ac_mid + 1`
  31560. if test $ac_lo -le $ac_mid; then
  31561. ac_lo= ac_hi=
  31562. break
  31563. fi
  31564. ac_mid=`expr 2 '*' $ac_mid + 1`
  31565. fi
  31566. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31567. done
  31568. else
  31569. $as_echo "$as_me: failed program was:" >&5
  31570. sed 's/^/| /' conftest.$ac_ext >&5
  31571. cat >conftest.$ac_ext <<_ACEOF
  31572. /* confdefs.h. */
  31573. _ACEOF
  31574. cat confdefs.h >>conftest.$ac_ext
  31575. cat >>conftest.$ac_ext <<_ACEOF
  31576. /* end confdefs.h. */
  31577. $ac_includes_default
  31578. int
  31579. main ()
  31580. {
  31581. static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
  31582. test_array [0] = 0
  31583. ;
  31584. return 0;
  31585. }
  31586. _ACEOF
  31587. rm -f conftest.$ac_objext
  31588. if { (ac_try="$ac_compile"
  31589. case "(($ac_try" in
  31590. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31591. *) ac_try_echo=$ac_try;;
  31592. esac
  31593. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31594. $as_echo "$ac_try_echo") >&5
  31595. (eval "$ac_compile") 2>conftest.er1
  31596. ac_status=$?
  31597. grep -v '^ *+' conftest.er1 >conftest.err
  31598. rm -f conftest.er1
  31599. cat conftest.err >&5
  31600. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31601. (exit $ac_status); } && {
  31602. test -z "$ac_c_werror_flag" ||
  31603. test ! -s conftest.err
  31604. } && test -s conftest.$ac_objext; then
  31605. ac_hi=-1 ac_mid=-1
  31606. while :; do
  31607. cat >conftest.$ac_ext <<_ACEOF
  31608. /* confdefs.h. */
  31609. _ACEOF
  31610. cat confdefs.h >>conftest.$ac_ext
  31611. cat >>conftest.$ac_ext <<_ACEOF
  31612. /* end confdefs.h. */
  31613. $ac_includes_default
  31614. int
  31615. main ()
  31616. {
  31617. static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
  31618. test_array [0] = 0
  31619. ;
  31620. return 0;
  31621. }
  31622. _ACEOF
  31623. rm -f conftest.$ac_objext
  31624. if { (ac_try="$ac_compile"
  31625. case "(($ac_try" in
  31626. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31627. *) ac_try_echo=$ac_try;;
  31628. esac
  31629. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31630. $as_echo "$ac_try_echo") >&5
  31631. (eval "$ac_compile") 2>conftest.er1
  31632. ac_status=$?
  31633. grep -v '^ *+' conftest.er1 >conftest.err
  31634. rm -f conftest.er1
  31635. cat conftest.err >&5
  31636. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31637. (exit $ac_status); } && {
  31638. test -z "$ac_c_werror_flag" ||
  31639. test ! -s conftest.err
  31640. } && test -s conftest.$ac_objext; then
  31641. ac_lo=$ac_mid; break
  31642. else
  31643. $as_echo "$as_me: failed program was:" >&5
  31644. sed 's/^/| /' conftest.$ac_ext >&5
  31645. ac_hi=`expr '(' $ac_mid ')' - 1`
  31646. if test $ac_mid -le $ac_hi; then
  31647. ac_lo= ac_hi=
  31648. break
  31649. fi
  31650. ac_mid=`expr 2 '*' $ac_mid`
  31651. fi
  31652. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31653. done
  31654. else
  31655. $as_echo "$as_me: failed program was:" >&5
  31656. sed 's/^/| /' conftest.$ac_ext >&5
  31657. ac_lo= ac_hi=
  31658. fi
  31659. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31660. fi
  31661. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31662. # Binary search between lo and hi bounds.
  31663. while test "x$ac_lo" != "x$ac_hi"; do
  31664. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  31665. cat >conftest.$ac_ext <<_ACEOF
  31666. /* confdefs.h. */
  31667. _ACEOF
  31668. cat confdefs.h >>conftest.$ac_ext
  31669. cat >>conftest.$ac_ext <<_ACEOF
  31670. /* end confdefs.h. */
  31671. $ac_includes_default
  31672. int
  31673. main ()
  31674. {
  31675. static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
  31676. test_array [0] = 0
  31677. ;
  31678. return 0;
  31679. }
  31680. _ACEOF
  31681. rm -f conftest.$ac_objext
  31682. if { (ac_try="$ac_compile"
  31683. case "(($ac_try" in
  31684. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31685. *) ac_try_echo=$ac_try;;
  31686. esac
  31687. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31688. $as_echo "$ac_try_echo") >&5
  31689. (eval "$ac_compile") 2>conftest.er1
  31690. ac_status=$?
  31691. grep -v '^ *+' conftest.er1 >conftest.err
  31692. rm -f conftest.er1
  31693. cat conftest.err >&5
  31694. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31695. (exit $ac_status); } && {
  31696. test -z "$ac_c_werror_flag" ||
  31697. test ! -s conftest.err
  31698. } && test -s conftest.$ac_objext; then
  31699. ac_hi=$ac_mid
  31700. else
  31701. $as_echo "$as_me: failed program was:" >&5
  31702. sed 's/^/| /' conftest.$ac_ext >&5
  31703. ac_lo=`expr '(' $ac_mid ')' + 1`
  31704. fi
  31705. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31706. done
  31707. case $ac_lo in
  31708. ?*) ac_cv_sizeof_int=$ac_lo;;
  31709. '') if test "$ac_cv_type_int" = yes; then
  31710. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  31711. See \`config.log' for more details." >&5
  31712. $as_echo "$as_me: error: cannot compute sizeof (int)
  31713. See \`config.log' for more details." >&2;}
  31714. { (exit 77); exit 77; }; }
  31715. else
  31716. ac_cv_sizeof_int=0
  31717. fi ;;
  31718. esac
  31719. else
  31720. cat >conftest.$ac_ext <<_ACEOF
  31721. /* confdefs.h. */
  31722. _ACEOF
  31723. cat confdefs.h >>conftest.$ac_ext
  31724. cat >>conftest.$ac_ext <<_ACEOF
  31725. /* end confdefs.h. */
  31726. $ac_includes_default
  31727. static long int longval () { return (long int) (sizeof (int)); }
  31728. static unsigned long int ulongval () { return (long int) (sizeof (int)); }
  31729. #include <stdio.h>
  31730. #include <stdlib.h>
  31731. int
  31732. main ()
  31733. {
  31734. FILE *f = fopen ("conftest.val", "w");
  31735. if (! f)
  31736. return 1;
  31737. if (((long int) (sizeof (int))) < 0)
  31738. {
  31739. long int i = longval ();
  31740. if (i != ((long int) (sizeof (int))))
  31741. return 1;
  31742. fprintf (f, "%ld", i);
  31743. }
  31744. else
  31745. {
  31746. unsigned long int i = ulongval ();
  31747. if (i != ((long int) (sizeof (int))))
  31748. return 1;
  31749. fprintf (f, "%lu", i);
  31750. }
  31751. /* Do not output a trailing newline, as this causes \r\n confusion
  31752. on some platforms. */
  31753. return ferror (f) || fclose (f) != 0;
  31754. ;
  31755. return 0;
  31756. }
  31757. _ACEOF
  31758. rm -f conftest$ac_exeext
  31759. if { (ac_try="$ac_link"
  31760. case "(($ac_try" in
  31761. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31762. *) ac_try_echo=$ac_try;;
  31763. esac
  31764. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31765. $as_echo "$ac_try_echo") >&5
  31766. (eval "$ac_link") 2>&5
  31767. ac_status=$?
  31768. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31769. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  31770. { (case "(($ac_try" in
  31771. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31772. *) ac_try_echo=$ac_try;;
  31773. esac
  31774. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31775. $as_echo "$ac_try_echo") >&5
  31776. (eval "$ac_try") 2>&5
  31777. ac_status=$?
  31778. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31779. (exit $ac_status); }; }; then
  31780. ac_cv_sizeof_int=`cat conftest.val`
  31781. else
  31782. $as_echo "$as_me: program exited with status $ac_status" >&5
  31783. $as_echo "$as_me: failed program was:" >&5
  31784. sed 's/^/| /' conftest.$ac_ext >&5
  31785. ( exit $ac_status )
  31786. if test "$ac_cv_type_int" = yes; then
  31787. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  31788. See \`config.log' for more details." >&5
  31789. $as_echo "$as_me: error: cannot compute sizeof (int)
  31790. See \`config.log' for more details." >&2;}
  31791. { (exit 77); exit 77; }; }
  31792. else
  31793. ac_cv_sizeof_int=0
  31794. fi
  31795. fi
  31796. rm -rf conftest.dSYM
  31797. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  31798. fi
  31799. rm -f conftest.val
  31800. fi
  31801. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  31802. $as_echo "$ac_cv_sizeof_int" >&6; }
  31803. cat >>confdefs.h <<_ACEOF
  31804. #define SIZEOF_INT $ac_cv_sizeof_int
  31805. _ACEOF
  31806. # The cast to long int works around a bug in the HP C Compiler
  31807. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  31808. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  31809. # This bug is HP SR number 8606223364.
  31810. { $as_echo "$as_me:$LINENO: checking size of long" >&5
  31811. $as_echo_n "checking size of long... " >&6; }
  31812. if test "${ac_cv_sizeof_long+set}" = set; then
  31813. $as_echo_n "(cached) " >&6
  31814. else
  31815. if test "$cross_compiling" = yes; then
  31816. # Depending upon the size, compute the lo and hi bounds.
  31817. cat >conftest.$ac_ext <<_ACEOF
  31818. /* confdefs.h. */
  31819. _ACEOF
  31820. cat confdefs.h >>conftest.$ac_ext
  31821. cat >>conftest.$ac_ext <<_ACEOF
  31822. /* end confdefs.h. */
  31823. $ac_includes_default
  31824. int
  31825. main ()
  31826. {
  31827. static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
  31828. test_array [0] = 0
  31829. ;
  31830. return 0;
  31831. }
  31832. _ACEOF
  31833. rm -f conftest.$ac_objext
  31834. if { (ac_try="$ac_compile"
  31835. case "(($ac_try" in
  31836. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31837. *) ac_try_echo=$ac_try;;
  31838. esac
  31839. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31840. $as_echo "$ac_try_echo") >&5
  31841. (eval "$ac_compile") 2>conftest.er1
  31842. ac_status=$?
  31843. grep -v '^ *+' conftest.er1 >conftest.err
  31844. rm -f conftest.er1
  31845. cat conftest.err >&5
  31846. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31847. (exit $ac_status); } && {
  31848. test -z "$ac_c_werror_flag" ||
  31849. test ! -s conftest.err
  31850. } && test -s conftest.$ac_objext; then
  31851. ac_lo=0 ac_mid=0
  31852. while :; do
  31853. cat >conftest.$ac_ext <<_ACEOF
  31854. /* confdefs.h. */
  31855. _ACEOF
  31856. cat confdefs.h >>conftest.$ac_ext
  31857. cat >>conftest.$ac_ext <<_ACEOF
  31858. /* end confdefs.h. */
  31859. $ac_includes_default
  31860. int
  31861. main ()
  31862. {
  31863. static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
  31864. test_array [0] = 0
  31865. ;
  31866. return 0;
  31867. }
  31868. _ACEOF
  31869. rm -f conftest.$ac_objext
  31870. if { (ac_try="$ac_compile"
  31871. case "(($ac_try" in
  31872. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31873. *) ac_try_echo=$ac_try;;
  31874. esac
  31875. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31876. $as_echo "$ac_try_echo") >&5
  31877. (eval "$ac_compile") 2>conftest.er1
  31878. ac_status=$?
  31879. grep -v '^ *+' conftest.er1 >conftest.err
  31880. rm -f conftest.er1
  31881. cat conftest.err >&5
  31882. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31883. (exit $ac_status); } && {
  31884. test -z "$ac_c_werror_flag" ||
  31885. test ! -s conftest.err
  31886. } && test -s conftest.$ac_objext; then
  31887. ac_hi=$ac_mid; break
  31888. else
  31889. $as_echo "$as_me: failed program was:" >&5
  31890. sed 's/^/| /' conftest.$ac_ext >&5
  31891. ac_lo=`expr $ac_mid + 1`
  31892. if test $ac_lo -le $ac_mid; then
  31893. ac_lo= ac_hi=
  31894. break
  31895. fi
  31896. ac_mid=`expr 2 '*' $ac_mid + 1`
  31897. fi
  31898. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31899. done
  31900. else
  31901. $as_echo "$as_me: failed program was:" >&5
  31902. sed 's/^/| /' conftest.$ac_ext >&5
  31903. cat >conftest.$ac_ext <<_ACEOF
  31904. /* confdefs.h. */
  31905. _ACEOF
  31906. cat confdefs.h >>conftest.$ac_ext
  31907. cat >>conftest.$ac_ext <<_ACEOF
  31908. /* end confdefs.h. */
  31909. $ac_includes_default
  31910. int
  31911. main ()
  31912. {
  31913. static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
  31914. test_array [0] = 0
  31915. ;
  31916. return 0;
  31917. }
  31918. _ACEOF
  31919. rm -f conftest.$ac_objext
  31920. if { (ac_try="$ac_compile"
  31921. case "(($ac_try" in
  31922. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31923. *) ac_try_echo=$ac_try;;
  31924. esac
  31925. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31926. $as_echo "$ac_try_echo") >&5
  31927. (eval "$ac_compile") 2>conftest.er1
  31928. ac_status=$?
  31929. grep -v '^ *+' conftest.er1 >conftest.err
  31930. rm -f conftest.er1
  31931. cat conftest.err >&5
  31932. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31933. (exit $ac_status); } && {
  31934. test -z "$ac_c_werror_flag" ||
  31935. test ! -s conftest.err
  31936. } && test -s conftest.$ac_objext; then
  31937. ac_hi=-1 ac_mid=-1
  31938. while :; do
  31939. cat >conftest.$ac_ext <<_ACEOF
  31940. /* confdefs.h. */
  31941. _ACEOF
  31942. cat confdefs.h >>conftest.$ac_ext
  31943. cat >>conftest.$ac_ext <<_ACEOF
  31944. /* end confdefs.h. */
  31945. $ac_includes_default
  31946. int
  31947. main ()
  31948. {
  31949. static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
  31950. test_array [0] = 0
  31951. ;
  31952. return 0;
  31953. }
  31954. _ACEOF
  31955. rm -f conftest.$ac_objext
  31956. if { (ac_try="$ac_compile"
  31957. case "(($ac_try" in
  31958. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31959. *) ac_try_echo=$ac_try;;
  31960. esac
  31961. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31962. $as_echo "$ac_try_echo") >&5
  31963. (eval "$ac_compile") 2>conftest.er1
  31964. ac_status=$?
  31965. grep -v '^ *+' conftest.er1 >conftest.err
  31966. rm -f conftest.er1
  31967. cat conftest.err >&5
  31968. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31969. (exit $ac_status); } && {
  31970. test -z "$ac_c_werror_flag" ||
  31971. test ! -s conftest.err
  31972. } && test -s conftest.$ac_objext; then
  31973. ac_lo=$ac_mid; break
  31974. else
  31975. $as_echo "$as_me: failed program was:" >&5
  31976. sed 's/^/| /' conftest.$ac_ext >&5
  31977. ac_hi=`expr '(' $ac_mid ')' - 1`
  31978. if test $ac_mid -le $ac_hi; then
  31979. ac_lo= ac_hi=
  31980. break
  31981. fi
  31982. ac_mid=`expr 2 '*' $ac_mid`
  31983. fi
  31984. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31985. done
  31986. else
  31987. $as_echo "$as_me: failed program was:" >&5
  31988. sed 's/^/| /' conftest.$ac_ext >&5
  31989. ac_lo= ac_hi=
  31990. fi
  31991. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31992. fi
  31993. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31994. # Binary search between lo and hi bounds.
  31995. while test "x$ac_lo" != "x$ac_hi"; do
  31996. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  31997. cat >conftest.$ac_ext <<_ACEOF
  31998. /* confdefs.h. */
  31999. _ACEOF
  32000. cat confdefs.h >>conftest.$ac_ext
  32001. cat >>conftest.$ac_ext <<_ACEOF
  32002. /* end confdefs.h. */
  32003. $ac_includes_default
  32004. int
  32005. main ()
  32006. {
  32007. static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
  32008. test_array [0] = 0
  32009. ;
  32010. return 0;
  32011. }
  32012. _ACEOF
  32013. rm -f conftest.$ac_objext
  32014. if { (ac_try="$ac_compile"
  32015. case "(($ac_try" in
  32016. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32017. *) ac_try_echo=$ac_try;;
  32018. esac
  32019. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32020. $as_echo "$ac_try_echo") >&5
  32021. (eval "$ac_compile") 2>conftest.er1
  32022. ac_status=$?
  32023. grep -v '^ *+' conftest.er1 >conftest.err
  32024. rm -f conftest.er1
  32025. cat conftest.err >&5
  32026. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32027. (exit $ac_status); } && {
  32028. test -z "$ac_c_werror_flag" ||
  32029. test ! -s conftest.err
  32030. } && test -s conftest.$ac_objext; then
  32031. ac_hi=$ac_mid
  32032. else
  32033. $as_echo "$as_me: failed program was:" >&5
  32034. sed 's/^/| /' conftest.$ac_ext >&5
  32035. ac_lo=`expr '(' $ac_mid ')' + 1`
  32036. fi
  32037. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32038. done
  32039. case $ac_lo in
  32040. ?*) ac_cv_sizeof_long=$ac_lo;;
  32041. '') if test "$ac_cv_type_long" = yes; then
  32042. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  32043. See \`config.log' for more details." >&5
  32044. $as_echo "$as_me: error: cannot compute sizeof (long)
  32045. See \`config.log' for more details." >&2;}
  32046. { (exit 77); exit 77; }; }
  32047. else
  32048. ac_cv_sizeof_long=0
  32049. fi ;;
  32050. esac
  32051. else
  32052. cat >conftest.$ac_ext <<_ACEOF
  32053. /* confdefs.h. */
  32054. _ACEOF
  32055. cat confdefs.h >>conftest.$ac_ext
  32056. cat >>conftest.$ac_ext <<_ACEOF
  32057. /* end confdefs.h. */
  32058. $ac_includes_default
  32059. static long int longval () { return (long int) (sizeof (long)); }
  32060. static unsigned long int ulongval () { return (long int) (sizeof (long)); }
  32061. #include <stdio.h>
  32062. #include <stdlib.h>
  32063. int
  32064. main ()
  32065. {
  32066. FILE *f = fopen ("conftest.val", "w");
  32067. if (! f)
  32068. return 1;
  32069. if (((long int) (sizeof (long))) < 0)
  32070. {
  32071. long int i = longval ();
  32072. if (i != ((long int) (sizeof (long))))
  32073. return 1;
  32074. fprintf (f, "%ld", i);
  32075. }
  32076. else
  32077. {
  32078. unsigned long int i = ulongval ();
  32079. if (i != ((long int) (sizeof (long))))
  32080. return 1;
  32081. fprintf (f, "%lu", i);
  32082. }
  32083. /* Do not output a trailing newline, as this causes \r\n confusion
  32084. on some platforms. */
  32085. return ferror (f) || fclose (f) != 0;
  32086. ;
  32087. return 0;
  32088. }
  32089. _ACEOF
  32090. rm -f conftest$ac_exeext
  32091. if { (ac_try="$ac_link"
  32092. case "(($ac_try" in
  32093. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32094. *) ac_try_echo=$ac_try;;
  32095. esac
  32096. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32097. $as_echo "$ac_try_echo") >&5
  32098. (eval "$ac_link") 2>&5
  32099. ac_status=$?
  32100. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32101. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  32102. { (case "(($ac_try" in
  32103. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32104. *) ac_try_echo=$ac_try;;
  32105. esac
  32106. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32107. $as_echo "$ac_try_echo") >&5
  32108. (eval "$ac_try") 2>&5
  32109. ac_status=$?
  32110. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32111. (exit $ac_status); }; }; then
  32112. ac_cv_sizeof_long=`cat conftest.val`
  32113. else
  32114. $as_echo "$as_me: program exited with status $ac_status" >&5
  32115. $as_echo "$as_me: failed program was:" >&5
  32116. sed 's/^/| /' conftest.$ac_ext >&5
  32117. ( exit $ac_status )
  32118. if test "$ac_cv_type_long" = yes; then
  32119. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  32120. See \`config.log' for more details." >&5
  32121. $as_echo "$as_me: error: cannot compute sizeof (long)
  32122. See \`config.log' for more details." >&2;}
  32123. { (exit 77); exit 77; }; }
  32124. else
  32125. ac_cv_sizeof_long=0
  32126. fi
  32127. fi
  32128. rm -rf conftest.dSYM
  32129. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  32130. fi
  32131. rm -f conftest.val
  32132. fi
  32133. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  32134. $as_echo "$ac_cv_sizeof_long" >&6; }
  32135. cat >>confdefs.h <<_ACEOF
  32136. #define SIZEOF_LONG $ac_cv_sizeof_long
  32137. _ACEOF
  32138. # The cast to long int works around a bug in the HP C Compiler
  32139. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  32140. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  32141. # This bug is HP SR number 8606223364.
  32142. { $as_echo "$as_me:$LINENO: checking size of short" >&5
  32143. $as_echo_n "checking size of short... " >&6; }
  32144. if test "${ac_cv_sizeof_short+set}" = set; then
  32145. $as_echo_n "(cached) " >&6
  32146. else
  32147. if test "$cross_compiling" = yes; then
  32148. # Depending upon the size, compute the lo and hi bounds.
  32149. cat >conftest.$ac_ext <<_ACEOF
  32150. /* confdefs.h. */
  32151. _ACEOF
  32152. cat confdefs.h >>conftest.$ac_ext
  32153. cat >>conftest.$ac_ext <<_ACEOF
  32154. /* end confdefs.h. */
  32155. $ac_includes_default
  32156. int
  32157. main ()
  32158. {
  32159. static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
  32160. test_array [0] = 0
  32161. ;
  32162. return 0;
  32163. }
  32164. _ACEOF
  32165. rm -f conftest.$ac_objext
  32166. if { (ac_try="$ac_compile"
  32167. case "(($ac_try" in
  32168. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32169. *) ac_try_echo=$ac_try;;
  32170. esac
  32171. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32172. $as_echo "$ac_try_echo") >&5
  32173. (eval "$ac_compile") 2>conftest.er1
  32174. ac_status=$?
  32175. grep -v '^ *+' conftest.er1 >conftest.err
  32176. rm -f conftest.er1
  32177. cat conftest.err >&5
  32178. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32179. (exit $ac_status); } && {
  32180. test -z "$ac_c_werror_flag" ||
  32181. test ! -s conftest.err
  32182. } && test -s conftest.$ac_objext; then
  32183. ac_lo=0 ac_mid=0
  32184. while :; do
  32185. cat >conftest.$ac_ext <<_ACEOF
  32186. /* confdefs.h. */
  32187. _ACEOF
  32188. cat confdefs.h >>conftest.$ac_ext
  32189. cat >>conftest.$ac_ext <<_ACEOF
  32190. /* end confdefs.h. */
  32191. $ac_includes_default
  32192. int
  32193. main ()
  32194. {
  32195. static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
  32196. test_array [0] = 0
  32197. ;
  32198. return 0;
  32199. }
  32200. _ACEOF
  32201. rm -f conftest.$ac_objext
  32202. if { (ac_try="$ac_compile"
  32203. case "(($ac_try" in
  32204. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32205. *) ac_try_echo=$ac_try;;
  32206. esac
  32207. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32208. $as_echo "$ac_try_echo") >&5
  32209. (eval "$ac_compile") 2>conftest.er1
  32210. ac_status=$?
  32211. grep -v '^ *+' conftest.er1 >conftest.err
  32212. rm -f conftest.er1
  32213. cat conftest.err >&5
  32214. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32215. (exit $ac_status); } && {
  32216. test -z "$ac_c_werror_flag" ||
  32217. test ! -s conftest.err
  32218. } && test -s conftest.$ac_objext; then
  32219. ac_hi=$ac_mid; break
  32220. else
  32221. $as_echo "$as_me: failed program was:" >&5
  32222. sed 's/^/| /' conftest.$ac_ext >&5
  32223. ac_lo=`expr $ac_mid + 1`
  32224. if test $ac_lo -le $ac_mid; then
  32225. ac_lo= ac_hi=
  32226. break
  32227. fi
  32228. ac_mid=`expr 2 '*' $ac_mid + 1`
  32229. fi
  32230. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32231. done
  32232. else
  32233. $as_echo "$as_me: failed program was:" >&5
  32234. sed 's/^/| /' conftest.$ac_ext >&5
  32235. cat >conftest.$ac_ext <<_ACEOF
  32236. /* confdefs.h. */
  32237. _ACEOF
  32238. cat confdefs.h >>conftest.$ac_ext
  32239. cat >>conftest.$ac_ext <<_ACEOF
  32240. /* end confdefs.h. */
  32241. $ac_includes_default
  32242. int
  32243. main ()
  32244. {
  32245. static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
  32246. test_array [0] = 0
  32247. ;
  32248. return 0;
  32249. }
  32250. _ACEOF
  32251. rm -f conftest.$ac_objext
  32252. if { (ac_try="$ac_compile"
  32253. case "(($ac_try" in
  32254. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32255. *) ac_try_echo=$ac_try;;
  32256. esac
  32257. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32258. $as_echo "$ac_try_echo") >&5
  32259. (eval "$ac_compile") 2>conftest.er1
  32260. ac_status=$?
  32261. grep -v '^ *+' conftest.er1 >conftest.err
  32262. rm -f conftest.er1
  32263. cat conftest.err >&5
  32264. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32265. (exit $ac_status); } && {
  32266. test -z "$ac_c_werror_flag" ||
  32267. test ! -s conftest.err
  32268. } && test -s conftest.$ac_objext; then
  32269. ac_hi=-1 ac_mid=-1
  32270. while :; do
  32271. cat >conftest.$ac_ext <<_ACEOF
  32272. /* confdefs.h. */
  32273. _ACEOF
  32274. cat confdefs.h >>conftest.$ac_ext
  32275. cat >>conftest.$ac_ext <<_ACEOF
  32276. /* end confdefs.h. */
  32277. $ac_includes_default
  32278. int
  32279. main ()
  32280. {
  32281. static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
  32282. test_array [0] = 0
  32283. ;
  32284. return 0;
  32285. }
  32286. _ACEOF
  32287. rm -f conftest.$ac_objext
  32288. if { (ac_try="$ac_compile"
  32289. case "(($ac_try" in
  32290. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32291. *) ac_try_echo=$ac_try;;
  32292. esac
  32293. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32294. $as_echo "$ac_try_echo") >&5
  32295. (eval "$ac_compile") 2>conftest.er1
  32296. ac_status=$?
  32297. grep -v '^ *+' conftest.er1 >conftest.err
  32298. rm -f conftest.er1
  32299. cat conftest.err >&5
  32300. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32301. (exit $ac_status); } && {
  32302. test -z "$ac_c_werror_flag" ||
  32303. test ! -s conftest.err
  32304. } && test -s conftest.$ac_objext; then
  32305. ac_lo=$ac_mid; break
  32306. else
  32307. $as_echo "$as_me: failed program was:" >&5
  32308. sed 's/^/| /' conftest.$ac_ext >&5
  32309. ac_hi=`expr '(' $ac_mid ')' - 1`
  32310. if test $ac_mid -le $ac_hi; then
  32311. ac_lo= ac_hi=
  32312. break
  32313. fi
  32314. ac_mid=`expr 2 '*' $ac_mid`
  32315. fi
  32316. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32317. done
  32318. else
  32319. $as_echo "$as_me: failed program was:" >&5
  32320. sed 's/^/| /' conftest.$ac_ext >&5
  32321. ac_lo= ac_hi=
  32322. fi
  32323. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32324. fi
  32325. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32326. # Binary search between lo and hi bounds.
  32327. while test "x$ac_lo" != "x$ac_hi"; do
  32328. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  32329. cat >conftest.$ac_ext <<_ACEOF
  32330. /* confdefs.h. */
  32331. _ACEOF
  32332. cat confdefs.h >>conftest.$ac_ext
  32333. cat >>conftest.$ac_ext <<_ACEOF
  32334. /* end confdefs.h. */
  32335. $ac_includes_default
  32336. int
  32337. main ()
  32338. {
  32339. static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
  32340. test_array [0] = 0
  32341. ;
  32342. return 0;
  32343. }
  32344. _ACEOF
  32345. rm -f conftest.$ac_objext
  32346. if { (ac_try="$ac_compile"
  32347. case "(($ac_try" in
  32348. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32349. *) ac_try_echo=$ac_try;;
  32350. esac
  32351. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32352. $as_echo "$ac_try_echo") >&5
  32353. (eval "$ac_compile") 2>conftest.er1
  32354. ac_status=$?
  32355. grep -v '^ *+' conftest.er1 >conftest.err
  32356. rm -f conftest.er1
  32357. cat conftest.err >&5
  32358. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32359. (exit $ac_status); } && {
  32360. test -z "$ac_c_werror_flag" ||
  32361. test ! -s conftest.err
  32362. } && test -s conftest.$ac_objext; then
  32363. ac_hi=$ac_mid
  32364. else
  32365. $as_echo "$as_me: failed program was:" >&5
  32366. sed 's/^/| /' conftest.$ac_ext >&5
  32367. ac_lo=`expr '(' $ac_mid ')' + 1`
  32368. fi
  32369. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32370. done
  32371. case $ac_lo in
  32372. ?*) ac_cv_sizeof_short=$ac_lo;;
  32373. '') if test "$ac_cv_type_short" = yes; then
  32374. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  32375. See \`config.log' for more details." >&5
  32376. $as_echo "$as_me: error: cannot compute sizeof (short)
  32377. See \`config.log' for more details." >&2;}
  32378. { (exit 77); exit 77; }; }
  32379. else
  32380. ac_cv_sizeof_short=0
  32381. fi ;;
  32382. esac
  32383. else
  32384. cat >conftest.$ac_ext <<_ACEOF
  32385. /* confdefs.h. */
  32386. _ACEOF
  32387. cat confdefs.h >>conftest.$ac_ext
  32388. cat >>conftest.$ac_ext <<_ACEOF
  32389. /* end confdefs.h. */
  32390. $ac_includes_default
  32391. static long int longval () { return (long int) (sizeof (short)); }
  32392. static unsigned long int ulongval () { return (long int) (sizeof (short)); }
  32393. #include <stdio.h>
  32394. #include <stdlib.h>
  32395. int
  32396. main ()
  32397. {
  32398. FILE *f = fopen ("conftest.val", "w");
  32399. if (! f)
  32400. return 1;
  32401. if (((long int) (sizeof (short))) < 0)
  32402. {
  32403. long int i = longval ();
  32404. if (i != ((long int) (sizeof (short))))
  32405. return 1;
  32406. fprintf (f, "%ld", i);
  32407. }
  32408. else
  32409. {
  32410. unsigned long int i = ulongval ();
  32411. if (i != ((long int) (sizeof (short))))
  32412. return 1;
  32413. fprintf (f, "%lu", i);
  32414. }
  32415. /* Do not output a trailing newline, as this causes \r\n confusion
  32416. on some platforms. */
  32417. return ferror (f) || fclose (f) != 0;
  32418. ;
  32419. return 0;
  32420. }
  32421. _ACEOF
  32422. rm -f conftest$ac_exeext
  32423. if { (ac_try="$ac_link"
  32424. case "(($ac_try" in
  32425. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32426. *) ac_try_echo=$ac_try;;
  32427. esac
  32428. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32429. $as_echo "$ac_try_echo") >&5
  32430. (eval "$ac_link") 2>&5
  32431. ac_status=$?
  32432. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32433. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  32434. { (case "(($ac_try" in
  32435. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32436. *) ac_try_echo=$ac_try;;
  32437. esac
  32438. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32439. $as_echo "$ac_try_echo") >&5
  32440. (eval "$ac_try") 2>&5
  32441. ac_status=$?
  32442. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32443. (exit $ac_status); }; }; then
  32444. ac_cv_sizeof_short=`cat conftest.val`
  32445. else
  32446. $as_echo "$as_me: program exited with status $ac_status" >&5
  32447. $as_echo "$as_me: failed program was:" >&5
  32448. sed 's/^/| /' conftest.$ac_ext >&5
  32449. ( exit $ac_status )
  32450. if test "$ac_cv_type_short" = yes; then
  32451. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  32452. See \`config.log' for more details." >&5
  32453. $as_echo "$as_me: error: cannot compute sizeof (short)
  32454. See \`config.log' for more details." >&2;}
  32455. { (exit 77); exit 77; }; }
  32456. else
  32457. ac_cv_sizeof_short=0
  32458. fi
  32459. fi
  32460. rm -rf conftest.dSYM
  32461. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  32462. fi
  32463. rm -f conftest.val
  32464. fi
  32465. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  32466. $as_echo "$ac_cv_sizeof_short" >&6; }
  32467. cat >>confdefs.h <<_ACEOF
  32468. #define SIZEOF_SHORT $ac_cv_sizeof_short
  32469. _ACEOF
  32470. # ----------------------------------------------------------------------
  32471. # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
  32472. # ----------------------------------------------------------------------
  32473. { $as_echo "$as_me:$LINENO: checking for pathfind in -lgen" >&5
  32474. $as_echo_n "checking for pathfind in -lgen... " >&6; }
  32475. if test "${ac_cv_lib_gen_pathfind+set}" = set; then
  32476. $as_echo_n "(cached) " >&6
  32477. else
  32478. ac_check_lib_save_LIBS=$LIBS
  32479. LIBS="-lgen $LIBS"
  32480. cat >conftest.$ac_ext <<_ACEOF
  32481. /* confdefs.h. */
  32482. _ACEOF
  32483. cat confdefs.h >>conftest.$ac_ext
  32484. cat >>conftest.$ac_ext <<_ACEOF
  32485. /* end confdefs.h. */
  32486. /* Override any GCC internal prototype to avoid an error.
  32487. Use char because int might match the return type of a GCC
  32488. builtin and then its argument prototype would still apply. */
  32489. #ifdef __cplusplus
  32490. extern "C"
  32491. #endif
  32492. char pathfind ();
  32493. int
  32494. main ()
  32495. {
  32496. return pathfind ();
  32497. ;
  32498. return 0;
  32499. }
  32500. _ACEOF
  32501. rm -f conftest.$ac_objext conftest$ac_exeext
  32502. if { (ac_try="$ac_link"
  32503. case "(($ac_try" in
  32504. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32505. *) ac_try_echo=$ac_try;;
  32506. esac
  32507. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32508. $as_echo "$ac_try_echo") >&5
  32509. (eval "$ac_link") 2>conftest.er1
  32510. ac_status=$?
  32511. grep -v '^ *+' conftest.er1 >conftest.err
  32512. rm -f conftest.er1
  32513. cat conftest.err >&5
  32514. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32515. (exit $ac_status); } && {
  32516. test -z "$ac_c_werror_flag" ||
  32517. test ! -s conftest.err
  32518. } && test -s conftest$ac_exeext && {
  32519. test "$cross_compiling" = yes ||
  32520. $as_test_x conftest$ac_exeext
  32521. }; then
  32522. ac_cv_lib_gen_pathfind=yes
  32523. else
  32524. $as_echo "$as_me: failed program was:" >&5
  32525. sed 's/^/| /' conftest.$ac_ext >&5
  32526. ac_cv_lib_gen_pathfind=no
  32527. fi
  32528. rm -rf conftest.dSYM
  32529. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  32530. conftest$ac_exeext conftest.$ac_ext
  32531. LIBS=$ac_check_lib_save_LIBS
  32532. fi
  32533. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gen_pathfind" >&5
  32534. $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
  32535. if test $ac_cv_lib_gen_pathfind = yes; then
  32536. cat >>confdefs.h <<_ACEOF
  32537. #define HAVE_LIBGEN 1
  32538. _ACEOF
  32539. LIBS="-lgen $LIBS"
  32540. fi
  32541. for ac_func in vprintf
  32542. do
  32543. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  32544. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  32545. $as_echo_n "checking for $ac_func... " >&6; }
  32546. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  32547. $as_echo_n "(cached) " >&6
  32548. else
  32549. cat >conftest.$ac_ext <<_ACEOF
  32550. /* confdefs.h. */
  32551. _ACEOF
  32552. cat confdefs.h >>conftest.$ac_ext
  32553. cat >>conftest.$ac_ext <<_ACEOF
  32554. /* end confdefs.h. */
  32555. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  32556. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  32557. #define $ac_func innocuous_$ac_func
  32558. /* System header to define __stub macros and hopefully few prototypes,
  32559. which can conflict with char $ac_func (); below.
  32560. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  32561. <limits.h> exists even on freestanding compilers. */
  32562. #ifdef __STDC__
  32563. # include <limits.h>
  32564. #else
  32565. # include <assert.h>
  32566. #endif
  32567. #undef $ac_func
  32568. /* Override any GCC internal prototype to avoid an error.
  32569. Use char because int might match the return type of a GCC
  32570. builtin and then its argument prototype would still apply. */
  32571. #ifdef __cplusplus
  32572. extern "C"
  32573. #endif
  32574. char $ac_func ();
  32575. /* The GNU C library defines this for functions which it implements
  32576. to always fail with ENOSYS. Some functions are actually named
  32577. something starting with __ and the normal name is an alias. */
  32578. #if defined __stub_$ac_func || defined __stub___$ac_func
  32579. choke me
  32580. #endif
  32581. int
  32582. main ()
  32583. {
  32584. return $ac_func ();
  32585. ;
  32586. return 0;
  32587. }
  32588. _ACEOF
  32589. rm -f conftest.$ac_objext conftest$ac_exeext
  32590. if { (ac_try="$ac_link"
  32591. case "(($ac_try" in
  32592. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32593. *) ac_try_echo=$ac_try;;
  32594. esac
  32595. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32596. $as_echo "$ac_try_echo") >&5
  32597. (eval "$ac_link") 2>conftest.er1
  32598. ac_status=$?
  32599. grep -v '^ *+' conftest.er1 >conftest.err
  32600. rm -f conftest.er1
  32601. cat conftest.err >&5
  32602. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32603. (exit $ac_status); } && {
  32604. test -z "$ac_c_werror_flag" ||
  32605. test ! -s conftest.err
  32606. } && test -s conftest$ac_exeext && {
  32607. test "$cross_compiling" = yes ||
  32608. $as_test_x conftest$ac_exeext
  32609. }; then
  32610. eval "$as_ac_var=yes"
  32611. else
  32612. $as_echo "$as_me: failed program was:" >&5
  32613. sed 's/^/| /' conftest.$ac_ext >&5
  32614. eval "$as_ac_var=no"
  32615. fi
  32616. rm -rf conftest.dSYM
  32617. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  32618. conftest$ac_exeext conftest.$ac_ext
  32619. fi
  32620. ac_res=`eval 'as_val=${'$as_ac_var'}
  32621. $as_echo "$as_val"'`
  32622. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  32623. $as_echo "$ac_res" >&6; }
  32624. if test `eval 'as_val=${'$as_ac_var'}
  32625. $as_echo "$as_val"'` = yes; then
  32626. cat >>confdefs.h <<_ACEOF
  32627. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  32628. _ACEOF
  32629. { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
  32630. $as_echo_n "checking for _doprnt... " >&6; }
  32631. if test "${ac_cv_func__doprnt+set}" = set; then
  32632. $as_echo_n "(cached) " >&6
  32633. else
  32634. cat >conftest.$ac_ext <<_ACEOF
  32635. /* confdefs.h. */
  32636. _ACEOF
  32637. cat confdefs.h >>conftest.$ac_ext
  32638. cat >>conftest.$ac_ext <<_ACEOF
  32639. /* end confdefs.h. */
  32640. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  32641. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  32642. #define _doprnt innocuous__doprnt
  32643. /* System header to define __stub macros and hopefully few prototypes,
  32644. which can conflict with char _doprnt (); below.
  32645. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  32646. <limits.h> exists even on freestanding compilers. */
  32647. #ifdef __STDC__
  32648. # include <limits.h>
  32649. #else
  32650. # include <assert.h>
  32651. #endif
  32652. #undef _doprnt
  32653. /* Override any GCC internal prototype to avoid an error.
  32654. Use char because int might match the return type of a GCC
  32655. builtin and then its argument prototype would still apply. */
  32656. #ifdef __cplusplus
  32657. extern "C"
  32658. #endif
  32659. char _doprnt ();
  32660. /* The GNU C library defines this for functions which it implements
  32661. to always fail with ENOSYS. Some functions are actually named
  32662. something starting with __ and the normal name is an alias. */
  32663. #if defined __stub__doprnt || defined __stub____doprnt
  32664. choke me
  32665. #endif
  32666. int
  32667. main ()
  32668. {
  32669. return _doprnt ();
  32670. ;
  32671. return 0;
  32672. }
  32673. _ACEOF
  32674. rm -f conftest.$ac_objext conftest$ac_exeext
  32675. if { (ac_try="$ac_link"
  32676. case "(($ac_try" in
  32677. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32678. *) ac_try_echo=$ac_try;;
  32679. esac
  32680. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32681. $as_echo "$ac_try_echo") >&5
  32682. (eval "$ac_link") 2>conftest.er1
  32683. ac_status=$?
  32684. grep -v '^ *+' conftest.er1 >conftest.err
  32685. rm -f conftest.er1
  32686. cat conftest.err >&5
  32687. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32688. (exit $ac_status); } && {
  32689. test -z "$ac_c_werror_flag" ||
  32690. test ! -s conftest.err
  32691. } && test -s conftest$ac_exeext && {
  32692. test "$cross_compiling" = yes ||
  32693. $as_test_x conftest$ac_exeext
  32694. }; then
  32695. ac_cv_func__doprnt=yes
  32696. else
  32697. $as_echo "$as_me: failed program was:" >&5
  32698. sed 's/^/| /' conftest.$ac_ext >&5
  32699. ac_cv_func__doprnt=no
  32700. fi
  32701. rm -rf conftest.dSYM
  32702. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  32703. conftest$ac_exeext conftest.$ac_ext
  32704. fi
  32705. { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  32706. $as_echo "$ac_cv_func__doprnt" >&6; }
  32707. if test $ac_cv_func__doprnt = yes; then
  32708. cat >>confdefs.h <<\_ACEOF
  32709. #define HAVE_DOPRNT 1
  32710. _ACEOF
  32711. fi
  32712. fi
  32713. done
  32714. for ac_func in strsignal mmap canonicalize_file_name snprintf strdup strchr strrchr
  32715. do
  32716. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  32717. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  32718. $as_echo_n "checking for $ac_func... " >&6; }
  32719. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  32720. $as_echo_n "(cached) " >&6
  32721. else
  32722. cat >conftest.$ac_ext <<_ACEOF
  32723. /* confdefs.h. */
  32724. _ACEOF
  32725. cat confdefs.h >>conftest.$ac_ext
  32726. cat >>conftest.$ac_ext <<_ACEOF
  32727. /* end confdefs.h. */
  32728. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  32729. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  32730. #define $ac_func innocuous_$ac_func
  32731. /* System header to define __stub macros and hopefully few prototypes,
  32732. which can conflict with char $ac_func (); below.
  32733. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  32734. <limits.h> exists even on freestanding compilers. */
  32735. #ifdef __STDC__
  32736. # include <limits.h>
  32737. #else
  32738. # include <assert.h>
  32739. #endif
  32740. #undef $ac_func
  32741. /* Override any GCC internal prototype to avoid an error.
  32742. Use char because int might match the return type of a GCC
  32743. builtin and then its argument prototype would still apply. */
  32744. #ifdef __cplusplus
  32745. extern "C"
  32746. #endif
  32747. char $ac_func ();
  32748. /* The GNU C library defines this for functions which it implements
  32749. to always fail with ENOSYS. Some functions are actually named
  32750. something starting with __ and the normal name is an alias. */
  32751. #if defined __stub_$ac_func || defined __stub___$ac_func
  32752. choke me
  32753. #endif
  32754. int
  32755. main ()
  32756. {
  32757. return $ac_func ();
  32758. ;
  32759. return 0;
  32760. }
  32761. _ACEOF
  32762. rm -f conftest.$ac_objext conftest$ac_exeext
  32763. if { (ac_try="$ac_link"
  32764. case "(($ac_try" in
  32765. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32766. *) ac_try_echo=$ac_try;;
  32767. esac
  32768. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32769. $as_echo "$ac_try_echo") >&5
  32770. (eval "$ac_link") 2>conftest.er1
  32771. ac_status=$?
  32772. grep -v '^ *+' conftest.er1 >conftest.err
  32773. rm -f conftest.er1
  32774. cat conftest.err >&5
  32775. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32776. (exit $ac_status); } && {
  32777. test -z "$ac_c_werror_flag" ||
  32778. test ! -s conftest.err
  32779. } && test -s conftest$ac_exeext && {
  32780. test "$cross_compiling" = yes ||
  32781. $as_test_x conftest$ac_exeext
  32782. }; then
  32783. eval "$as_ac_var=yes"
  32784. else
  32785. $as_echo "$as_me: failed program was:" >&5
  32786. sed 's/^/| /' conftest.$ac_ext >&5
  32787. eval "$as_ac_var=no"
  32788. fi
  32789. rm -rf conftest.dSYM
  32790. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  32791. conftest$ac_exeext conftest.$ac_ext
  32792. fi
  32793. ac_res=`eval 'as_val=${'$as_ac_var'}
  32794. $as_echo "$as_val"'`
  32795. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  32796. $as_echo "$ac_res" >&6; }
  32797. if test `eval 'as_val=${'$as_ac_var'}
  32798. $as_echo "$as_val"'` = yes; then
  32799. cat >>confdefs.h <<_ACEOF
  32800. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  32801. _ACEOF
  32802. fi
  32803. done
  32804. INVOKE_LIBOPTS_MACROS_FIRST_done=yes
  32805. fi
  32806. fi
  32807. # end of AC_DEFUN of LIBOPTS_CHECK
  32808. ac_config_files="$ac_config_files Makefile doxygen.cfg lib/Makefile docs/Makefile src/Makefile src/common/Makefile src/tcpedit/Makefile src/fragroute/Makefile src/defines.h test/Makefile test/config scripts/Makefile tcpreplay.spec"
  32809. cat >confcache <<\_ACEOF
  32810. # This file is a shell script that caches the results of configure
  32811. # tests run on this system so they can be shared between configure
  32812. # scripts and configure runs, see configure's option --config-cache.
  32813. # It is not useful on other systems. If it contains results you don't
  32814. # want to keep, you may remove or edit it.
  32815. #
  32816. # config.status only pays attention to the cache file if you give it
  32817. # the --recheck option to rerun configure.
  32818. #
  32819. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  32820. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  32821. # following values.
  32822. _ACEOF
  32823. # The following way of writing the cache mishandles newlines in values,
  32824. # but we know of no workaround that is simple, portable, and efficient.
  32825. # So, we kill variables containing newlines.
  32826. # Ultrix sh set writes to stderr and can't be redirected directly,
  32827. # and sets the high bit in the cache file unless we assign to the vars.
  32828. (
  32829. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  32830. eval ac_val=\$$ac_var
  32831. case $ac_val in #(
  32832. *${as_nl}*)
  32833. case $ac_var in #(
  32834. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  32835. $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  32836. esac
  32837. case $ac_var in #(
  32838. _ | IFS | as_nl) ;; #(
  32839. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  32840. *) $as_unset $ac_var ;;
  32841. esac ;;
  32842. esac
  32843. done
  32844. (set) 2>&1 |
  32845. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  32846. *${as_nl}ac_space=\ *)
  32847. # `set' does not quote correctly, so add quotes (double-quote
  32848. # substitution turns \\\\ into \\, and sed turns \\ into \).
  32849. sed -n \
  32850. "s/'/'\\\\''/g;
  32851. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  32852. ;; #(
  32853. *)
  32854. # `set' quotes correctly as required by POSIX, so do not add quotes.
  32855. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  32856. ;;
  32857. esac |
  32858. sort
  32859. ) |
  32860. sed '
  32861. /^ac_cv_env_/b end
  32862. t clear
  32863. :clear
  32864. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  32865. t end
  32866. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  32867. :end' >>confcache
  32868. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  32869. if test -w "$cache_file"; then
  32870. test "x$cache_file" != "x/dev/null" &&
  32871. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  32872. $as_echo "$as_me: updating cache $cache_file" >&6;}
  32873. cat confcache >$cache_file
  32874. else
  32875. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  32876. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  32877. fi
  32878. fi
  32879. rm -f confcache
  32880. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  32881. # Let make expand exec_prefix.
  32882. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  32883. DEFS=-DHAVE_CONFIG_H
  32884. ac_libobjs=
  32885. ac_ltlibobjs=
  32886. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  32887. # 1. Remove the extension, and $U if already installed.
  32888. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  32889. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  32890. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  32891. # will be set to the directory where LIBOBJS objects are built.
  32892. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  32893. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  32894. done
  32895. LIBOBJS=$ac_libobjs
  32896. LTLIBOBJS=$ac_ltlibobjs
  32897. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  32898. { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  32899. Usually this means the macro was only invoked conditionally." >&5
  32900. $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  32901. Usually this means the macro was only invoked conditionally." >&2;}
  32902. { (exit 1); exit 1; }; }
  32903. fi
  32904. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  32905. { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  32906. Usually this means the macro was only invoked conditionally." >&5
  32907. $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
  32908. Usually this means the macro was only invoked conditionally." >&2;}
  32909. { (exit 1); exit 1; }; }
  32910. fi
  32911. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  32912. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  32913. Usually this means the macro was only invoked conditionally." >&5
  32914. $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  32915. Usually this means the macro was only invoked conditionally." >&2;}
  32916. { (exit 1); exit 1; }; }
  32917. fi
  32918. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  32919. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  32920. Usually this means the macro was only invoked conditionally." >&5
  32921. $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  32922. Usually this means the macro was only invoked conditionally." >&2;}
  32923. { (exit 1); exit 1; }; }
  32924. fi
  32925. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  32926. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  32927. Usually this means the macro was only invoked conditionally." >&5
  32928. $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  32929. Usually this means the macro was only invoked conditionally." >&2;}
  32930. { (exit 1); exit 1; }; }
  32931. fi
  32932. if test -z "${SYSTEM_STRLCPY_TRUE}" && test -z "${SYSTEM_STRLCPY_FALSE}"; then
  32933. { { $as_echo "$as_me:$LINENO: error: conditional \"SYSTEM_STRLCPY\" was never defined.
  32934. Usually this means the macro was only invoked conditionally." >&5
  32935. $as_echo "$as_me: error: conditional \"SYSTEM_STRLCPY\" was never defined.
  32936. Usually this means the macro was only invoked conditionally." >&2;}
  32937. { (exit 1); exit 1; }; }
  32938. fi
  32939. if test -z "${WORDS_BIGENDIAN_TRUE}" && test -z "${WORDS_BIGENDIAN_FALSE}"; then
  32940. { { $as_echo "$as_me:$LINENO: error: conditional \"WORDS_BIGENDIAN\" was never defined.
  32941. Usually this means the macro was only invoked conditionally." >&5
  32942. $as_echo "$as_me: error: conditional \"WORDS_BIGENDIAN\" was never defined.
  32943. Usually this means the macro was only invoked conditionally." >&2;}
  32944. { (exit 1); exit 1; }; }
  32945. fi
  32946. if test -z "${ENABLE_TCPREPLAY_EDIT_TRUE}" && test -z "${ENABLE_TCPREPLAY_EDIT_FALSE}"; then
  32947. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_TCPREPLAY_EDIT\" was never defined.
  32948. Usually this means the macro was only invoked conditionally." >&5
  32949. $as_echo "$as_me: error: conditional \"ENABLE_TCPREPLAY_EDIT\" was never defined.
  32950. Usually this means the macro was only invoked conditionally." >&2;}
  32951. { (exit 1); exit 1; }; }
  32952. fi
  32953. if test -z "${COMPILE_FRAGROUTE_TRUE}" && test -z "${COMPILE_FRAGROUTE_FALSE}"; then
  32954. { { $as_echo "$as_me:$LINENO: error: conditional \"COMPILE_FRAGROUTE\" was never defined.
  32955. Usually this means the macro was only invoked conditionally." >&5
  32956. $as_echo "$as_me: error: conditional \"COMPILE_FRAGROUTE\" was never defined.
  32957. Usually this means the macro was only invoked conditionally." >&2;}
  32958. { (exit 1); exit 1; }; }
  32959. fi
  32960. if test -z "${ENABLE_TCPDUMP_TRUE}" && test -z "${ENABLE_TCPDUMP_FALSE}"; then
  32961. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_TCPDUMP\" was never defined.
  32962. Usually this means the macro was only invoked conditionally." >&5
  32963. $as_echo "$as_me: error: conditional \"ENABLE_TCPDUMP\" was never defined.
  32964. Usually this means the macro was only invoked conditionally." >&2;}
  32965. { (exit 1); exit 1; }; }
  32966. fi
  32967. if test -z "${ENABLE_OSX_FRAMEWORKS_TRUE}" && test -z "${ENABLE_OSX_FRAMEWORKS_FALSE}"; then
  32968. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_OSX_FRAMEWORKS\" was never defined.
  32969. Usually this means the macro was only invoked conditionally." >&5
  32970. $as_echo "$as_me: error: conditional \"ENABLE_OSX_FRAMEWORKS\" was never defined.
  32971. Usually this means the macro was only invoked conditionally." >&2;}
  32972. { (exit 1); exit 1; }; }
  32973. fi
  32974. if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
  32975. { { $as_echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBOPTS\" was never defined.
  32976. Usually this means the macro was only invoked conditionally." >&5
  32977. $as_echo "$as_me: error: conditional \"INSTALL_LIBOPTS\" was never defined.
  32978. Usually this means the macro was only invoked conditionally." >&2;}
  32979. { (exit 1); exit 1; }; }
  32980. fi
  32981. if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
  32982. { { $as_echo "$as_me:$LINENO: error: conditional \"NEED_LIBOPTS\" was never defined.
  32983. Usually this means the macro was only invoked conditionally." >&5
  32984. $as_echo "$as_me: error: conditional \"NEED_LIBOPTS\" was never defined.
  32985. Usually this means the macro was only invoked conditionally." >&2;}
  32986. { (exit 1); exit 1; }; }
  32987. fi
  32988. : ${CONFIG_STATUS=./config.status}
  32989. ac_write_fail=0
  32990. ac_clean_files_save=$ac_clean_files
  32991. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  32992. { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  32993. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  32994. cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  32995. #! $SHELL
  32996. # Generated by $as_me.
  32997. # Run this file to recreate the current configuration.
  32998. # Compiler output produced by configure, useful for debugging
  32999. # configure, is in config.log if it exists.
  33000. debug=false
  33001. ac_cs_recheck=false
  33002. ac_cs_silent=false
  33003. SHELL=\${CONFIG_SHELL-$SHELL}
  33004. _ACEOF
  33005. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  33006. ## --------------------- ##
  33007. ## M4sh Initialization. ##
  33008. ## --------------------- ##
  33009. # Be more Bourne compatible
  33010. DUALCASE=1; export DUALCASE # for MKS sh
  33011. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  33012. emulate sh
  33013. NULLCMD=:
  33014. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  33015. # is contrary to our usage. Disable this feature.
  33016. alias -g '${1+"$@"}'='"$@"'
  33017. setopt NO_GLOB_SUBST
  33018. else
  33019. case `(set -o) 2>/dev/null` in
  33020. *posix*) set -o posix ;;
  33021. esac
  33022. fi
  33023. # PATH needs CR
  33024. # Avoid depending upon Character Ranges.
  33025. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  33026. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  33027. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  33028. as_cr_digits='0123456789'
  33029. as_cr_alnum=$as_cr_Letters$as_cr_digits
  33030. as_nl='
  33031. '
  33032. export as_nl
  33033. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  33034. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  33035. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  33036. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  33037. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  33038. as_echo='printf %s\n'
  33039. as_echo_n='printf %s'
  33040. else
  33041. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  33042. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  33043. as_echo_n='/usr/ucb/echo -n'
  33044. else
  33045. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  33046. as_echo_n_body='eval
  33047. arg=$1;
  33048. case $arg in
  33049. *"$as_nl"*)
  33050. expr "X$arg" : "X\\(.*\\)$as_nl";
  33051. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  33052. esac;
  33053. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  33054. '
  33055. export as_echo_n_body
  33056. as_echo_n='sh -c $as_echo_n_body as_echo'
  33057. fi
  33058. export as_echo_body
  33059. as_echo='sh -c $as_echo_body as_echo'
  33060. fi
  33061. # The user is always right.
  33062. if test "${PATH_SEPARATOR+set}" != set; then
  33063. PATH_SEPARATOR=:
  33064. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  33065. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  33066. PATH_SEPARATOR=';'
  33067. }
  33068. fi
  33069. # Support unset when possible.
  33070. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  33071. as_unset=unset
  33072. else
  33073. as_unset=false
  33074. fi
  33075. # IFS
  33076. # We need space, tab and new line, in precisely that order. Quoting is
  33077. # there to prevent editors from complaining about space-tab.
  33078. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  33079. # splitting by setting IFS to empty value.)
  33080. IFS=" "" $as_nl"
  33081. # Find who we are. Look in the path if we contain no directory separator.
  33082. case $0 in
  33083. *[\\/]* ) as_myself=$0 ;;
  33084. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  33085. for as_dir in $PATH
  33086. do
  33087. IFS=$as_save_IFS
  33088. test -z "$as_dir" && as_dir=.
  33089. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  33090. done
  33091. IFS=$as_save_IFS
  33092. ;;
  33093. esac
  33094. # We did not find ourselves, most probably we were run as `sh COMMAND'
  33095. # in which case we are not to be found in the path.
  33096. if test "x$as_myself" = x; then
  33097. as_myself=$0
  33098. fi
  33099. if test ! -f "$as_myself"; then
  33100. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  33101. { (exit 1); exit 1; }
  33102. fi
  33103. # Work around bugs in pre-3.0 UWIN ksh.
  33104. for as_var in ENV MAIL MAILPATH
  33105. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  33106. done
  33107. PS1='$ '
  33108. PS2='> '
  33109. PS4='+ '
  33110. # NLS nuisances.
  33111. LC_ALL=C
  33112. export LC_ALL
  33113. LANGUAGE=C
  33114. export LANGUAGE
  33115. # Required to use basename.
  33116. if expr a : '\(a\)' >/dev/null 2>&1 &&
  33117. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  33118. as_expr=expr
  33119. else
  33120. as_expr=false
  33121. fi
  33122. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  33123. as_basename=basename
  33124. else
  33125. as_basename=false
  33126. fi
  33127. # Name of the executable.
  33128. as_me=`$as_basename -- "$0" ||
  33129. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  33130. X"$0" : 'X\(//\)$' \| \
  33131. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  33132. $as_echo X/"$0" |
  33133. sed '/^.*\/\([^/][^/]*\)\/*$/{
  33134. s//\1/
  33135. q
  33136. }
  33137. /^X\/\(\/\/\)$/{
  33138. s//\1/
  33139. q
  33140. }
  33141. /^X\/\(\/\).*/{
  33142. s//\1/
  33143. q
  33144. }
  33145. s/.*/./; q'`
  33146. # CDPATH.
  33147. $as_unset CDPATH
  33148. as_lineno_1=$LINENO
  33149. as_lineno_2=$LINENO
  33150. test "x$as_lineno_1" != "x$as_lineno_2" &&
  33151. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  33152. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  33153. # uniformly replaced by the line number. The first 'sed' inserts a
  33154. # line-number line after each line using $LINENO; the second 'sed'
  33155. # does the real work. The second script uses 'N' to pair each
  33156. # line-number line with the line containing $LINENO, and appends
  33157. # trailing '-' during substitution so that $LINENO is not a special
  33158. # case at line end.
  33159. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  33160. # scripts with optimization help from Paolo Bonzini. Blame Lee
  33161. # E. McMahon (1931-1989) for sed's syntax. :-)
  33162. sed -n '
  33163. p
  33164. /[$]LINENO/=
  33165. ' <$as_myself |
  33166. sed '
  33167. s/[$]LINENO.*/&-/
  33168. t lineno
  33169. b
  33170. :lineno
  33171. N
  33172. :loop
  33173. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  33174. t loop
  33175. s/-\n.*//
  33176. ' >$as_me.lineno &&
  33177. chmod +x "$as_me.lineno" ||
  33178. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  33179. { (exit 1); exit 1; }; }
  33180. # Don't try to exec as it changes $[0], causing all sort of problems
  33181. # (the dirname of $[0] is not the place where we might find the
  33182. # original and so on. Autoconf is especially sensitive to this).
  33183. . "./$as_me.lineno"
  33184. # Exit status is that of the last command.
  33185. exit
  33186. }
  33187. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  33188. as_dirname=dirname
  33189. else
  33190. as_dirname=false
  33191. fi
  33192. ECHO_C= ECHO_N= ECHO_T=
  33193. case `echo -n x` in
  33194. -n*)
  33195. case `echo 'x\c'` in
  33196. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  33197. *) ECHO_C='\c';;
  33198. esac;;
  33199. *)
  33200. ECHO_N='-n';;
  33201. esac
  33202. if expr a : '\(a\)' >/dev/null 2>&1 &&
  33203. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  33204. as_expr=expr
  33205. else
  33206. as_expr=false
  33207. fi
  33208. rm -f conf$$ conf$$.exe conf$$.file
  33209. if test -d conf$$.dir; then
  33210. rm -f conf$$.dir/conf$$.file
  33211. else
  33212. rm -f conf$$.dir
  33213. mkdir conf$$.dir 2>/dev/null
  33214. fi
  33215. if (echo >conf$$.file) 2>/dev/null; then
  33216. if ln -s conf$$.file conf$$ 2>/dev/null; then
  33217. as_ln_s='ln -s'
  33218. # ... but there are two gotchas:
  33219. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  33220. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  33221. # In both cases, we have to default to `cp -p'.
  33222. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  33223. as_ln_s='cp -p'
  33224. elif ln conf$$.file conf$$ 2>/dev/null; then
  33225. as_ln_s=ln
  33226. else
  33227. as_ln_s='cp -p'
  33228. fi
  33229. else
  33230. as_ln_s='cp -p'
  33231. fi
  33232. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  33233. rmdir conf$$.dir 2>/dev/null
  33234. if mkdir -p . 2>/dev/null; then
  33235. as_mkdir_p=:
  33236. else
  33237. test -d ./-p && rmdir ./-p
  33238. as_mkdir_p=false
  33239. fi
  33240. if test -x / >/dev/null 2>&1; then
  33241. as_test_x='test -x'
  33242. else
  33243. if ls -dL / >/dev/null 2>&1; then
  33244. as_ls_L_option=L
  33245. else
  33246. as_ls_L_option=
  33247. fi
  33248. as_test_x='
  33249. eval sh -c '\''
  33250. if test -d "$1"; then
  33251. test -d "$1/.";
  33252. else
  33253. case $1 in
  33254. -*)set "./$1";;
  33255. esac;
  33256. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  33257. ???[sx]*):;;*)false;;esac;fi
  33258. '\'' sh
  33259. '
  33260. fi
  33261. as_executable_p=$as_test_x
  33262. # Sed expression to map a string onto a valid CPP name.
  33263. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  33264. # Sed expression to map a string onto a valid variable name.
  33265. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  33266. exec 6>&1
  33267. # Save the log message, to keep $[0] and so on meaningful, and to
  33268. # report actual input values of CONFIG_FILES etc. instead of their
  33269. # values after options handling.
  33270. ac_log="
  33271. This file was extended by $as_me, which was
  33272. generated by GNU Autoconf 2.62. Invocation command line was
  33273. CONFIG_FILES = $CONFIG_FILES
  33274. CONFIG_HEADERS = $CONFIG_HEADERS
  33275. CONFIG_LINKS = $CONFIG_LINKS
  33276. CONFIG_COMMANDS = $CONFIG_COMMANDS
  33277. $ $0 $@
  33278. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  33279. "
  33280. _ACEOF
  33281. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  33282. # Files that config.status was made for.
  33283. config_files="$ac_config_files"
  33284. config_headers="$ac_config_headers"
  33285. config_commands="$ac_config_commands"
  33286. _ACEOF
  33287. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  33288. ac_cs_usage="\
  33289. \`$as_me' instantiates files from templates according to the
  33290. current configuration.
  33291. Usage: $0 [OPTIONS] [FILE]...
  33292. -h, --help print this help, then exit
  33293. -V, --version print version number and configuration settings, then exit
  33294. -q, --quiet do not print progress messages
  33295. -d, --debug don't remove temporary files
  33296. --recheck update $as_me by reconfiguring in the same conditions
  33297. --file=FILE[:TEMPLATE]
  33298. instantiate the configuration file FILE
  33299. --header=FILE[:TEMPLATE]
  33300. instantiate the configuration header FILE
  33301. Configuration files:
  33302. $config_files
  33303. Configuration headers:
  33304. $config_headers
  33305. Configuration commands:
  33306. $config_commands
  33307. Report bugs to <bug-autoconf@gnu.org>."
  33308. _ACEOF
  33309. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  33310. ac_cs_version="\\
  33311. config.status
  33312. configured by $0, generated by GNU Autoconf 2.62,
  33313. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  33314. Copyright (C) 2008 Free Software Foundation, Inc.
  33315. This config.status script is free software; the Free Software Foundation
  33316. gives unlimited permission to copy, distribute and modify it."
  33317. ac_pwd='$ac_pwd'
  33318. srcdir='$srcdir'
  33319. INSTALL='$INSTALL'
  33320. MKDIR_P='$MKDIR_P'
  33321. AWK='$AWK'
  33322. test -n "\$AWK" || AWK=awk
  33323. _ACEOF
  33324. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  33325. # The default lists apply if the user does not specify any file.
  33326. ac_need_defaults=:
  33327. while test $# != 0
  33328. do
  33329. case $1 in
  33330. --*=*)
  33331. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  33332. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  33333. ac_shift=:
  33334. ;;
  33335. *)
  33336. ac_option=$1
  33337. ac_optarg=$2
  33338. ac_shift=shift
  33339. ;;
  33340. esac
  33341. case $ac_option in
  33342. # Handling of the options.
  33343. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  33344. ac_cs_recheck=: ;;
  33345. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  33346. $as_echo "$ac_cs_version"; exit ;;
  33347. --debug | --debu | --deb | --de | --d | -d )
  33348. debug=: ;;
  33349. --file | --fil | --fi | --f )
  33350. $ac_shift
  33351. case $ac_optarg in
  33352. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  33353. esac
  33354. CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  33355. ac_need_defaults=false;;
  33356. --header | --heade | --head | --hea )
  33357. $ac_shift
  33358. case $ac_optarg in
  33359. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  33360. esac
  33361. CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
  33362. ac_need_defaults=false;;
  33363. --he | --h)
  33364. # Conflict between --help and --header
  33365. { $as_echo "$as_me: error: ambiguous option: $1
  33366. Try \`$0 --help' for more information." >&2
  33367. { (exit 1); exit 1; }; };;
  33368. --help | --hel | -h )
  33369. $as_echo "$ac_cs_usage"; exit ;;
  33370. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  33371. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  33372. ac_cs_silent=: ;;
  33373. # This is an error.
  33374. -*) { $as_echo "$as_me: error: unrecognized option: $1
  33375. Try \`$0 --help' for more information." >&2
  33376. { (exit 1); exit 1; }; } ;;
  33377. *) ac_config_targets="$ac_config_targets $1"
  33378. ac_need_defaults=false ;;
  33379. esac
  33380. shift
  33381. done
  33382. ac_configure_extra_args=
  33383. if $ac_cs_silent; then
  33384. exec 6>/dev/null
  33385. ac_configure_extra_args="$ac_configure_extra_args --silent"
  33386. fi
  33387. _ACEOF
  33388. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  33389. if \$ac_cs_recheck; then
  33390. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  33391. shift
  33392. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  33393. CONFIG_SHELL='$SHELL'
  33394. export CONFIG_SHELL
  33395. exec "\$@"
  33396. fi
  33397. _ACEOF
  33398. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  33399. exec 5>>config.log
  33400. {
  33401. echo
  33402. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  33403. ## Running $as_me. ##
  33404. _ASBOX
  33405. $as_echo "$ac_log"
  33406. } >&5
  33407. _ACEOF
  33408. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  33409. #
  33410. # INIT-COMMANDS
  33411. #
  33412. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  33413. _ACEOF
  33414. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  33415. # Handling of arguments.
  33416. for ac_config_target in $ac_config_targets
  33417. do
  33418. case $ac_config_target in
  33419. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  33420. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  33421. "libopts/Makefile") CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;;
  33422. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  33423. "doxygen.cfg") CONFIG_FILES="$CONFIG_FILES doxygen.cfg" ;;
  33424. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  33425. "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
  33426. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  33427. "src/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;;
  33428. "src/tcpedit/Makefile") CONFIG_FILES="$CONFIG_FILES src/tcpedit/Makefile" ;;
  33429. "src/fragroute/Makefile") CONFIG_FILES="$CONFIG_FILES src/fragroute/Makefile" ;;
  33430. "src/defines.h") CONFIG_FILES="$CONFIG_FILES src/defines.h" ;;
  33431. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  33432. "test/config") CONFIG_FILES="$CONFIG_FILES test/config" ;;
  33433. "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
  33434. "tcpreplay.spec") CONFIG_FILES="$CONFIG_FILES tcpreplay.spec" ;;
  33435. *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  33436. $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  33437. { (exit 1); exit 1; }; };;
  33438. esac
  33439. done
  33440. # If the user did not use the arguments to specify the items to instantiate,
  33441. # then the envvar interface is used. Set only those that are not.
  33442. # We use the long form for the default assignment because of an extremely
  33443. # bizarre bug on SunOS 4.1.3.
  33444. if $ac_need_defaults; then
  33445. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  33446. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  33447. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  33448. fi
  33449. # Have a temporary directory for convenience. Make it in the build tree
  33450. # simply because there is no reason against having it here, and in addition,
  33451. # creating and moving files from /tmp can sometimes cause problems.
  33452. # Hook for its removal unless debugging.
  33453. # Note that there is a small window in which the directory will not be cleaned:
  33454. # after its creation but before its name has been assigned to `$tmp'.
  33455. $debug ||
  33456. {
  33457. tmp=
  33458. trap 'exit_status=$?
  33459. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  33460. ' 0
  33461. trap '{ (exit 1); exit 1; }' 1 2 13 15
  33462. }
  33463. # Create a (secure) tmp directory for tmp files.
  33464. {
  33465. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  33466. test -n "$tmp" && test -d "$tmp"
  33467. } ||
  33468. {
  33469. tmp=./conf$$-$RANDOM
  33470. (umask 077 && mkdir "$tmp")
  33471. } ||
  33472. {
  33473. $as_echo "$as_me: cannot create a temporary directory in ." >&2
  33474. { (exit 1); exit 1; }
  33475. }
  33476. # Set up the scripts for CONFIG_FILES section.
  33477. # No need to generate them if there are no CONFIG_FILES.
  33478. # This happens for instance with `./config.status config.h'.
  33479. if test -n "$CONFIG_FILES"; then
  33480. ac_cr=' '
  33481. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  33482. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  33483. ac_cs_awk_cr='\\r'
  33484. else
  33485. ac_cs_awk_cr=$ac_cr
  33486. fi
  33487. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  33488. _ACEOF
  33489. {
  33490. echo "cat >conf$$subs.awk <<_ACEOF" &&
  33491. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  33492. echo "_ACEOF"
  33493. } >conf$$subs.sh ||
  33494. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  33495. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  33496. { (exit 1); exit 1; }; }
  33497. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  33498. ac_delim='%!_!# '
  33499. for ac_last_try in false false false false false :; do
  33500. . ./conf$$subs.sh ||
  33501. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  33502. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  33503. { (exit 1); exit 1; }; }
  33504. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
  33505. break
  33506. elif $ac_last_try; then
  33507. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  33508. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  33509. { (exit 1); exit 1; }; }
  33510. else
  33511. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  33512. fi
  33513. done
  33514. rm -f conf$$subs.sh
  33515. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  33516. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  33517. _ACEOF
  33518. sed -n '
  33519. h
  33520. s/^/S["/; s/!.*/"]=/
  33521. p
  33522. g
  33523. s/^[^!]*!//
  33524. :repl
  33525. t repl
  33526. s/'"$ac_delim"'$//
  33527. t delim
  33528. :nl
  33529. h
  33530. s/\(.\{148\}\).*/\1/
  33531. t more1
  33532. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  33533. p
  33534. n
  33535. b repl
  33536. :more1
  33537. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  33538. p
  33539. g
  33540. s/.\{148\}//
  33541. t nl
  33542. :delim
  33543. h
  33544. s/\(.\{148\}\).*/\1/
  33545. t more2
  33546. s/["\\]/\\&/g; s/^/"/; s/$/"/
  33547. p
  33548. b
  33549. :more2
  33550. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  33551. p
  33552. g
  33553. s/.\{148\}//
  33554. t delim
  33555. ' <conf$$subs.awk | sed '
  33556. /^[^""]/{
  33557. N
  33558. s/\n//
  33559. }
  33560. ' >>$CONFIG_STATUS || ac_write_fail=1
  33561. rm -f conf$$subs.awk
  33562. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  33563. _ACAWK
  33564. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  33565. for (key in S) S_is_set[key] = 1
  33566. FS = ""
  33567. }
  33568. {
  33569. line = $ 0
  33570. nfields = split(line, field, "@")
  33571. substed = 0
  33572. len = length(field[1])
  33573. for (i = 2; i < nfields; i++) {
  33574. key = field[i]
  33575. keylen = length(key)
  33576. if (S_is_set[key]) {
  33577. value = S[key]
  33578. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  33579. len += length(value) + length(field[++i])
  33580. substed = 1
  33581. } else
  33582. len += 1 + keylen
  33583. }
  33584. print line
  33585. }
  33586. _ACAWK
  33587. _ACEOF
  33588. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  33589. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  33590. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  33591. else
  33592. cat
  33593. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  33594. || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  33595. $as_echo "$as_me: error: could not setup config files machinery" >&2;}
  33596. { (exit 1); exit 1; }; }
  33597. _ACEOF
  33598. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  33599. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  33600. # trailing colons and then remove the whole line if VPATH becomes empty
  33601. # (actually we leave an empty line to preserve line numbers).
  33602. if test "x$srcdir" = x.; then
  33603. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  33604. s/:*\$(srcdir):*/:/
  33605. s/:*\${srcdir}:*/:/
  33606. s/:*@srcdir@:*/:/
  33607. s/^\([^=]*=[ ]*\):*/\1/
  33608. s/:*$//
  33609. s/^[^=]*=[ ]*$//
  33610. }'
  33611. fi
  33612. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  33613. fi # test -n "$CONFIG_FILES"
  33614. # Set up the scripts for CONFIG_HEADERS section.
  33615. # No need to generate them if there are no CONFIG_HEADERS.
  33616. # This happens for instance with `./config.status Makefile'.
  33617. if test -n "$CONFIG_HEADERS"; then
  33618. cat >"$tmp/defines.awk" <<\_ACAWK ||
  33619. BEGIN {
  33620. _ACEOF
  33621. # Transform confdefs.h into an awk script `defines.awk', embedded as
  33622. # here-document in config.status, that substitutes the proper values into
  33623. # config.h.in to produce config.h.
  33624. # Create a delimiter string that does not exist in confdefs.h, to ease
  33625. # handling of long lines.
  33626. ac_delim='%!_!# '
  33627. for ac_last_try in false false :; do
  33628. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  33629. if test -z "$ac_t"; then
  33630. break
  33631. elif $ac_last_try; then
  33632. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
  33633. $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
  33634. { (exit 1); exit 1; }; }
  33635. else
  33636. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  33637. fi
  33638. done
  33639. # For the awk script, D is an array of macro values keyed by name,
  33640. # likewise P contains macro parameters if any. Preserve backslash
  33641. # newline sequences.
  33642. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  33643. sed -n '
  33644. s/.\{148\}/&'"$ac_delim"'/g
  33645. t rset
  33646. :rset
  33647. s/^[ ]*#[ ]*define[ ][ ]*/ /
  33648. t def
  33649. d
  33650. :def
  33651. s/\\$//
  33652. t bsnl
  33653. s/["\\]/\\&/g
  33654. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  33655. D["\1"]=" \3"/p
  33656. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  33657. d
  33658. :bsnl
  33659. s/["\\]/\\&/g
  33660. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  33661. D["\1"]=" \3\\\\\\n"\\/p
  33662. t cont
  33663. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  33664. t cont
  33665. d
  33666. :cont
  33667. n
  33668. s/.\{148\}/&'"$ac_delim"'/g
  33669. t clear
  33670. :clear
  33671. s/\\$//
  33672. t bsnlc
  33673. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  33674. d
  33675. :bsnlc
  33676. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  33677. b cont
  33678. ' <confdefs.h | sed '
  33679. s/'"$ac_delim"'/"\\\
  33680. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  33681. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  33682. for (key in D) D_is_set[key] = 1
  33683. FS = ""
  33684. }
  33685. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  33686. line = \$ 0
  33687. split(line, arg, " ")
  33688. if (arg[1] == "#") {
  33689. defundef = arg[2]
  33690. mac1 = arg[3]
  33691. } else {
  33692. defundef = substr(arg[1], 2)
  33693. mac1 = arg[2]
  33694. }
  33695. split(mac1, mac2, "(") #)
  33696. macro = mac2[1]
  33697. if (D_is_set[macro]) {
  33698. # Preserve the white space surrounding the "#".
  33699. prefix = substr(line, 1, index(line, defundef) - 1)
  33700. print prefix "define", macro P[macro] D[macro]
  33701. next
  33702. } else {
  33703. # Replace #undef with comments. This is necessary, for example,
  33704. # in the case of _POSIX_SOURCE, which is predefined and required
  33705. # on some systems where configure will not decide to define it.
  33706. if (defundef == "undef") {
  33707. print "/*", line, "*/"
  33708. next
  33709. }
  33710. }
  33711. }
  33712. { print }
  33713. _ACAWK
  33714. _ACEOF
  33715. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  33716. { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
  33717. $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
  33718. { (exit 1); exit 1; }; }
  33719. fi # test -n "$CONFIG_HEADERS"
  33720. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  33721. shift
  33722. for ac_tag
  33723. do
  33724. case $ac_tag in
  33725. :[FHLC]) ac_mode=$ac_tag; continue;;
  33726. esac
  33727. case $ac_mode$ac_tag in
  33728. :[FHL]*:*);;
  33729. :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  33730. $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  33731. { (exit 1); exit 1; }; };;
  33732. :[FH]-) ac_tag=-:-;;
  33733. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  33734. esac
  33735. ac_save_IFS=$IFS
  33736. IFS=:
  33737. set x $ac_tag
  33738. IFS=$ac_save_IFS
  33739. shift
  33740. ac_file=$1
  33741. shift
  33742. case $ac_mode in
  33743. :L) ac_source=$1;;
  33744. :[FH])
  33745. ac_file_inputs=
  33746. for ac_f
  33747. do
  33748. case $ac_f in
  33749. -) ac_f="$tmp/stdin";;
  33750. *) # Look for the file first in the build tree, then in the source tree
  33751. # (if the path is not absolute). The absolute path cannot be DOS-style,
  33752. # because $ac_f cannot contain `:'.
  33753. test -f "$ac_f" ||
  33754. case $ac_f in
  33755. [\\/$]*) false;;
  33756. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  33757. esac ||
  33758. { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  33759. $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  33760. { (exit 1); exit 1; }; };;
  33761. esac
  33762. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  33763. ac_file_inputs="$ac_file_inputs '$ac_f'"
  33764. done
  33765. # Let's still pretend it is `configure' which instantiates (i.e., don't
  33766. # use $as_me), people would be surprised to read:
  33767. # /* config.h. Generated by config.status. */
  33768. configure_input='Generated from '`
  33769. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  33770. `' by configure.'
  33771. if test x"$ac_file" != x-; then
  33772. configure_input="$ac_file. $configure_input"
  33773. { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  33774. $as_echo "$as_me: creating $ac_file" >&6;}
  33775. fi
  33776. # Neutralize special characters interpreted by sed in replacement strings.
  33777. case $configure_input in #(
  33778. *\&* | *\|* | *\\* )
  33779. ac_sed_conf_input=`$as_echo "$configure_input" |
  33780. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  33781. *) ac_sed_conf_input=$configure_input;;
  33782. esac
  33783. case $ac_tag in
  33784. *:-:* | *:-) cat >"$tmp/stdin" \
  33785. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  33786. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  33787. { (exit 1); exit 1; }; } ;;
  33788. esac
  33789. ;;
  33790. esac
  33791. ac_dir=`$as_dirname -- "$ac_file" ||
  33792. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  33793. X"$ac_file" : 'X\(//\)[^/]' \| \
  33794. X"$ac_file" : 'X\(//\)$' \| \
  33795. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  33796. $as_echo X"$ac_file" |
  33797. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  33798. s//\1/
  33799. q
  33800. }
  33801. /^X\(\/\/\)[^/].*/{
  33802. s//\1/
  33803. q
  33804. }
  33805. /^X\(\/\/\)$/{
  33806. s//\1/
  33807. q
  33808. }
  33809. /^X\(\/\).*/{
  33810. s//\1/
  33811. q
  33812. }
  33813. s/.*/./; q'`
  33814. { as_dir="$ac_dir"
  33815. case $as_dir in #(
  33816. -*) as_dir=./$as_dir;;
  33817. esac
  33818. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  33819. as_dirs=
  33820. while :; do
  33821. case $as_dir in #(
  33822. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  33823. *) as_qdir=$as_dir;;
  33824. esac
  33825. as_dirs="'$as_qdir' $as_dirs"
  33826. as_dir=`$as_dirname -- "$as_dir" ||
  33827. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  33828. X"$as_dir" : 'X\(//\)[^/]' \| \
  33829. X"$as_dir" : 'X\(//\)$' \| \
  33830. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  33831. $as_echo X"$as_dir" |
  33832. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  33833. s//\1/
  33834. q
  33835. }
  33836. /^X\(\/\/\)[^/].*/{
  33837. s//\1/
  33838. q
  33839. }
  33840. /^X\(\/\/\)$/{
  33841. s//\1/
  33842. q
  33843. }
  33844. /^X\(\/\).*/{
  33845. s//\1/
  33846. q
  33847. }
  33848. s/.*/./; q'`
  33849. test -d "$as_dir" && break
  33850. done
  33851. test -z "$as_dirs" || eval "mkdir $as_dirs"
  33852. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  33853. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  33854. { (exit 1); exit 1; }; }; }
  33855. ac_builddir=.
  33856. case "$ac_dir" in
  33857. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  33858. *)
  33859. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  33860. # A ".." for each directory in $ac_dir_suffix.
  33861. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  33862. case $ac_top_builddir_sub in
  33863. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  33864. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  33865. esac ;;
  33866. esac
  33867. ac_abs_top_builddir=$ac_pwd
  33868. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  33869. # for backward compatibility:
  33870. ac_top_builddir=$ac_top_build_prefix
  33871. case $srcdir in
  33872. .) # We are building in place.
  33873. ac_srcdir=.
  33874. ac_top_srcdir=$ac_top_builddir_sub
  33875. ac_abs_top_srcdir=$ac_pwd ;;
  33876. [\\/]* | ?:[\\/]* ) # Absolute name.
  33877. ac_srcdir=$srcdir$ac_dir_suffix;
  33878. ac_top_srcdir=$srcdir
  33879. ac_abs_top_srcdir=$srcdir ;;
  33880. *) # Relative name.
  33881. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  33882. ac_top_srcdir=$ac_top_build_prefix$srcdir
  33883. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  33884. esac
  33885. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  33886. case $ac_mode in
  33887. :F)
  33888. #
  33889. # CONFIG_FILE
  33890. #
  33891. case $INSTALL in
  33892. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  33893. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  33894. esac
  33895. ac_MKDIR_P=$MKDIR_P
  33896. case $MKDIR_P in
  33897. [\\/$]* | ?:[\\/]* ) ;;
  33898. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  33899. esac
  33900. _ACEOF
  33901. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  33902. # If the template does not know about datarootdir, expand it.
  33903. # FIXME: This hack should be removed a few years after 2.60.
  33904. ac_datarootdir_hack=; ac_datarootdir_seen=
  33905. ac_sed_dataroot='
  33906. /datarootdir/ {
  33907. p
  33908. q
  33909. }
  33910. /@datadir@/p
  33911. /@docdir@/p
  33912. /@infodir@/p
  33913. /@localedir@/p
  33914. /@mandir@/p
  33915. '
  33916. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  33917. *datarootdir*) ac_datarootdir_seen=yes;;
  33918. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  33919. { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  33920. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  33921. _ACEOF
  33922. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  33923. ac_datarootdir_hack='
  33924. s&@datadir@&$datadir&g
  33925. s&@docdir@&$docdir&g
  33926. s&@infodir@&$infodir&g
  33927. s&@localedir@&$localedir&g
  33928. s&@mandir@&$mandir&g
  33929. s&\\\${datarootdir}&$datarootdir&g' ;;
  33930. esac
  33931. _ACEOF
  33932. # Neutralize VPATH when `$srcdir' = `.'.
  33933. # Shell code in configure.ac might set extrasub.
  33934. # FIXME: do we really want to maintain this feature?
  33935. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  33936. ac_sed_extra="$ac_vpsub
  33937. $extrasub
  33938. _ACEOF
  33939. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  33940. :t
  33941. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  33942. s|@configure_input@|$ac_sed_conf_input|;t t
  33943. s&@top_builddir@&$ac_top_builddir_sub&;t t
  33944. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  33945. s&@srcdir@&$ac_srcdir&;t t
  33946. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  33947. s&@top_srcdir@&$ac_top_srcdir&;t t
  33948. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  33949. s&@builddir@&$ac_builddir&;t t
  33950. s&@abs_builddir@&$ac_abs_builddir&;t t
  33951. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  33952. s&@INSTALL@&$ac_INSTALL&;t t
  33953. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  33954. $ac_datarootdir_hack
  33955. "
  33956. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  33957. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  33958. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  33959. { (exit 1); exit 1; }; }
  33960. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  33961. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  33962. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  33963. { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  33964. which seems to be undefined. Please make sure it is defined." >&5
  33965. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  33966. which seems to be undefined. Please make sure it is defined." >&2;}
  33967. rm -f "$tmp/stdin"
  33968. case $ac_file in
  33969. -) cat "$tmp/out" && rm -f "$tmp/out";;
  33970. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  33971. esac \
  33972. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  33973. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  33974. { (exit 1); exit 1; }; }
  33975. ;;
  33976. :H)
  33977. #
  33978. # CONFIG_HEADER
  33979. #
  33980. if test x"$ac_file" != x-; then
  33981. {
  33982. $as_echo "/* $configure_input */" \
  33983. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  33984. } >"$tmp/config.h" \
  33985. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  33986. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  33987. { (exit 1); exit 1; }; }
  33988. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  33989. { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  33990. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  33991. else
  33992. rm -f "$ac_file"
  33993. mv "$tmp/config.h" "$ac_file" \
  33994. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  33995. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  33996. { (exit 1); exit 1; }; }
  33997. fi
  33998. else
  33999. $as_echo "/* $configure_input */" \
  34000. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  34001. || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
  34002. $as_echo "$as_me: error: could not create -" >&2;}
  34003. { (exit 1); exit 1; }; }
  34004. fi
  34005. # Compute "$ac_file"'s index in $config_headers.
  34006. _am_arg="$ac_file"
  34007. _am_stamp_count=1
  34008. for _am_header in $config_headers :; do
  34009. case $_am_header in
  34010. $_am_arg | $_am_arg:* )
  34011. break ;;
  34012. * )
  34013. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  34014. esac
  34015. done
  34016. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  34017. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  34018. X"$_am_arg" : 'X\(//\)[^/]' \| \
  34019. X"$_am_arg" : 'X\(//\)$' \| \
  34020. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  34021. $as_echo X"$_am_arg" |
  34022. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  34023. s//\1/
  34024. q
  34025. }
  34026. /^X\(\/\/\)[^/].*/{
  34027. s//\1/
  34028. q
  34029. }
  34030. /^X\(\/\/\)$/{
  34031. s//\1/
  34032. q
  34033. }
  34034. /^X\(\/\).*/{
  34035. s//\1/
  34036. q
  34037. }
  34038. s/.*/./; q'`/stamp-h$_am_stamp_count
  34039. ;;
  34040. :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
  34041. $as_echo "$as_me: executing $ac_file commands" >&6;}
  34042. ;;
  34043. esac
  34044. case $ac_file$ac_mode in
  34045. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  34046. # Strip MF so we end up with the name of the file.
  34047. mf=`echo "$mf" | sed -e 's/:.*$//'`
  34048. # Check whether this is an Automake generated Makefile or not.
  34049. # We used to match only the files named `Makefile.in', but
  34050. # some people rename them; so instead we look at the file content.
  34051. # Grep'ing the first line is not enough: some people post-process
  34052. # each Makefile.in and add a new line on top of each file to say so.
  34053. # Grep'ing the whole file is not good either: AIX grep has a line
  34054. # limit of 2048, but all sed's we know have understand at least 4000.
  34055. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  34056. dirpart=`$as_dirname -- "$mf" ||
  34057. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  34058. X"$mf" : 'X\(//\)[^/]' \| \
  34059. X"$mf" : 'X\(//\)$' \| \
  34060. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  34061. $as_echo X"$mf" |
  34062. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  34063. s//\1/
  34064. q
  34065. }
  34066. /^X\(\/\/\)[^/].*/{
  34067. s//\1/
  34068. q
  34069. }
  34070. /^X\(\/\/\)$/{
  34071. s//\1/
  34072. q
  34073. }
  34074. /^X\(\/\).*/{
  34075. s//\1/
  34076. q
  34077. }
  34078. s/.*/./; q'`
  34079. else
  34080. continue
  34081. fi
  34082. # Extract the definition of DEPDIR, am__include, and am__quote
  34083. # from the Makefile without running `make'.
  34084. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  34085. test -z "$DEPDIR" && continue
  34086. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  34087. test -z "am__include" && continue
  34088. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  34089. # When using ansi2knr, U may be empty or an underscore; expand it
  34090. U=`sed -n 's/^U = //p' < "$mf"`
  34091. # Find all dependency output files, they are included files with
  34092. # $(DEPDIR) in their names. We invoke sed twice because it is the
  34093. # simplest approach to changing $(DEPDIR) to its actual value in the
  34094. # expansion.
  34095. for file in `sed -n "
  34096. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  34097. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  34098. # Make sure the directory exists.
  34099. test -f "$dirpart/$file" && continue
  34100. fdir=`$as_dirname -- "$file" ||
  34101. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  34102. X"$file" : 'X\(//\)[^/]' \| \
  34103. X"$file" : 'X\(//\)$' \| \
  34104. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  34105. $as_echo X"$file" |
  34106. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  34107. s//\1/
  34108. q
  34109. }
  34110. /^X\(\/\/\)[^/].*/{
  34111. s//\1/
  34112. q
  34113. }
  34114. /^X\(\/\/\)$/{
  34115. s//\1/
  34116. q
  34117. }
  34118. /^X\(\/\).*/{
  34119. s//\1/
  34120. q
  34121. }
  34122. s/.*/./; q'`
  34123. { as_dir=$dirpart/$fdir
  34124. case $as_dir in #(
  34125. -*) as_dir=./$as_dir;;
  34126. esac
  34127. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  34128. as_dirs=
  34129. while :; do
  34130. case $as_dir in #(
  34131. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  34132. *) as_qdir=$as_dir;;
  34133. esac
  34134. as_dirs="'$as_qdir' $as_dirs"
  34135. as_dir=`$as_dirname -- "$as_dir" ||
  34136. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  34137. X"$as_dir" : 'X\(//\)[^/]' \| \
  34138. X"$as_dir" : 'X\(//\)$' \| \
  34139. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  34140. $as_echo X"$as_dir" |
  34141. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  34142. s//\1/
  34143. q
  34144. }
  34145. /^X\(\/\/\)[^/].*/{
  34146. s//\1/
  34147. q
  34148. }
  34149. /^X\(\/\/\)$/{
  34150. s//\1/
  34151. q
  34152. }
  34153. /^X\(\/\).*/{
  34154. s//\1/
  34155. q
  34156. }
  34157. s/.*/./; q'`
  34158. test -d "$as_dir" && break
  34159. done
  34160. test -z "$as_dirs" || eval "mkdir $as_dirs"
  34161. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  34162. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  34163. { (exit 1); exit 1; }; }; }
  34164. # echo "creating $dirpart/$file"
  34165. echo '# dummy' > "$dirpart/$file"
  34166. done
  34167. done
  34168. ;;
  34169. esac
  34170. done # for ac_tag
  34171. { (exit 0); exit 0; }
  34172. _ACEOF
  34173. chmod +x $CONFIG_STATUS
  34174. ac_clean_files=$ac_clean_files_save
  34175. test $ac_write_fail = 0 ||
  34176. { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  34177. $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  34178. { (exit 1); exit 1; }; }
  34179. # configure is writing to config.log, and then calls config.status.
  34180. # config.status does its own redirection, appending to config.log.
  34181. # Unfortunately, on DOS this fails, as config.log is still kept open
  34182. # by configure, so config.status won't be able to write to it; its
  34183. # output is simply discarded. So we exec the FD to /dev/null,
  34184. # effectively closing config.log, so it can be properly (re)opened and
  34185. # appended to by config.status. When coming back to configure, we
  34186. # need to make the FD available again.
  34187. if test "$no_create" != yes; then
  34188. ac_cs_success=:
  34189. ac_config_status_args=
  34190. test "$silent" = yes &&
  34191. ac_config_status_args="$ac_config_status_args --quiet"
  34192. exec 5>/dev/null
  34193. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  34194. exec 5>>config.log
  34195. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  34196. # would make configure fail if this is the last instruction.
  34197. $ac_cs_success || { (exit 1); exit 1; }
  34198. fi
  34199. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  34200. { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
  34201. $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
  34202. fi
  34203. # Configuration results
  34204. { $as_echo "$as_me:$LINENO: result: ##########################################################################
  34205. TCPREPLAY Suite Configuration Results (${TCPREPLAY_VERSION})
  34206. ##########################################################################
  34207. libpcap: ${foundpcap} (${libpcap_version})
  34208. libnet: ${foundnet}
  34209. libdnet: ${founddnet}
  34210. autogen: ${AUTOGEN} (${AUTOGEN_VERSION})
  34211. Use libopts tearoff: ${enable_local_libopts}
  34212. 64bit counter support: ${use64bit_counters}
  34213. tcpdump binary path: ${tcpdump_path}
  34214. tcpreplay edit support: ${tcpreplay_edit}
  34215. tcpbridge support: ${enable_tcpbridge}
  34216. fragroute support: ${enable_fragroute}
  34217. Supported Packet Injection Methods (*):
  34218. Linux PF_PACKET: ${have_pf}
  34219. BSD BPF: ${have_bpf}
  34220. libnet: ${have_libnet}
  34221. pcap_inject: ${have_pcap_inject}
  34222. pcap_sendpacket: ${have_pcap_sendpacket}
  34223. * In order of preference; see configure --help to override
  34224. " >&5
  34225. $as_echo "##########################################################################
  34226. TCPREPLAY Suite Configuration Results (${TCPREPLAY_VERSION})
  34227. ##########################################################################
  34228. libpcap: ${foundpcap} (${libpcap_version})
  34229. libnet: ${foundnet}
  34230. libdnet: ${founddnet}
  34231. autogen: ${AUTOGEN} (${AUTOGEN_VERSION})
  34232. Use libopts tearoff: ${enable_local_libopts}
  34233. 64bit counter support: ${use64bit_counters}
  34234. tcpdump binary path: ${tcpdump_path}
  34235. tcpreplay edit support: ${tcpreplay_edit}
  34236. tcpbridge support: ${enable_tcpbridge}
  34237. fragroute support: ${enable_fragroute}
  34238. Supported Packet Injection Methods (*):
  34239. Linux PF_PACKET: ${have_pf}
  34240. BSD BPF: ${have_bpf}
  34241. libnet: ${have_libnet}
  34242. pcap_inject: ${have_pcap_inject}
  34243. pcap_sendpacket: ${have_pcap_sendpacket}
  34244. * In order of preference; see configure --help to override
  34245. " >&6; }
  34246. case $host in
  34247. *-apple-darwin*)
  34248. { $as_echo "$as_me:$LINENO: WARNING: Apple OS X versions prior to 10.5 (Leopard) has a serious problem!
  34249. Please see: http://tcpreplay.synfin.net/trac/ticket/142 for more details" >&5
  34250. $as_echo "$as_me: WARNING: Apple OS X versions prior to 10.5 (Leopard) has a serious problem!
  34251. Please see: http://tcpreplay.synfin.net/trac/ticket/142 for more details" >&2;}
  34252. ;;
  34253. *-*-cygwin)
  34254. { $as_echo "$as_me:$LINENO: WARNING: Windows/Cygwin support is still somewhat experimental.
  34255. Please report any bugs! http://tcpreplay.synfin.net/trac/newticket" >&5
  34256. $as_echo "$as_me: WARNING: Windows/Cygwin support is still somewhat experimental.
  34257. Please report any bugs! http://tcpreplay.synfin.net/trac/newticket" >&2;}
  34258. ;;
  34259. esac