1
0

configure 978 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59.
  4. #
  5. # Copyright (C) 2003 Free Software Foundation, Inc.
  6. # This configure script is free software; the Free Software Foundation
  7. # gives unlimited permission to copy, distribute and modify it.
  8. ## --------------------- ##
  9. ## M4sh Initialization. ##
  10. ## --------------------- ##
  11. # Be Bourne compatible
  12. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  13. emulate sh
  14. NULLCMD=:
  15. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  16. # is contrary to our usage. Disable this feature.
  17. alias -g '${1+"$@"}'='"$@"'
  18. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  19. set -o posix
  20. fi
  21. DUALCASE=1; export DUALCASE # for MKS sh
  22. # Support unset when possible.
  23. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  24. as_unset=unset
  25. else
  26. as_unset=false
  27. fi
  28. # Work around bugs in pre-3.0 UWIN ksh.
  29. $as_unset ENV MAIL MAILPATH
  30. PS1='$ '
  31. PS2='> '
  32. PS4='+ '
  33. # NLS nuisances.
  34. for as_var in \
  35. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  36. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  37. LC_TELEPHONE LC_TIME
  38. do
  39. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  40. eval $as_var=C; export $as_var
  41. else
  42. $as_unset $as_var
  43. fi
  44. done
  45. # Required to use basename.
  46. if expr a : '\(a\)' >/dev/null 2>&1; then
  47. as_expr=expr
  48. else
  49. as_expr=false
  50. fi
  51. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  52. as_basename=basename
  53. else
  54. as_basename=false
  55. fi
  56. # Name of the executable.
  57. as_me=`$as_basename "$0" ||
  58. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  59. X"$0" : 'X\(//\)$' \| \
  60. X"$0" : 'X\(/\)$' \| \
  61. . : '\(.\)' 2>/dev/null ||
  62. echo X/"$0" |
  63. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  64. /^X\/\(\/\/\)$/{ s//\1/; q; }
  65. /^X\/\(\/\).*/{ s//\1/; q; }
  66. s/.*/./; q'`
  67. # PATH needs CR, and LINENO needs CR and PATH.
  68. # Avoid depending upon Character Ranges.
  69. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  70. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  71. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  72. as_cr_digits='0123456789'
  73. as_cr_alnum=$as_cr_Letters$as_cr_digits
  74. # The user is always right.
  75. if test "${PATH_SEPARATOR+set}" != set; then
  76. echo "#! /bin/sh" >conf$$.sh
  77. echo "exit 0" >>conf$$.sh
  78. chmod +x conf$$.sh
  79. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  80. PATH_SEPARATOR=';'
  81. else
  82. PATH_SEPARATOR=:
  83. fi
  84. rm -f conf$$.sh
  85. fi
  86. as_lineno_1=$LINENO
  87. as_lineno_2=$LINENO
  88. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  89. test "x$as_lineno_1" != "x$as_lineno_2" &&
  90. test "x$as_lineno_3" = "x$as_lineno_2" || {
  91. # Find who we are. Look in the path if we contain no path at all
  92. # relative or not.
  93. case $0 in
  94. *[\\/]* ) as_myself=$0 ;;
  95. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  96. for as_dir in $PATH
  97. do
  98. IFS=$as_save_IFS
  99. test -z "$as_dir" && as_dir=.
  100. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  101. done
  102. ;;
  103. esac
  104. # We did not find ourselves, most probably we were run as `sh COMMAND'
  105. # in which case we are not to be found in the path.
  106. if test "x$as_myself" = x; then
  107. as_myself=$0
  108. fi
  109. if test ! -f "$as_myself"; then
  110. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  111. { (exit 1); exit 1; }; }
  112. fi
  113. case $CONFIG_SHELL in
  114. '')
  115. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  116. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  117. do
  118. IFS=$as_save_IFS
  119. test -z "$as_dir" && as_dir=.
  120. for as_base in sh bash ksh sh5; do
  121. case $as_dir in
  122. /*)
  123. if ("$as_dir/$as_base" -c '
  124. as_lineno_1=$LINENO
  125. as_lineno_2=$LINENO
  126. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  127. test "x$as_lineno_1" != "x$as_lineno_2" &&
  128. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  129. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  130. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  131. CONFIG_SHELL=$as_dir/$as_base
  132. export CONFIG_SHELL
  133. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  134. fi;;
  135. esac
  136. done
  137. done
  138. ;;
  139. esac
  140. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  141. # uniformly replaced by the line number. The first 'sed' inserts a
  142. # line-number line before each line; the second 'sed' does the real
  143. # work. The second script uses 'N' to pair each line-number line
  144. # with the numbered line, and appends trailing '-' during
  145. # substitution so that $LINENO is not a special case at line end.
  146. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  147. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  148. sed '=' <$as_myself |
  149. sed '
  150. N
  151. s,$,-,
  152. : loop
  153. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  154. t loop
  155. s,-$,,
  156. s,^['$as_cr_digits']*\n,,
  157. ' >$as_me.lineno &&
  158. chmod +x $as_me.lineno ||
  159. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  160. { (exit 1); exit 1; }; }
  161. # Don't try to exec as it changes $[0], causing all sort of problems
  162. # (the dirname of $[0] is not the place where we might find the
  163. # original and so on. Autoconf is especially sensible to this).
  164. . ./$as_me.lineno
  165. # Exit status is that of the last command.
  166. exit
  167. }
  168. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  169. *c*,-n*) ECHO_N= ECHO_C='
  170. ' ECHO_T=' ' ;;
  171. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  172. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  173. esac
  174. if expr a : '\(a\)' >/dev/null 2>&1; then
  175. as_expr=expr
  176. else
  177. as_expr=false
  178. fi
  179. rm -f conf$$ conf$$.exe conf$$.file
  180. echo >conf$$.file
  181. if ln -s conf$$.file conf$$ 2>/dev/null; then
  182. # We could just check for DJGPP; but this test a) works b) is more generic
  183. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  184. if test -f conf$$.exe; then
  185. # Don't use ln at all; we don't have any links
  186. as_ln_s='cp -p'
  187. else
  188. as_ln_s='ln -s'
  189. fi
  190. elif ln conf$$.file conf$$ 2>/dev/null; then
  191. as_ln_s=ln
  192. else
  193. as_ln_s='cp -p'
  194. fi
  195. rm -f conf$$ conf$$.exe conf$$.file
  196. if mkdir -p . 2>/dev/null; then
  197. as_mkdir_p=:
  198. else
  199. test -d ./-p && rmdir ./-p
  200. as_mkdir_p=false
  201. fi
  202. as_executable_p="test -f"
  203. # Sed expression to map a string onto a valid CPP name.
  204. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  205. # Sed expression to map a string onto a valid variable name.
  206. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  207. # IFS
  208. # We need space, tab and new line, in precisely that order.
  209. as_nl='
  210. '
  211. IFS=" $as_nl"
  212. # CDPATH.
  213. $as_unset CDPATH
  214. # Check that we are running under the correct shell.
  215. SHELL=${CONFIG_SHELL-/bin/sh}
  216. case X$ECHO in
  217. X*--fallback-echo)
  218. # Remove one level of quotation (which was required for Make).
  219. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  220. ;;
  221. esac
  222. echo=${ECHO-echo}
  223. if test "X$1" = X--no-reexec; then
  224. # Discard the --no-reexec flag, and continue.
  225. shift
  226. elif test "X$1" = X--fallback-echo; then
  227. # Avoid inline document here, it may be left over
  228. :
  229. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  230. # Yippee, $echo works!
  231. :
  232. else
  233. # Restart under the correct shell.
  234. exec $SHELL "$0" --no-reexec ${1+"$@"}
  235. fi
  236. if test "X$1" = X--fallback-echo; then
  237. # used as fallback echo
  238. shift
  239. cat <<EOF
  240. $*
  241. EOF
  242. exit 0
  243. fi
  244. # The HP-UX ksh and POSIX shell print the target directory to stdout
  245. # if CDPATH is set.
  246. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  247. if test -z "$ECHO"; then
  248. if test "X${echo_test_string+set}" != Xset; then
  249. # find a string as large as possible, as long as the shell can cope with it
  250. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  251. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  252. if (echo_test_string="`eval $cmd`") 2>/dev/null &&
  253. echo_test_string="`eval $cmd`" &&
  254. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  255. then
  256. break
  257. fi
  258. done
  259. fi
  260. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  261. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  262. test "X$echo_testing_string" = "X$echo_test_string"; then
  263. :
  264. else
  265. # The Solaris, AIX, and Digital Unix default echo programs unquote
  266. # backslashes. This makes it impossible to quote backslashes using
  267. # echo "$something" | sed 's/\\/\\\\/g'
  268. #
  269. # So, first we look for a working echo in the user's PATH.
  270. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  271. for dir in $PATH /usr/ucb; do
  272. IFS="$lt_save_ifs"
  273. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  274. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  275. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  276. test "X$echo_testing_string" = "X$echo_test_string"; then
  277. echo="$dir/echo"
  278. break
  279. fi
  280. done
  281. IFS="$lt_save_ifs"
  282. if test "X$echo" = Xecho; then
  283. # We didn't find a better echo, so look for alternatives.
  284. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  285. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  286. test "X$echo_testing_string" = "X$echo_test_string"; then
  287. # This shell has a builtin print -r that does the trick.
  288. echo='print -r'
  289. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  290. test "X$CONFIG_SHELL" != X/bin/ksh; then
  291. # If we have ksh, try running configure again with it.
  292. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  293. export ORIGINAL_CONFIG_SHELL
  294. CONFIG_SHELL=/bin/ksh
  295. export CONFIG_SHELL
  296. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  297. else
  298. # Try using printf.
  299. echo='printf %s\n'
  300. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  301. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  302. test "X$echo_testing_string" = "X$echo_test_string"; then
  303. # Cool, printf works
  304. :
  305. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  306. test "X$echo_testing_string" = 'X\t' &&
  307. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  308. test "X$echo_testing_string" = "X$echo_test_string"; then
  309. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  310. export CONFIG_SHELL
  311. SHELL="$CONFIG_SHELL"
  312. export SHELL
  313. echo="$CONFIG_SHELL $0 --fallback-echo"
  314. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  315. test "X$echo_testing_string" = 'X\t' &&
  316. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  317. test "X$echo_testing_string" = "X$echo_test_string"; then
  318. echo="$CONFIG_SHELL $0 --fallback-echo"
  319. else
  320. # maybe with a smaller string...
  321. prev=:
  322. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  323. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  324. then
  325. break
  326. fi
  327. prev="$cmd"
  328. done
  329. if test "$prev" != 'sed 50q "$0"'; then
  330. echo_test_string=`eval $prev`
  331. export echo_test_string
  332. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  333. else
  334. # Oops. We lost completely, so just stick with echo.
  335. echo=echo
  336. fi
  337. fi
  338. fi
  339. fi
  340. fi
  341. fi
  342. # Copy echo and quote the copy suitably for passing to libtool from
  343. # the Makefile, instead of quoting the original, which is used later.
  344. ECHO=$echo
  345. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  346. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  347. fi
  348. tagnames=${tagnames+${tagnames},}CXX
  349. tagnames=${tagnames+${tagnames},}F77
  350. # Name of the host.
  351. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  352. # so uname gets run too.
  353. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  354. exec 6>&1
  355. #
  356. # Initializations.
  357. #
  358. ac_default_prefix=/usr/local
  359. ac_config_libobj_dir=.
  360. cross_compiling=no
  361. subdirs=
  362. MFLAGS=
  363. MAKEFLAGS=
  364. SHELL=${CONFIG_SHELL-/bin/sh}
  365. # Maximum number of lines to put in a shell here document.
  366. # This variable seems obsolete. It should probably be removed, and
  367. # only ac_max_sed_lines should be used.
  368. : ${ac_max_here_lines=38}
  369. # Identity of this package.
  370. PACKAGE_NAME=
  371. PACKAGE_TARNAME=
  372. PACKAGE_VERSION=
  373. PACKAGE_STRING=
  374. PACKAGE_BUGREPORT=
  375. ac_unique_file="tcpreplay"
  376. ac_unique_file="src/tcpreplay.c"
  377. # Factoring default headers for most tests.
  378. ac_includes_default="\
  379. #include <stdio.h>
  380. #if HAVE_SYS_TYPES_H
  381. # include <sys/types.h>
  382. #endif
  383. #if HAVE_SYS_STAT_H
  384. # include <sys/stat.h>
  385. #endif
  386. #if STDC_HEADERS
  387. # include <stdlib.h>
  388. # include <stddef.h>
  389. #else
  390. # if HAVE_STDLIB_H
  391. # include <stdlib.h>
  392. # endif
  393. #endif
  394. #if HAVE_STRING_H
  395. # if !STDC_HEADERS && HAVE_MEMORY_H
  396. # include <memory.h>
  397. # endif
  398. # include <string.h>
  399. #endif
  400. #if HAVE_STRINGS_H
  401. # include <strings.h>
  402. #endif
  403. #if HAVE_INTTYPES_H
  404. # include <inttypes.h>
  405. #else
  406. # if HAVE_STDINT_H
  407. # include <stdint.h>
  408. # endif
  409. #endif
  410. #if HAVE_UNISTD_H
  411. # include <unistd.h>
  412. #endif"
  413. ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL TCPREPLAY_VERSION TCPREPLAY_RELEASE target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE PRINTF FIG2DEV LYX DVIPS TEXI2DVI LATEX2HTML DVIPDFM AUTOGEN LIBOBJS SYSTEM_STRLCPY_TRUE SYSTEM_STRLCPY_FALSE HAVE_DOCTOOLS_TRUE HAVE_DOCTOOLS_FALSE debug_flag LNETINC LNETLIB LPCAPINC LPCAPLIB PCAP_BPF_H_FILE pcncfg LNAVLIB LNAV_CFLAGS LNIDSINC LNIDSLIB HAVE_LIBNIDS_TRUE HAVE_LIBNIDS_FALSE td nic1 nic2 NEED_LIBOPTS_TRUE NEED_LIBOPTS_FALSE LIBOPTS_LDADD LIBOPTS_CFLAGS LTLIBOBJS'
  414. ac_subst_files=''
  415. # Initialize some variables set by options.
  416. ac_init_help=
  417. ac_init_version=false
  418. # The variables have the same names as the options, with
  419. # dashes changed to underlines.
  420. cache_file=/dev/null
  421. exec_prefix=NONE
  422. no_create=
  423. no_recursion=
  424. prefix=NONE
  425. program_prefix=NONE
  426. program_suffix=NONE
  427. program_transform_name=s,x,x,
  428. silent=
  429. site=
  430. srcdir=
  431. verbose=
  432. x_includes=NONE
  433. x_libraries=NONE
  434. # Installation directory options.
  435. # These are left unexpanded so users can "make install exec_prefix=/foo"
  436. # and all the variables that are supposed to be based on exec_prefix
  437. # by default will actually change.
  438. # Use braces instead of parens because sh, perl, etc. also accept them.
  439. bindir='${exec_prefix}/bin'
  440. sbindir='${exec_prefix}/sbin'
  441. libexecdir='${exec_prefix}/libexec'
  442. datadir='${prefix}/share'
  443. sysconfdir='${prefix}/etc'
  444. sharedstatedir='${prefix}/com'
  445. localstatedir='${prefix}/var'
  446. libdir='${exec_prefix}/lib'
  447. includedir='${prefix}/include'
  448. oldincludedir='/usr/include'
  449. infodir='${prefix}/info'
  450. mandir='${prefix}/man'
  451. ac_prev=
  452. for ac_option
  453. do
  454. # If the previous option needs an argument, assign it.
  455. if test -n "$ac_prev"; then
  456. eval "$ac_prev=\$ac_option"
  457. ac_prev=
  458. continue
  459. fi
  460. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  461. # Accept the important Cygnus configure options, so we can diagnose typos.
  462. case $ac_option in
  463. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  464. ac_prev=bindir ;;
  465. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  466. bindir=$ac_optarg ;;
  467. -build | --build | --buil | --bui | --bu)
  468. ac_prev=build_alias ;;
  469. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  470. build_alias=$ac_optarg ;;
  471. -cache-file | --cache-file | --cache-fil | --cache-fi \
  472. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  473. ac_prev=cache_file ;;
  474. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  475. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  476. cache_file=$ac_optarg ;;
  477. --config-cache | -C)
  478. cache_file=config.cache ;;
  479. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  480. ac_prev=datadir ;;
  481. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  482. | --da=*)
  483. datadir=$ac_optarg ;;
  484. -disable-* | --disable-*)
  485. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  486. # Reject names that are not valid shell variable names.
  487. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  488. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  489. { (exit 1); exit 1; }; }
  490. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  491. eval "enable_$ac_feature=no" ;;
  492. -enable-* | --enable-*)
  493. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  494. # Reject names that are not valid shell variable names.
  495. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  496. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  497. { (exit 1); exit 1; }; }
  498. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  499. case $ac_option in
  500. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  501. *) ac_optarg=yes ;;
  502. esac
  503. eval "enable_$ac_feature='$ac_optarg'" ;;
  504. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  505. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  506. | --exec | --exe | --ex)
  507. ac_prev=exec_prefix ;;
  508. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  509. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  510. | --exec=* | --exe=* | --ex=*)
  511. exec_prefix=$ac_optarg ;;
  512. -gas | --gas | --ga | --g)
  513. # Obsolete; use --with-gas.
  514. with_gas=yes ;;
  515. -help | --help | --hel | --he | -h)
  516. ac_init_help=long ;;
  517. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  518. ac_init_help=recursive ;;
  519. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  520. ac_init_help=short ;;
  521. -host | --host | --hos | --ho)
  522. ac_prev=host_alias ;;
  523. -host=* | --host=* | --hos=* | --ho=*)
  524. host_alias=$ac_optarg ;;
  525. -includedir | --includedir | --includedi | --included | --include \
  526. | --includ | --inclu | --incl | --inc)
  527. ac_prev=includedir ;;
  528. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  529. | --includ=* | --inclu=* | --incl=* | --inc=*)
  530. includedir=$ac_optarg ;;
  531. -infodir | --infodir | --infodi | --infod | --info | --inf)
  532. ac_prev=infodir ;;
  533. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  534. infodir=$ac_optarg ;;
  535. -libdir | --libdir | --libdi | --libd)
  536. ac_prev=libdir ;;
  537. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  538. libdir=$ac_optarg ;;
  539. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  540. | --libexe | --libex | --libe)
  541. ac_prev=libexecdir ;;
  542. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  543. | --libexe=* | --libex=* | --libe=*)
  544. libexecdir=$ac_optarg ;;
  545. -localstatedir | --localstatedir | --localstatedi | --localstated \
  546. | --localstate | --localstat | --localsta | --localst \
  547. | --locals | --local | --loca | --loc | --lo)
  548. ac_prev=localstatedir ;;
  549. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  550. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  551. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  552. localstatedir=$ac_optarg ;;
  553. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  554. ac_prev=mandir ;;
  555. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  556. mandir=$ac_optarg ;;
  557. -nfp | --nfp | --nf)
  558. # Obsolete; use --without-fp.
  559. with_fp=no ;;
  560. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  561. | --no-cr | --no-c | -n)
  562. no_create=yes ;;
  563. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  564. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  565. no_recursion=yes ;;
  566. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  567. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  568. | --oldin | --oldi | --old | --ol | --o)
  569. ac_prev=oldincludedir ;;
  570. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  571. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  572. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  573. oldincludedir=$ac_optarg ;;
  574. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  575. ac_prev=prefix ;;
  576. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  577. prefix=$ac_optarg ;;
  578. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  579. | --program-pre | --program-pr | --program-p)
  580. ac_prev=program_prefix ;;
  581. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  582. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  583. program_prefix=$ac_optarg ;;
  584. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  585. | --program-suf | --program-su | --program-s)
  586. ac_prev=program_suffix ;;
  587. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  588. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  589. program_suffix=$ac_optarg ;;
  590. -program-transform-name | --program-transform-name \
  591. | --program-transform-nam | --program-transform-na \
  592. | --program-transform-n | --program-transform- \
  593. | --program-transform | --program-transfor \
  594. | --program-transfo | --program-transf \
  595. | --program-trans | --program-tran \
  596. | --progr-tra | --program-tr | --program-t)
  597. ac_prev=program_transform_name ;;
  598. -program-transform-name=* | --program-transform-name=* \
  599. | --program-transform-nam=* | --program-transform-na=* \
  600. | --program-transform-n=* | --program-transform-=* \
  601. | --program-transform=* | --program-transfor=* \
  602. | --program-transfo=* | --program-transf=* \
  603. | --program-trans=* | --program-tran=* \
  604. | --progr-tra=* | --program-tr=* | --program-t=*)
  605. program_transform_name=$ac_optarg ;;
  606. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  607. | -silent | --silent | --silen | --sile | --sil)
  608. silent=yes ;;
  609. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  610. ac_prev=sbindir ;;
  611. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  612. | --sbi=* | --sb=*)
  613. sbindir=$ac_optarg ;;
  614. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  615. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  616. | --sharedst | --shareds | --shared | --share | --shar \
  617. | --sha | --sh)
  618. ac_prev=sharedstatedir ;;
  619. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  620. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  621. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  622. | --sha=* | --sh=*)
  623. sharedstatedir=$ac_optarg ;;
  624. -site | --site | --sit)
  625. ac_prev=site ;;
  626. -site=* | --site=* | --sit=*)
  627. site=$ac_optarg ;;
  628. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  629. ac_prev=srcdir ;;
  630. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  631. srcdir=$ac_optarg ;;
  632. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  633. | --syscon | --sysco | --sysc | --sys | --sy)
  634. ac_prev=sysconfdir ;;
  635. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  636. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  637. sysconfdir=$ac_optarg ;;
  638. -target | --target | --targe | --targ | --tar | --ta | --t)
  639. ac_prev=target_alias ;;
  640. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  641. target_alias=$ac_optarg ;;
  642. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  643. verbose=yes ;;
  644. -version | --version | --versio | --versi | --vers | -V)
  645. ac_init_version=: ;;
  646. -with-* | --with-*)
  647. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  648. # Reject names that are not valid shell variable names.
  649. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  650. { echo "$as_me: error: invalid package name: $ac_package" >&2
  651. { (exit 1); exit 1; }; }
  652. ac_package=`echo $ac_package| sed 's/-/_/g'`
  653. case $ac_option in
  654. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  655. *) ac_optarg=yes ;;
  656. esac
  657. eval "with_$ac_package='$ac_optarg'" ;;
  658. -without-* | --without-*)
  659. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  660. # Reject names that are not valid shell variable names.
  661. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  662. { echo "$as_me: error: invalid package name: $ac_package" >&2
  663. { (exit 1); exit 1; }; }
  664. ac_package=`echo $ac_package | sed 's/-/_/g'`
  665. eval "with_$ac_package=no" ;;
  666. --x)
  667. # Obsolete; use --with-x.
  668. with_x=yes ;;
  669. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  670. | --x-incl | --x-inc | --x-in | --x-i)
  671. ac_prev=x_includes ;;
  672. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  673. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  674. x_includes=$ac_optarg ;;
  675. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  676. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  677. ac_prev=x_libraries ;;
  678. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  679. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  680. x_libraries=$ac_optarg ;;
  681. -*) { echo "$as_me: error: unrecognized option: $ac_option
  682. Try \`$0 --help' for more information." >&2
  683. { (exit 1); exit 1; }; }
  684. ;;
  685. *=*)
  686. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  687. # Reject names that are not valid shell variable names.
  688. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  689. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  690. { (exit 1); exit 1; }; }
  691. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  692. eval "$ac_envvar='$ac_optarg'"
  693. export $ac_envvar ;;
  694. *)
  695. # FIXME: should be removed in autoconf 3.0.
  696. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  697. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  698. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  699. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  700. ;;
  701. esac
  702. done
  703. if test -n "$ac_prev"; then
  704. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  705. { echo "$as_me: error: missing argument to $ac_option" >&2
  706. { (exit 1); exit 1; }; }
  707. fi
  708. # Be sure to have absolute paths.
  709. for ac_var in exec_prefix prefix
  710. do
  711. eval ac_val=$`echo $ac_var`
  712. case $ac_val in
  713. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  714. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  715. { (exit 1); exit 1; }; };;
  716. esac
  717. done
  718. # Be sure to have absolute paths.
  719. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  720. localstatedir libdir includedir oldincludedir infodir mandir
  721. do
  722. eval ac_val=$`echo $ac_var`
  723. case $ac_val in
  724. [\\/$]* | ?:[\\/]* ) ;;
  725. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  726. { (exit 1); exit 1; }; };;
  727. esac
  728. done
  729. # There might be people who depend on the old broken behavior: `$host'
  730. # used to hold the argument of --host etc.
  731. # FIXME: To remove some day.
  732. build=$build_alias
  733. host=$host_alias
  734. target=$target_alias
  735. # FIXME: To remove some day.
  736. if test "x$host_alias" != x; then
  737. if test "x$build_alias" = x; then
  738. cross_compiling=maybe
  739. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  740. If a cross compiler is detected then cross compile mode will be used." >&2
  741. elif test "x$build_alias" != "x$host_alias"; then
  742. cross_compiling=yes
  743. fi
  744. fi
  745. ac_tool_prefix=
  746. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  747. test "$silent" = yes && exec 6>/dev/null
  748. # Find the source files, if location was not specified.
  749. if test -z "$srcdir"; then
  750. ac_srcdir_defaulted=yes
  751. # Try the directory containing this script, then its parent.
  752. ac_confdir=`(dirname "$0") 2>/dev/null ||
  753. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  754. X"$0" : 'X\(//\)[^/]' \| \
  755. X"$0" : 'X\(//\)$' \| \
  756. X"$0" : 'X\(/\)' \| \
  757. . : '\(.\)' 2>/dev/null ||
  758. echo X"$0" |
  759. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  760. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  761. /^X\(\/\/\)$/{ s//\1/; q; }
  762. /^X\(\/\).*/{ s//\1/; q; }
  763. s/.*/./; q'`
  764. srcdir=$ac_confdir
  765. if test ! -r $srcdir/$ac_unique_file; then
  766. srcdir=..
  767. fi
  768. else
  769. ac_srcdir_defaulted=no
  770. fi
  771. if test ! -r $srcdir/$ac_unique_file; then
  772. if test "$ac_srcdir_defaulted" = yes; then
  773. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  774. { (exit 1); exit 1; }; }
  775. else
  776. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  777. { (exit 1); exit 1; }; }
  778. fi
  779. fi
  780. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  781. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  782. { (exit 1); exit 1; }; }
  783. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  784. ac_env_build_alias_set=${build_alias+set}
  785. ac_env_build_alias_value=$build_alias
  786. ac_cv_env_build_alias_set=${build_alias+set}
  787. ac_cv_env_build_alias_value=$build_alias
  788. ac_env_host_alias_set=${host_alias+set}
  789. ac_env_host_alias_value=$host_alias
  790. ac_cv_env_host_alias_set=${host_alias+set}
  791. ac_cv_env_host_alias_value=$host_alias
  792. ac_env_target_alias_set=${target_alias+set}
  793. ac_env_target_alias_value=$target_alias
  794. ac_cv_env_target_alias_set=${target_alias+set}
  795. ac_cv_env_target_alias_value=$target_alias
  796. ac_env_CC_set=${CC+set}
  797. ac_env_CC_value=$CC
  798. ac_cv_env_CC_set=${CC+set}
  799. ac_cv_env_CC_value=$CC
  800. ac_env_CFLAGS_set=${CFLAGS+set}
  801. ac_env_CFLAGS_value=$CFLAGS
  802. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  803. ac_cv_env_CFLAGS_value=$CFLAGS
  804. ac_env_LDFLAGS_set=${LDFLAGS+set}
  805. ac_env_LDFLAGS_value=$LDFLAGS
  806. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  807. ac_cv_env_LDFLAGS_value=$LDFLAGS
  808. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  809. ac_env_CPPFLAGS_value=$CPPFLAGS
  810. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  811. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  812. ac_env_CPP_set=${CPP+set}
  813. ac_env_CPP_value=$CPP
  814. ac_cv_env_CPP_set=${CPP+set}
  815. ac_cv_env_CPP_value=$CPP
  816. ac_env_CXX_set=${CXX+set}
  817. ac_env_CXX_value=$CXX
  818. ac_cv_env_CXX_set=${CXX+set}
  819. ac_cv_env_CXX_value=$CXX
  820. ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  821. ac_env_CXXFLAGS_value=$CXXFLAGS
  822. ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  823. ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  824. ac_env_CXXCPP_set=${CXXCPP+set}
  825. ac_env_CXXCPP_value=$CXXCPP
  826. ac_cv_env_CXXCPP_set=${CXXCPP+set}
  827. ac_cv_env_CXXCPP_value=$CXXCPP
  828. ac_env_F77_set=${F77+set}
  829. ac_env_F77_value=$F77
  830. ac_cv_env_F77_set=${F77+set}
  831. ac_cv_env_F77_value=$F77
  832. ac_env_FFLAGS_set=${FFLAGS+set}
  833. ac_env_FFLAGS_value=$FFLAGS
  834. ac_cv_env_FFLAGS_set=${FFLAGS+set}
  835. ac_cv_env_FFLAGS_value=$FFLAGS
  836. #
  837. # Report the --help message.
  838. #
  839. if test "$ac_init_help" = "long"; then
  840. # Omit some internal or obsolete options to make the list less imposing.
  841. # This message is too long to be a string in the A/UX 3.1 sh.
  842. cat <<_ACEOF
  843. \`configure' configures this package to adapt to many kinds of systems.
  844. Usage: $0 [OPTION]... [VAR=VALUE]...
  845. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  846. VAR=VALUE. See below for descriptions of some of the useful variables.
  847. Defaults for the options are specified in brackets.
  848. Configuration:
  849. -h, --help display this help and exit
  850. --help=short display options specific to this package
  851. --help=recursive display the short help of all the included packages
  852. -V, --version display version information and exit
  853. -q, --quiet, --silent do not print \`checking...' messages
  854. --cache-file=FILE cache test results in FILE [disabled]
  855. -C, --config-cache alias for \`--cache-file=config.cache'
  856. -n, --no-create do not create output files
  857. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  858. _ACEOF
  859. cat <<_ACEOF
  860. Installation directories:
  861. --prefix=PREFIX install architecture-independent files in PREFIX
  862. [$ac_default_prefix]
  863. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  864. [PREFIX]
  865. By default, \`make install' will install all the files in
  866. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  867. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  868. for instance \`--prefix=\$HOME'.
  869. For better control, use the options below.
  870. Fine tuning of the installation directories:
  871. --bindir=DIR user executables [EPREFIX/bin]
  872. --sbindir=DIR system admin executables [EPREFIX/sbin]
  873. --libexecdir=DIR program executables [EPREFIX/libexec]
  874. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  875. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  876. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  877. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  878. --libdir=DIR object code libraries [EPREFIX/lib]
  879. --includedir=DIR C header files [PREFIX/include]
  880. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  881. --infodir=DIR info documentation [PREFIX/info]
  882. --mandir=DIR man documentation [PREFIX/man]
  883. _ACEOF
  884. cat <<\_ACEOF
  885. Program names:
  886. --program-prefix=PREFIX prepend PREFIX to installed program names
  887. --program-suffix=SUFFIX append SUFFIX to installed program names
  888. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  889. System types:
  890. --build=BUILD configure for building on BUILD [guessed]
  891. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  892. --target=TARGET configure for building compilers for TARGET [HOST]
  893. _ACEOF
  894. fi
  895. if test -n "$ac_init_help"; then
  896. cat <<\_ACEOF
  897. Optional Features:
  898. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  899. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  900. --enable-maintainer-mode enable make rules and dependencies not useful
  901. (and sometimes confusing) to the casual installer
  902. --enable-shared[=PKGS]
  903. build shared libraries [default=yes]
  904. --enable-static[=PKGS]
  905. build static libraries [default=yes]
  906. --enable-fast-install[=PKGS]
  907. optimize for fast installation [default=yes]
  908. --disable-libtool-lock avoid locking (might break parallel builds)
  909. --disable-dependency-tracking speeds up one-time build
  910. --enable-dependency-tracking do not reject slow dependency extractors
  911. --disable-largefile omit support for large files
  912. --enable-debug Enable debugging code and support for the -d option
  913. --enable-efence Enable Electric Fence memory debugger
  914. --enable-gprof Enable GNU Profiler
  915. --enable-64bits Use 64bit packet counters
  916. --enable-dynamic-link Dynamically link libraries
  917. --enable-local-libopts Force using the supplied libopts tearoff code
  918. Optional Packages:
  919. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  920. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  921. --with-dmalloc use dmalloc, as in
  922. http://www.dmalloc.com/dmalloc.tar.gz
  923. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  924. --with-pic try to use only PIC/non-PIC objects [default=use
  925. both]
  926. --with-tags[=TAGS]
  927. include additional configurations [automatic]
  928. --with-lyx=FILE Path to Lyx binary
  929. --with-libnet=DIR Use libnet in DIR
  930. --with-libpcap=DIR Use libpcap in DIR
  931. --with-pcapnav-config=FILE
  932. Use given pcapnav-config
  933. --with-libnids=DIR Use libnids in DIR
  934. --with-tcpdump=FILE Path to tcpdump binary
  935. --with-testnic=NIC Select which network card to use for testing
  936. --with-testnic2=NIC2 Select an optional 2nd network card to use for
  937. testing
  938. --with-regex-header a reg expr header is specified
  939. --with-libregex libregex installation prefix
  940. --with-libregex-cflags libregex compile flags
  941. --with-libregex-libs libregex link command arguments
  942. --with-autoopts-config specify the config-info script
  943. Some influential environment variables:
  944. CC C compiler command
  945. CFLAGS C compiler flags
  946. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  947. nonstandard directory <lib dir>
  948. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  949. headers in a nonstandard directory <include dir>
  950. CPP C preprocessor
  951. CXX C++ compiler command
  952. CXXFLAGS C++ compiler flags
  953. CXXCPP C++ preprocessor
  954. F77 Fortran 77 compiler command
  955. FFLAGS Fortran 77 compiler flags
  956. Use these variables to override the choices made by `configure' or to help
  957. it to find libraries and programs with nonstandard names/locations.
  958. _ACEOF
  959. fi
  960. if test "$ac_init_help" = "recursive"; then
  961. # If there are subdirs, report their specific --help.
  962. ac_popdir=`pwd`
  963. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  964. test -d $ac_dir || continue
  965. ac_builddir=.
  966. if test "$ac_dir" != .; then
  967. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  968. # A "../" for each directory in $ac_dir_suffix.
  969. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  970. else
  971. ac_dir_suffix= ac_top_builddir=
  972. fi
  973. case $srcdir in
  974. .) # No --srcdir option. We are building in place.
  975. ac_srcdir=.
  976. if test -z "$ac_top_builddir"; then
  977. ac_top_srcdir=.
  978. else
  979. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  980. fi ;;
  981. [\\/]* | ?:[\\/]* ) # Absolute path.
  982. ac_srcdir=$srcdir$ac_dir_suffix;
  983. ac_top_srcdir=$srcdir ;;
  984. *) # Relative path.
  985. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  986. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  987. esac
  988. # Do not use `cd foo && pwd` to compute absolute paths, because
  989. # the directories may not exist.
  990. case `pwd` in
  991. .) ac_abs_builddir="$ac_dir";;
  992. *)
  993. case "$ac_dir" in
  994. .) ac_abs_builddir=`pwd`;;
  995. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  996. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  997. esac;;
  998. esac
  999. case $ac_abs_builddir in
  1000. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  1001. *)
  1002. case ${ac_top_builddir}. in
  1003. .) ac_abs_top_builddir=$ac_abs_builddir;;
  1004. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  1005. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  1006. esac;;
  1007. esac
  1008. case $ac_abs_builddir in
  1009. .) ac_abs_srcdir=$ac_srcdir;;
  1010. *)
  1011. case $ac_srcdir in
  1012. .) ac_abs_srcdir=$ac_abs_builddir;;
  1013. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  1014. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  1015. esac;;
  1016. esac
  1017. case $ac_abs_builddir in
  1018. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  1019. *)
  1020. case $ac_top_srcdir in
  1021. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  1022. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  1023. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  1024. esac;;
  1025. esac
  1026. cd $ac_dir
  1027. # Check for guested configure; otherwise get Cygnus style configure.
  1028. if test -f $ac_srcdir/configure.gnu; then
  1029. echo
  1030. $SHELL $ac_srcdir/configure.gnu --help=recursive
  1031. elif test -f $ac_srcdir/configure; then
  1032. echo
  1033. $SHELL $ac_srcdir/configure --help=recursive
  1034. elif test -f $ac_srcdir/configure.ac ||
  1035. test -f $ac_srcdir/configure.in; then
  1036. echo
  1037. $ac_configure --help
  1038. else
  1039. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1040. fi
  1041. cd $ac_popdir
  1042. done
  1043. fi
  1044. test -n "$ac_init_help" && exit 0
  1045. if $ac_init_version; then
  1046. cat <<\_ACEOF
  1047. Copyright (C) 2003 Free Software Foundation, Inc.
  1048. This configure script is free software; the Free Software Foundation
  1049. gives unlimited permission to copy, distribute and modify it.
  1050. _ACEOF
  1051. exit 0
  1052. fi
  1053. exec 5>config.log
  1054. cat >&5 <<_ACEOF
  1055. This file contains any messages produced by compilers while
  1056. running configure, to aid debugging if configure makes a mistake.
  1057. It was created by $as_me, which was
  1058. generated by GNU Autoconf 2.59. Invocation command line was
  1059. $ $0 $@
  1060. _ACEOF
  1061. {
  1062. cat <<_ASUNAME
  1063. ## --------- ##
  1064. ## Platform. ##
  1065. ## --------- ##
  1066. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1067. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1068. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1069. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1070. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1071. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1072. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1073. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1074. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1075. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1076. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  1077. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1078. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1079. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1080. _ASUNAME
  1081. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1082. for as_dir in $PATH
  1083. do
  1084. IFS=$as_save_IFS
  1085. test -z "$as_dir" && as_dir=.
  1086. echo "PATH: $as_dir"
  1087. done
  1088. } >&5
  1089. cat >&5 <<_ACEOF
  1090. ## ----------- ##
  1091. ## Core tests. ##
  1092. ## ----------- ##
  1093. _ACEOF
  1094. # Keep a trace of the command line.
  1095. # Strip out --no-create and --no-recursion so they do not pile up.
  1096. # Strip out --silent because we don't want to record it for future runs.
  1097. # Also quote any args containing shell meta-characters.
  1098. # Make two passes to allow for proper duplicate-argument suppression.
  1099. ac_configure_args=
  1100. ac_configure_args0=
  1101. ac_configure_args1=
  1102. ac_sep=
  1103. ac_must_keep_next=false
  1104. for ac_pass in 1 2
  1105. do
  1106. for ac_arg
  1107. do
  1108. case $ac_arg in
  1109. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1110. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1111. | -silent | --silent | --silen | --sile | --sil)
  1112. continue ;;
  1113. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1114. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1115. esac
  1116. case $ac_pass in
  1117. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1118. 2)
  1119. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1120. if test $ac_must_keep_next = true; then
  1121. ac_must_keep_next=false # Got value, back to normal.
  1122. else
  1123. case $ac_arg in
  1124. *=* | --config-cache | -C | -disable-* | --disable-* \
  1125. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1126. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1127. | -with-* | --with-* | -without-* | --without-* | --x)
  1128. case "$ac_configure_args0 " in
  1129. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1130. esac
  1131. ;;
  1132. -* ) ac_must_keep_next=true ;;
  1133. esac
  1134. fi
  1135. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  1136. # Get rid of the leading space.
  1137. ac_sep=" "
  1138. ;;
  1139. esac
  1140. done
  1141. done
  1142. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1143. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1144. # When interrupted or exit'd, cleanup temporary files, and complete
  1145. # config.log. We remove comments because anyway the quotes in there
  1146. # would cause problems or look ugly.
  1147. # WARNING: Be sure not to use single quotes in there, as some shells,
  1148. # such as our DU 5.0 friend, will then `close' the trap.
  1149. trap 'exit_status=$?
  1150. # Save into config.log some information that might help in debugging.
  1151. {
  1152. echo
  1153. cat <<\_ASBOX
  1154. ## ---------------- ##
  1155. ## Cache variables. ##
  1156. ## ---------------- ##
  1157. _ASBOX
  1158. echo
  1159. # The following way of writing the cache mishandles newlines in values,
  1160. {
  1161. (set) 2>&1 |
  1162. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1163. *ac_space=\ *)
  1164. sed -n \
  1165. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1166. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1167. ;;
  1168. *)
  1169. sed -n \
  1170. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1171. ;;
  1172. esac;
  1173. }
  1174. echo
  1175. cat <<\_ASBOX
  1176. ## ----------------- ##
  1177. ## Output variables. ##
  1178. ## ----------------- ##
  1179. _ASBOX
  1180. echo
  1181. for ac_var in $ac_subst_vars
  1182. do
  1183. eval ac_val=$`echo $ac_var`
  1184. echo "$ac_var='"'"'$ac_val'"'"'"
  1185. done | sort
  1186. echo
  1187. if test -n "$ac_subst_files"; then
  1188. cat <<\_ASBOX
  1189. ## ------------- ##
  1190. ## Output files. ##
  1191. ## ------------- ##
  1192. _ASBOX
  1193. echo
  1194. for ac_var in $ac_subst_files
  1195. do
  1196. eval ac_val=$`echo $ac_var`
  1197. echo "$ac_var='"'"'$ac_val'"'"'"
  1198. done | sort
  1199. echo
  1200. fi
  1201. if test -s confdefs.h; then
  1202. cat <<\_ASBOX
  1203. ## ----------- ##
  1204. ## confdefs.h. ##
  1205. ## ----------- ##
  1206. _ASBOX
  1207. echo
  1208. sed "/^$/d" confdefs.h | sort
  1209. echo
  1210. fi
  1211. test "$ac_signal" != 0 &&
  1212. echo "$as_me: caught signal $ac_signal"
  1213. echo "$as_me: exit $exit_status"
  1214. } >&5
  1215. rm -f core *.core &&
  1216. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1217. exit $exit_status
  1218. ' 0
  1219. for ac_signal in 1 2 13 15; do
  1220. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1221. done
  1222. ac_signal=0
  1223. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1224. rm -rf conftest* confdefs.h
  1225. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1226. echo >confdefs.h
  1227. # Predefined preprocessor variables.
  1228. cat >>confdefs.h <<_ACEOF
  1229. #define PACKAGE_NAME "$PACKAGE_NAME"
  1230. _ACEOF
  1231. cat >>confdefs.h <<_ACEOF
  1232. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1233. _ACEOF
  1234. cat >>confdefs.h <<_ACEOF
  1235. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1236. _ACEOF
  1237. cat >>confdefs.h <<_ACEOF
  1238. #define PACKAGE_STRING "$PACKAGE_STRING"
  1239. _ACEOF
  1240. cat >>confdefs.h <<_ACEOF
  1241. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1242. _ACEOF
  1243. # Let the site file select an alternate cache file if it wants to.
  1244. # Prefer explicitly selected file to automatically selected ones.
  1245. if test -z "$CONFIG_SITE"; then
  1246. if test "x$prefix" != xNONE; then
  1247. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1248. else
  1249. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1250. fi
  1251. fi
  1252. for ac_site_file in $CONFIG_SITE; do
  1253. if test -r "$ac_site_file"; then
  1254. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1255. echo "$as_me: loading site script $ac_site_file" >&6;}
  1256. sed 's/^/| /' "$ac_site_file" >&5
  1257. . "$ac_site_file"
  1258. fi
  1259. done
  1260. if test -r "$cache_file"; then
  1261. # Some versions of bash will fail to source /dev/null (special
  1262. # files actually), so we avoid doing that.
  1263. if test -f "$cache_file"; then
  1264. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1265. echo "$as_me: loading cache $cache_file" >&6;}
  1266. case $cache_file in
  1267. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1268. *) . ./$cache_file;;
  1269. esac
  1270. fi
  1271. else
  1272. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1273. echo "$as_me: creating cache $cache_file" >&6;}
  1274. >$cache_file
  1275. fi
  1276. # Check that the precious variables saved in the cache have kept the same
  1277. # value.
  1278. ac_cache_corrupted=false
  1279. for ac_var in `(set) 2>&1 |
  1280. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1281. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1282. eval ac_new_set=\$ac_env_${ac_var}_set
  1283. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1284. eval ac_new_val="\$ac_env_${ac_var}_value"
  1285. case $ac_old_set,$ac_new_set in
  1286. set,)
  1287. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1288. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1289. ac_cache_corrupted=: ;;
  1290. ,set)
  1291. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1292. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1293. ac_cache_corrupted=: ;;
  1294. ,);;
  1295. *)
  1296. if test "x$ac_old_val" != "x$ac_new_val"; then
  1297. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1298. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1299. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1300. echo "$as_me: former value: $ac_old_val" >&2;}
  1301. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1302. echo "$as_me: current value: $ac_new_val" >&2;}
  1303. ac_cache_corrupted=:
  1304. fi;;
  1305. esac
  1306. # Pass precious variables to config.status.
  1307. if test "$ac_new_set" = set; then
  1308. case $ac_new_val in
  1309. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1310. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1311. *) ac_arg=$ac_var=$ac_new_val ;;
  1312. esac
  1313. case " $ac_configure_args " in
  1314. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1315. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1316. esac
  1317. fi
  1318. done
  1319. if $ac_cache_corrupted; then
  1320. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1321. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1322. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1323. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1324. { (exit 1); exit 1; }; }
  1325. fi
  1326. ac_ext=c
  1327. ac_cpp='$CPP $CPPFLAGS'
  1328. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1329. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1330. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1331. ac_config_headers="$ac_config_headers src/config.h"
  1332. ac_aux_dir=
  1333. for ac_dir in config $srcdir/config; do
  1334. if test -f $ac_dir/install-sh; then
  1335. ac_aux_dir=$ac_dir
  1336. ac_install_sh="$ac_aux_dir/install-sh -c"
  1337. break
  1338. elif test -f $ac_dir/install.sh; then
  1339. ac_aux_dir=$ac_dir
  1340. ac_install_sh="$ac_aux_dir/install.sh -c"
  1341. break
  1342. elif test -f $ac_dir/shtool; then
  1343. ac_aux_dir=$ac_dir
  1344. ac_install_sh="$ac_aux_dir/shtool install -c"
  1345. break
  1346. fi
  1347. done
  1348. if test -z "$ac_aux_dir"; then
  1349. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
  1350. echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
  1351. { (exit 1); exit 1; }; }
  1352. fi
  1353. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1354. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1355. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1356. echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  1357. echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
  1358. # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
  1359. if test "${enable_maintainer_mode+set}" = set; then
  1360. enableval="$enable_maintainer_mode"
  1361. USE_MAINTAINER_MODE=$enableval
  1362. else
  1363. USE_MAINTAINER_MODE=no
  1364. fi;
  1365. echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  1366. echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
  1367. if test $USE_MAINTAINER_MODE = yes; then
  1368. MAINTAINER_MODE_TRUE=
  1369. MAINTAINER_MODE_FALSE='#'
  1370. else
  1371. MAINTAINER_MODE_TRUE='#'
  1372. MAINTAINER_MODE_FALSE=
  1373. fi
  1374. MAINT=$MAINTAINER_MODE_TRUE
  1375. echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
  1376. echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
  1377. # Check whether --with-dmalloc or --without-dmalloc was given.
  1378. if test "${with_dmalloc+set}" = set; then
  1379. withval="$with_dmalloc"
  1380. if test "$withval" = yes; then
  1381. echo "$as_me:$LINENO: result: yes" >&5
  1382. echo "${ECHO_T}yes" >&6
  1383. cat >>confdefs.h <<\_ACEOF
  1384. #define WITH_DMALLOC 1
  1385. _ACEOF
  1386. LIBS="$LIBS -ldmalloc"
  1387. LDFLAGS="$LDFLAGS -g"
  1388. else
  1389. echo "$as_me:$LINENO: result: no" >&5
  1390. echo "${ECHO_T}no" >&6
  1391. fi
  1392. else
  1393. echo "$as_me:$LINENO: result: no" >&5
  1394. echo "${ECHO_T}no" >&6
  1395. fi;
  1396. # Check whether --enable-shared or --disable-shared was given.
  1397. if test "${enable_shared+set}" = set; then
  1398. enableval="$enable_shared"
  1399. p=${PACKAGE-default}
  1400. case $enableval in
  1401. yes) enable_shared=yes ;;
  1402. no) enable_shared=no ;;
  1403. *)
  1404. enable_shared=no
  1405. # Look at the argument we got. We use all the common list separators.
  1406. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1407. for pkg in $enableval; do
  1408. IFS="$lt_save_ifs"
  1409. if test "X$pkg" = "X$p"; then
  1410. enable_shared=yes
  1411. fi
  1412. done
  1413. IFS="$lt_save_ifs"
  1414. ;;
  1415. esac
  1416. else
  1417. enable_shared=yes
  1418. fi;
  1419. # Check whether --enable-static or --disable-static was given.
  1420. if test "${enable_static+set}" = set; then
  1421. enableval="$enable_static"
  1422. p=${PACKAGE-default}
  1423. case $enableval in
  1424. yes) enable_static=yes ;;
  1425. no) enable_static=no ;;
  1426. *)
  1427. enable_static=no
  1428. # Look at the argument we got. We use all the common list separators.
  1429. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1430. for pkg in $enableval; do
  1431. IFS="$lt_save_ifs"
  1432. if test "X$pkg" = "X$p"; then
  1433. enable_static=yes
  1434. fi
  1435. done
  1436. IFS="$lt_save_ifs"
  1437. ;;
  1438. esac
  1439. else
  1440. enable_static=yes
  1441. fi;
  1442. # Check whether --enable-fast-install or --disable-fast-install was given.
  1443. if test "${enable_fast_install+set}" = set; then
  1444. enableval="$enable_fast_install"
  1445. p=${PACKAGE-default}
  1446. case $enableval in
  1447. yes) enable_fast_install=yes ;;
  1448. no) enable_fast_install=no ;;
  1449. *)
  1450. enable_fast_install=no
  1451. # Look at the argument we got. We use all the common list separators.
  1452. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1453. for pkg in $enableval; do
  1454. IFS="$lt_save_ifs"
  1455. if test "X$pkg" = "X$p"; then
  1456. enable_fast_install=yes
  1457. fi
  1458. done
  1459. IFS="$lt_save_ifs"
  1460. ;;
  1461. esac
  1462. else
  1463. enable_fast_install=yes
  1464. fi;
  1465. # Make sure we can run config.sub.
  1466. $ac_config_sub sun4 >/dev/null 2>&1 ||
  1467. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  1468. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  1469. { (exit 1); exit 1; }; }
  1470. echo "$as_me:$LINENO: checking build system type" >&5
  1471. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  1472. if test "${ac_cv_build+set}" = set; then
  1473. echo $ECHO_N "(cached) $ECHO_C" >&6
  1474. else
  1475. ac_cv_build_alias=$build_alias
  1476. test -z "$ac_cv_build_alias" &&
  1477. ac_cv_build_alias=`$ac_config_guess`
  1478. test -z "$ac_cv_build_alias" &&
  1479. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1480. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1481. { (exit 1); exit 1; }; }
  1482. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  1483. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  1484. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  1485. { (exit 1); exit 1; }; }
  1486. fi
  1487. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1488. echo "${ECHO_T}$ac_cv_build" >&6
  1489. build=$ac_cv_build
  1490. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1491. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1492. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1493. echo "$as_me:$LINENO: checking host system type" >&5
  1494. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  1495. if test "${ac_cv_host+set}" = set; then
  1496. echo $ECHO_N "(cached) $ECHO_C" >&6
  1497. else
  1498. ac_cv_host_alias=$host_alias
  1499. test -z "$ac_cv_host_alias" &&
  1500. ac_cv_host_alias=$ac_cv_build_alias
  1501. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  1502. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  1503. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  1504. { (exit 1); exit 1; }; }
  1505. fi
  1506. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1507. echo "${ECHO_T}$ac_cv_host" >&6
  1508. host=$ac_cv_host
  1509. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1510. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1511. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1512. ac_ext=c
  1513. ac_cpp='$CPP $CPPFLAGS'
  1514. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1515. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1516. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1517. if test -n "$ac_tool_prefix"; then
  1518. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1519. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1520. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1521. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1522. if test "${ac_cv_prog_CC+set}" = set; then
  1523. echo $ECHO_N "(cached) $ECHO_C" >&6
  1524. else
  1525. if test -n "$CC"; then
  1526. ac_cv_prog_CC="$CC" # Let the user override the test.
  1527. else
  1528. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1529. for as_dir in $PATH
  1530. do
  1531. IFS=$as_save_IFS
  1532. test -z "$as_dir" && as_dir=.
  1533. for ac_exec_ext in '' $ac_executable_extensions; do
  1534. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1535. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1536. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1537. break 2
  1538. fi
  1539. done
  1540. done
  1541. fi
  1542. fi
  1543. CC=$ac_cv_prog_CC
  1544. if test -n "$CC"; then
  1545. echo "$as_me:$LINENO: result: $CC" >&5
  1546. echo "${ECHO_T}$CC" >&6
  1547. else
  1548. echo "$as_me:$LINENO: result: no" >&5
  1549. echo "${ECHO_T}no" >&6
  1550. fi
  1551. fi
  1552. if test -z "$ac_cv_prog_CC"; then
  1553. ac_ct_CC=$CC
  1554. # Extract the first word of "gcc", so it can be a program name with args.
  1555. set dummy gcc; ac_word=$2
  1556. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1557. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1558. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1559. echo $ECHO_N "(cached) $ECHO_C" >&6
  1560. else
  1561. if test -n "$ac_ct_CC"; then
  1562. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1563. else
  1564. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1565. for as_dir in $PATH
  1566. do
  1567. IFS=$as_save_IFS
  1568. test -z "$as_dir" && as_dir=.
  1569. for ac_exec_ext in '' $ac_executable_extensions; do
  1570. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1571. ac_cv_prog_ac_ct_CC="gcc"
  1572. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1573. break 2
  1574. fi
  1575. done
  1576. done
  1577. fi
  1578. fi
  1579. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1580. if test -n "$ac_ct_CC"; then
  1581. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1582. echo "${ECHO_T}$ac_ct_CC" >&6
  1583. else
  1584. echo "$as_me:$LINENO: result: no" >&5
  1585. echo "${ECHO_T}no" >&6
  1586. fi
  1587. CC=$ac_ct_CC
  1588. else
  1589. CC="$ac_cv_prog_CC"
  1590. fi
  1591. if test -z "$CC"; then
  1592. if test -n "$ac_tool_prefix"; then
  1593. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1594. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1595. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1596. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1597. if test "${ac_cv_prog_CC+set}" = set; then
  1598. echo $ECHO_N "(cached) $ECHO_C" >&6
  1599. else
  1600. if test -n "$CC"; then
  1601. ac_cv_prog_CC="$CC" # Let the user override the test.
  1602. else
  1603. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1604. for as_dir in $PATH
  1605. do
  1606. IFS=$as_save_IFS
  1607. test -z "$as_dir" && as_dir=.
  1608. for ac_exec_ext in '' $ac_executable_extensions; do
  1609. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1610. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1611. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1612. break 2
  1613. fi
  1614. done
  1615. done
  1616. fi
  1617. fi
  1618. CC=$ac_cv_prog_CC
  1619. if test -n "$CC"; then
  1620. echo "$as_me:$LINENO: result: $CC" >&5
  1621. echo "${ECHO_T}$CC" >&6
  1622. else
  1623. echo "$as_me:$LINENO: result: no" >&5
  1624. echo "${ECHO_T}no" >&6
  1625. fi
  1626. fi
  1627. if test -z "$ac_cv_prog_CC"; then
  1628. ac_ct_CC=$CC
  1629. # Extract the first word of "cc", so it can be a program name with args.
  1630. set dummy cc; ac_word=$2
  1631. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1632. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1633. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1634. echo $ECHO_N "(cached) $ECHO_C" >&6
  1635. else
  1636. if test -n "$ac_ct_CC"; then
  1637. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1638. else
  1639. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1640. for as_dir in $PATH
  1641. do
  1642. IFS=$as_save_IFS
  1643. test -z "$as_dir" && as_dir=.
  1644. for ac_exec_ext in '' $ac_executable_extensions; do
  1645. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1646. ac_cv_prog_ac_ct_CC="cc"
  1647. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1648. break 2
  1649. fi
  1650. done
  1651. done
  1652. fi
  1653. fi
  1654. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1655. if test -n "$ac_ct_CC"; then
  1656. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1657. echo "${ECHO_T}$ac_ct_CC" >&6
  1658. else
  1659. echo "$as_me:$LINENO: result: no" >&5
  1660. echo "${ECHO_T}no" >&6
  1661. fi
  1662. CC=$ac_ct_CC
  1663. else
  1664. CC="$ac_cv_prog_CC"
  1665. fi
  1666. fi
  1667. if test -z "$CC"; then
  1668. # Extract the first word of "cc", so it can be a program name with args.
  1669. set dummy cc; ac_word=$2
  1670. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1671. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1672. if test "${ac_cv_prog_CC+set}" = set; then
  1673. echo $ECHO_N "(cached) $ECHO_C" >&6
  1674. else
  1675. if test -n "$CC"; then
  1676. ac_cv_prog_CC="$CC" # Let the user override the test.
  1677. else
  1678. ac_prog_rejected=no
  1679. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1680. for as_dir in $PATH
  1681. do
  1682. IFS=$as_save_IFS
  1683. test -z "$as_dir" && as_dir=.
  1684. for ac_exec_ext in '' $ac_executable_extensions; do
  1685. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1686. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1687. ac_prog_rejected=yes
  1688. continue
  1689. fi
  1690. ac_cv_prog_CC="cc"
  1691. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1692. break 2
  1693. fi
  1694. done
  1695. done
  1696. if test $ac_prog_rejected = yes; then
  1697. # We found a bogon in the path, so make sure we never use it.
  1698. set dummy $ac_cv_prog_CC
  1699. shift
  1700. if test $# != 0; then
  1701. # We chose a different compiler from the bogus one.
  1702. # However, it has the same basename, so the bogon will be chosen
  1703. # first if we set CC to just the basename; use the full file name.
  1704. shift
  1705. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1706. fi
  1707. fi
  1708. fi
  1709. fi
  1710. CC=$ac_cv_prog_CC
  1711. if test -n "$CC"; then
  1712. echo "$as_me:$LINENO: result: $CC" >&5
  1713. echo "${ECHO_T}$CC" >&6
  1714. else
  1715. echo "$as_me:$LINENO: result: no" >&5
  1716. echo "${ECHO_T}no" >&6
  1717. fi
  1718. fi
  1719. if test -z "$CC"; then
  1720. if test -n "$ac_tool_prefix"; then
  1721. for ac_prog in cl
  1722. do
  1723. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1724. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1725. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1726. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1727. if test "${ac_cv_prog_CC+set}" = set; then
  1728. echo $ECHO_N "(cached) $ECHO_C" >&6
  1729. else
  1730. if test -n "$CC"; then
  1731. ac_cv_prog_CC="$CC" # Let the user override the test.
  1732. else
  1733. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1734. for as_dir in $PATH
  1735. do
  1736. IFS=$as_save_IFS
  1737. test -z "$as_dir" && as_dir=.
  1738. for ac_exec_ext in '' $ac_executable_extensions; do
  1739. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1740. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1741. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1742. break 2
  1743. fi
  1744. done
  1745. done
  1746. fi
  1747. fi
  1748. CC=$ac_cv_prog_CC
  1749. if test -n "$CC"; then
  1750. echo "$as_me:$LINENO: result: $CC" >&5
  1751. echo "${ECHO_T}$CC" >&6
  1752. else
  1753. echo "$as_me:$LINENO: result: no" >&5
  1754. echo "${ECHO_T}no" >&6
  1755. fi
  1756. test -n "$CC" && break
  1757. done
  1758. fi
  1759. if test -z "$CC"; then
  1760. ac_ct_CC=$CC
  1761. for ac_prog in cl
  1762. do
  1763. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1764. set dummy $ac_prog; ac_word=$2
  1765. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1766. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1767. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1768. echo $ECHO_N "(cached) $ECHO_C" >&6
  1769. else
  1770. if test -n "$ac_ct_CC"; then
  1771. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1772. else
  1773. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1774. for as_dir in $PATH
  1775. do
  1776. IFS=$as_save_IFS
  1777. test -z "$as_dir" && as_dir=.
  1778. for ac_exec_ext in '' $ac_executable_extensions; do
  1779. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1780. ac_cv_prog_ac_ct_CC="$ac_prog"
  1781. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1782. break 2
  1783. fi
  1784. done
  1785. done
  1786. fi
  1787. fi
  1788. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1789. if test -n "$ac_ct_CC"; then
  1790. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1791. echo "${ECHO_T}$ac_ct_CC" >&6
  1792. else
  1793. echo "$as_me:$LINENO: result: no" >&5
  1794. echo "${ECHO_T}no" >&6
  1795. fi
  1796. test -n "$ac_ct_CC" && break
  1797. done
  1798. CC=$ac_ct_CC
  1799. fi
  1800. fi
  1801. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1802. See \`config.log' for more details." >&5
  1803. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1804. See \`config.log' for more details." >&2;}
  1805. { (exit 1); exit 1; }; }
  1806. # Provide some information about the compiler.
  1807. echo "$as_me:$LINENO:" \
  1808. "checking for C compiler version" >&5
  1809. ac_compiler=`set X $ac_compile; echo $2`
  1810. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1811. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1812. ac_status=$?
  1813. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1814. (exit $ac_status); }
  1815. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1816. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1817. ac_status=$?
  1818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1819. (exit $ac_status); }
  1820. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1821. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1822. ac_status=$?
  1823. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1824. (exit $ac_status); }
  1825. cat >conftest.$ac_ext <<_ACEOF
  1826. /* confdefs.h. */
  1827. _ACEOF
  1828. cat confdefs.h >>conftest.$ac_ext
  1829. cat >>conftest.$ac_ext <<_ACEOF
  1830. /* end confdefs.h. */
  1831. int
  1832. main ()
  1833. {
  1834. ;
  1835. return 0;
  1836. }
  1837. _ACEOF
  1838. ac_clean_files_save=$ac_clean_files
  1839. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1840. # Try to create an executable without -o first, disregard a.out.
  1841. # It will help us diagnose broken compilers, and finding out an intuition
  1842. # of exeext.
  1843. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1844. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  1845. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1846. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1847. (eval $ac_link_default) 2>&5
  1848. ac_status=$?
  1849. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1850. (exit $ac_status); }; then
  1851. # Find the output, starting from the most likely. This scheme is
  1852. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1853. # resort.
  1854. # Be careful to initialize this variable, since it used to be cached.
  1855. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1856. ac_cv_exeext=
  1857. # b.out is created by i960 compilers.
  1858. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1859. do
  1860. test -f "$ac_file" || continue
  1861. case $ac_file in
  1862. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1863. ;;
  1864. conftest.$ac_ext )
  1865. # This is the source file.
  1866. ;;
  1867. [ab].out )
  1868. # We found the default executable, but exeext='' is most
  1869. # certainly right.
  1870. break;;
  1871. *.* )
  1872. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1873. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1874. # but it would be cool to find out if it's true. Does anybody
  1875. # maintain Libtool? --akim.
  1876. export ac_cv_exeext
  1877. break;;
  1878. * )
  1879. break;;
  1880. esac
  1881. done
  1882. else
  1883. echo "$as_me: failed program was:" >&5
  1884. sed 's/^/| /' conftest.$ac_ext >&5
  1885. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1886. See \`config.log' for more details." >&5
  1887. echo "$as_me: error: C compiler cannot create executables
  1888. See \`config.log' for more details." >&2;}
  1889. { (exit 77); exit 77; }; }
  1890. fi
  1891. ac_exeext=$ac_cv_exeext
  1892. echo "$as_me:$LINENO: result: $ac_file" >&5
  1893. echo "${ECHO_T}$ac_file" >&6
  1894. # Check the compiler produces executables we can run. If not, either
  1895. # the compiler is broken, or we cross compile.
  1896. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1897. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1898. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1899. # If not cross compiling, check that we can run a simple program.
  1900. if test "$cross_compiling" != yes; then
  1901. if { ac_try='./$ac_file'
  1902. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1903. (eval $ac_try) 2>&5
  1904. ac_status=$?
  1905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1906. (exit $ac_status); }; }; then
  1907. cross_compiling=no
  1908. else
  1909. if test "$cross_compiling" = maybe; then
  1910. cross_compiling=yes
  1911. else
  1912. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1913. If you meant to cross compile, use \`--host'.
  1914. See \`config.log' for more details." >&5
  1915. echo "$as_me: error: cannot run C compiled programs.
  1916. If you meant to cross compile, use \`--host'.
  1917. See \`config.log' for more details." >&2;}
  1918. { (exit 1); exit 1; }; }
  1919. fi
  1920. fi
  1921. fi
  1922. echo "$as_me:$LINENO: result: yes" >&5
  1923. echo "${ECHO_T}yes" >&6
  1924. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1925. ac_clean_files=$ac_clean_files_save
  1926. # Check the compiler produces executables we can run. If not, either
  1927. # the compiler is broken, or we cross compile.
  1928. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1929. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1930. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1931. echo "${ECHO_T}$cross_compiling" >&6
  1932. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1933. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1934. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1935. (eval $ac_link) 2>&5
  1936. ac_status=$?
  1937. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1938. (exit $ac_status); }; then
  1939. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1940. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1941. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1942. # `rm'.
  1943. for ac_file in conftest.exe conftest conftest.*; do
  1944. test -f "$ac_file" || continue
  1945. case $ac_file in
  1946. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1947. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1948. export ac_cv_exeext
  1949. break;;
  1950. * ) break;;
  1951. esac
  1952. done
  1953. else
  1954. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1955. See \`config.log' for more details." >&5
  1956. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1957. See \`config.log' for more details." >&2;}
  1958. { (exit 1); exit 1; }; }
  1959. fi
  1960. rm -f conftest$ac_cv_exeext
  1961. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1962. echo "${ECHO_T}$ac_cv_exeext" >&6
  1963. rm -f conftest.$ac_ext
  1964. EXEEXT=$ac_cv_exeext
  1965. ac_exeext=$EXEEXT
  1966. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1967. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1968. if test "${ac_cv_objext+set}" = set; then
  1969. echo $ECHO_N "(cached) $ECHO_C" >&6
  1970. else
  1971. cat >conftest.$ac_ext <<_ACEOF
  1972. /* confdefs.h. */
  1973. _ACEOF
  1974. cat confdefs.h >>conftest.$ac_ext
  1975. cat >>conftest.$ac_ext <<_ACEOF
  1976. /* end confdefs.h. */
  1977. int
  1978. main ()
  1979. {
  1980. ;
  1981. return 0;
  1982. }
  1983. _ACEOF
  1984. rm -f conftest.o conftest.obj
  1985. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1986. (eval $ac_compile) 2>&5
  1987. ac_status=$?
  1988. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1989. (exit $ac_status); }; then
  1990. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1991. case $ac_file in
  1992. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1993. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1994. break;;
  1995. esac
  1996. done
  1997. else
  1998. echo "$as_me: failed program was:" >&5
  1999. sed 's/^/| /' conftest.$ac_ext >&5
  2000. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2001. See \`config.log' for more details." >&5
  2002. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2003. See \`config.log' for more details." >&2;}
  2004. { (exit 1); exit 1; }; }
  2005. fi
  2006. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2007. fi
  2008. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2009. echo "${ECHO_T}$ac_cv_objext" >&6
  2010. OBJEXT=$ac_cv_objext
  2011. ac_objext=$OBJEXT
  2012. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2013. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2014. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2015. echo $ECHO_N "(cached) $ECHO_C" >&6
  2016. else
  2017. cat >conftest.$ac_ext <<_ACEOF
  2018. /* confdefs.h. */
  2019. _ACEOF
  2020. cat confdefs.h >>conftest.$ac_ext
  2021. cat >>conftest.$ac_ext <<_ACEOF
  2022. /* end confdefs.h. */
  2023. int
  2024. main ()
  2025. {
  2026. #ifndef __GNUC__
  2027. choke me
  2028. #endif
  2029. ;
  2030. return 0;
  2031. }
  2032. _ACEOF
  2033. rm -f conftest.$ac_objext
  2034. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2035. (eval $ac_compile) 2>conftest.er1
  2036. ac_status=$?
  2037. grep -v '^ *+' conftest.er1 >conftest.err
  2038. rm -f conftest.er1
  2039. cat conftest.err >&5
  2040. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2041. (exit $ac_status); } &&
  2042. { ac_try='test -z "$ac_c_werror_flag"
  2043. || test ! -s conftest.err'
  2044. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2045. (eval $ac_try) 2>&5
  2046. ac_status=$?
  2047. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2048. (exit $ac_status); }; } &&
  2049. { ac_try='test -s conftest.$ac_objext'
  2050. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2051. (eval $ac_try) 2>&5
  2052. ac_status=$?
  2053. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2054. (exit $ac_status); }; }; then
  2055. ac_compiler_gnu=yes
  2056. else
  2057. echo "$as_me: failed program was:" >&5
  2058. sed 's/^/| /' conftest.$ac_ext >&5
  2059. ac_compiler_gnu=no
  2060. fi
  2061. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2062. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2063. fi
  2064. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2065. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2066. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2067. ac_test_CFLAGS=${CFLAGS+set}
  2068. ac_save_CFLAGS=$CFLAGS
  2069. CFLAGS="-g"
  2070. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2071. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2072. if test "${ac_cv_prog_cc_g+set}" = set; then
  2073. echo $ECHO_N "(cached) $ECHO_C" >&6
  2074. else
  2075. cat >conftest.$ac_ext <<_ACEOF
  2076. /* confdefs.h. */
  2077. _ACEOF
  2078. cat confdefs.h >>conftest.$ac_ext
  2079. cat >>conftest.$ac_ext <<_ACEOF
  2080. /* end confdefs.h. */
  2081. int
  2082. main ()
  2083. {
  2084. ;
  2085. return 0;
  2086. }
  2087. _ACEOF
  2088. rm -f conftest.$ac_objext
  2089. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2090. (eval $ac_compile) 2>conftest.er1
  2091. ac_status=$?
  2092. grep -v '^ *+' conftest.er1 >conftest.err
  2093. rm -f conftest.er1
  2094. cat conftest.err >&5
  2095. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2096. (exit $ac_status); } &&
  2097. { ac_try='test -z "$ac_c_werror_flag"
  2098. || test ! -s conftest.err'
  2099. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2100. (eval $ac_try) 2>&5
  2101. ac_status=$?
  2102. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2103. (exit $ac_status); }; } &&
  2104. { ac_try='test -s conftest.$ac_objext'
  2105. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2106. (eval $ac_try) 2>&5
  2107. ac_status=$?
  2108. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2109. (exit $ac_status); }; }; then
  2110. ac_cv_prog_cc_g=yes
  2111. else
  2112. echo "$as_me: failed program was:" >&5
  2113. sed 's/^/| /' conftest.$ac_ext >&5
  2114. ac_cv_prog_cc_g=no
  2115. fi
  2116. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2117. fi
  2118. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2119. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2120. if test "$ac_test_CFLAGS" = set; then
  2121. CFLAGS=$ac_save_CFLAGS
  2122. elif test $ac_cv_prog_cc_g = yes; then
  2123. if test "$GCC" = yes; then
  2124. CFLAGS="-g -O2"
  2125. else
  2126. CFLAGS="-g"
  2127. fi
  2128. else
  2129. if test "$GCC" = yes; then
  2130. CFLAGS="-O2"
  2131. else
  2132. CFLAGS=
  2133. fi
  2134. fi
  2135. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2136. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2137. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2138. echo $ECHO_N "(cached) $ECHO_C" >&6
  2139. else
  2140. ac_cv_prog_cc_stdc=no
  2141. ac_save_CC=$CC
  2142. cat >conftest.$ac_ext <<_ACEOF
  2143. /* confdefs.h. */
  2144. _ACEOF
  2145. cat confdefs.h >>conftest.$ac_ext
  2146. cat >>conftest.$ac_ext <<_ACEOF
  2147. /* end confdefs.h. */
  2148. #include <stdarg.h>
  2149. #include <stdio.h>
  2150. #include <sys/types.h>
  2151. #include <sys/stat.h>
  2152. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2153. struct buf { int x; };
  2154. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2155. static char *e (p, i)
  2156. char **p;
  2157. int i;
  2158. {
  2159. return p[i];
  2160. }
  2161. static char *f (char * (*g) (char **, int), char **p, ...)
  2162. {
  2163. char *s;
  2164. va_list v;
  2165. va_start (v,p);
  2166. s = g (p, va_arg (v,int));
  2167. va_end (v);
  2168. return s;
  2169. }
  2170. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2171. function prototypes and stuff, but not '\xHH' hex character constants.
  2172. These don't provoke an error unfortunately, instead are silently treated
  2173. as 'x'. The following induces an error, until -std1 is added to get
  2174. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2175. array size at least. It's necessary to write '\x00'==0 to get something
  2176. that's true only with -std1. */
  2177. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2178. int test (int i, double x);
  2179. struct s1 {int (*f) (int a);};
  2180. struct s2 {int (*f) (double a);};
  2181. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2182. int argc;
  2183. char **argv;
  2184. int
  2185. main ()
  2186. {
  2187. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2188. ;
  2189. return 0;
  2190. }
  2191. _ACEOF
  2192. # Don't try gcc -ansi; that turns off useful extensions and
  2193. # breaks some systems' header files.
  2194. # AIX -qlanglvl=ansi
  2195. # Ultrix and OSF/1 -std1
  2196. # HP-UX 10.20 and later -Ae
  2197. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2198. # SVR4 -Xc -D__EXTENSIONS__
  2199. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2200. do
  2201. CC="$ac_save_CC $ac_arg"
  2202. rm -f conftest.$ac_objext
  2203. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2204. (eval $ac_compile) 2>conftest.er1
  2205. ac_status=$?
  2206. grep -v '^ *+' conftest.er1 >conftest.err
  2207. rm -f conftest.er1
  2208. cat conftest.err >&5
  2209. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2210. (exit $ac_status); } &&
  2211. { ac_try='test -z "$ac_c_werror_flag"
  2212. || test ! -s conftest.err'
  2213. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2214. (eval $ac_try) 2>&5
  2215. ac_status=$?
  2216. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2217. (exit $ac_status); }; } &&
  2218. { ac_try='test -s conftest.$ac_objext'
  2219. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2220. (eval $ac_try) 2>&5
  2221. ac_status=$?
  2222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2223. (exit $ac_status); }; }; then
  2224. ac_cv_prog_cc_stdc=$ac_arg
  2225. break
  2226. else
  2227. echo "$as_me: failed program was:" >&5
  2228. sed 's/^/| /' conftest.$ac_ext >&5
  2229. fi
  2230. rm -f conftest.err conftest.$ac_objext
  2231. done
  2232. rm -f conftest.$ac_ext conftest.$ac_objext
  2233. CC=$ac_save_CC
  2234. fi
  2235. case "x$ac_cv_prog_cc_stdc" in
  2236. x|xno)
  2237. echo "$as_me:$LINENO: result: none needed" >&5
  2238. echo "${ECHO_T}none needed" >&6 ;;
  2239. *)
  2240. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2241. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2242. CC="$CC $ac_cv_prog_cc_stdc" ;;
  2243. esac
  2244. # Some people use a C++ compiler to compile C. Since we use `exit',
  2245. # in C++ we need to declare it. In case someone uses the same compiler
  2246. # for both compiling C and C++ we need to have the C++ compiler decide
  2247. # the declaration of exit, since it's the most demanding environment.
  2248. cat >conftest.$ac_ext <<_ACEOF
  2249. #ifndef __cplusplus
  2250. choke me
  2251. #endif
  2252. _ACEOF
  2253. rm -f conftest.$ac_objext
  2254. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2255. (eval $ac_compile) 2>conftest.er1
  2256. ac_status=$?
  2257. grep -v '^ *+' conftest.er1 >conftest.err
  2258. rm -f conftest.er1
  2259. cat conftest.err >&5
  2260. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2261. (exit $ac_status); } &&
  2262. { ac_try='test -z "$ac_c_werror_flag"
  2263. || test ! -s conftest.err'
  2264. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2265. (eval $ac_try) 2>&5
  2266. ac_status=$?
  2267. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2268. (exit $ac_status); }; } &&
  2269. { ac_try='test -s conftest.$ac_objext'
  2270. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2271. (eval $ac_try) 2>&5
  2272. ac_status=$?
  2273. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2274. (exit $ac_status); }; }; then
  2275. for ac_declaration in \
  2276. '' \
  2277. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2278. 'extern "C" void std::exit (int); using std::exit;' \
  2279. 'extern "C" void exit (int) throw ();' \
  2280. 'extern "C" void exit (int);' \
  2281. 'void exit (int);'
  2282. do
  2283. cat >conftest.$ac_ext <<_ACEOF
  2284. /* confdefs.h. */
  2285. _ACEOF
  2286. cat confdefs.h >>conftest.$ac_ext
  2287. cat >>conftest.$ac_ext <<_ACEOF
  2288. /* end confdefs.h. */
  2289. $ac_declaration
  2290. #include <stdlib.h>
  2291. int
  2292. main ()
  2293. {
  2294. exit (42);
  2295. ;
  2296. return 0;
  2297. }
  2298. _ACEOF
  2299. rm -f conftest.$ac_objext
  2300. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2301. (eval $ac_compile) 2>conftest.er1
  2302. ac_status=$?
  2303. grep -v '^ *+' conftest.er1 >conftest.err
  2304. rm -f conftest.er1
  2305. cat conftest.err >&5
  2306. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2307. (exit $ac_status); } &&
  2308. { ac_try='test -z "$ac_c_werror_flag"
  2309. || test ! -s conftest.err'
  2310. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2311. (eval $ac_try) 2>&5
  2312. ac_status=$?
  2313. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2314. (exit $ac_status); }; } &&
  2315. { ac_try='test -s conftest.$ac_objext'
  2316. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2317. (eval $ac_try) 2>&5
  2318. ac_status=$?
  2319. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2320. (exit $ac_status); }; }; then
  2321. :
  2322. else
  2323. echo "$as_me: failed program was:" >&5
  2324. sed 's/^/| /' conftest.$ac_ext >&5
  2325. continue
  2326. fi
  2327. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2328. cat >conftest.$ac_ext <<_ACEOF
  2329. /* confdefs.h. */
  2330. _ACEOF
  2331. cat confdefs.h >>conftest.$ac_ext
  2332. cat >>conftest.$ac_ext <<_ACEOF
  2333. /* end confdefs.h. */
  2334. $ac_declaration
  2335. int
  2336. main ()
  2337. {
  2338. exit (42);
  2339. ;
  2340. return 0;
  2341. }
  2342. _ACEOF
  2343. rm -f conftest.$ac_objext
  2344. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2345. (eval $ac_compile) 2>conftest.er1
  2346. ac_status=$?
  2347. grep -v '^ *+' conftest.er1 >conftest.err
  2348. rm -f conftest.er1
  2349. cat conftest.err >&5
  2350. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2351. (exit $ac_status); } &&
  2352. { ac_try='test -z "$ac_c_werror_flag"
  2353. || test ! -s conftest.err'
  2354. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2355. (eval $ac_try) 2>&5
  2356. ac_status=$?
  2357. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2358. (exit $ac_status); }; } &&
  2359. { ac_try='test -s conftest.$ac_objext'
  2360. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2361. (eval $ac_try) 2>&5
  2362. ac_status=$?
  2363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2364. (exit $ac_status); }; }; then
  2365. break
  2366. else
  2367. echo "$as_me: failed program was:" >&5
  2368. sed 's/^/| /' conftest.$ac_ext >&5
  2369. fi
  2370. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2371. done
  2372. rm -f conftest*
  2373. if test -n "$ac_declaration"; then
  2374. echo '#ifdef __cplusplus' >>confdefs.h
  2375. echo $ac_declaration >>confdefs.h
  2376. echo '#endif' >>confdefs.h
  2377. fi
  2378. else
  2379. echo "$as_me: failed program was:" >&5
  2380. sed 's/^/| /' conftest.$ac_ext >&5
  2381. fi
  2382. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2383. ac_ext=c
  2384. ac_cpp='$CPP $CPPFLAGS'
  2385. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2386. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2387. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2388. echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  2389. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
  2390. if test "${lt_cv_path_SED+set}" = set; then
  2391. echo $ECHO_N "(cached) $ECHO_C" >&6
  2392. else
  2393. # Loop through the user's path and test for sed and gsed.
  2394. # Then use that list of sed's as ones to test for truncation.
  2395. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2396. for as_dir in $PATH
  2397. do
  2398. IFS=$as_save_IFS
  2399. test -z "$as_dir" && as_dir=.
  2400. for lt_ac_prog in sed gsed; do
  2401. for ac_exec_ext in '' $ac_executable_extensions; do
  2402. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  2403. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  2404. fi
  2405. done
  2406. done
  2407. done
  2408. lt_ac_max=0
  2409. lt_ac_count=0
  2410. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  2411. # along with /bin/sed that truncates output.
  2412. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  2413. test ! -f $lt_ac_sed && continue
  2414. cat /dev/null > conftest.in
  2415. lt_ac_count=0
  2416. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  2417. # Check for GNU sed and select it if it is found.
  2418. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  2419. lt_cv_path_SED=$lt_ac_sed
  2420. break
  2421. fi
  2422. while true; do
  2423. cat conftest.in conftest.in >conftest.tmp
  2424. mv conftest.tmp conftest.in
  2425. cp conftest.in conftest.nl
  2426. echo >>conftest.nl
  2427. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  2428. cmp -s conftest.out conftest.nl || break
  2429. # 10000 chars as input seems more than enough
  2430. test $lt_ac_count -gt 10 && break
  2431. lt_ac_count=`expr $lt_ac_count + 1`
  2432. if test $lt_ac_count -gt $lt_ac_max; then
  2433. lt_ac_max=$lt_ac_count
  2434. lt_cv_path_SED=$lt_ac_sed
  2435. fi
  2436. done
  2437. done
  2438. fi
  2439. SED=$lt_cv_path_SED
  2440. echo "$as_me:$LINENO: result: $SED" >&5
  2441. echo "${ECHO_T}$SED" >&6
  2442. echo "$as_me:$LINENO: checking for egrep" >&5
  2443. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  2444. if test "${ac_cv_prog_egrep+set}" = set; then
  2445. echo $ECHO_N "(cached) $ECHO_C" >&6
  2446. else
  2447. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2448. then ac_cv_prog_egrep='grep -E'
  2449. else ac_cv_prog_egrep='egrep'
  2450. fi
  2451. fi
  2452. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  2453. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  2454. EGREP=$ac_cv_prog_egrep
  2455. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  2456. if test "${with_gnu_ld+set}" = set; then
  2457. withval="$with_gnu_ld"
  2458. test "$withval" = no || with_gnu_ld=yes
  2459. else
  2460. with_gnu_ld=no
  2461. fi;
  2462. ac_prog=ld
  2463. if test "$GCC" = yes; then
  2464. # Check if gcc -print-prog-name=ld gives a path.
  2465. echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  2466. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  2467. case $host in
  2468. *-*-mingw*)
  2469. # gcc leaves a trailing carriage return which upsets mingw
  2470. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  2471. *)
  2472. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  2473. esac
  2474. case $ac_prog in
  2475. # Accept absolute paths.
  2476. [\\/]* | ?:[\\/]*)
  2477. re_direlt='/[^/][^/]*/\.\./'
  2478. # Canonicalize the pathname of ld
  2479. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  2480. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  2481. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  2482. done
  2483. test -z "$LD" && LD="$ac_prog"
  2484. ;;
  2485. "")
  2486. # If it fails, then pretend we aren't using GCC.
  2487. ac_prog=ld
  2488. ;;
  2489. *)
  2490. # If it is relative, then search for the first ld in PATH.
  2491. with_gnu_ld=unknown
  2492. ;;
  2493. esac
  2494. elif test "$with_gnu_ld" = yes; then
  2495. echo "$as_me:$LINENO: checking for GNU ld" >&5
  2496. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  2497. else
  2498. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  2499. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  2500. fi
  2501. if test "${lt_cv_path_LD+set}" = set; then
  2502. echo $ECHO_N "(cached) $ECHO_C" >&6
  2503. else
  2504. if test -z "$LD"; then
  2505. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2506. for ac_dir in $PATH; do
  2507. IFS="$lt_save_ifs"
  2508. test -z "$ac_dir" && ac_dir=.
  2509. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  2510. lt_cv_path_LD="$ac_dir/$ac_prog"
  2511. # Check to see if the program is GNU ld. I'd rather use --version,
  2512. # but apparently some GNU ld's only accept -v.
  2513. # Break only if it was the GNU/non-GNU ld that we prefer.
  2514. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  2515. *GNU* | *'with BFD'*)
  2516. test "$with_gnu_ld" != no && break
  2517. ;;
  2518. *)
  2519. test "$with_gnu_ld" != yes && break
  2520. ;;
  2521. esac
  2522. fi
  2523. done
  2524. IFS="$lt_save_ifs"
  2525. else
  2526. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  2527. fi
  2528. fi
  2529. LD="$lt_cv_path_LD"
  2530. if test -n "$LD"; then
  2531. echo "$as_me:$LINENO: result: $LD" >&5
  2532. echo "${ECHO_T}$LD" >&6
  2533. else
  2534. echo "$as_me:$LINENO: result: no" >&5
  2535. echo "${ECHO_T}no" >&6
  2536. fi
  2537. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  2538. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  2539. { (exit 1); exit 1; }; }
  2540. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  2541. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  2542. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  2543. echo $ECHO_N "(cached) $ECHO_C" >&6
  2544. else
  2545. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  2546. case `$LD -v 2>&1 </dev/null` in
  2547. *GNU* | *'with BFD'*)
  2548. lt_cv_prog_gnu_ld=yes
  2549. ;;
  2550. *)
  2551. lt_cv_prog_gnu_ld=no
  2552. ;;
  2553. esac
  2554. fi
  2555. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  2556. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  2557. with_gnu_ld=$lt_cv_prog_gnu_ld
  2558. echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  2559. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
  2560. if test "${lt_cv_ld_reload_flag+set}" = set; then
  2561. echo $ECHO_N "(cached) $ECHO_C" >&6
  2562. else
  2563. lt_cv_ld_reload_flag='-r'
  2564. fi
  2565. echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  2566. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
  2567. reload_flag=$lt_cv_ld_reload_flag
  2568. case $reload_flag in
  2569. "" | " "*) ;;
  2570. *) reload_flag=" $reload_flag" ;;
  2571. esac
  2572. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2573. case $host_os in
  2574. darwin*)
  2575. if test "$GCC" = yes; then
  2576. reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
  2577. else
  2578. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2579. fi
  2580. ;;
  2581. esac
  2582. echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  2583. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
  2584. if test "${lt_cv_path_NM+set}" = set; then
  2585. echo $ECHO_N "(cached) $ECHO_C" >&6
  2586. else
  2587. if test -n "$NM"; then
  2588. # Let the user override the test.
  2589. lt_cv_path_NM="$NM"
  2590. else
  2591. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2592. for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  2593. IFS="$lt_save_ifs"
  2594. test -z "$ac_dir" && ac_dir=.
  2595. tmp_nm="$ac_dir/${ac_tool_prefix}nm"
  2596. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  2597. # Check to see if the nm accepts a BSD-compat flag.
  2598. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  2599. # nm: unknown option "B" ignored
  2600. # Tru64's nm complains that /dev/null is an invalid object file
  2601. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  2602. */dev/null* | *'Invalid file or object type'*)
  2603. lt_cv_path_NM="$tmp_nm -B"
  2604. break
  2605. ;;
  2606. *)
  2607. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  2608. */dev/null*)
  2609. lt_cv_path_NM="$tmp_nm -p"
  2610. break
  2611. ;;
  2612. *)
  2613. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  2614. continue # so that we can try to find one that supports BSD flags
  2615. ;;
  2616. esac
  2617. esac
  2618. fi
  2619. done
  2620. IFS="$lt_save_ifs"
  2621. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  2622. fi
  2623. fi
  2624. echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  2625. echo "${ECHO_T}$lt_cv_path_NM" >&6
  2626. NM="$lt_cv_path_NM"
  2627. echo "$as_me:$LINENO: checking whether ln -s works" >&5
  2628. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  2629. LN_S=$as_ln_s
  2630. if test "$LN_S" = "ln -s"; then
  2631. echo "$as_me:$LINENO: result: yes" >&5
  2632. echo "${ECHO_T}yes" >&6
  2633. else
  2634. echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  2635. echo "${ECHO_T}no, using $LN_S" >&6
  2636. fi
  2637. echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  2638. echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
  2639. if test "${lt_cv_deplibs_check_method+set}" = set; then
  2640. echo $ECHO_N "(cached) $ECHO_C" >&6
  2641. else
  2642. lt_cv_file_magic_cmd='$MAGIC_CMD'
  2643. lt_cv_file_magic_test_file=
  2644. lt_cv_deplibs_check_method='unknown'
  2645. # Need to set the preceding variable on all platforms that support
  2646. # interlibrary dependencies.
  2647. # 'none' -- dependencies not supported.
  2648. # `unknown' -- same as none, but documents that we really don't know.
  2649. # 'pass_all' -- all dependencies passed with no checks.
  2650. # 'test_compile' -- check by making test program.
  2651. # 'file_magic [[regex]]' -- check by looking for files in library path
  2652. # which responds to the $file_magic_cmd with a given extended regex.
  2653. # If you have `file' or equivalent on your system and you're not sure
  2654. # whether `pass_all' will *always* work, you probably want this one.
  2655. case $host_os in
  2656. aix4* | aix5*)
  2657. lt_cv_deplibs_check_method=pass_all
  2658. ;;
  2659. beos*)
  2660. lt_cv_deplibs_check_method=pass_all
  2661. ;;
  2662. bsdi[45]*)
  2663. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  2664. lt_cv_file_magic_cmd='/usr/bin/file -L'
  2665. lt_cv_file_magic_test_file=/shlib/libc.so
  2666. ;;
  2667. cygwin*)
  2668. # func_win32_libid is a shell function defined in ltmain.sh
  2669. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  2670. lt_cv_file_magic_cmd='func_win32_libid'
  2671. ;;
  2672. mingw* | pw32*)
  2673. # Base MSYS/MinGW do not provide the 'file' command needed by
  2674. # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  2675. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  2676. lt_cv_file_magic_cmd='$OBJDUMP -f'
  2677. ;;
  2678. darwin* | rhapsody*)
  2679. lt_cv_deplibs_check_method=pass_all
  2680. ;;
  2681. freebsd* | kfreebsd*-gnu | dragonfly*)
  2682. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  2683. case $host_cpu in
  2684. i*86 )
  2685. # Not sure whether the presence of OpenBSD here was a mistake.
  2686. # Let's accept both of them until this is cleared up.
  2687. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  2688. lt_cv_file_magic_cmd=/usr/bin/file
  2689. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  2690. ;;
  2691. esac
  2692. else
  2693. lt_cv_deplibs_check_method=pass_all
  2694. fi
  2695. ;;
  2696. gnu*)
  2697. lt_cv_deplibs_check_method=pass_all
  2698. ;;
  2699. hpux10.20* | hpux11*)
  2700. lt_cv_file_magic_cmd=/usr/bin/file
  2701. case "$host_cpu" in
  2702. ia64*)
  2703. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  2704. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  2705. ;;
  2706. hppa*64*)
  2707. 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]'
  2708. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  2709. ;;
  2710. *)
  2711. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  2712. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  2713. ;;
  2714. esac
  2715. ;;
  2716. irix5* | irix6* | nonstopux*)
  2717. case $LD in
  2718. *-32|*"-32 ") libmagic=32-bit;;
  2719. *-n32|*"-n32 ") libmagic=N32;;
  2720. *-64|*"-64 ") libmagic=64-bit;;
  2721. *) libmagic=never-match;;
  2722. esac
  2723. lt_cv_deplibs_check_method=pass_all
  2724. ;;
  2725. # This must be Linux ELF.
  2726. linux*)
  2727. lt_cv_deplibs_check_method=pass_all
  2728. ;;
  2729. netbsd*)
  2730. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  2731. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  2732. else
  2733. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  2734. fi
  2735. ;;
  2736. newos6*)
  2737. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  2738. lt_cv_file_magic_cmd=/usr/bin/file
  2739. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  2740. ;;
  2741. nto-qnx*)
  2742. lt_cv_deplibs_check_method=unknown
  2743. ;;
  2744. openbsd*)
  2745. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2746. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  2747. else
  2748. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  2749. fi
  2750. ;;
  2751. osf3* | osf4* | osf5*)
  2752. lt_cv_deplibs_check_method=pass_all
  2753. ;;
  2754. sco3.2v5*)
  2755. lt_cv_deplibs_check_method=pass_all
  2756. ;;
  2757. solaris*)
  2758. lt_cv_deplibs_check_method=pass_all
  2759. ;;
  2760. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  2761. case $host_vendor in
  2762. motorola)
  2763. 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]'
  2764. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  2765. ;;
  2766. ncr)
  2767. lt_cv_deplibs_check_method=pass_all
  2768. ;;
  2769. sequent)
  2770. lt_cv_file_magic_cmd='/bin/file'
  2771. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  2772. ;;
  2773. sni)
  2774. lt_cv_file_magic_cmd='/bin/file'
  2775. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  2776. lt_cv_file_magic_test_file=/lib/libc.so
  2777. ;;
  2778. siemens)
  2779. lt_cv_deplibs_check_method=pass_all
  2780. ;;
  2781. esac
  2782. ;;
  2783. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
  2784. lt_cv_deplibs_check_method=pass_all
  2785. ;;
  2786. esac
  2787. fi
  2788. echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  2789. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
  2790. file_magic_cmd=$lt_cv_file_magic_cmd
  2791. deplibs_check_method=$lt_cv_deplibs_check_method
  2792. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  2793. # If no C compiler was specified, use CC.
  2794. LTCC=${LTCC-"$CC"}
  2795. # Allow CC to be a program name with arguments.
  2796. compiler=$CC
  2797. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  2798. if test "${enable_libtool_lock+set}" = set; then
  2799. enableval="$enable_libtool_lock"
  2800. fi;
  2801. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  2802. # Some flags need to be propagated to the compiler or linker for good
  2803. # libtool support.
  2804. case $host in
  2805. ia64-*-hpux*)
  2806. # Find out which ABI we are using.
  2807. echo 'int i;' > conftest.$ac_ext
  2808. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2809. (eval $ac_compile) 2>&5
  2810. ac_status=$?
  2811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2812. (exit $ac_status); }; then
  2813. case `/usr/bin/file conftest.$ac_objext` in
  2814. *ELF-32*)
  2815. HPUX_IA64_MODE="32"
  2816. ;;
  2817. *ELF-64*)
  2818. HPUX_IA64_MODE="64"
  2819. ;;
  2820. esac
  2821. fi
  2822. rm -rf conftest*
  2823. ;;
  2824. *-*-irix6*)
  2825. # Find out which ABI we are using.
  2826. echo '#line 3138 "configure"' > conftest.$ac_ext
  2827. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2828. (eval $ac_compile) 2>&5
  2829. ac_status=$?
  2830. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2831. (exit $ac_status); }; then
  2832. if test "$lt_cv_prog_gnu_ld" = yes; then
  2833. case `/usr/bin/file conftest.$ac_objext` in
  2834. *32-bit*)
  2835. LD="${LD-ld} -melf32bsmip"
  2836. ;;
  2837. *N32*)
  2838. LD="${LD-ld} -melf32bmipn32"
  2839. ;;
  2840. *64-bit*)
  2841. LD="${LD-ld} -melf64bmip"
  2842. ;;
  2843. esac
  2844. else
  2845. case `/usr/bin/file conftest.$ac_objext` in
  2846. *32-bit*)
  2847. LD="${LD-ld} -32"
  2848. ;;
  2849. *N32*)
  2850. LD="${LD-ld} -n32"
  2851. ;;
  2852. *64-bit*)
  2853. LD="${LD-ld} -64"
  2854. ;;
  2855. esac
  2856. fi
  2857. fi
  2858. rm -rf conftest*
  2859. ;;
  2860. x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  2861. # Find out which ABI we are using.
  2862. echo 'int i;' > conftest.$ac_ext
  2863. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2864. (eval $ac_compile) 2>&5
  2865. ac_status=$?
  2866. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2867. (exit $ac_status); }; then
  2868. case "`/usr/bin/file conftest.o`" in
  2869. *32-bit*)
  2870. case $host in
  2871. x86_64-*linux*)
  2872. LD="${LD-ld} -m elf_i386"
  2873. ;;
  2874. ppc64-*linux*|powerpc64-*linux*)
  2875. LD="${LD-ld} -m elf32ppclinux"
  2876. ;;
  2877. s390x-*linux*)
  2878. LD="${LD-ld} -m elf_s390"
  2879. ;;
  2880. sparc64-*linux*)
  2881. LD="${LD-ld} -m elf32_sparc"
  2882. ;;
  2883. esac
  2884. ;;
  2885. *64-bit*)
  2886. case $host in
  2887. x86_64-*linux*)
  2888. LD="${LD-ld} -m elf_x86_64"
  2889. ;;
  2890. ppc*-*linux*|powerpc*-*linux*)
  2891. LD="${LD-ld} -m elf64ppc"
  2892. ;;
  2893. s390*-*linux*)
  2894. LD="${LD-ld} -m elf64_s390"
  2895. ;;
  2896. sparc*-*linux*)
  2897. LD="${LD-ld} -m elf64_sparc"
  2898. ;;
  2899. esac
  2900. ;;
  2901. esac
  2902. fi
  2903. rm -rf conftest*
  2904. ;;
  2905. *-*-sco3.2v5*)
  2906. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  2907. SAVE_CFLAGS="$CFLAGS"
  2908. CFLAGS="$CFLAGS -belf"
  2909. echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  2910. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
  2911. if test "${lt_cv_cc_needs_belf+set}" = set; then
  2912. echo $ECHO_N "(cached) $ECHO_C" >&6
  2913. else
  2914. ac_ext=c
  2915. ac_cpp='$CPP $CPPFLAGS'
  2916. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2917. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2918. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2919. cat >conftest.$ac_ext <<_ACEOF
  2920. /* confdefs.h. */
  2921. _ACEOF
  2922. cat confdefs.h >>conftest.$ac_ext
  2923. cat >>conftest.$ac_ext <<_ACEOF
  2924. /* end confdefs.h. */
  2925. int
  2926. main ()
  2927. {
  2928. ;
  2929. return 0;
  2930. }
  2931. _ACEOF
  2932. rm -f conftest.$ac_objext conftest$ac_exeext
  2933. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2934. (eval $ac_link) 2>conftest.er1
  2935. ac_status=$?
  2936. grep -v '^ *+' conftest.er1 >conftest.err
  2937. rm -f conftest.er1
  2938. cat conftest.err >&5
  2939. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2940. (exit $ac_status); } &&
  2941. { ac_try='test -z "$ac_c_werror_flag"
  2942. || test ! -s conftest.err'
  2943. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2944. (eval $ac_try) 2>&5
  2945. ac_status=$?
  2946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2947. (exit $ac_status); }; } &&
  2948. { ac_try='test -s conftest$ac_exeext'
  2949. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2950. (eval $ac_try) 2>&5
  2951. ac_status=$?
  2952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2953. (exit $ac_status); }; }; then
  2954. lt_cv_cc_needs_belf=yes
  2955. else
  2956. echo "$as_me: failed program was:" >&5
  2957. sed 's/^/| /' conftest.$ac_ext >&5
  2958. lt_cv_cc_needs_belf=no
  2959. fi
  2960. rm -f conftest.err conftest.$ac_objext \
  2961. conftest$ac_exeext conftest.$ac_ext
  2962. ac_ext=c
  2963. ac_cpp='$CPP $CPPFLAGS'
  2964. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2965. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2966. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2967. fi
  2968. echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  2969. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  2970. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  2971. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  2972. CFLAGS="$SAVE_CFLAGS"
  2973. fi
  2974. ;;
  2975. esac
  2976. need_locks="$enable_libtool_lock"
  2977. ac_ext=c
  2978. ac_cpp='$CPP $CPPFLAGS'
  2979. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2980. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2981. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2982. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2983. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  2984. # On Suns, sometimes $CPP names a directory.
  2985. if test -n "$CPP" && test -d "$CPP"; then
  2986. CPP=
  2987. fi
  2988. if test -z "$CPP"; then
  2989. if test "${ac_cv_prog_CPP+set}" = set; then
  2990. echo $ECHO_N "(cached) $ECHO_C" >&6
  2991. else
  2992. # Double quotes because CPP needs to be expanded
  2993. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2994. do
  2995. ac_preproc_ok=false
  2996. for ac_c_preproc_warn_flag in '' yes
  2997. do
  2998. # Use a header file that comes with gcc, so configuring glibc
  2999. # with a fresh cross-compiler works.
  3000. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3001. # <limits.h> exists even on freestanding compilers.
  3002. # On the NeXT, cc -E runs the code through the compiler's parser,
  3003. # not just through cpp. "Syntax error" is here to catch this case.
  3004. cat >conftest.$ac_ext <<_ACEOF
  3005. /* confdefs.h. */
  3006. _ACEOF
  3007. cat confdefs.h >>conftest.$ac_ext
  3008. cat >>conftest.$ac_ext <<_ACEOF
  3009. /* end confdefs.h. */
  3010. #ifdef __STDC__
  3011. # include <limits.h>
  3012. #else
  3013. # include <assert.h>
  3014. #endif
  3015. Syntax error
  3016. _ACEOF
  3017. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3018. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3019. ac_status=$?
  3020. grep -v '^ *+' conftest.er1 >conftest.err
  3021. rm -f conftest.er1
  3022. cat conftest.err >&5
  3023. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3024. (exit $ac_status); } >/dev/null; then
  3025. if test -s conftest.err; then
  3026. ac_cpp_err=$ac_c_preproc_warn_flag
  3027. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3028. else
  3029. ac_cpp_err=
  3030. fi
  3031. else
  3032. ac_cpp_err=yes
  3033. fi
  3034. if test -z "$ac_cpp_err"; then
  3035. :
  3036. else
  3037. echo "$as_me: failed program was:" >&5
  3038. sed 's/^/| /' conftest.$ac_ext >&5
  3039. # Broken: fails on valid input.
  3040. continue
  3041. fi
  3042. rm -f conftest.err conftest.$ac_ext
  3043. # OK, works on sane cases. Now check whether non-existent headers
  3044. # can be detected and how.
  3045. cat >conftest.$ac_ext <<_ACEOF
  3046. /* confdefs.h. */
  3047. _ACEOF
  3048. cat confdefs.h >>conftest.$ac_ext
  3049. cat >>conftest.$ac_ext <<_ACEOF
  3050. /* end confdefs.h. */
  3051. #include <ac_nonexistent.h>
  3052. _ACEOF
  3053. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3054. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3055. ac_status=$?
  3056. grep -v '^ *+' conftest.er1 >conftest.err
  3057. rm -f conftest.er1
  3058. cat conftest.err >&5
  3059. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3060. (exit $ac_status); } >/dev/null; then
  3061. if test -s conftest.err; then
  3062. ac_cpp_err=$ac_c_preproc_warn_flag
  3063. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3064. else
  3065. ac_cpp_err=
  3066. fi
  3067. else
  3068. ac_cpp_err=yes
  3069. fi
  3070. if test -z "$ac_cpp_err"; then
  3071. # Broken: success on invalid input.
  3072. continue
  3073. else
  3074. echo "$as_me: failed program was:" >&5
  3075. sed 's/^/| /' conftest.$ac_ext >&5
  3076. # Passes both tests.
  3077. ac_preproc_ok=:
  3078. break
  3079. fi
  3080. rm -f conftest.err conftest.$ac_ext
  3081. done
  3082. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3083. rm -f conftest.err conftest.$ac_ext
  3084. if $ac_preproc_ok; then
  3085. break
  3086. fi
  3087. done
  3088. ac_cv_prog_CPP=$CPP
  3089. fi
  3090. CPP=$ac_cv_prog_CPP
  3091. else
  3092. ac_cv_prog_CPP=$CPP
  3093. fi
  3094. echo "$as_me:$LINENO: result: $CPP" >&5
  3095. echo "${ECHO_T}$CPP" >&6
  3096. ac_preproc_ok=false
  3097. for ac_c_preproc_warn_flag in '' yes
  3098. do
  3099. # Use a header file that comes with gcc, so configuring glibc
  3100. # with a fresh cross-compiler works.
  3101. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3102. # <limits.h> exists even on freestanding compilers.
  3103. # On the NeXT, cc -E runs the code through the compiler's parser,
  3104. # not just through cpp. "Syntax error" is here to catch this case.
  3105. cat >conftest.$ac_ext <<_ACEOF
  3106. /* confdefs.h. */
  3107. _ACEOF
  3108. cat confdefs.h >>conftest.$ac_ext
  3109. cat >>conftest.$ac_ext <<_ACEOF
  3110. /* end confdefs.h. */
  3111. #ifdef __STDC__
  3112. # include <limits.h>
  3113. #else
  3114. # include <assert.h>
  3115. #endif
  3116. Syntax error
  3117. _ACEOF
  3118. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3119. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3120. ac_status=$?
  3121. grep -v '^ *+' conftest.er1 >conftest.err
  3122. rm -f conftest.er1
  3123. cat conftest.err >&5
  3124. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3125. (exit $ac_status); } >/dev/null; then
  3126. if test -s conftest.err; then
  3127. ac_cpp_err=$ac_c_preproc_warn_flag
  3128. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3129. else
  3130. ac_cpp_err=
  3131. fi
  3132. else
  3133. ac_cpp_err=yes
  3134. fi
  3135. if test -z "$ac_cpp_err"; then
  3136. :
  3137. else
  3138. echo "$as_me: failed program was:" >&5
  3139. sed 's/^/| /' conftest.$ac_ext >&5
  3140. # Broken: fails on valid input.
  3141. continue
  3142. fi
  3143. rm -f conftest.err conftest.$ac_ext
  3144. # OK, works on sane cases. Now check whether non-existent headers
  3145. # can be detected and how.
  3146. cat >conftest.$ac_ext <<_ACEOF
  3147. /* confdefs.h. */
  3148. _ACEOF
  3149. cat confdefs.h >>conftest.$ac_ext
  3150. cat >>conftest.$ac_ext <<_ACEOF
  3151. /* end confdefs.h. */
  3152. #include <ac_nonexistent.h>
  3153. _ACEOF
  3154. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3155. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3156. ac_status=$?
  3157. grep -v '^ *+' conftest.er1 >conftest.err
  3158. rm -f conftest.er1
  3159. cat conftest.err >&5
  3160. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3161. (exit $ac_status); } >/dev/null; then
  3162. if test -s conftest.err; then
  3163. ac_cpp_err=$ac_c_preproc_warn_flag
  3164. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3165. else
  3166. ac_cpp_err=
  3167. fi
  3168. else
  3169. ac_cpp_err=yes
  3170. fi
  3171. if test -z "$ac_cpp_err"; then
  3172. # Broken: success on invalid input.
  3173. continue
  3174. else
  3175. echo "$as_me: failed program was:" >&5
  3176. sed 's/^/| /' conftest.$ac_ext >&5
  3177. # Passes both tests.
  3178. ac_preproc_ok=:
  3179. break
  3180. fi
  3181. rm -f conftest.err conftest.$ac_ext
  3182. done
  3183. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3184. rm -f conftest.err conftest.$ac_ext
  3185. if $ac_preproc_ok; then
  3186. :
  3187. else
  3188. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3189. See \`config.log' for more details." >&5
  3190. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3191. See \`config.log' for more details." >&2;}
  3192. { (exit 1); exit 1; }; }
  3193. fi
  3194. ac_ext=c
  3195. ac_cpp='$CPP $CPPFLAGS'
  3196. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3197. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3198. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3199. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3200. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  3201. if test "${ac_cv_header_stdc+set}" = set; then
  3202. echo $ECHO_N "(cached) $ECHO_C" >&6
  3203. else
  3204. cat >conftest.$ac_ext <<_ACEOF
  3205. /* confdefs.h. */
  3206. _ACEOF
  3207. cat confdefs.h >>conftest.$ac_ext
  3208. cat >>conftest.$ac_ext <<_ACEOF
  3209. /* end confdefs.h. */
  3210. #include <stdlib.h>
  3211. #include <stdarg.h>
  3212. #include <string.h>
  3213. #include <float.h>
  3214. int
  3215. main ()
  3216. {
  3217. ;
  3218. return 0;
  3219. }
  3220. _ACEOF
  3221. rm -f conftest.$ac_objext
  3222. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3223. (eval $ac_compile) 2>conftest.er1
  3224. ac_status=$?
  3225. grep -v '^ *+' conftest.er1 >conftest.err
  3226. rm -f conftest.er1
  3227. cat conftest.err >&5
  3228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3229. (exit $ac_status); } &&
  3230. { ac_try='test -z "$ac_c_werror_flag"
  3231. || test ! -s conftest.err'
  3232. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3233. (eval $ac_try) 2>&5
  3234. ac_status=$?
  3235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3236. (exit $ac_status); }; } &&
  3237. { ac_try='test -s conftest.$ac_objext'
  3238. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3239. (eval $ac_try) 2>&5
  3240. ac_status=$?
  3241. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3242. (exit $ac_status); }; }; then
  3243. ac_cv_header_stdc=yes
  3244. else
  3245. echo "$as_me: failed program was:" >&5
  3246. sed 's/^/| /' conftest.$ac_ext >&5
  3247. ac_cv_header_stdc=no
  3248. fi
  3249. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3250. if test $ac_cv_header_stdc = yes; then
  3251. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3252. cat >conftest.$ac_ext <<_ACEOF
  3253. /* confdefs.h. */
  3254. _ACEOF
  3255. cat confdefs.h >>conftest.$ac_ext
  3256. cat >>conftest.$ac_ext <<_ACEOF
  3257. /* end confdefs.h. */
  3258. #include <string.h>
  3259. _ACEOF
  3260. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3261. $EGREP "memchr" >/dev/null 2>&1; then
  3262. :
  3263. else
  3264. ac_cv_header_stdc=no
  3265. fi
  3266. rm -f conftest*
  3267. fi
  3268. if test $ac_cv_header_stdc = yes; then
  3269. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3270. cat >conftest.$ac_ext <<_ACEOF
  3271. /* confdefs.h. */
  3272. _ACEOF
  3273. cat confdefs.h >>conftest.$ac_ext
  3274. cat >>conftest.$ac_ext <<_ACEOF
  3275. /* end confdefs.h. */
  3276. #include <stdlib.h>
  3277. _ACEOF
  3278. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3279. $EGREP "free" >/dev/null 2>&1; then
  3280. :
  3281. else
  3282. ac_cv_header_stdc=no
  3283. fi
  3284. rm -f conftest*
  3285. fi
  3286. if test $ac_cv_header_stdc = yes; then
  3287. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3288. if test "$cross_compiling" = yes; then
  3289. :
  3290. else
  3291. cat >conftest.$ac_ext <<_ACEOF
  3292. /* confdefs.h. */
  3293. _ACEOF
  3294. cat confdefs.h >>conftest.$ac_ext
  3295. cat >>conftest.$ac_ext <<_ACEOF
  3296. /* end confdefs.h. */
  3297. #include <ctype.h>
  3298. #if ((' ' & 0x0FF) == 0x020)
  3299. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3300. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3301. #else
  3302. # define ISLOWER(c) \
  3303. (('a' <= (c) && (c) <= 'i') \
  3304. || ('j' <= (c) && (c) <= 'r') \
  3305. || ('s' <= (c) && (c) <= 'z'))
  3306. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3307. #endif
  3308. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3309. int
  3310. main ()
  3311. {
  3312. int i;
  3313. for (i = 0; i < 256; i++)
  3314. if (XOR (islower (i), ISLOWER (i))
  3315. || toupper (i) != TOUPPER (i))
  3316. exit(2);
  3317. exit (0);
  3318. }
  3319. _ACEOF
  3320. rm -f conftest$ac_exeext
  3321. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3322. (eval $ac_link) 2>&5
  3323. ac_status=$?
  3324. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3325. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3326. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3327. (eval $ac_try) 2>&5
  3328. ac_status=$?
  3329. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3330. (exit $ac_status); }; }; then
  3331. :
  3332. else
  3333. echo "$as_me: program exited with status $ac_status" >&5
  3334. echo "$as_me: failed program was:" >&5
  3335. sed 's/^/| /' conftest.$ac_ext >&5
  3336. ( exit $ac_status )
  3337. ac_cv_header_stdc=no
  3338. fi
  3339. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3340. fi
  3341. fi
  3342. fi
  3343. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3344. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  3345. if test $ac_cv_header_stdc = yes; then
  3346. cat >>confdefs.h <<\_ACEOF
  3347. #define STDC_HEADERS 1
  3348. _ACEOF
  3349. fi
  3350. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3351. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3352. inttypes.h stdint.h unistd.h
  3353. do
  3354. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3355. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3356. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3357. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3358. echo $ECHO_N "(cached) $ECHO_C" >&6
  3359. else
  3360. cat >conftest.$ac_ext <<_ACEOF
  3361. /* confdefs.h. */
  3362. _ACEOF
  3363. cat confdefs.h >>conftest.$ac_ext
  3364. cat >>conftest.$ac_ext <<_ACEOF
  3365. /* end confdefs.h. */
  3366. $ac_includes_default
  3367. #include <$ac_header>
  3368. _ACEOF
  3369. rm -f conftest.$ac_objext
  3370. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3371. (eval $ac_compile) 2>conftest.er1
  3372. ac_status=$?
  3373. grep -v '^ *+' conftest.er1 >conftest.err
  3374. rm -f conftest.er1
  3375. cat conftest.err >&5
  3376. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3377. (exit $ac_status); } &&
  3378. { ac_try='test -z "$ac_c_werror_flag"
  3379. || test ! -s conftest.err'
  3380. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3381. (eval $ac_try) 2>&5
  3382. ac_status=$?
  3383. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3384. (exit $ac_status); }; } &&
  3385. { ac_try='test -s conftest.$ac_objext'
  3386. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3387. (eval $ac_try) 2>&5
  3388. ac_status=$?
  3389. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3390. (exit $ac_status); }; }; then
  3391. eval "$as_ac_Header=yes"
  3392. else
  3393. echo "$as_me: failed program was:" >&5
  3394. sed 's/^/| /' conftest.$ac_ext >&5
  3395. eval "$as_ac_Header=no"
  3396. fi
  3397. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3398. fi
  3399. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3400. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3401. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3402. cat >>confdefs.h <<_ACEOF
  3403. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3404. _ACEOF
  3405. fi
  3406. done
  3407. for ac_header in dlfcn.h
  3408. do
  3409. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3410. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3411. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3412. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3413. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3414. echo $ECHO_N "(cached) $ECHO_C" >&6
  3415. fi
  3416. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3417. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3418. else
  3419. # Is the header compilable?
  3420. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  3421. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  3422. cat >conftest.$ac_ext <<_ACEOF
  3423. /* confdefs.h. */
  3424. _ACEOF
  3425. cat confdefs.h >>conftest.$ac_ext
  3426. cat >>conftest.$ac_ext <<_ACEOF
  3427. /* end confdefs.h. */
  3428. $ac_includes_default
  3429. #include <$ac_header>
  3430. _ACEOF
  3431. rm -f conftest.$ac_objext
  3432. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3433. (eval $ac_compile) 2>conftest.er1
  3434. ac_status=$?
  3435. grep -v '^ *+' conftest.er1 >conftest.err
  3436. rm -f conftest.er1
  3437. cat conftest.err >&5
  3438. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3439. (exit $ac_status); } &&
  3440. { ac_try='test -z "$ac_c_werror_flag"
  3441. || test ! -s conftest.err'
  3442. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3443. (eval $ac_try) 2>&5
  3444. ac_status=$?
  3445. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3446. (exit $ac_status); }; } &&
  3447. { ac_try='test -s conftest.$ac_objext'
  3448. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3449. (eval $ac_try) 2>&5
  3450. ac_status=$?
  3451. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3452. (exit $ac_status); }; }; then
  3453. ac_header_compiler=yes
  3454. else
  3455. echo "$as_me: failed program was:" >&5
  3456. sed 's/^/| /' conftest.$ac_ext >&5
  3457. ac_header_compiler=no
  3458. fi
  3459. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3460. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3461. echo "${ECHO_T}$ac_header_compiler" >&6
  3462. # Is the header present?
  3463. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  3464. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  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 <$ac_header>
  3472. _ACEOF
  3473. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3474. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3475. ac_status=$?
  3476. grep -v '^ *+' conftest.er1 >conftest.err
  3477. rm -f conftest.er1
  3478. cat conftest.err >&5
  3479. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3480. (exit $ac_status); } >/dev/null; then
  3481. if test -s conftest.err; then
  3482. ac_cpp_err=$ac_c_preproc_warn_flag
  3483. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3484. else
  3485. ac_cpp_err=
  3486. fi
  3487. else
  3488. ac_cpp_err=yes
  3489. fi
  3490. if test -z "$ac_cpp_err"; then
  3491. ac_header_preproc=yes
  3492. else
  3493. echo "$as_me: failed program was:" >&5
  3494. sed 's/^/| /' conftest.$ac_ext >&5
  3495. ac_header_preproc=no
  3496. fi
  3497. rm -f conftest.err conftest.$ac_ext
  3498. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3499. echo "${ECHO_T}$ac_header_preproc" >&6
  3500. # So? What about this header?
  3501. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  3502. yes:no: )
  3503. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  3504. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3505. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  3506. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  3507. ac_header_preproc=yes
  3508. ;;
  3509. no:yes:* )
  3510. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  3511. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  3512. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  3513. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  3514. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  3515. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  3516. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  3517. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  3518. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  3519. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  3520. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  3521. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  3522. (
  3523. cat <<\_ASBOX
  3524. ## ------------------------------------------ ##
  3525. ## Report this to the AC_PACKAGE_NAME lists. ##
  3526. ## ------------------------------------------ ##
  3527. _ASBOX
  3528. ) |
  3529. sed "s/^/$as_me: WARNING: /" >&2
  3530. ;;
  3531. esac
  3532. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3533. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3534. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3535. echo $ECHO_N "(cached) $ECHO_C" >&6
  3536. else
  3537. eval "$as_ac_Header=\$ac_header_preproc"
  3538. fi
  3539. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3540. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3541. fi
  3542. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3543. cat >>confdefs.h <<_ACEOF
  3544. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3545. _ACEOF
  3546. fi
  3547. done
  3548. ac_ext=cc
  3549. ac_cpp='$CXXCPP $CPPFLAGS'
  3550. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3551. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3552. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3553. if test -n "$ac_tool_prefix"; then
  3554. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  3555. do
  3556. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3557. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3558. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3559. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3560. if test "${ac_cv_prog_CXX+set}" = set; then
  3561. echo $ECHO_N "(cached) $ECHO_C" >&6
  3562. else
  3563. if test -n "$CXX"; then
  3564. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3565. else
  3566. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3567. for as_dir in $PATH
  3568. do
  3569. IFS=$as_save_IFS
  3570. test -z "$as_dir" && as_dir=.
  3571. for ac_exec_ext in '' $ac_executable_extensions; do
  3572. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3573. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3574. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3575. break 2
  3576. fi
  3577. done
  3578. done
  3579. fi
  3580. fi
  3581. CXX=$ac_cv_prog_CXX
  3582. if test -n "$CXX"; then
  3583. echo "$as_me:$LINENO: result: $CXX" >&5
  3584. echo "${ECHO_T}$CXX" >&6
  3585. else
  3586. echo "$as_me:$LINENO: result: no" >&5
  3587. echo "${ECHO_T}no" >&6
  3588. fi
  3589. test -n "$CXX" && break
  3590. done
  3591. fi
  3592. if test -z "$CXX"; then
  3593. ac_ct_CXX=$CXX
  3594. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  3595. do
  3596. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3597. set dummy $ac_prog; ac_word=$2
  3598. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3599. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3600. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  3601. echo $ECHO_N "(cached) $ECHO_C" >&6
  3602. else
  3603. if test -n "$ac_ct_CXX"; then
  3604. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3605. else
  3606. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3607. for as_dir in $PATH
  3608. do
  3609. IFS=$as_save_IFS
  3610. test -z "$as_dir" && as_dir=.
  3611. for ac_exec_ext in '' $ac_executable_extensions; do
  3612. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3613. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3614. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3615. break 2
  3616. fi
  3617. done
  3618. done
  3619. fi
  3620. fi
  3621. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3622. if test -n "$ac_ct_CXX"; then
  3623. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  3624. echo "${ECHO_T}$ac_ct_CXX" >&6
  3625. else
  3626. echo "$as_me:$LINENO: result: no" >&5
  3627. echo "${ECHO_T}no" >&6
  3628. fi
  3629. test -n "$ac_ct_CXX" && break
  3630. done
  3631. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  3632. CXX=$ac_ct_CXX
  3633. fi
  3634. # Provide some information about the compiler.
  3635. echo "$as_me:$LINENO:" \
  3636. "checking for C++ compiler version" >&5
  3637. ac_compiler=`set X $ac_compile; echo $2`
  3638. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  3639. (eval $ac_compiler --version </dev/null >&5) 2>&5
  3640. ac_status=$?
  3641. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3642. (exit $ac_status); }
  3643. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  3644. (eval $ac_compiler -v </dev/null >&5) 2>&5
  3645. ac_status=$?
  3646. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3647. (exit $ac_status); }
  3648. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  3649. (eval $ac_compiler -V </dev/null >&5) 2>&5
  3650. ac_status=$?
  3651. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3652. (exit $ac_status); }
  3653. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  3654. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  3655. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  3656. echo $ECHO_N "(cached) $ECHO_C" >&6
  3657. else
  3658. cat >conftest.$ac_ext <<_ACEOF
  3659. /* confdefs.h. */
  3660. _ACEOF
  3661. cat confdefs.h >>conftest.$ac_ext
  3662. cat >>conftest.$ac_ext <<_ACEOF
  3663. /* end confdefs.h. */
  3664. int
  3665. main ()
  3666. {
  3667. #ifndef __GNUC__
  3668. choke me
  3669. #endif
  3670. ;
  3671. return 0;
  3672. }
  3673. _ACEOF
  3674. rm -f conftest.$ac_objext
  3675. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3676. (eval $ac_compile) 2>conftest.er1
  3677. ac_status=$?
  3678. grep -v '^ *+' conftest.er1 >conftest.err
  3679. rm -f conftest.er1
  3680. cat conftest.err >&5
  3681. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3682. (exit $ac_status); } &&
  3683. { ac_try='test -z "$ac_cxx_werror_flag"
  3684. || test ! -s conftest.err'
  3685. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3686. (eval $ac_try) 2>&5
  3687. ac_status=$?
  3688. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3689. (exit $ac_status); }; } &&
  3690. { ac_try='test -s conftest.$ac_objext'
  3691. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3692. (eval $ac_try) 2>&5
  3693. ac_status=$?
  3694. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3695. (exit $ac_status); }; }; then
  3696. ac_compiler_gnu=yes
  3697. else
  3698. echo "$as_me: failed program was:" >&5
  3699. sed 's/^/| /' conftest.$ac_ext >&5
  3700. ac_compiler_gnu=no
  3701. fi
  3702. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3703. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3704. fi
  3705. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  3706. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  3707. GXX=`test $ac_compiler_gnu = yes && echo yes`
  3708. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3709. ac_save_CXXFLAGS=$CXXFLAGS
  3710. CXXFLAGS="-g"
  3711. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  3712. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  3713. if test "${ac_cv_prog_cxx_g+set}" = set; then
  3714. echo $ECHO_N "(cached) $ECHO_C" >&6
  3715. else
  3716. cat >conftest.$ac_ext <<_ACEOF
  3717. /* confdefs.h. */
  3718. _ACEOF
  3719. cat confdefs.h >>conftest.$ac_ext
  3720. cat >>conftest.$ac_ext <<_ACEOF
  3721. /* end confdefs.h. */
  3722. int
  3723. main ()
  3724. {
  3725. ;
  3726. return 0;
  3727. }
  3728. _ACEOF
  3729. rm -f conftest.$ac_objext
  3730. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3731. (eval $ac_compile) 2>conftest.er1
  3732. ac_status=$?
  3733. grep -v '^ *+' conftest.er1 >conftest.err
  3734. rm -f conftest.er1
  3735. cat conftest.err >&5
  3736. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3737. (exit $ac_status); } &&
  3738. { ac_try='test -z "$ac_cxx_werror_flag"
  3739. || test ! -s conftest.err'
  3740. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3741. (eval $ac_try) 2>&5
  3742. ac_status=$?
  3743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3744. (exit $ac_status); }; } &&
  3745. { ac_try='test -s conftest.$ac_objext'
  3746. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3747. (eval $ac_try) 2>&5
  3748. ac_status=$?
  3749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3750. (exit $ac_status); }; }; then
  3751. ac_cv_prog_cxx_g=yes
  3752. else
  3753. echo "$as_me: failed program was:" >&5
  3754. sed 's/^/| /' conftest.$ac_ext >&5
  3755. ac_cv_prog_cxx_g=no
  3756. fi
  3757. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3758. fi
  3759. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  3760. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  3761. if test "$ac_test_CXXFLAGS" = set; then
  3762. CXXFLAGS=$ac_save_CXXFLAGS
  3763. elif test $ac_cv_prog_cxx_g = yes; then
  3764. if test "$GXX" = yes; then
  3765. CXXFLAGS="-g -O2"
  3766. else
  3767. CXXFLAGS="-g"
  3768. fi
  3769. else
  3770. if test "$GXX" = yes; then
  3771. CXXFLAGS="-O2"
  3772. else
  3773. CXXFLAGS=
  3774. fi
  3775. fi
  3776. for ac_declaration in \
  3777. '' \
  3778. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  3779. 'extern "C" void std::exit (int); using std::exit;' \
  3780. 'extern "C" void exit (int) throw ();' \
  3781. 'extern "C" void exit (int);' \
  3782. 'void exit (int);'
  3783. do
  3784. cat >conftest.$ac_ext <<_ACEOF
  3785. /* confdefs.h. */
  3786. _ACEOF
  3787. cat confdefs.h >>conftest.$ac_ext
  3788. cat >>conftest.$ac_ext <<_ACEOF
  3789. /* end confdefs.h. */
  3790. $ac_declaration
  3791. #include <stdlib.h>
  3792. int
  3793. main ()
  3794. {
  3795. exit (42);
  3796. ;
  3797. return 0;
  3798. }
  3799. _ACEOF
  3800. rm -f conftest.$ac_objext
  3801. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3802. (eval $ac_compile) 2>conftest.er1
  3803. ac_status=$?
  3804. grep -v '^ *+' conftest.er1 >conftest.err
  3805. rm -f conftest.er1
  3806. cat conftest.err >&5
  3807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3808. (exit $ac_status); } &&
  3809. { ac_try='test -z "$ac_cxx_werror_flag"
  3810. || test ! -s conftest.err'
  3811. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3812. (eval $ac_try) 2>&5
  3813. ac_status=$?
  3814. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3815. (exit $ac_status); }; } &&
  3816. { ac_try='test -s conftest.$ac_objext'
  3817. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3818. (eval $ac_try) 2>&5
  3819. ac_status=$?
  3820. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3821. (exit $ac_status); }; }; then
  3822. :
  3823. else
  3824. echo "$as_me: failed program was:" >&5
  3825. sed 's/^/| /' conftest.$ac_ext >&5
  3826. continue
  3827. fi
  3828. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3829. cat >conftest.$ac_ext <<_ACEOF
  3830. /* confdefs.h. */
  3831. _ACEOF
  3832. cat confdefs.h >>conftest.$ac_ext
  3833. cat >>conftest.$ac_ext <<_ACEOF
  3834. /* end confdefs.h. */
  3835. $ac_declaration
  3836. int
  3837. main ()
  3838. {
  3839. exit (42);
  3840. ;
  3841. return 0;
  3842. }
  3843. _ACEOF
  3844. rm -f conftest.$ac_objext
  3845. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3846. (eval $ac_compile) 2>conftest.er1
  3847. ac_status=$?
  3848. grep -v '^ *+' conftest.er1 >conftest.err
  3849. rm -f conftest.er1
  3850. cat conftest.err >&5
  3851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3852. (exit $ac_status); } &&
  3853. { ac_try='test -z "$ac_cxx_werror_flag"
  3854. || test ! -s conftest.err'
  3855. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3856. (eval $ac_try) 2>&5
  3857. ac_status=$?
  3858. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3859. (exit $ac_status); }; } &&
  3860. { ac_try='test -s conftest.$ac_objext'
  3861. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3862. (eval $ac_try) 2>&5
  3863. ac_status=$?
  3864. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3865. (exit $ac_status); }; }; then
  3866. break
  3867. else
  3868. echo "$as_me: failed program was:" >&5
  3869. sed 's/^/| /' conftest.$ac_ext >&5
  3870. fi
  3871. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3872. done
  3873. rm -f conftest*
  3874. if test -n "$ac_declaration"; then
  3875. echo '#ifdef __cplusplus' >>confdefs.h
  3876. echo $ac_declaration >>confdefs.h
  3877. echo '#endif' >>confdefs.h
  3878. fi
  3879. ac_ext=cc
  3880. ac_cpp='$CXXCPP $CPPFLAGS'
  3881. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3882. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3883. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3884. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  3885. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  3886. (test "X$CXX" != "Xg++"))) ; then
  3887. ac_ext=cc
  3888. ac_cpp='$CXXCPP $CPPFLAGS'
  3889. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3890. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3891. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3892. echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  3893. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
  3894. if test -z "$CXXCPP"; then
  3895. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  3896. echo $ECHO_N "(cached) $ECHO_C" >&6
  3897. else
  3898. # Double quotes because CXXCPP needs to be expanded
  3899. for CXXCPP in "$CXX -E" "/lib/cpp"
  3900. do
  3901. ac_preproc_ok=false
  3902. for ac_cxx_preproc_warn_flag in '' yes
  3903. do
  3904. # Use a header file that comes with gcc, so configuring glibc
  3905. # with a fresh cross-compiler works.
  3906. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3907. # <limits.h> exists even on freestanding compilers.
  3908. # On the NeXT, cc -E runs the code through the compiler's parser,
  3909. # not just through cpp. "Syntax error" is here to catch this case.
  3910. cat >conftest.$ac_ext <<_ACEOF
  3911. /* confdefs.h. */
  3912. _ACEOF
  3913. cat confdefs.h >>conftest.$ac_ext
  3914. cat >>conftest.$ac_ext <<_ACEOF
  3915. /* end confdefs.h. */
  3916. #ifdef __STDC__
  3917. # include <limits.h>
  3918. #else
  3919. # include <assert.h>
  3920. #endif
  3921. Syntax error
  3922. _ACEOF
  3923. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3924. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3925. ac_status=$?
  3926. grep -v '^ *+' conftest.er1 >conftest.err
  3927. rm -f conftest.er1
  3928. cat conftest.err >&5
  3929. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3930. (exit $ac_status); } >/dev/null; then
  3931. if test -s conftest.err; then
  3932. ac_cpp_err=$ac_cxx_preproc_warn_flag
  3933. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  3934. else
  3935. ac_cpp_err=
  3936. fi
  3937. else
  3938. ac_cpp_err=yes
  3939. fi
  3940. if test -z "$ac_cpp_err"; then
  3941. :
  3942. else
  3943. echo "$as_me: failed program was:" >&5
  3944. sed 's/^/| /' conftest.$ac_ext >&5
  3945. # Broken: fails on valid input.
  3946. continue
  3947. fi
  3948. rm -f conftest.err conftest.$ac_ext
  3949. # OK, works on sane cases. Now check whether non-existent headers
  3950. # can be detected and how.
  3951. cat >conftest.$ac_ext <<_ACEOF
  3952. /* confdefs.h. */
  3953. _ACEOF
  3954. cat confdefs.h >>conftest.$ac_ext
  3955. cat >>conftest.$ac_ext <<_ACEOF
  3956. /* end confdefs.h. */
  3957. #include <ac_nonexistent.h>
  3958. _ACEOF
  3959. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3960. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3961. ac_status=$?
  3962. grep -v '^ *+' conftest.er1 >conftest.err
  3963. rm -f conftest.er1
  3964. cat conftest.err >&5
  3965. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3966. (exit $ac_status); } >/dev/null; then
  3967. if test -s conftest.err; then
  3968. ac_cpp_err=$ac_cxx_preproc_warn_flag
  3969. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  3970. else
  3971. ac_cpp_err=
  3972. fi
  3973. else
  3974. ac_cpp_err=yes
  3975. fi
  3976. if test -z "$ac_cpp_err"; then
  3977. # Broken: success on invalid input.
  3978. continue
  3979. else
  3980. echo "$as_me: failed program was:" >&5
  3981. sed 's/^/| /' conftest.$ac_ext >&5
  3982. # Passes both tests.
  3983. ac_preproc_ok=:
  3984. break
  3985. fi
  3986. rm -f conftest.err conftest.$ac_ext
  3987. done
  3988. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3989. rm -f conftest.err conftest.$ac_ext
  3990. if $ac_preproc_ok; then
  3991. break
  3992. fi
  3993. done
  3994. ac_cv_prog_CXXCPP=$CXXCPP
  3995. fi
  3996. CXXCPP=$ac_cv_prog_CXXCPP
  3997. else
  3998. ac_cv_prog_CXXCPP=$CXXCPP
  3999. fi
  4000. echo "$as_me:$LINENO: result: $CXXCPP" >&5
  4001. echo "${ECHO_T}$CXXCPP" >&6
  4002. ac_preproc_ok=false
  4003. for ac_cxx_preproc_warn_flag in '' yes
  4004. do
  4005. # Use a header file that comes with gcc, so configuring glibc
  4006. # with a fresh cross-compiler works.
  4007. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4008. # <limits.h> exists even on freestanding compilers.
  4009. # On the NeXT, cc -E runs the code through the compiler's parser,
  4010. # not just through cpp. "Syntax error" is here to catch this case.
  4011. cat >conftest.$ac_ext <<_ACEOF
  4012. /* confdefs.h. */
  4013. _ACEOF
  4014. cat confdefs.h >>conftest.$ac_ext
  4015. cat >>conftest.$ac_ext <<_ACEOF
  4016. /* end confdefs.h. */
  4017. #ifdef __STDC__
  4018. # include <limits.h>
  4019. #else
  4020. # include <assert.h>
  4021. #endif
  4022. Syntax error
  4023. _ACEOF
  4024. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4025. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4026. ac_status=$?
  4027. grep -v '^ *+' conftest.er1 >conftest.err
  4028. rm -f conftest.er1
  4029. cat conftest.err >&5
  4030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4031. (exit $ac_status); } >/dev/null; then
  4032. if test -s conftest.err; then
  4033. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4034. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4035. else
  4036. ac_cpp_err=
  4037. fi
  4038. else
  4039. ac_cpp_err=yes
  4040. fi
  4041. if test -z "$ac_cpp_err"; then
  4042. :
  4043. else
  4044. echo "$as_me: failed program was:" >&5
  4045. sed 's/^/| /' conftest.$ac_ext >&5
  4046. # Broken: fails on valid input.
  4047. continue
  4048. fi
  4049. rm -f conftest.err conftest.$ac_ext
  4050. # OK, works on sane cases. Now check whether non-existent headers
  4051. # can be detected and how.
  4052. cat >conftest.$ac_ext <<_ACEOF
  4053. /* confdefs.h. */
  4054. _ACEOF
  4055. cat confdefs.h >>conftest.$ac_ext
  4056. cat >>conftest.$ac_ext <<_ACEOF
  4057. /* end confdefs.h. */
  4058. #include <ac_nonexistent.h>
  4059. _ACEOF
  4060. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4061. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4062. ac_status=$?
  4063. grep -v '^ *+' conftest.er1 >conftest.err
  4064. rm -f conftest.er1
  4065. cat conftest.err >&5
  4066. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4067. (exit $ac_status); } >/dev/null; then
  4068. if test -s conftest.err; then
  4069. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4070. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4071. else
  4072. ac_cpp_err=
  4073. fi
  4074. else
  4075. ac_cpp_err=yes
  4076. fi
  4077. if test -z "$ac_cpp_err"; then
  4078. # Broken: success on invalid input.
  4079. continue
  4080. else
  4081. echo "$as_me: failed program was:" >&5
  4082. sed 's/^/| /' conftest.$ac_ext >&5
  4083. # Passes both tests.
  4084. ac_preproc_ok=:
  4085. break
  4086. fi
  4087. rm -f conftest.err conftest.$ac_ext
  4088. done
  4089. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4090. rm -f conftest.err conftest.$ac_ext
  4091. if $ac_preproc_ok; then
  4092. :
  4093. else
  4094. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4095. See \`config.log' for more details." >&5
  4096. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4097. See \`config.log' for more details." >&2;}
  4098. { (exit 1); exit 1; }; }
  4099. fi
  4100. ac_ext=cc
  4101. ac_cpp='$CXXCPP $CPPFLAGS'
  4102. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4103. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4104. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4105. fi
  4106. ac_ext=f
  4107. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  4108. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4109. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  4110. if test -n "$ac_tool_prefix"; then
  4111. for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  4112. do
  4113. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4114. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4115. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4116. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4117. if test "${ac_cv_prog_F77+set}" = set; then
  4118. echo $ECHO_N "(cached) $ECHO_C" >&6
  4119. else
  4120. if test -n "$F77"; then
  4121. ac_cv_prog_F77="$F77" # Let the user override the test.
  4122. else
  4123. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4124. for as_dir in $PATH
  4125. do
  4126. IFS=$as_save_IFS
  4127. test -z "$as_dir" && as_dir=.
  4128. for ac_exec_ext in '' $ac_executable_extensions; do
  4129. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4130. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  4131. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4132. break 2
  4133. fi
  4134. done
  4135. done
  4136. fi
  4137. fi
  4138. F77=$ac_cv_prog_F77
  4139. if test -n "$F77"; then
  4140. echo "$as_me:$LINENO: result: $F77" >&5
  4141. echo "${ECHO_T}$F77" >&6
  4142. else
  4143. echo "$as_me:$LINENO: result: no" >&5
  4144. echo "${ECHO_T}no" >&6
  4145. fi
  4146. test -n "$F77" && break
  4147. done
  4148. fi
  4149. if test -z "$F77"; then
  4150. ac_ct_F77=$F77
  4151. for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  4152. do
  4153. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4154. set dummy $ac_prog; ac_word=$2
  4155. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4156. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4157. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  4158. echo $ECHO_N "(cached) $ECHO_C" >&6
  4159. else
  4160. if test -n "$ac_ct_F77"; then
  4161. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  4162. else
  4163. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4164. for as_dir in $PATH
  4165. do
  4166. IFS=$as_save_IFS
  4167. test -z "$as_dir" && as_dir=.
  4168. for ac_exec_ext in '' $ac_executable_extensions; do
  4169. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4170. ac_cv_prog_ac_ct_F77="$ac_prog"
  4171. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4172. break 2
  4173. fi
  4174. done
  4175. done
  4176. fi
  4177. fi
  4178. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  4179. if test -n "$ac_ct_F77"; then
  4180. echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  4181. echo "${ECHO_T}$ac_ct_F77" >&6
  4182. else
  4183. echo "$as_me:$LINENO: result: no" >&5
  4184. echo "${ECHO_T}no" >&6
  4185. fi
  4186. test -n "$ac_ct_F77" && break
  4187. done
  4188. F77=$ac_ct_F77
  4189. fi
  4190. # Provide some information about the compiler.
  4191. echo "$as_me:4608:" \
  4192. "checking for Fortran 77 compiler version" >&5
  4193. ac_compiler=`set X $ac_compile; echo $2`
  4194. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  4195. (eval $ac_compiler --version </dev/null >&5) 2>&5
  4196. ac_status=$?
  4197. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4198. (exit $ac_status); }
  4199. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  4200. (eval $ac_compiler -v </dev/null >&5) 2>&5
  4201. ac_status=$?
  4202. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4203. (exit $ac_status); }
  4204. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  4205. (eval $ac_compiler -V </dev/null >&5) 2>&5
  4206. ac_status=$?
  4207. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4208. (exit $ac_status); }
  4209. rm -f a.out
  4210. # If we don't use `.F' as extension, the preprocessor is not run on the
  4211. # input file. (Note that this only needs to work for GNU compilers.)
  4212. ac_save_ext=$ac_ext
  4213. ac_ext=F
  4214. echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  4215. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
  4216. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  4217. echo $ECHO_N "(cached) $ECHO_C" >&6
  4218. else
  4219. cat >conftest.$ac_ext <<_ACEOF
  4220. program main
  4221. #ifndef __GNUC__
  4222. choke me
  4223. #endif
  4224. end
  4225. _ACEOF
  4226. rm -f conftest.$ac_objext
  4227. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4228. (eval $ac_compile) 2>conftest.er1
  4229. ac_status=$?
  4230. grep -v '^ *+' conftest.er1 >conftest.err
  4231. rm -f conftest.er1
  4232. cat conftest.err >&5
  4233. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4234. (exit $ac_status); } &&
  4235. { ac_try='test -z "$ac_f77_werror_flag"
  4236. || test ! -s conftest.err'
  4237. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4238. (eval $ac_try) 2>&5
  4239. ac_status=$?
  4240. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4241. (exit $ac_status); }; } &&
  4242. { ac_try='test -s conftest.$ac_objext'
  4243. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4244. (eval $ac_try) 2>&5
  4245. ac_status=$?
  4246. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4247. (exit $ac_status); }; }; then
  4248. ac_compiler_gnu=yes
  4249. else
  4250. echo "$as_me: failed program was:" >&5
  4251. sed 's/^/| /' conftest.$ac_ext >&5
  4252. ac_compiler_gnu=no
  4253. fi
  4254. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4255. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  4256. fi
  4257. echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  4258. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
  4259. ac_ext=$ac_save_ext
  4260. ac_test_FFLAGS=${FFLAGS+set}
  4261. ac_save_FFLAGS=$FFLAGS
  4262. FFLAGS=
  4263. echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  4264. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
  4265. if test "${ac_cv_prog_f77_g+set}" = set; then
  4266. echo $ECHO_N "(cached) $ECHO_C" >&6
  4267. else
  4268. FFLAGS=-g
  4269. cat >conftest.$ac_ext <<_ACEOF
  4270. program main
  4271. end
  4272. _ACEOF
  4273. rm -f conftest.$ac_objext
  4274. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4275. (eval $ac_compile) 2>conftest.er1
  4276. ac_status=$?
  4277. grep -v '^ *+' conftest.er1 >conftest.err
  4278. rm -f conftest.er1
  4279. cat conftest.err >&5
  4280. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4281. (exit $ac_status); } &&
  4282. { ac_try='test -z "$ac_f77_werror_flag"
  4283. || test ! -s conftest.err'
  4284. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4285. (eval $ac_try) 2>&5
  4286. ac_status=$?
  4287. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4288. (exit $ac_status); }; } &&
  4289. { ac_try='test -s conftest.$ac_objext'
  4290. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4291. (eval $ac_try) 2>&5
  4292. ac_status=$?
  4293. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4294. (exit $ac_status); }; }; then
  4295. ac_cv_prog_f77_g=yes
  4296. else
  4297. echo "$as_me: failed program was:" >&5
  4298. sed 's/^/| /' conftest.$ac_ext >&5
  4299. ac_cv_prog_f77_g=no
  4300. fi
  4301. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4302. fi
  4303. echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  4304. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
  4305. if test "$ac_test_FFLAGS" = set; then
  4306. FFLAGS=$ac_save_FFLAGS
  4307. elif test $ac_cv_prog_f77_g = yes; then
  4308. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  4309. FFLAGS="-g -O2"
  4310. else
  4311. FFLAGS="-g"
  4312. fi
  4313. else
  4314. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  4315. FFLAGS="-O2"
  4316. else
  4317. FFLAGS=
  4318. fi
  4319. fi
  4320. G77=`test $ac_compiler_gnu = yes && echo yes`
  4321. ac_ext=c
  4322. ac_cpp='$CPP $CPPFLAGS'
  4323. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4324. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4325. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4326. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  4327. # find the maximum length of command line arguments
  4328. echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  4329. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
  4330. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  4331. echo $ECHO_N "(cached) $ECHO_C" >&6
  4332. else
  4333. i=0
  4334. teststring="ABCD"
  4335. case $build_os in
  4336. msdosdjgpp*)
  4337. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4338. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4339. # during glob expansion). Even if it were fixed, the result of this
  4340. # check would be larger than it should be.
  4341. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4342. ;;
  4343. gnu*)
  4344. # Under GNU Hurd, this test is not required because there is
  4345. # no limit to the length of command line arguments.
  4346. # Libtool will interpret -1 as no limit whatsoever
  4347. lt_cv_sys_max_cmd_len=-1;
  4348. ;;
  4349. cygwin* | mingw*)
  4350. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4351. # about 5 minutes as the teststring grows exponentially.
  4352. # Worse, since 9x/ME are not pre-emptively multitasking,
  4353. # you end up with a "frozen" computer, even though with patience
  4354. # the test eventually succeeds (with a max line length of 256k).
  4355. # Instead, let's just punt: use the minimum linelength reported by
  4356. # all of the supported platforms: 8192 (on NT/2K/XP).
  4357. lt_cv_sys_max_cmd_len=8192;
  4358. ;;
  4359. amigaos*)
  4360. # On AmigaOS with pdksh, this test takes hours, literally.
  4361. # So we just punt and use a minimum line length of 8192.
  4362. lt_cv_sys_max_cmd_len=8192;
  4363. ;;
  4364. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4365. # This has been around since 386BSD, at least. Likely further.
  4366. if test -x /sbin/sysctl; then
  4367. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4368. elif test -x /usr/sbin/sysctl; then
  4369. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4370. else
  4371. lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
  4372. fi
  4373. # And add a safety zone
  4374. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4375. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4376. ;;
  4377. osf*)
  4378. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4379. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4380. # nice to cause kernel panics so lets avoid the loop below.
  4381. # First set a reasonable default.
  4382. lt_cv_sys_max_cmd_len=16384
  4383. #
  4384. if test -x /sbin/sysconfig; then
  4385. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4386. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4387. esac
  4388. fi
  4389. ;;
  4390. *)
  4391. # If test is not a shell built-in, we'll probably end up computing a
  4392. # maximum length that is only half of the actual maximum length, but
  4393. # we can't tell.
  4394. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4395. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  4396. = "XX$teststring") >/dev/null 2>&1 &&
  4397. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  4398. lt_cv_sys_max_cmd_len=$new_result &&
  4399. test $i != 17 # 1/2 MB should be enough
  4400. do
  4401. i=`expr $i + 1`
  4402. teststring=$teststring$teststring
  4403. done
  4404. teststring=
  4405. # Add a significant safety factor because C++ compilers can tack on massive
  4406. # amounts of additional arguments before passing them to the linker.
  4407. # It appears as though 1/2 is a usable value.
  4408. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4409. ;;
  4410. esac
  4411. fi
  4412. if test -n $lt_cv_sys_max_cmd_len ; then
  4413. echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  4414. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
  4415. else
  4416. echo "$as_me:$LINENO: result: none" >&5
  4417. echo "${ECHO_T}none" >&6
  4418. fi
  4419. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4420. echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  4421. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
  4422. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  4423. echo $ECHO_N "(cached) $ECHO_C" >&6
  4424. else
  4425. # These are sane defaults that work on at least a few old systems.
  4426. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4427. # Character class describing NM global symbol codes.
  4428. symcode='[BCDEGRST]'
  4429. # Regexp to match symbols that can be accessed directly from C.
  4430. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4431. # Transform an extracted symbol line into a proper C declaration
  4432. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  4433. # Transform an extracted symbol line into symbol name and symbol address
  4434. 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'"
  4435. # Define system-specific variables.
  4436. case $host_os in
  4437. aix*)
  4438. symcode='[BCDT]'
  4439. ;;
  4440. cygwin* | mingw* | pw32*)
  4441. symcode='[ABCDGISTW]'
  4442. ;;
  4443. hpux*) # Its linker distinguishes data from code symbols
  4444. if test "$host_cpu" = ia64; then
  4445. symcode='[ABCDEGRST]'
  4446. fi
  4447. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4448. 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'"
  4449. ;;
  4450. linux*)
  4451. if test "$host_cpu" = ia64; then
  4452. symcode='[ABCDGIRSTW]'
  4453. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4454. 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'"
  4455. fi
  4456. ;;
  4457. irix* | nonstopux*)
  4458. symcode='[BCDEGRST]'
  4459. ;;
  4460. osf*)
  4461. symcode='[BCDEGQRST]'
  4462. ;;
  4463. solaris* | sysv5*)
  4464. symcode='[BDRT]'
  4465. ;;
  4466. sysv4)
  4467. symcode='[DFNSTU]'
  4468. ;;
  4469. esac
  4470. # Handle CRLF in mingw tool chain
  4471. opt_cr=
  4472. case $build_os in
  4473. mingw*)
  4474. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4475. ;;
  4476. esac
  4477. # If we're using GNU nm, then use its standard symbol codes.
  4478. case `$NM -V 2>&1` in
  4479. *GNU* | *'with BFD'*)
  4480. symcode='[ABCDGIRSTW]' ;;
  4481. esac
  4482. # Try without a prefix undercore, then with it.
  4483. for ac_symprfx in "" "_"; do
  4484. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4485. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4486. # Write the raw and C identifiers.
  4487. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4488. # Check to see that the pipe works correctly.
  4489. pipe_works=no
  4490. rm -f conftest*
  4491. cat > conftest.$ac_ext <<EOF
  4492. #ifdef __cplusplus
  4493. extern "C" {
  4494. #endif
  4495. char nm_test_var;
  4496. void nm_test_func(){}
  4497. #ifdef __cplusplus
  4498. }
  4499. #endif
  4500. int main(){nm_test_var='a';nm_test_func();return(0);}
  4501. EOF
  4502. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4503. (eval $ac_compile) 2>&5
  4504. ac_status=$?
  4505. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4506. (exit $ac_status); }; then
  4507. # Now try to grab the symbols.
  4508. nlist=conftest.nm
  4509. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  4510. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  4511. ac_status=$?
  4512. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4513. (exit $ac_status); } && test -s "$nlist"; then
  4514. # Try sorting and uniquifying the output.
  4515. if sort "$nlist" | uniq > "$nlist"T; then
  4516. mv -f "$nlist"T "$nlist"
  4517. else
  4518. rm -f "$nlist"T
  4519. fi
  4520. # Make sure that we snagged all the symbols we need.
  4521. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  4522. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  4523. cat <<EOF > conftest.$ac_ext
  4524. #ifdef __cplusplus
  4525. extern "C" {
  4526. #endif
  4527. EOF
  4528. # Now generate the symbol file.
  4529. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  4530. cat <<EOF >> conftest.$ac_ext
  4531. #if defined (__STDC__) && __STDC__
  4532. # define lt_ptr_t void *
  4533. #else
  4534. # define lt_ptr_t char *
  4535. # define const
  4536. #endif
  4537. /* The mapping between symbol names and symbols. */
  4538. const struct {
  4539. const char *name;
  4540. lt_ptr_t address;
  4541. }
  4542. lt_preloaded_symbols[] =
  4543. {
  4544. EOF
  4545. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  4546. cat <<\EOF >> conftest.$ac_ext
  4547. {0, (lt_ptr_t) 0}
  4548. };
  4549. #ifdef __cplusplus
  4550. }
  4551. #endif
  4552. EOF
  4553. # Now try linking the two files.
  4554. mv conftest.$ac_objext conftstm.$ac_objext
  4555. lt_save_LIBS="$LIBS"
  4556. lt_save_CFLAGS="$CFLAGS"
  4557. LIBS="conftstm.$ac_objext"
  4558. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  4559. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4560. (eval $ac_link) 2>&5
  4561. ac_status=$?
  4562. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4563. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  4564. pipe_works=yes
  4565. fi
  4566. LIBS="$lt_save_LIBS"
  4567. CFLAGS="$lt_save_CFLAGS"
  4568. else
  4569. echo "cannot find nm_test_func in $nlist" >&5
  4570. fi
  4571. else
  4572. echo "cannot find nm_test_var in $nlist" >&5
  4573. fi
  4574. else
  4575. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  4576. fi
  4577. else
  4578. echo "$progname: failed program was:" >&5
  4579. cat conftest.$ac_ext >&5
  4580. fi
  4581. rm -f conftest* conftst*
  4582. # Do not use the global_symbol_pipe unless it works.
  4583. if test "$pipe_works" = yes; then
  4584. break
  4585. else
  4586. lt_cv_sys_global_symbol_pipe=
  4587. fi
  4588. done
  4589. fi
  4590. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  4591. lt_cv_sys_global_symbol_to_cdecl=
  4592. fi
  4593. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  4594. echo "$as_me:$LINENO: result: failed" >&5
  4595. echo "${ECHO_T}failed" >&6
  4596. else
  4597. echo "$as_me:$LINENO: result: ok" >&5
  4598. echo "${ECHO_T}ok" >&6
  4599. fi
  4600. echo "$as_me:$LINENO: checking for objdir" >&5
  4601. echo $ECHO_N "checking for objdir... $ECHO_C" >&6
  4602. if test "${lt_cv_objdir+set}" = set; then
  4603. echo $ECHO_N "(cached) $ECHO_C" >&6
  4604. else
  4605. rm -f .libs 2>/dev/null
  4606. mkdir .libs 2>/dev/null
  4607. if test -d .libs; then
  4608. lt_cv_objdir=.libs
  4609. else
  4610. # MS-DOS does not allow filenames that begin with a dot.
  4611. lt_cv_objdir=_libs
  4612. fi
  4613. rmdir .libs 2>/dev/null
  4614. fi
  4615. echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  4616. echo "${ECHO_T}$lt_cv_objdir" >&6
  4617. objdir=$lt_cv_objdir
  4618. case $host_os in
  4619. aix3*)
  4620. # AIX sometimes has problems with the GCC collect2 program. For some
  4621. # reason, if we set the COLLECT_NAMES environment variable, the problems
  4622. # vanish in a puff of smoke.
  4623. if test "X${COLLECT_NAMES+set}" != Xset; then
  4624. COLLECT_NAMES=
  4625. export COLLECT_NAMES
  4626. fi
  4627. ;;
  4628. esac
  4629. # Sed substitution that helps us do robust quoting. It backslashifies
  4630. # metacharacters that are still active within double-quoted strings.
  4631. Xsed='sed -e 1s/^X//'
  4632. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  4633. # Same as above, but do not quote variable references.
  4634. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  4635. # Sed substitution to delay expansion of an escaped shell variable in a
  4636. # double_quote_subst'ed string.
  4637. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4638. # Sed substitution to avoid accidental globbing in evaled expressions
  4639. no_glob_subst='s/\*/\\\*/g'
  4640. # Constants:
  4641. rm="rm -f"
  4642. # Global variables:
  4643. default_ofile=libtool
  4644. can_build_shared=yes
  4645. # All known linkers require a `.a' archive for static linking (except M$VC,
  4646. # which needs '.lib').
  4647. libext=a
  4648. ltmain="$ac_aux_dir/ltmain.sh"
  4649. ofile="$default_ofile"
  4650. with_gnu_ld="$lt_cv_prog_gnu_ld"
  4651. if test -n "$ac_tool_prefix"; then
  4652. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4653. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4654. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4655. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4656. if test "${ac_cv_prog_AR+set}" = set; then
  4657. echo $ECHO_N "(cached) $ECHO_C" >&6
  4658. else
  4659. if test -n "$AR"; then
  4660. ac_cv_prog_AR="$AR" # Let the user override the test.
  4661. else
  4662. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4663. for as_dir in $PATH
  4664. do
  4665. IFS=$as_save_IFS
  4666. test -z "$as_dir" && as_dir=.
  4667. for ac_exec_ext in '' $ac_executable_extensions; do
  4668. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4669. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4670. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4671. break 2
  4672. fi
  4673. done
  4674. done
  4675. fi
  4676. fi
  4677. AR=$ac_cv_prog_AR
  4678. if test -n "$AR"; then
  4679. echo "$as_me:$LINENO: result: $AR" >&5
  4680. echo "${ECHO_T}$AR" >&6
  4681. else
  4682. echo "$as_me:$LINENO: result: no" >&5
  4683. echo "${ECHO_T}no" >&6
  4684. fi
  4685. fi
  4686. if test -z "$ac_cv_prog_AR"; then
  4687. ac_ct_AR=$AR
  4688. # Extract the first word of "ar", so it can be a program name with args.
  4689. set dummy ar; ac_word=$2
  4690. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4691. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4692. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  4693. echo $ECHO_N "(cached) $ECHO_C" >&6
  4694. else
  4695. if test -n "$ac_ct_AR"; then
  4696. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4697. else
  4698. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4699. for as_dir in $PATH
  4700. do
  4701. IFS=$as_save_IFS
  4702. test -z "$as_dir" && as_dir=.
  4703. for ac_exec_ext in '' $ac_executable_extensions; do
  4704. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4705. ac_cv_prog_ac_ct_AR="ar"
  4706. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4707. break 2
  4708. fi
  4709. done
  4710. done
  4711. test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
  4712. fi
  4713. fi
  4714. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4715. if test -n "$ac_ct_AR"; then
  4716. echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  4717. echo "${ECHO_T}$ac_ct_AR" >&6
  4718. else
  4719. echo "$as_me:$LINENO: result: no" >&5
  4720. echo "${ECHO_T}no" >&6
  4721. fi
  4722. AR=$ac_ct_AR
  4723. else
  4724. AR="$ac_cv_prog_AR"
  4725. fi
  4726. if test -n "$ac_tool_prefix"; then
  4727. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4728. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4729. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4730. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4731. if test "${ac_cv_prog_RANLIB+set}" = set; then
  4732. echo $ECHO_N "(cached) $ECHO_C" >&6
  4733. else
  4734. if test -n "$RANLIB"; then
  4735. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4736. else
  4737. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4738. for as_dir in $PATH
  4739. do
  4740. IFS=$as_save_IFS
  4741. test -z "$as_dir" && as_dir=.
  4742. for ac_exec_ext in '' $ac_executable_extensions; do
  4743. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4744. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4745. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4746. break 2
  4747. fi
  4748. done
  4749. done
  4750. fi
  4751. fi
  4752. RANLIB=$ac_cv_prog_RANLIB
  4753. if test -n "$RANLIB"; then
  4754. echo "$as_me:$LINENO: result: $RANLIB" >&5
  4755. echo "${ECHO_T}$RANLIB" >&6
  4756. else
  4757. echo "$as_me:$LINENO: result: no" >&5
  4758. echo "${ECHO_T}no" >&6
  4759. fi
  4760. fi
  4761. if test -z "$ac_cv_prog_RANLIB"; then
  4762. ac_ct_RANLIB=$RANLIB
  4763. # Extract the first word of "ranlib", so it can be a program name with args.
  4764. set dummy ranlib; ac_word=$2
  4765. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4766. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4767. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  4768. echo $ECHO_N "(cached) $ECHO_C" >&6
  4769. else
  4770. if test -n "$ac_ct_RANLIB"; then
  4771. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4772. else
  4773. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4774. for as_dir in $PATH
  4775. do
  4776. IFS=$as_save_IFS
  4777. test -z "$as_dir" && as_dir=.
  4778. for ac_exec_ext in '' $ac_executable_extensions; do
  4779. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4780. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4781. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4782. break 2
  4783. fi
  4784. done
  4785. done
  4786. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  4787. fi
  4788. fi
  4789. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4790. if test -n "$ac_ct_RANLIB"; then
  4791. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  4792. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  4793. else
  4794. echo "$as_me:$LINENO: result: no" >&5
  4795. echo "${ECHO_T}no" >&6
  4796. fi
  4797. RANLIB=$ac_ct_RANLIB
  4798. else
  4799. RANLIB="$ac_cv_prog_RANLIB"
  4800. fi
  4801. if test -n "$ac_tool_prefix"; then
  4802. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4803. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4804. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4805. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4806. if test "${ac_cv_prog_STRIP+set}" = set; then
  4807. echo $ECHO_N "(cached) $ECHO_C" >&6
  4808. else
  4809. if test -n "$STRIP"; then
  4810. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4811. else
  4812. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4813. for as_dir in $PATH
  4814. do
  4815. IFS=$as_save_IFS
  4816. test -z "$as_dir" && as_dir=.
  4817. for ac_exec_ext in '' $ac_executable_extensions; do
  4818. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4819. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4820. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4821. break 2
  4822. fi
  4823. done
  4824. done
  4825. fi
  4826. fi
  4827. STRIP=$ac_cv_prog_STRIP
  4828. if test -n "$STRIP"; then
  4829. echo "$as_me:$LINENO: result: $STRIP" >&5
  4830. echo "${ECHO_T}$STRIP" >&6
  4831. else
  4832. echo "$as_me:$LINENO: result: no" >&5
  4833. echo "${ECHO_T}no" >&6
  4834. fi
  4835. fi
  4836. if test -z "$ac_cv_prog_STRIP"; then
  4837. ac_ct_STRIP=$STRIP
  4838. # Extract the first word of "strip", so it can be a program name with args.
  4839. set dummy strip; ac_word=$2
  4840. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4841. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4842. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  4843. echo $ECHO_N "(cached) $ECHO_C" >&6
  4844. else
  4845. if test -n "$ac_ct_STRIP"; then
  4846. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4847. else
  4848. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4849. for as_dir in $PATH
  4850. do
  4851. IFS=$as_save_IFS
  4852. test -z "$as_dir" && as_dir=.
  4853. for ac_exec_ext in '' $ac_executable_extensions; do
  4854. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4855. ac_cv_prog_ac_ct_STRIP="strip"
  4856. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4857. break 2
  4858. fi
  4859. done
  4860. done
  4861. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  4862. fi
  4863. fi
  4864. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4865. if test -n "$ac_ct_STRIP"; then
  4866. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  4867. echo "${ECHO_T}$ac_ct_STRIP" >&6
  4868. else
  4869. echo "$as_me:$LINENO: result: no" >&5
  4870. echo "${ECHO_T}no" >&6
  4871. fi
  4872. STRIP=$ac_ct_STRIP
  4873. else
  4874. STRIP="$ac_cv_prog_STRIP"
  4875. fi
  4876. old_CC="$CC"
  4877. old_CFLAGS="$CFLAGS"
  4878. # Set sane defaults for various variables
  4879. test -z "$AR" && AR=ar
  4880. test -z "$AR_FLAGS" && AR_FLAGS=cru
  4881. test -z "$AS" && AS=as
  4882. test -z "$CC" && CC=cc
  4883. test -z "$LTCC" && LTCC=$CC
  4884. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4885. test -z "$LD" && LD=ld
  4886. test -z "$LN_S" && LN_S="ln -s"
  4887. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  4888. test -z "$NM" && NM=nm
  4889. test -z "$SED" && SED=sed
  4890. test -z "$OBJDUMP" && OBJDUMP=objdump
  4891. test -z "$RANLIB" && RANLIB=:
  4892. test -z "$STRIP" && STRIP=:
  4893. test -z "$ac_objext" && ac_objext=o
  4894. # Determine commands to create old-style static archives.
  4895. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  4896. old_postinstall_cmds='chmod 644 $oldlib'
  4897. old_postuninstall_cmds=
  4898. if test -n "$RANLIB"; then
  4899. case $host_os in
  4900. openbsd*)
  4901. old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  4902. ;;
  4903. *)
  4904. old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  4905. ;;
  4906. esac
  4907. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  4908. fi
  4909. for cc_temp in $compiler""; do
  4910. case $cc_temp in
  4911. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  4912. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  4913. \-*) ;;
  4914. *) break;;
  4915. esac
  4916. done
  4917. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  4918. # Only perform the check for file, if the check method requires it
  4919. case $deplibs_check_method in
  4920. file_magic*)
  4921. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  4922. echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  4923. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
  4924. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  4925. echo $ECHO_N "(cached) $ECHO_C" >&6
  4926. else
  4927. case $MAGIC_CMD in
  4928. [\\/*] | ?:[\\/]*)
  4929. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  4930. ;;
  4931. *)
  4932. lt_save_MAGIC_CMD="$MAGIC_CMD"
  4933. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4934. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  4935. for ac_dir in $ac_dummy; do
  4936. IFS="$lt_save_ifs"
  4937. test -z "$ac_dir" && ac_dir=.
  4938. if test -f $ac_dir/${ac_tool_prefix}file; then
  4939. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  4940. if test -n "$file_magic_test_file"; then
  4941. case $deplibs_check_method in
  4942. "file_magic "*)
  4943. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  4944. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  4945. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  4946. $EGREP "$file_magic_regex" > /dev/null; then
  4947. :
  4948. else
  4949. cat <<EOF 1>&2
  4950. *** Warning: the command libtool uses to detect shared libraries,
  4951. *** $file_magic_cmd, produces output that libtool cannot recognize.
  4952. *** The result is that libtool may fail to recognize shared libraries
  4953. *** as such. This will affect the creation of libtool libraries that
  4954. *** depend on shared libraries, but programs linked with such libtool
  4955. *** libraries will work regardless of this problem. Nevertheless, you
  4956. *** may want to report the problem to your system manager and/or to
  4957. *** bug-libtool@gnu.org
  4958. EOF
  4959. fi ;;
  4960. esac
  4961. fi
  4962. break
  4963. fi
  4964. done
  4965. IFS="$lt_save_ifs"
  4966. MAGIC_CMD="$lt_save_MAGIC_CMD"
  4967. ;;
  4968. esac
  4969. fi
  4970. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  4971. if test -n "$MAGIC_CMD"; then
  4972. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  4973. echo "${ECHO_T}$MAGIC_CMD" >&6
  4974. else
  4975. echo "$as_me:$LINENO: result: no" >&5
  4976. echo "${ECHO_T}no" >&6
  4977. fi
  4978. if test -z "$lt_cv_path_MAGIC_CMD"; then
  4979. if test -n "$ac_tool_prefix"; then
  4980. echo "$as_me:$LINENO: checking for file" >&5
  4981. echo $ECHO_N "checking for file... $ECHO_C" >&6
  4982. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  4983. echo $ECHO_N "(cached) $ECHO_C" >&6
  4984. else
  4985. case $MAGIC_CMD in
  4986. [\\/*] | ?:[\\/]*)
  4987. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  4988. ;;
  4989. *)
  4990. lt_save_MAGIC_CMD="$MAGIC_CMD"
  4991. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4992. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  4993. for ac_dir in $ac_dummy; do
  4994. IFS="$lt_save_ifs"
  4995. test -z "$ac_dir" && ac_dir=.
  4996. if test -f $ac_dir/file; then
  4997. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  4998. if test -n "$file_magic_test_file"; then
  4999. case $deplibs_check_method in
  5000. "file_magic "*)
  5001. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  5002. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5003. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5004. $EGREP "$file_magic_regex" > /dev/null; then
  5005. :
  5006. else
  5007. cat <<EOF 1>&2
  5008. *** Warning: the command libtool uses to detect shared libraries,
  5009. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5010. *** The result is that libtool may fail to recognize shared libraries
  5011. *** as such. This will affect the creation of libtool libraries that
  5012. *** depend on shared libraries, but programs linked with such libtool
  5013. *** libraries will work regardless of this problem. Nevertheless, you
  5014. *** may want to report the problem to your system manager and/or to
  5015. *** bug-libtool@gnu.org
  5016. EOF
  5017. fi ;;
  5018. esac
  5019. fi
  5020. break
  5021. fi
  5022. done
  5023. IFS="$lt_save_ifs"
  5024. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5025. ;;
  5026. esac
  5027. fi
  5028. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5029. if test -n "$MAGIC_CMD"; then
  5030. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  5031. echo "${ECHO_T}$MAGIC_CMD" >&6
  5032. else
  5033. echo "$as_me:$LINENO: result: no" >&5
  5034. echo "${ECHO_T}no" >&6
  5035. fi
  5036. else
  5037. MAGIC_CMD=:
  5038. fi
  5039. fi
  5040. fi
  5041. ;;
  5042. esac
  5043. enable_dlopen=no
  5044. enable_win32_dll=no
  5045. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  5046. if test "${enable_libtool_lock+set}" = set; then
  5047. enableval="$enable_libtool_lock"
  5048. fi;
  5049. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5050. # Check whether --with-pic or --without-pic was given.
  5051. if test "${with_pic+set}" = set; then
  5052. withval="$with_pic"
  5053. pic_mode="$withval"
  5054. else
  5055. pic_mode=default
  5056. fi;
  5057. test -z "$pic_mode" && pic_mode=default
  5058. # Use C for the default configuration in the libtool script
  5059. tagname=
  5060. lt_save_CC="$CC"
  5061. ac_ext=c
  5062. ac_cpp='$CPP $CPPFLAGS'
  5063. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5064. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5065. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5066. # Source file extension for C test sources.
  5067. ac_ext=c
  5068. # Object file extension for compiled C test sources.
  5069. objext=o
  5070. objext=$objext
  5071. # Code to be used in simple compile tests
  5072. lt_simple_compile_test_code="int some_variable = 0;\n"
  5073. # Code to be used in simple link tests
  5074. lt_simple_link_test_code='int main(){return(0);}\n'
  5075. # If no C compiler was specified, use CC.
  5076. LTCC=${LTCC-"$CC"}
  5077. # Allow CC to be a program name with arguments.
  5078. compiler=$CC
  5079. # save warnings/boilerplate of simple test code
  5080. ac_outfile=conftest.$ac_objext
  5081. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  5082. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  5083. _lt_compiler_boilerplate=`cat conftest.err`
  5084. $rm conftest*
  5085. ac_outfile=conftest.$ac_objext
  5086. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  5087. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  5088. _lt_linker_boilerplate=`cat conftest.err`
  5089. $rm conftest*
  5090. #
  5091. # Check for any special shared library compilation flags.
  5092. #
  5093. lt_prog_cc_shlib=
  5094. if test "$GCC" = no; then
  5095. case $host_os in
  5096. sco3.2v5*)
  5097. lt_prog_cc_shlib='-belf'
  5098. ;;
  5099. esac
  5100. fi
  5101. if test -n "$lt_prog_cc_shlib"; then
  5102. { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
  5103. echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
  5104. if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
  5105. else
  5106. { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
  5107. echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
  5108. lt_cv_prog_cc_can_build_shared=no
  5109. fi
  5110. fi
  5111. #
  5112. # Check to make sure the static flag actually works.
  5113. #
  5114. echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
  5115. echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
  5116. if test "${lt_prog_compiler_static_works+set}" = set; then
  5117. echo $ECHO_N "(cached) $ECHO_C" >&6
  5118. else
  5119. lt_prog_compiler_static_works=no
  5120. save_LDFLAGS="$LDFLAGS"
  5121. LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
  5122. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  5123. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  5124. # The compiler can only warn and ignore the option if not recognized
  5125. # So say no if there are warnings
  5126. if test -s conftest.err; then
  5127. # Append any errors to the config.log.
  5128. cat conftest.err 1>&5
  5129. $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
  5130. $SED '/^$/d' conftest.err >conftest.er2
  5131. if diff conftest.exp conftest.er2 >/dev/null; then
  5132. lt_prog_compiler_static_works=yes
  5133. fi
  5134. else
  5135. lt_prog_compiler_static_works=yes
  5136. fi
  5137. fi
  5138. $rm conftest*
  5139. LDFLAGS="$save_LDFLAGS"
  5140. fi
  5141. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  5142. echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
  5143. if test x"$lt_prog_compiler_static_works" = xyes; then
  5144. :
  5145. else
  5146. lt_prog_compiler_static=
  5147. fi
  5148. lt_prog_compiler_no_builtin_flag=
  5149. if test "$GCC" = yes; then
  5150. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  5151. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  5152. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  5153. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  5154. echo $ECHO_N "(cached) $ECHO_C" >&6
  5155. else
  5156. lt_cv_prog_compiler_rtti_exceptions=no
  5157. ac_outfile=conftest.$ac_objext
  5158. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  5159. lt_compiler_flag="-fno-rtti -fno-exceptions"
  5160. # Insert the option either (1) after the last *FLAGS variable, or
  5161. # (2) before a word containing "conftest.", or (3) at the end.
  5162. # Note that $ac_compile itself does not contain backslashes and begins
  5163. # with a dollar sign (not a hyphen), so the echo should work correctly.
  5164. # The option is referenced via a variable to avoid confusing sed.
  5165. lt_compile=`echo "$ac_compile" | $SED \
  5166. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  5167. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  5168. -e 's:$: $lt_compiler_flag:'`
  5169. (eval echo "\"\$as_me:5706: $lt_compile\"" >&5)
  5170. (eval "$lt_compile" 2>conftest.err)
  5171. ac_status=$?
  5172. cat conftest.err >&5
  5173. echo "$as_me:5710: \$? = $ac_status" >&5
  5174. if (exit $ac_status) && test -s "$ac_outfile"; then
  5175. # The compiler can only warn and ignore the option if not recognized
  5176. # So say no if there are warnings other than the usual output.
  5177. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  5178. $SED '/^$/d' conftest.err >conftest.er2
  5179. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  5180. lt_cv_prog_compiler_rtti_exceptions=yes
  5181. fi
  5182. fi
  5183. $rm conftest*
  5184. fi
  5185. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  5186. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  5187. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  5188. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  5189. else
  5190. :
  5191. fi
  5192. fi
  5193. lt_prog_compiler_wl=
  5194. lt_prog_compiler_pic=
  5195. lt_prog_compiler_static=
  5196. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  5197. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  5198. if test "$GCC" = yes; then
  5199. lt_prog_compiler_wl='-Wl,'
  5200. lt_prog_compiler_static='-static'
  5201. case $host_os in
  5202. aix*)
  5203. # All AIX code is PIC.
  5204. if test "$host_cpu" = ia64; then
  5205. # AIX 5 now supports IA64 processor
  5206. lt_prog_compiler_static='-Bstatic'
  5207. fi
  5208. ;;
  5209. amigaos*)
  5210. # FIXME: we need at least 68020 code to build shared libraries, but
  5211. # adding the `-m68020' flag to GCC prevents building anything better,
  5212. # like `-m68040'.
  5213. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  5214. ;;
  5215. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  5216. # PIC is the default for these OSes.
  5217. ;;
  5218. mingw* | pw32* | os2*)
  5219. # This hack is so that the source file can tell whether it is being
  5220. # built for inclusion in a dll (and should export symbols for example).
  5221. lt_prog_compiler_pic='-DDLL_EXPORT'
  5222. ;;
  5223. darwin* | rhapsody*)
  5224. # PIC is the default on this platform
  5225. # Common symbols not allowed in MH_DYLIB files
  5226. lt_prog_compiler_pic='-fno-common'
  5227. ;;
  5228. msdosdjgpp*)
  5229. # Just because we use GCC doesn't mean we suddenly get shared libraries
  5230. # on systems that don't support them.
  5231. lt_prog_compiler_can_build_shared=no
  5232. enable_shared=no
  5233. ;;
  5234. sysv4*MP*)
  5235. if test -d /usr/nec; then
  5236. lt_prog_compiler_pic=-Kconform_pic
  5237. fi
  5238. ;;
  5239. hpux*)
  5240. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5241. # not for PA HP-UX.
  5242. case "$host_cpu" in
  5243. hppa*64*|ia64*)
  5244. # +Z the default
  5245. ;;
  5246. *)
  5247. lt_prog_compiler_pic='-fPIC'
  5248. ;;
  5249. esac
  5250. ;;
  5251. *)
  5252. lt_prog_compiler_pic='-fPIC'
  5253. ;;
  5254. esac
  5255. else
  5256. # PORTME Check for flag to pass linker flags through the system compiler.
  5257. case $host_os in
  5258. aix*)
  5259. lt_prog_compiler_wl='-Wl,'
  5260. if test "$host_cpu" = ia64; then
  5261. # AIX 5 now supports IA64 processor
  5262. lt_prog_compiler_static='-Bstatic'
  5263. else
  5264. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  5265. fi
  5266. ;;
  5267. darwin*)
  5268. # PIC is the default on this platform
  5269. # Common symbols not allowed in MH_DYLIB files
  5270. case $cc_basename in
  5271. xlc*)
  5272. lt_prog_compiler_pic='-qnocommon'
  5273. lt_prog_compiler_wl='-Wl,'
  5274. ;;
  5275. esac
  5276. ;;
  5277. mingw* | pw32* | os2*)
  5278. # This hack is so that the source file can tell whether it is being
  5279. # built for inclusion in a dll (and should export symbols for example).
  5280. lt_prog_compiler_pic='-DDLL_EXPORT'
  5281. ;;
  5282. hpux9* | hpux10* | hpux11*)
  5283. lt_prog_compiler_wl='-Wl,'
  5284. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5285. # not for PA HP-UX.
  5286. case "$host_cpu" in
  5287. hppa*64*|ia64*)
  5288. # +Z the default
  5289. ;;
  5290. *)
  5291. lt_prog_compiler_pic='+Z'
  5292. ;;
  5293. esac
  5294. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  5295. lt_prog_compiler_static='${wl}-a ${wl}archive'
  5296. ;;
  5297. irix5* | irix6* | nonstopux*)
  5298. lt_prog_compiler_wl='-Wl,'
  5299. # PIC (with -KPIC) is the default.
  5300. lt_prog_compiler_static='-non_shared'
  5301. ;;
  5302. newsos6)
  5303. lt_prog_compiler_pic='-KPIC'
  5304. lt_prog_compiler_static='-Bstatic'
  5305. ;;
  5306. linux*)
  5307. case $cc_basename in
  5308. icc* | ecc*)
  5309. lt_prog_compiler_wl='-Wl,'
  5310. lt_prog_compiler_pic='-KPIC'
  5311. lt_prog_compiler_static='-static'
  5312. ;;
  5313. pgcc* | pgf77* | pgf90*)
  5314. # Portland Group compilers (*not* the Pentium gcc compiler,
  5315. # which looks to be a dead project)
  5316. lt_prog_compiler_wl='-Wl,'
  5317. lt_prog_compiler_pic='-fpic'
  5318. lt_prog_compiler_static='-static'
  5319. ;;
  5320. ccc*)
  5321. lt_prog_compiler_wl='-Wl,'
  5322. # All Alpha code is PIC.
  5323. lt_prog_compiler_static='-non_shared'
  5324. ;;
  5325. esac
  5326. ;;
  5327. osf3* | osf4* | osf5*)
  5328. lt_prog_compiler_wl='-Wl,'
  5329. # All OSF/1 code is PIC.
  5330. lt_prog_compiler_static='-non_shared'
  5331. ;;
  5332. sco3.2v5*)
  5333. lt_prog_compiler_pic='-Kpic'
  5334. lt_prog_compiler_static='-dn'
  5335. ;;
  5336. solaris*)
  5337. lt_prog_compiler_pic='-KPIC'
  5338. lt_prog_compiler_static='-Bstatic'
  5339. case $cc_basename in
  5340. f77* | f90* | f95*)
  5341. lt_prog_compiler_wl='-Qoption ld ';;
  5342. *)
  5343. lt_prog_compiler_wl='-Wl,';;
  5344. esac
  5345. ;;
  5346. sunos4*)
  5347. lt_prog_compiler_wl='-Qoption ld '
  5348. lt_prog_compiler_pic='-PIC'
  5349. lt_prog_compiler_static='-Bstatic'
  5350. ;;
  5351. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  5352. lt_prog_compiler_wl='-Wl,'
  5353. lt_prog_compiler_pic='-KPIC'
  5354. lt_prog_compiler_static='-Bstatic'
  5355. ;;
  5356. sysv4*MP*)
  5357. if test -d /usr/nec ;then
  5358. lt_prog_compiler_pic='-Kconform_pic'
  5359. lt_prog_compiler_static='-Bstatic'
  5360. fi
  5361. ;;
  5362. unicos*)
  5363. lt_prog_compiler_wl='-Wl,'
  5364. lt_prog_compiler_can_build_shared=no
  5365. ;;
  5366. uts4*)
  5367. lt_prog_compiler_pic='-pic'
  5368. lt_prog_compiler_static='-Bstatic'
  5369. ;;
  5370. *)
  5371. lt_prog_compiler_can_build_shared=no
  5372. ;;
  5373. esac
  5374. fi
  5375. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  5376. echo "${ECHO_T}$lt_prog_compiler_pic" >&6
  5377. #
  5378. # Check to make sure the PIC flag actually works.
  5379. #
  5380. if test -n "$lt_prog_compiler_pic"; then
  5381. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  5382. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
  5383. if test "${lt_prog_compiler_pic_works+set}" = set; then
  5384. echo $ECHO_N "(cached) $ECHO_C" >&6
  5385. else
  5386. lt_prog_compiler_pic_works=no
  5387. ac_outfile=conftest.$ac_objext
  5388. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  5389. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  5390. # Insert the option either (1) after the last *FLAGS variable, or
  5391. # (2) before a word containing "conftest.", or (3) at the end.
  5392. # Note that $ac_compile itself does not contain backslashes and begins
  5393. # with a dollar sign (not a hyphen), so the echo should work correctly.
  5394. # The option is referenced via a variable to avoid confusing sed.
  5395. lt_compile=`echo "$ac_compile" | $SED \
  5396. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  5397. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  5398. -e 's:$: $lt_compiler_flag:'`
  5399. (eval echo "\"\$as_me:5968: $lt_compile\"" >&5)
  5400. (eval "$lt_compile" 2>conftest.err)
  5401. ac_status=$?
  5402. cat conftest.err >&5
  5403. echo "$as_me:5972: \$? = $ac_status" >&5
  5404. if (exit $ac_status) && test -s "$ac_outfile"; then
  5405. # The compiler can only warn and ignore the option if not recognized
  5406. # So say no if there are warnings other than the usual output.
  5407. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  5408. $SED '/^$/d' conftest.err >conftest.er2
  5409. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  5410. lt_prog_compiler_pic_works=yes
  5411. fi
  5412. fi
  5413. $rm conftest*
  5414. fi
  5415. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  5416. echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
  5417. if test x"$lt_prog_compiler_pic_works" = xyes; then
  5418. case $lt_prog_compiler_pic in
  5419. "" | " "*) ;;
  5420. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  5421. esac
  5422. else
  5423. lt_prog_compiler_pic=
  5424. lt_prog_compiler_can_build_shared=no
  5425. fi
  5426. fi
  5427. case "$host_os" in
  5428. # For platforms which do not support PIC, -DPIC is meaningless:
  5429. *djgpp*)
  5430. lt_prog_compiler_pic=
  5431. ;;
  5432. *)
  5433. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  5434. ;;
  5435. esac
  5436. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  5437. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  5438. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  5439. echo $ECHO_N "(cached) $ECHO_C" >&6
  5440. else
  5441. lt_cv_prog_compiler_c_o=no
  5442. $rm -r conftest 2>/dev/null
  5443. mkdir conftest
  5444. cd conftest
  5445. mkdir out
  5446. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  5447. lt_compiler_flag="-o out/conftest2.$ac_objext"
  5448. # Insert the option either (1) after the last *FLAGS variable, or
  5449. # (2) before a word containing "conftest.", or (3) at the end.
  5450. # Note that $ac_compile itself does not contain backslashes and begins
  5451. # with a dollar sign (not a hyphen), so the echo should work correctly.
  5452. lt_compile=`echo "$ac_compile" | $SED \
  5453. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  5454. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  5455. -e 's:$: $lt_compiler_flag:'`
  5456. (eval echo "\"\$as_me:6030: $lt_compile\"" >&5)
  5457. (eval "$lt_compile" 2>out/conftest.err)
  5458. ac_status=$?
  5459. cat out/conftest.err >&5
  5460. echo "$as_me:6034: \$? = $ac_status" >&5
  5461. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  5462. then
  5463. # The compiler can only warn and ignore the option if not recognized
  5464. # So say no if there are warnings
  5465. $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
  5466. $SED '/^$/d' out/conftest.err >out/conftest.er2
  5467. if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  5468. lt_cv_prog_compiler_c_o=yes
  5469. fi
  5470. fi
  5471. chmod u+w .
  5472. $rm conftest*
  5473. # SGI C++ compiler will create directory out/ii_files/ for
  5474. # template instantiation
  5475. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  5476. $rm out/* && rmdir out
  5477. cd ..
  5478. rmdir conftest
  5479. $rm conftest*
  5480. fi
  5481. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  5482. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
  5483. hard_links="nottested"
  5484. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  5485. # do not overwrite the value of need_locks provided by the user
  5486. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  5487. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  5488. hard_links=yes
  5489. $rm conftest*
  5490. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  5491. touch conftest.a
  5492. ln conftest.a conftest.b 2>&5 || hard_links=no
  5493. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  5494. echo "$as_me:$LINENO: result: $hard_links" >&5
  5495. echo "${ECHO_T}$hard_links" >&6
  5496. if test "$hard_links" = no; then
  5497. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  5498. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  5499. need_locks=warn
  5500. fi
  5501. else
  5502. need_locks=no
  5503. fi
  5504. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  5505. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  5506. runpath_var=
  5507. allow_undefined_flag=
  5508. enable_shared_with_static_runtimes=no
  5509. archive_cmds=
  5510. archive_expsym_cmds=
  5511. old_archive_From_new_cmds=
  5512. old_archive_from_expsyms_cmds=
  5513. export_dynamic_flag_spec=
  5514. whole_archive_flag_spec=
  5515. thread_safe_flag_spec=
  5516. hardcode_libdir_flag_spec=
  5517. hardcode_libdir_flag_spec_ld=
  5518. hardcode_libdir_separator=
  5519. hardcode_direct=no
  5520. hardcode_minus_L=no
  5521. hardcode_shlibpath_var=unsupported
  5522. link_all_deplibs=unknown
  5523. hardcode_automatic=no
  5524. module_cmds=
  5525. module_expsym_cmds=
  5526. always_export_symbols=no
  5527. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  5528. # include_expsyms should be a list of space-separated symbols to be *always*
  5529. # included in the symbol list
  5530. include_expsyms=
  5531. # exclude_expsyms can be an extended regexp of symbols to exclude
  5532. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  5533. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  5534. # as well as any symbol that contains `d'.
  5535. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  5536. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  5537. # platforms (ab)use it in PIC code, but their linkers get confused if
  5538. # the symbol is explicitly referenced. Since portable code cannot
  5539. # rely on this symbol name, it's probably fine to never include it in
  5540. # preloaded symbol tables.
  5541. extract_expsyms_cmds=
  5542. # Just being paranoid about ensuring that cc_basename is set.
  5543. for cc_temp in $compiler""; do
  5544. case $cc_temp in
  5545. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5546. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5547. \-*) ;;
  5548. *) break;;
  5549. esac
  5550. done
  5551. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  5552. case $host_os in
  5553. cygwin* | mingw* | pw32*)
  5554. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  5555. # When not using gcc, we currently assume that we are using
  5556. # Microsoft Visual C++.
  5557. if test "$GCC" != yes; then
  5558. with_gnu_ld=no
  5559. fi
  5560. ;;
  5561. openbsd*)
  5562. with_gnu_ld=no
  5563. ;;
  5564. esac
  5565. ld_shlibs=yes
  5566. if test "$with_gnu_ld" = yes; then
  5567. # If archive_cmds runs LD, not CC, wlarc should be empty
  5568. wlarc='${wl}'
  5569. # Set some defaults for GNU ld with shared library support. These
  5570. # are reset later if shared libraries are not supported. Putting them
  5571. # here allows them to be overridden if necessary.
  5572. runpath_var=LD_RUN_PATH
  5573. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  5574. export_dynamic_flag_spec='${wl}--export-dynamic'
  5575. # ancient GNU ld didn't support --whole-archive et. al.
  5576. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  5577. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5578. else
  5579. whole_archive_flag_spec=
  5580. fi
  5581. supports_anon_versioning=no
  5582. case `$LD -v 2>/dev/null` in
  5583. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  5584. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  5585. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  5586. *\ 2.11.*) ;; # other 2.11 versions
  5587. *) supports_anon_versioning=yes ;;
  5588. esac
  5589. # See if GNU ld supports shared libraries.
  5590. case $host_os in
  5591. aix3* | aix4* | aix5*)
  5592. # On AIX/PPC, the GNU linker is very broken
  5593. if test "$host_cpu" != ia64; then
  5594. ld_shlibs=no
  5595. cat <<EOF 1>&2
  5596. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  5597. *** to be unable to reliably create shared libraries on AIX.
  5598. *** Therefore, libtool is disabling shared libraries support. If you
  5599. *** really care for shared libraries, you may want to modify your PATH
  5600. *** so that a non-GNU linker is found, and then restart.
  5601. EOF
  5602. fi
  5603. ;;
  5604. amigaos*)
  5605. 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)'
  5606. hardcode_libdir_flag_spec='-L$libdir'
  5607. hardcode_minus_L=yes
  5608. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  5609. # that the semantics of dynamic libraries on AmigaOS, at least up
  5610. # to version 4, is to share data among multiple programs linked
  5611. # with the same dynamic library. Since this doesn't match the
  5612. # behavior of shared libraries on other platforms, we can't use
  5613. # them.
  5614. ld_shlibs=no
  5615. ;;
  5616. beos*)
  5617. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5618. allow_undefined_flag=unsupported
  5619. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  5620. # support --undefined. This deserves some investigation. FIXME
  5621. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5622. else
  5623. ld_shlibs=no
  5624. fi
  5625. ;;
  5626. cygwin* | mingw* | pw32*)
  5627. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  5628. # as there is no search path for DLLs.
  5629. hardcode_libdir_flag_spec='-L$libdir'
  5630. allow_undefined_flag=unsupported
  5631. always_export_symbols=no
  5632. enable_shared_with_static_runtimes=yes
  5633. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  5634. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  5635. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  5636. # If the export-symbols file already is a .def file (1st line
  5637. # is EXPORTS), use it as is; otherwise, prepend...
  5638. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5639. cp $export_symbols $output_objdir/$soname.def;
  5640. else
  5641. echo EXPORTS > $output_objdir/$soname.def;
  5642. cat $export_symbols >> $output_objdir/$soname.def;
  5643. fi~
  5644. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  5645. else
  5646. ld_shlibs=no
  5647. fi
  5648. ;;
  5649. linux*)
  5650. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5651. tmp_addflag=
  5652. case $cc_basename,$host_cpu in
  5653. pgcc*) # Portland Group C compiler
  5654. 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'
  5655. tmp_addflag=' $pic_flag'
  5656. ;;
  5657. pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
  5658. 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'
  5659. tmp_addflag=' $pic_flag -Mnomain' ;;
  5660. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  5661. tmp_addflag=' -i_dynamic' ;;
  5662. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  5663. tmp_addflag=' -i_dynamic -nofor_main' ;;
  5664. ifc* | ifort*) # Intel Fortran compiler
  5665. tmp_addflag=' -nofor_main' ;;
  5666. esac
  5667. archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5668. if test $supports_anon_versioning = yes; then
  5669. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  5670. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  5671. $echo "local: *; };" >> $output_objdir/$libname.ver~
  5672. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  5673. fi
  5674. else
  5675. ld_shlibs=no
  5676. fi
  5677. ;;
  5678. netbsd*)
  5679. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  5680. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  5681. wlarc=
  5682. else
  5683. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5684. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5685. fi
  5686. ;;
  5687. solaris* | sysv5*)
  5688. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  5689. ld_shlibs=no
  5690. cat <<EOF 1>&2
  5691. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  5692. *** create shared libraries on Solaris systems. Therefore, libtool
  5693. *** is disabling shared libraries support. We urge you to upgrade GNU
  5694. *** binutils to release 2.9.1 or newer. Another option is to modify
  5695. *** your PATH or compiler configuration so that the native linker is
  5696. *** used, and then restart.
  5697. EOF
  5698. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5699. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5700. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5701. else
  5702. ld_shlibs=no
  5703. fi
  5704. ;;
  5705. sunos4*)
  5706. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  5707. wlarc=
  5708. hardcode_direct=yes
  5709. hardcode_shlibpath_var=no
  5710. ;;
  5711. *)
  5712. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5713. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5714. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5715. else
  5716. ld_shlibs=no
  5717. fi
  5718. ;;
  5719. esac
  5720. if test "$ld_shlibs" = no; then
  5721. runpath_var=
  5722. hardcode_libdir_flag_spec=
  5723. export_dynamic_flag_spec=
  5724. whole_archive_flag_spec=
  5725. fi
  5726. else
  5727. # PORTME fill in a description of your system's linker (not GNU ld)
  5728. case $host_os in
  5729. aix3*)
  5730. allow_undefined_flag=unsupported
  5731. always_export_symbols=yes
  5732. 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'
  5733. # Note: this linker hardcodes the directories in LIBPATH if there
  5734. # are no directories specified by -L.
  5735. hardcode_minus_L=yes
  5736. if test "$GCC" = yes && test -z "$link_static_flag"; then
  5737. # Neither direct hardcoding nor static linking is supported with a
  5738. # broken collect2.
  5739. hardcode_direct=unsupported
  5740. fi
  5741. ;;
  5742. aix4* | aix5*)
  5743. if test "$host_cpu" = ia64; then
  5744. # On IA64, the linker does run time linking by default, so we don't
  5745. # have to do anything special.
  5746. aix_use_runtimelinking=no
  5747. exp_sym_flag='-Bexport'
  5748. no_entry_flag=""
  5749. else
  5750. # If we're using GNU nm, then we don't want the "-C" option.
  5751. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  5752. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  5753. 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'
  5754. else
  5755. 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'
  5756. fi
  5757. aix_use_runtimelinking=no
  5758. # Test if we are trying to use run time linking or normal
  5759. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5760. # need to do runtime linking.
  5761. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  5762. for ld_flag in $LDFLAGS; do
  5763. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  5764. aix_use_runtimelinking=yes
  5765. break
  5766. fi
  5767. done
  5768. esac
  5769. exp_sym_flag='-bexport'
  5770. no_entry_flag='-bnoentry'
  5771. fi
  5772. # When large executables or shared objects are built, AIX ld can
  5773. # have problems creating the table of contents. If linking a library
  5774. # or program results in "error TOC overflow" add -mminimal-toc to
  5775. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  5776. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5777. archive_cmds=''
  5778. hardcode_direct=yes
  5779. hardcode_libdir_separator=':'
  5780. link_all_deplibs=yes
  5781. if test "$GCC" = yes; then
  5782. case $host_os in aix4.[012]|aix4.[012].*)
  5783. # We only want to do this on AIX 4.2 and lower, the check
  5784. # below for broken collect2 doesn't work under 4.3+
  5785. collect2name=`${CC} -print-prog-name=collect2`
  5786. if test -f "$collect2name" && \
  5787. strings "$collect2name" | grep resolve_lib_name >/dev/null
  5788. then
  5789. # We have reworked collect2
  5790. hardcode_direct=yes
  5791. else
  5792. # We have old collect2
  5793. hardcode_direct=unsupported
  5794. # It fails to find uninstalled libraries when the uninstalled
  5795. # path is not listed in the libpath. Setting hardcode_minus_L
  5796. # to unsupported forces relinking
  5797. hardcode_minus_L=yes
  5798. hardcode_libdir_flag_spec='-L$libdir'
  5799. hardcode_libdir_separator=
  5800. fi
  5801. esac
  5802. shared_flag='-shared'
  5803. if test "$aix_use_runtimelinking" = yes; then
  5804. shared_flag="$shared_flag "'${wl}-G'
  5805. fi
  5806. else
  5807. # not using gcc
  5808. if test "$host_cpu" = ia64; then
  5809. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5810. # chokes on -Wl,-G. The following line is correct:
  5811. shared_flag='-G'
  5812. else
  5813. if test "$aix_use_runtimelinking" = yes; then
  5814. shared_flag='${wl}-G'
  5815. else
  5816. shared_flag='${wl}-bM:SRE'
  5817. fi
  5818. fi
  5819. fi
  5820. # It seems that -bexpall does not export symbols beginning with
  5821. # underscore (_), so it is better to generate a list of symbols to export.
  5822. always_export_symbols=yes
  5823. if test "$aix_use_runtimelinking" = yes; then
  5824. # Warning - without using the other runtime loading flags (-brtl),
  5825. # -berok will link without error, but may produce a broken library.
  5826. allow_undefined_flag='-berok'
  5827. # Determine the default libpath from the value encoded in an empty executable.
  5828. cat >conftest.$ac_ext <<_ACEOF
  5829. /* confdefs.h. */
  5830. _ACEOF
  5831. cat confdefs.h >>conftest.$ac_ext
  5832. cat >>conftest.$ac_ext <<_ACEOF
  5833. /* end confdefs.h. */
  5834. int
  5835. main ()
  5836. {
  5837. ;
  5838. return 0;
  5839. }
  5840. _ACEOF
  5841. rm -f conftest.$ac_objext conftest$ac_exeext
  5842. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5843. (eval $ac_link) 2>conftest.er1
  5844. ac_status=$?
  5845. grep -v '^ *+' conftest.er1 >conftest.err
  5846. rm -f conftest.er1
  5847. cat conftest.err >&5
  5848. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5849. (exit $ac_status); } &&
  5850. { ac_try='test -z "$ac_c_werror_flag"
  5851. || test ! -s conftest.err'
  5852. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5853. (eval $ac_try) 2>&5
  5854. ac_status=$?
  5855. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5856. (exit $ac_status); }; } &&
  5857. { ac_try='test -s conftest$ac_exeext'
  5858. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5859. (eval $ac_try) 2>&5
  5860. ac_status=$?
  5861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5862. (exit $ac_status); }; }; then
  5863. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  5864. }'`
  5865. # Check for a 64-bit object if we didn't find anything.
  5866. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  5867. }'`; fi
  5868. else
  5869. echo "$as_me: failed program was:" >&5
  5870. sed 's/^/| /' conftest.$ac_ext >&5
  5871. fi
  5872. rm -f conftest.err conftest.$ac_objext \
  5873. conftest$ac_exeext conftest.$ac_ext
  5874. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  5875. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  5876. archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  5877. else
  5878. if test "$host_cpu" = ia64; then
  5879. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  5880. allow_undefined_flag="-z nodefs"
  5881. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  5882. else
  5883. # Determine the default libpath from the value encoded in an empty executable.
  5884. cat >conftest.$ac_ext <<_ACEOF
  5885. /* confdefs.h. */
  5886. _ACEOF
  5887. cat confdefs.h >>conftest.$ac_ext
  5888. cat >>conftest.$ac_ext <<_ACEOF
  5889. /* end confdefs.h. */
  5890. int
  5891. main ()
  5892. {
  5893. ;
  5894. return 0;
  5895. }
  5896. _ACEOF
  5897. rm -f conftest.$ac_objext conftest$ac_exeext
  5898. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5899. (eval $ac_link) 2>conftest.er1
  5900. ac_status=$?
  5901. grep -v '^ *+' conftest.er1 >conftest.err
  5902. rm -f conftest.er1
  5903. cat conftest.err >&5
  5904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5905. (exit $ac_status); } &&
  5906. { ac_try='test -z "$ac_c_werror_flag"
  5907. || test ! -s conftest.err'
  5908. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5909. (eval $ac_try) 2>&5
  5910. ac_status=$?
  5911. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5912. (exit $ac_status); }; } &&
  5913. { ac_try='test -s conftest$ac_exeext'
  5914. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5915. (eval $ac_try) 2>&5
  5916. ac_status=$?
  5917. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5918. (exit $ac_status); }; }; then
  5919. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  5920. }'`
  5921. # Check for a 64-bit object if we didn't find anything.
  5922. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  5923. }'`; fi
  5924. else
  5925. echo "$as_me: failed program was:" >&5
  5926. sed 's/^/| /' conftest.$ac_ext >&5
  5927. fi
  5928. rm -f conftest.err conftest.$ac_objext \
  5929. conftest$ac_exeext conftest.$ac_ext
  5930. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  5931. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  5932. # Warning - without using the other run time loading flags,
  5933. # -berok will link without error, but may produce a broken library.
  5934. no_undefined_flag=' ${wl}-bernotok'
  5935. allow_undefined_flag=' ${wl}-berok'
  5936. # -bexpall does not export symbols beginning with underscore (_)
  5937. always_export_symbols=yes
  5938. # Exported symbols can be pulled into shared objects from archives
  5939. whole_archive_flag_spec=' '
  5940. archive_cmds_need_lc=yes
  5941. # This is similar to how AIX traditionally builds it's shared libraries.
  5942. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  5943. fi
  5944. fi
  5945. ;;
  5946. amigaos*)
  5947. 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)'
  5948. hardcode_libdir_flag_spec='-L$libdir'
  5949. hardcode_minus_L=yes
  5950. # see comment about different semantics on the GNU ld section
  5951. ld_shlibs=no
  5952. ;;
  5953. bsdi[45]*)
  5954. export_dynamic_flag_spec=-rdynamic
  5955. ;;
  5956. cygwin* | mingw* | pw32*)
  5957. # When not using gcc, we currently assume that we are using
  5958. # Microsoft Visual C++.
  5959. # hardcode_libdir_flag_spec is actually meaningless, as there is
  5960. # no search path for DLLs.
  5961. hardcode_libdir_flag_spec=' '
  5962. allow_undefined_flag=unsupported
  5963. # Tell ltmain to make .lib files, not .a files.
  5964. libext=lib
  5965. # Tell ltmain to make .dll files, not .so files.
  5966. shrext_cmds=".dll"
  5967. # FIXME: Setting linknames here is a bad hack.
  5968. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  5969. # The linker will automatically build a .lib file if we build a DLL.
  5970. old_archive_From_new_cmds='true'
  5971. # FIXME: Should let the user specify the lib program.
  5972. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  5973. fix_srcfile_path='`cygpath -w "$srcfile"`'
  5974. enable_shared_with_static_runtimes=yes
  5975. ;;
  5976. darwin* | rhapsody*)
  5977. case "$host_os" in
  5978. rhapsody* | darwin1.[012])
  5979. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  5980. ;;
  5981. *) # Darwin 1.3 on
  5982. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  5983. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  5984. else
  5985. case ${MACOSX_DEPLOYMENT_TARGET} in
  5986. 10.[012])
  5987. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  5988. ;;
  5989. 10.*)
  5990. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  5991. ;;
  5992. esac
  5993. fi
  5994. ;;
  5995. esac
  5996. archive_cmds_need_lc=no
  5997. hardcode_direct=no
  5998. hardcode_automatic=yes
  5999. hardcode_shlibpath_var=unsupported
  6000. whole_archive_flag_spec=''
  6001. link_all_deplibs=yes
  6002. if test "$GCC" = yes ; then
  6003. output_verbose_link_cmd='echo'
  6004. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  6005. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  6006. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  6007. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6008. 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}'
  6009. else
  6010. case $cc_basename in
  6011. xlc*)
  6012. output_verbose_link_cmd='echo'
  6013. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  6014. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  6015. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  6016. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6017. 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}'
  6018. ;;
  6019. *)
  6020. ld_shlibs=no
  6021. ;;
  6022. esac
  6023. fi
  6024. ;;
  6025. dgux*)
  6026. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6027. hardcode_libdir_flag_spec='-L$libdir'
  6028. hardcode_shlibpath_var=no
  6029. ;;
  6030. freebsd1*)
  6031. ld_shlibs=no
  6032. ;;
  6033. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  6034. # support. Future versions do this automatically, but an explicit c++rt0.o
  6035. # does not break anything, and helps significantly (at the cost of a little
  6036. # extra space).
  6037. freebsd2.2*)
  6038. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  6039. hardcode_libdir_flag_spec='-R$libdir'
  6040. hardcode_direct=yes
  6041. hardcode_shlibpath_var=no
  6042. ;;
  6043. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  6044. freebsd2*)
  6045. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6046. hardcode_direct=yes
  6047. hardcode_minus_L=yes
  6048. hardcode_shlibpath_var=no
  6049. ;;
  6050. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  6051. freebsd* | kfreebsd*-gnu | dragonfly*)
  6052. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  6053. hardcode_libdir_flag_spec='-R$libdir'
  6054. hardcode_direct=yes
  6055. hardcode_shlibpath_var=no
  6056. ;;
  6057. hpux9*)
  6058. if test "$GCC" = yes; then
  6059. 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'
  6060. else
  6061. 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'
  6062. fi
  6063. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6064. hardcode_libdir_separator=:
  6065. hardcode_direct=yes
  6066. # hardcode_minus_L: Not really in the search PATH,
  6067. # but as the default location of the library.
  6068. hardcode_minus_L=yes
  6069. export_dynamic_flag_spec='${wl}-E'
  6070. ;;
  6071. hpux10* | hpux11*)
  6072. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6073. case "$host_cpu" in
  6074. hppa*64*|ia64*)
  6075. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6076. ;;
  6077. *)
  6078. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6079. ;;
  6080. esac
  6081. else
  6082. case "$host_cpu" in
  6083. hppa*64*|ia64*)
  6084. archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  6085. ;;
  6086. *)
  6087. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  6088. ;;
  6089. esac
  6090. fi
  6091. if test "$with_gnu_ld" = no; then
  6092. case "$host_cpu" in
  6093. hppa*64*)
  6094. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6095. hardcode_libdir_flag_spec_ld='+b $libdir'
  6096. hardcode_libdir_separator=:
  6097. hardcode_direct=no
  6098. hardcode_shlibpath_var=no
  6099. ;;
  6100. ia64*)
  6101. hardcode_libdir_flag_spec='-L$libdir'
  6102. hardcode_direct=no
  6103. hardcode_shlibpath_var=no
  6104. # hardcode_minus_L: Not really in the search PATH,
  6105. # but as the default location of the library.
  6106. hardcode_minus_L=yes
  6107. ;;
  6108. *)
  6109. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6110. hardcode_libdir_separator=:
  6111. hardcode_direct=yes
  6112. export_dynamic_flag_spec='${wl}-E'
  6113. # hardcode_minus_L: Not really in the search PATH,
  6114. # but as the default location of the library.
  6115. hardcode_minus_L=yes
  6116. ;;
  6117. esac
  6118. fi
  6119. ;;
  6120. irix5* | irix6* | nonstopux*)
  6121. if test "$GCC" = yes; then
  6122. 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'
  6123. else
  6124. 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'
  6125. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  6126. fi
  6127. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6128. hardcode_libdir_separator=:
  6129. link_all_deplibs=yes
  6130. ;;
  6131. netbsd*)
  6132. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6133. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  6134. else
  6135. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  6136. fi
  6137. hardcode_libdir_flag_spec='-R$libdir'
  6138. hardcode_direct=yes
  6139. hardcode_shlibpath_var=no
  6140. ;;
  6141. newsos6)
  6142. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6143. hardcode_direct=yes
  6144. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6145. hardcode_libdir_separator=:
  6146. hardcode_shlibpath_var=no
  6147. ;;
  6148. openbsd*)
  6149. hardcode_direct=yes
  6150. hardcode_shlibpath_var=no
  6151. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6152. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6153. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  6154. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6155. export_dynamic_flag_spec='${wl}-E'
  6156. else
  6157. case $host_os in
  6158. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  6159. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6160. hardcode_libdir_flag_spec='-R$libdir'
  6161. ;;
  6162. *)
  6163. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6164. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6165. ;;
  6166. esac
  6167. fi
  6168. ;;
  6169. os2*)
  6170. hardcode_libdir_flag_spec='-L$libdir'
  6171. hardcode_minus_L=yes
  6172. allow_undefined_flag=unsupported
  6173. 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'
  6174. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  6175. ;;
  6176. osf3*)
  6177. if test "$GCC" = yes; then
  6178. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  6179. 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'
  6180. else
  6181. allow_undefined_flag=' -expect_unresolved \*'
  6182. 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'
  6183. fi
  6184. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6185. hardcode_libdir_separator=:
  6186. ;;
  6187. osf4* | osf5*) # as osf3* with the addition of -msym flag
  6188. if test "$GCC" = yes; then
  6189. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  6190. 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'
  6191. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6192. else
  6193. allow_undefined_flag=' -expect_unresolved \*'
  6194. 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'
  6195. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  6196. $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'
  6197. # Both c and cxx compiler support -rpath directly
  6198. hardcode_libdir_flag_spec='-rpath $libdir'
  6199. fi
  6200. hardcode_libdir_separator=:
  6201. ;;
  6202. sco3.2v5*)
  6203. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6204. hardcode_shlibpath_var=no
  6205. export_dynamic_flag_spec='${wl}-Bexport'
  6206. runpath_var=LD_RUN_PATH
  6207. hardcode_runpath_var=yes
  6208. ;;
  6209. solaris*)
  6210. no_undefined_flag=' -z text'
  6211. if test "$GCC" = yes; then
  6212. wlarc='${wl}'
  6213. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6214. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6215. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  6216. else
  6217. wlarc=''
  6218. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6219. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6220. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  6221. fi
  6222. hardcode_libdir_flag_spec='-R$libdir'
  6223. hardcode_shlibpath_var=no
  6224. case $host_os in
  6225. solaris2.[0-5] | solaris2.[0-5].*) ;;
  6226. *)
  6227. # The compiler driver will combine linker options so we
  6228. # cannot just pass the convience library names through
  6229. # without $wl, iff we do not link with $LD.
  6230. # Luckily, gcc supports the same syntax we need for Sun Studio.
  6231. # Supported since Solaris 2.6 (maybe 2.5.1?)
  6232. case $wlarc in
  6233. '')
  6234. whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  6235. *)
  6236. whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  6237. esac ;;
  6238. esac
  6239. link_all_deplibs=yes
  6240. ;;
  6241. sunos4*)
  6242. if test "x$host_vendor" = xsequent; then
  6243. # Use $CC to link under sequent, because it throws in some extra .o
  6244. # files that make .init and .fini sections work.
  6245. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  6246. else
  6247. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  6248. fi
  6249. hardcode_libdir_flag_spec='-L$libdir'
  6250. hardcode_direct=yes
  6251. hardcode_minus_L=yes
  6252. hardcode_shlibpath_var=no
  6253. ;;
  6254. sysv4)
  6255. case $host_vendor in
  6256. sni)
  6257. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6258. hardcode_direct=yes # is this really true???
  6259. ;;
  6260. siemens)
  6261. ## LD is ld it makes a PLAMLIB
  6262. ## CC just makes a GrossModule.
  6263. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  6264. reload_cmds='$CC -r -o $output$reload_objs'
  6265. hardcode_direct=no
  6266. ;;
  6267. motorola)
  6268. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6269. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  6270. ;;
  6271. esac
  6272. runpath_var='LD_RUN_PATH'
  6273. hardcode_shlibpath_var=no
  6274. ;;
  6275. sysv4.3*)
  6276. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6277. hardcode_shlibpath_var=no
  6278. export_dynamic_flag_spec='-Bexport'
  6279. ;;
  6280. sysv4*MP*)
  6281. if test -d /usr/nec; then
  6282. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6283. hardcode_shlibpath_var=no
  6284. runpath_var=LD_RUN_PATH
  6285. hardcode_runpath_var=yes
  6286. ld_shlibs=yes
  6287. fi
  6288. ;;
  6289. sysv4.2uw2*)
  6290. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  6291. hardcode_direct=yes
  6292. hardcode_minus_L=no
  6293. hardcode_shlibpath_var=no
  6294. hardcode_runpath_var=yes
  6295. runpath_var=LD_RUN_PATH
  6296. ;;
  6297. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  6298. no_undefined_flag='${wl}-z ${wl}text'
  6299. if test "$GCC" = yes; then
  6300. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6301. else
  6302. archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6303. fi
  6304. runpath_var='LD_RUN_PATH'
  6305. hardcode_shlibpath_var=no
  6306. ;;
  6307. sysv5*)
  6308. no_undefined_flag=' -z text'
  6309. # $CC -shared without GNU ld will not create a library from C++
  6310. # object files and a static libstdc++, better avoid it by now
  6311. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6312. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6313. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  6314. hardcode_libdir_flag_spec=
  6315. hardcode_shlibpath_var=no
  6316. runpath_var='LD_RUN_PATH'
  6317. ;;
  6318. uts4*)
  6319. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6320. hardcode_libdir_flag_spec='-L$libdir'
  6321. hardcode_shlibpath_var=no
  6322. ;;
  6323. *)
  6324. ld_shlibs=no
  6325. ;;
  6326. esac
  6327. fi
  6328. echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  6329. echo "${ECHO_T}$ld_shlibs" >&6
  6330. test "$ld_shlibs" = no && can_build_shared=no
  6331. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  6332. if test "$GCC" = yes; then
  6333. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  6334. fi
  6335. #
  6336. # Do we need to explicitly link libc?
  6337. #
  6338. case "x$archive_cmds_need_lc" in
  6339. x|xyes)
  6340. # Assume -lc should be added
  6341. archive_cmds_need_lc=yes
  6342. if test "$enable_shared" = yes && test "$GCC" = yes; then
  6343. case $archive_cmds in
  6344. *'~'*)
  6345. # FIXME: we may have to deal with multi-command sequences.
  6346. ;;
  6347. '$CC '*)
  6348. # Test whether the compiler implicitly links with -lc since on some
  6349. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  6350. # to ld, don't add -lc before -lgcc.
  6351. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  6352. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  6353. $rm conftest*
  6354. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6355. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6356. (eval $ac_compile) 2>&5
  6357. ac_status=$?
  6358. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6359. (exit $ac_status); } 2>conftest.err; then
  6360. soname=conftest
  6361. lib=conftest
  6362. libobjs=conftest.$ac_objext
  6363. deplibs=
  6364. wl=$lt_prog_compiler_wl
  6365. compiler_flags=-v
  6366. linker_flags=-v
  6367. verstring=
  6368. output_objdir=.
  6369. libname=conftest
  6370. lt_save_allow_undefined_flag=$allow_undefined_flag
  6371. allow_undefined_flag=
  6372. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  6373. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  6374. ac_status=$?
  6375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6376. (exit $ac_status); }
  6377. then
  6378. archive_cmds_need_lc=no
  6379. else
  6380. archive_cmds_need_lc=yes
  6381. fi
  6382. allow_undefined_flag=$lt_save_allow_undefined_flag
  6383. else
  6384. cat conftest.err 1>&5
  6385. fi
  6386. $rm conftest*
  6387. echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  6388. echo "${ECHO_T}$archive_cmds_need_lc" >&6
  6389. ;;
  6390. esac
  6391. fi
  6392. ;;
  6393. esac
  6394. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  6395. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  6396. library_names_spec=
  6397. libname_spec='lib$name'
  6398. soname_spec=
  6399. shrext_cmds=".so"
  6400. postinstall_cmds=
  6401. postuninstall_cmds=
  6402. finish_cmds=
  6403. finish_eval=
  6404. shlibpath_var=
  6405. shlibpath_overrides_runpath=unknown
  6406. version_type=none
  6407. dynamic_linker="$host_os ld.so"
  6408. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  6409. if test "$GCC" = yes; then
  6410. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  6411. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  6412. # if the path contains ";" then we assume it to be the separator
  6413. # otherwise default to the standard path separator (i.e. ":") - it is
  6414. # assumed that no part of a normal pathname contains ";" but that should
  6415. # okay in the real world where ";" in dirpaths is itself problematic.
  6416. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  6417. else
  6418. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  6419. fi
  6420. else
  6421. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  6422. fi
  6423. need_lib_prefix=unknown
  6424. hardcode_into_libs=no
  6425. # when you set need_version to no, make sure it does not cause -set_version
  6426. # flags to be left without arguments
  6427. need_version=unknown
  6428. case $host_os in
  6429. aix3*)
  6430. version_type=linux
  6431. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  6432. shlibpath_var=LIBPATH
  6433. # AIX 3 has no versioning support, so we append a major version to the name.
  6434. soname_spec='${libname}${release}${shared_ext}$major'
  6435. ;;
  6436. aix4* | aix5*)
  6437. version_type=linux
  6438. need_lib_prefix=no
  6439. need_version=no
  6440. hardcode_into_libs=yes
  6441. if test "$host_cpu" = ia64; then
  6442. # AIX 5 supports IA64
  6443. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  6444. shlibpath_var=LD_LIBRARY_PATH
  6445. else
  6446. # With GCC up to 2.95.x, collect2 would create an import file
  6447. # for dependence libraries. The import file would start with
  6448. # the line `#! .'. This would cause the generated library to
  6449. # depend on `.', always an invalid library. This was fixed in
  6450. # development snapshots of GCC prior to 3.0.
  6451. case $host_os in
  6452. aix4 | aix4.[01] | aix4.[01].*)
  6453. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  6454. echo ' yes '
  6455. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  6456. :
  6457. else
  6458. can_build_shared=no
  6459. fi
  6460. ;;
  6461. esac
  6462. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  6463. # soname into executable. Probably we can add versioning support to
  6464. # collect2, so additional links can be useful in future.
  6465. if test "$aix_use_runtimelinking" = yes; then
  6466. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  6467. # instead of lib<name>.a to let people know that these are not
  6468. # typical AIX shared libraries.
  6469. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6470. else
  6471. # We preserve .a as extension for shared libraries through AIX4.2
  6472. # and later when we are not doing run time linking.
  6473. library_names_spec='${libname}${release}.a $libname.a'
  6474. soname_spec='${libname}${release}${shared_ext}$major'
  6475. fi
  6476. shlibpath_var=LIBPATH
  6477. fi
  6478. ;;
  6479. amigaos*)
  6480. library_names_spec='$libname.ixlibrary $libname.a'
  6481. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  6482. 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'
  6483. ;;
  6484. beos*)
  6485. library_names_spec='${libname}${shared_ext}'
  6486. dynamic_linker="$host_os ld.so"
  6487. shlibpath_var=LIBRARY_PATH
  6488. ;;
  6489. bsdi[45]*)
  6490. version_type=linux
  6491. need_version=no
  6492. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6493. soname_spec='${libname}${release}${shared_ext}$major'
  6494. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  6495. shlibpath_var=LD_LIBRARY_PATH
  6496. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  6497. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  6498. # the default ld.so.conf also contains /usr/contrib/lib and
  6499. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  6500. # libtool to hard-code these into programs
  6501. ;;
  6502. cygwin* | mingw* | pw32*)
  6503. version_type=windows
  6504. shrext_cmds=".dll"
  6505. need_version=no
  6506. need_lib_prefix=no
  6507. case $GCC,$host_os in
  6508. yes,cygwin* | yes,mingw* | yes,pw32*)
  6509. library_names_spec='$libname.dll.a'
  6510. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  6511. postinstall_cmds='base_file=`basename \${file}`~
  6512. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  6513. dldir=$destdir/`dirname \$dlpath`~
  6514. test -d \$dldir || mkdir -p \$dldir~
  6515. $install_prog $dir/$dlname \$dldir/$dlname'
  6516. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  6517. dlpath=$dir/\$dldll~
  6518. $rm \$dlpath'
  6519. shlibpath_overrides_runpath=yes
  6520. case $host_os in
  6521. cygwin*)
  6522. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  6523. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  6524. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  6525. ;;
  6526. mingw*)
  6527. # MinGW DLLs use traditional 'lib' prefix
  6528. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  6529. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  6530. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  6531. # It is most probably a Windows format PATH printed by
  6532. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  6533. # path with ; separators, and with drive letters. We can handle the
  6534. # drive letters (cygwin fileutils understands them), so leave them,
  6535. # especially as we might pass files found there to a mingw objdump,
  6536. # which wouldn't understand a cygwinified path. Ahh.
  6537. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  6538. else
  6539. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  6540. fi
  6541. ;;
  6542. pw32*)
  6543. # pw32 DLLs use 'pw' prefix rather than 'lib'
  6544. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  6545. ;;
  6546. esac
  6547. ;;
  6548. *)
  6549. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  6550. ;;
  6551. esac
  6552. dynamic_linker='Win32 ld.exe'
  6553. # FIXME: first we should search . and the directory the executable is in
  6554. shlibpath_var=PATH
  6555. ;;
  6556. darwin* | rhapsody*)
  6557. dynamic_linker="$host_os dyld"
  6558. version_type=darwin
  6559. need_lib_prefix=no
  6560. need_version=no
  6561. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  6562. soname_spec='${libname}${release}${major}$shared_ext'
  6563. shlibpath_overrides_runpath=yes
  6564. shlibpath_var=DYLD_LIBRARY_PATH
  6565. shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  6566. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  6567. if test "$GCC" = yes; then
  6568. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  6569. else
  6570. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  6571. fi
  6572. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  6573. ;;
  6574. dgux*)
  6575. version_type=linux
  6576. need_lib_prefix=no
  6577. need_version=no
  6578. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  6579. soname_spec='${libname}${release}${shared_ext}$major'
  6580. shlibpath_var=LD_LIBRARY_PATH
  6581. ;;
  6582. freebsd1*)
  6583. dynamic_linker=no
  6584. ;;
  6585. kfreebsd*-gnu)
  6586. version_type=linux
  6587. need_lib_prefix=no
  6588. need_version=no
  6589. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  6590. soname_spec='${libname}${release}${shared_ext}$major'
  6591. shlibpath_var=LD_LIBRARY_PATH
  6592. shlibpath_overrides_runpath=no
  6593. hardcode_into_libs=yes
  6594. dynamic_linker='GNU ld.so'
  6595. ;;
  6596. freebsd* | dragonfly*)
  6597. # DragonFly does not have aout. When/if they implement a new
  6598. # versioning mechanism, adjust this.
  6599. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  6600. version_type=freebsd-$objformat
  6601. case $version_type in
  6602. freebsd-elf*)
  6603. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  6604. need_version=no
  6605. need_lib_prefix=no
  6606. ;;
  6607. freebsd-*)
  6608. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  6609. need_version=yes
  6610. ;;
  6611. esac
  6612. shlibpath_var=LD_LIBRARY_PATH
  6613. case $host_os in
  6614. freebsd2*)
  6615. shlibpath_overrides_runpath=yes
  6616. ;;
  6617. freebsd3.[01]* | freebsdelf3.[01]*)
  6618. shlibpath_overrides_runpath=yes
  6619. hardcode_into_libs=yes
  6620. ;;
  6621. *) # from 3.2 on
  6622. shlibpath_overrides_runpath=no
  6623. hardcode_into_libs=yes
  6624. ;;
  6625. esac
  6626. ;;
  6627. gnu*)
  6628. version_type=linux
  6629. need_lib_prefix=no
  6630. need_version=no
  6631. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  6632. soname_spec='${libname}${release}${shared_ext}$major'
  6633. shlibpath_var=LD_LIBRARY_PATH
  6634. hardcode_into_libs=yes
  6635. ;;
  6636. hpux9* | hpux10* | hpux11*)
  6637. # Give a soname corresponding to the major version so that dld.sl refuses to
  6638. # link against other versions.
  6639. version_type=sunos
  6640. need_lib_prefix=no
  6641. need_version=no
  6642. case "$host_cpu" in
  6643. ia64*)
  6644. shrext_cmds='.so'
  6645. hardcode_into_libs=yes
  6646. dynamic_linker="$host_os dld.so"
  6647. shlibpath_var=LD_LIBRARY_PATH
  6648. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  6649. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6650. soname_spec='${libname}${release}${shared_ext}$major'
  6651. if test "X$HPUX_IA64_MODE" = X32; then
  6652. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  6653. else
  6654. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  6655. fi
  6656. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  6657. ;;
  6658. hppa*64*)
  6659. shrext_cmds='.sl'
  6660. hardcode_into_libs=yes
  6661. dynamic_linker="$host_os dld.sl"
  6662. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  6663. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  6664. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6665. soname_spec='${libname}${release}${shared_ext}$major'
  6666. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  6667. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  6668. ;;
  6669. *)
  6670. shrext_cmds='.sl'
  6671. dynamic_linker="$host_os dld.sl"
  6672. shlibpath_var=SHLIB_PATH
  6673. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  6674. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6675. soname_spec='${libname}${release}${shared_ext}$major'
  6676. ;;
  6677. esac
  6678. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  6679. postinstall_cmds='chmod 555 $lib'
  6680. ;;
  6681. irix5* | irix6* | nonstopux*)
  6682. case $host_os in
  6683. nonstopux*) version_type=nonstopux ;;
  6684. *)
  6685. if test "$lt_cv_prog_gnu_ld" = yes; then
  6686. version_type=linux
  6687. else
  6688. version_type=irix
  6689. fi ;;
  6690. esac
  6691. need_lib_prefix=no
  6692. need_version=no
  6693. soname_spec='${libname}${release}${shared_ext}$major'
  6694. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  6695. case $host_os in
  6696. irix5* | nonstopux*)
  6697. libsuff= shlibsuff=
  6698. ;;
  6699. *)
  6700. case $LD in # libtool.m4 will add one of these switches to LD
  6701. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  6702. libsuff= shlibsuff= libmagic=32-bit;;
  6703. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  6704. libsuff=32 shlibsuff=N32 libmagic=N32;;
  6705. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  6706. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  6707. *) libsuff= shlibsuff= libmagic=never-match;;
  6708. esac
  6709. ;;
  6710. esac
  6711. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  6712. shlibpath_overrides_runpath=no
  6713. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  6714. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  6715. hardcode_into_libs=yes
  6716. ;;
  6717. # No shared lib support for Linux oldld, aout, or coff.
  6718. linux*oldld* | linux*aout* | linux*coff*)
  6719. dynamic_linker=no
  6720. ;;
  6721. # This must be Linux ELF.
  6722. linux*)
  6723. version_type=linux
  6724. need_lib_prefix=no
  6725. need_version=no
  6726. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6727. soname_spec='${libname}${release}${shared_ext}$major'
  6728. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  6729. shlibpath_var=LD_LIBRARY_PATH
  6730. shlibpath_overrides_runpath=no
  6731. # This implies no fast_install, which is unacceptable.
  6732. # Some rework will be needed to allow for fast_install
  6733. # before this can be enabled.
  6734. hardcode_into_libs=yes
  6735. # Append ld.so.conf contents to the search path
  6736. if test -f /etc/ld.so.conf; then
  6737. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  6738. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  6739. fi
  6740. # We used to test for /lib/ld.so.1 and disable shared libraries on
  6741. # powerpc, because MkLinux only supported shared libraries with the
  6742. # GNU dynamic linker. Since this was broken with cross compilers,
  6743. # most powerpc-linux boxes support dynamic linking these days and
  6744. # people can always --disable-shared, the test was removed, and we
  6745. # assume the GNU/Linux dynamic linker is in use.
  6746. dynamic_linker='GNU/Linux ld.so'
  6747. ;;
  6748. knetbsd*-gnu)
  6749. version_type=linux
  6750. need_lib_prefix=no
  6751. need_version=no
  6752. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  6753. soname_spec='${libname}${release}${shared_ext}$major'
  6754. shlibpath_var=LD_LIBRARY_PATH
  6755. shlibpath_overrides_runpath=no
  6756. hardcode_into_libs=yes
  6757. dynamic_linker='GNU ld.so'
  6758. ;;
  6759. netbsd*)
  6760. version_type=sunos
  6761. need_lib_prefix=no
  6762. need_version=no
  6763. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6764. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  6765. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  6766. dynamic_linker='NetBSD (a.out) ld.so'
  6767. else
  6768. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  6769. soname_spec='${libname}${release}${shared_ext}$major'
  6770. dynamic_linker='NetBSD ld.elf_so'
  6771. fi
  6772. shlibpath_var=LD_LIBRARY_PATH
  6773. shlibpath_overrides_runpath=yes
  6774. hardcode_into_libs=yes
  6775. ;;
  6776. newsos6)
  6777. version_type=linux
  6778. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6779. shlibpath_var=LD_LIBRARY_PATH
  6780. shlibpath_overrides_runpath=yes
  6781. ;;
  6782. nto-qnx*)
  6783. version_type=linux
  6784. need_lib_prefix=no
  6785. need_version=no
  6786. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6787. soname_spec='${libname}${release}${shared_ext}$major'
  6788. shlibpath_var=LD_LIBRARY_PATH
  6789. shlibpath_overrides_runpath=yes
  6790. ;;
  6791. openbsd*)
  6792. version_type=sunos
  6793. need_lib_prefix=no
  6794. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  6795. case $host_os in
  6796. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  6797. *) need_version=no ;;
  6798. esac
  6799. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  6800. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  6801. shlibpath_var=LD_LIBRARY_PATH
  6802. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6803. case $host_os in
  6804. openbsd2.[89] | openbsd2.[89].*)
  6805. shlibpath_overrides_runpath=no
  6806. ;;
  6807. *)
  6808. shlibpath_overrides_runpath=yes
  6809. ;;
  6810. esac
  6811. else
  6812. shlibpath_overrides_runpath=yes
  6813. fi
  6814. ;;
  6815. os2*)
  6816. libname_spec='$name'
  6817. shrext_cmds=".dll"
  6818. need_lib_prefix=no
  6819. library_names_spec='$libname${shared_ext} $libname.a'
  6820. dynamic_linker='OS/2 ld.exe'
  6821. shlibpath_var=LIBPATH
  6822. ;;
  6823. osf3* | osf4* | osf5*)
  6824. version_type=osf
  6825. need_lib_prefix=no
  6826. need_version=no
  6827. soname_spec='${libname}${release}${shared_ext}$major'
  6828. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6829. shlibpath_var=LD_LIBRARY_PATH
  6830. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  6831. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  6832. ;;
  6833. sco3.2v5*)
  6834. version_type=osf
  6835. soname_spec='${libname}${release}${shared_ext}$major'
  6836. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6837. shlibpath_var=LD_LIBRARY_PATH
  6838. ;;
  6839. solaris*)
  6840. version_type=linux
  6841. need_lib_prefix=no
  6842. need_version=no
  6843. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6844. soname_spec='${libname}${release}${shared_ext}$major'
  6845. shlibpath_var=LD_LIBRARY_PATH
  6846. shlibpath_overrides_runpath=yes
  6847. hardcode_into_libs=yes
  6848. # ldd complains unless libraries are executable
  6849. postinstall_cmds='chmod +x $lib'
  6850. ;;
  6851. sunos4*)
  6852. version_type=sunos
  6853. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  6854. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  6855. shlibpath_var=LD_LIBRARY_PATH
  6856. shlibpath_overrides_runpath=yes
  6857. if test "$with_gnu_ld" = yes; then
  6858. need_lib_prefix=no
  6859. fi
  6860. need_version=yes
  6861. ;;
  6862. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  6863. version_type=linux
  6864. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6865. soname_spec='${libname}${release}${shared_ext}$major'
  6866. shlibpath_var=LD_LIBRARY_PATH
  6867. case $host_vendor in
  6868. sni)
  6869. shlibpath_overrides_runpath=no
  6870. need_lib_prefix=no
  6871. export_dynamic_flag_spec='${wl}-Blargedynsym'
  6872. runpath_var=LD_RUN_PATH
  6873. ;;
  6874. siemens)
  6875. need_lib_prefix=no
  6876. ;;
  6877. motorola)
  6878. need_lib_prefix=no
  6879. need_version=no
  6880. shlibpath_overrides_runpath=no
  6881. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  6882. ;;
  6883. esac
  6884. ;;
  6885. sysv4*MP*)
  6886. if test -d /usr/nec ;then
  6887. version_type=linux
  6888. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  6889. soname_spec='$libname${shared_ext}.$major'
  6890. shlibpath_var=LD_LIBRARY_PATH
  6891. fi
  6892. ;;
  6893. uts4*)
  6894. version_type=linux
  6895. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6896. soname_spec='${libname}${release}${shared_ext}$major'
  6897. shlibpath_var=LD_LIBRARY_PATH
  6898. ;;
  6899. *)
  6900. dynamic_linker=no
  6901. ;;
  6902. esac
  6903. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  6904. echo "${ECHO_T}$dynamic_linker" >&6
  6905. test "$dynamic_linker" = no && can_build_shared=no
  6906. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  6907. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  6908. hardcode_action=
  6909. if test -n "$hardcode_libdir_flag_spec" || \
  6910. test -n "$runpath_var" || \
  6911. test "X$hardcode_automatic" = "Xyes" ; then
  6912. # We can hardcode non-existant directories.
  6913. if test "$hardcode_direct" != no &&
  6914. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  6915. # have to relink, otherwise we might link with an installed library
  6916. # when we should be linking with a yet-to-be-installed one
  6917. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  6918. test "$hardcode_minus_L" != no; then
  6919. # Linking always hardcodes the temporary library directory.
  6920. hardcode_action=relink
  6921. else
  6922. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  6923. hardcode_action=immediate
  6924. fi
  6925. else
  6926. # We cannot hardcode anything, or else we can only hardcode existing
  6927. # directories.
  6928. hardcode_action=unsupported
  6929. fi
  6930. echo "$as_me:$LINENO: result: $hardcode_action" >&5
  6931. echo "${ECHO_T}$hardcode_action" >&6
  6932. if test "$hardcode_action" = relink; then
  6933. # Fast installation is not supported
  6934. enable_fast_install=no
  6935. elif test "$shlibpath_overrides_runpath" = yes ||
  6936. test "$enable_shared" = no; then
  6937. # Fast installation is not necessary
  6938. enable_fast_install=needless
  6939. fi
  6940. striplib=
  6941. old_striplib=
  6942. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  6943. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  6944. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  6945. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  6946. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  6947. echo "$as_me:$LINENO: result: yes" >&5
  6948. echo "${ECHO_T}yes" >&6
  6949. else
  6950. # FIXME - insert some real tests, host_os isn't really good enough
  6951. case $host_os in
  6952. darwin*)
  6953. if test -n "$STRIP" ; then
  6954. striplib="$STRIP -x"
  6955. echo "$as_me:$LINENO: result: yes" >&5
  6956. echo "${ECHO_T}yes" >&6
  6957. else
  6958. echo "$as_me:$LINENO: result: no" >&5
  6959. echo "${ECHO_T}no" >&6
  6960. fi
  6961. ;;
  6962. *)
  6963. echo "$as_me:$LINENO: result: no" >&5
  6964. echo "${ECHO_T}no" >&6
  6965. ;;
  6966. esac
  6967. fi
  6968. if test "x$enable_dlopen" != xyes; then
  6969. enable_dlopen=unknown
  6970. enable_dlopen_self=unknown
  6971. enable_dlopen_self_static=unknown
  6972. else
  6973. lt_cv_dlopen=no
  6974. lt_cv_dlopen_libs=
  6975. case $host_os in
  6976. beos*)
  6977. lt_cv_dlopen="load_add_on"
  6978. lt_cv_dlopen_libs=
  6979. lt_cv_dlopen_self=yes
  6980. ;;
  6981. mingw* | pw32*)
  6982. lt_cv_dlopen="LoadLibrary"
  6983. lt_cv_dlopen_libs=
  6984. ;;
  6985. cygwin*)
  6986. lt_cv_dlopen="dlopen"
  6987. lt_cv_dlopen_libs=
  6988. ;;
  6989. darwin*)
  6990. # if libdl is installed we need to link against it
  6991. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  6992. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  6993. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  6994. echo $ECHO_N "(cached) $ECHO_C" >&6
  6995. else
  6996. ac_check_lib_save_LIBS=$LIBS
  6997. LIBS="-ldl $LIBS"
  6998. cat >conftest.$ac_ext <<_ACEOF
  6999. /* confdefs.h. */
  7000. _ACEOF
  7001. cat confdefs.h >>conftest.$ac_ext
  7002. cat >>conftest.$ac_ext <<_ACEOF
  7003. /* end confdefs.h. */
  7004. /* Override any gcc2 internal prototype to avoid an error. */
  7005. #ifdef __cplusplus
  7006. extern "C"
  7007. #endif
  7008. /* We use char because int might match the return type of a gcc2
  7009. builtin and then its argument prototype would still apply. */
  7010. char dlopen ();
  7011. int
  7012. main ()
  7013. {
  7014. dlopen ();
  7015. ;
  7016. return 0;
  7017. }
  7018. _ACEOF
  7019. rm -f conftest.$ac_objext conftest$ac_exeext
  7020. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7021. (eval $ac_link) 2>conftest.er1
  7022. ac_status=$?
  7023. grep -v '^ *+' conftest.er1 >conftest.err
  7024. rm -f conftest.er1
  7025. cat conftest.err >&5
  7026. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7027. (exit $ac_status); } &&
  7028. { ac_try='test -z "$ac_c_werror_flag"
  7029. || test ! -s conftest.err'
  7030. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7031. (eval $ac_try) 2>&5
  7032. ac_status=$?
  7033. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7034. (exit $ac_status); }; } &&
  7035. { ac_try='test -s conftest$ac_exeext'
  7036. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7037. (eval $ac_try) 2>&5
  7038. ac_status=$?
  7039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7040. (exit $ac_status); }; }; then
  7041. ac_cv_lib_dl_dlopen=yes
  7042. else
  7043. echo "$as_me: failed program was:" >&5
  7044. sed 's/^/| /' conftest.$ac_ext >&5
  7045. ac_cv_lib_dl_dlopen=no
  7046. fi
  7047. rm -f conftest.err conftest.$ac_objext \
  7048. conftest$ac_exeext conftest.$ac_ext
  7049. LIBS=$ac_check_lib_save_LIBS
  7050. fi
  7051. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  7052. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  7053. if test $ac_cv_lib_dl_dlopen = yes; then
  7054. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  7055. else
  7056. lt_cv_dlopen="dyld"
  7057. lt_cv_dlopen_libs=
  7058. lt_cv_dlopen_self=yes
  7059. fi
  7060. ;;
  7061. *)
  7062. echo "$as_me:$LINENO: checking for shl_load" >&5
  7063. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  7064. if test "${ac_cv_func_shl_load+set}" = set; then
  7065. echo $ECHO_N "(cached) $ECHO_C" >&6
  7066. else
  7067. cat >conftest.$ac_ext <<_ACEOF
  7068. /* confdefs.h. */
  7069. _ACEOF
  7070. cat confdefs.h >>conftest.$ac_ext
  7071. cat >>conftest.$ac_ext <<_ACEOF
  7072. /* end confdefs.h. */
  7073. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  7074. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7075. #define shl_load innocuous_shl_load
  7076. /* System header to define __stub macros and hopefully few prototypes,
  7077. which can conflict with char shl_load (); below.
  7078. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7079. <limits.h> exists even on freestanding compilers. */
  7080. #ifdef __STDC__
  7081. # include <limits.h>
  7082. #else
  7083. # include <assert.h>
  7084. #endif
  7085. #undef shl_load
  7086. /* Override any gcc2 internal prototype to avoid an error. */
  7087. #ifdef __cplusplus
  7088. extern "C"
  7089. {
  7090. #endif
  7091. /* We use char because int might match the return type of a gcc2
  7092. builtin and then its argument prototype would still apply. */
  7093. char shl_load ();
  7094. /* The GNU C library defines this for functions which it implements
  7095. to always fail with ENOSYS. Some functions are actually named
  7096. something starting with __ and the normal name is an alias. */
  7097. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  7098. choke me
  7099. #else
  7100. char (*f) () = shl_load;
  7101. #endif
  7102. #ifdef __cplusplus
  7103. }
  7104. #endif
  7105. int
  7106. main ()
  7107. {
  7108. return f != shl_load;
  7109. ;
  7110. return 0;
  7111. }
  7112. _ACEOF
  7113. rm -f conftest.$ac_objext conftest$ac_exeext
  7114. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7115. (eval $ac_link) 2>conftest.er1
  7116. ac_status=$?
  7117. grep -v '^ *+' conftest.er1 >conftest.err
  7118. rm -f conftest.er1
  7119. cat conftest.err >&5
  7120. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7121. (exit $ac_status); } &&
  7122. { ac_try='test -z "$ac_c_werror_flag"
  7123. || test ! -s conftest.err'
  7124. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7125. (eval $ac_try) 2>&5
  7126. ac_status=$?
  7127. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7128. (exit $ac_status); }; } &&
  7129. { ac_try='test -s conftest$ac_exeext'
  7130. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7131. (eval $ac_try) 2>&5
  7132. ac_status=$?
  7133. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7134. (exit $ac_status); }; }; then
  7135. ac_cv_func_shl_load=yes
  7136. else
  7137. echo "$as_me: failed program was:" >&5
  7138. sed 's/^/| /' conftest.$ac_ext >&5
  7139. ac_cv_func_shl_load=no
  7140. fi
  7141. rm -f conftest.err conftest.$ac_objext \
  7142. conftest$ac_exeext conftest.$ac_ext
  7143. fi
  7144. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  7145. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  7146. if test $ac_cv_func_shl_load = yes; then
  7147. lt_cv_dlopen="shl_load"
  7148. else
  7149. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  7150. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  7151. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  7152. echo $ECHO_N "(cached) $ECHO_C" >&6
  7153. else
  7154. ac_check_lib_save_LIBS=$LIBS
  7155. LIBS="-ldld $LIBS"
  7156. cat >conftest.$ac_ext <<_ACEOF
  7157. /* confdefs.h. */
  7158. _ACEOF
  7159. cat confdefs.h >>conftest.$ac_ext
  7160. cat >>conftest.$ac_ext <<_ACEOF
  7161. /* end confdefs.h. */
  7162. /* Override any gcc2 internal prototype to avoid an error. */
  7163. #ifdef __cplusplus
  7164. extern "C"
  7165. #endif
  7166. /* We use char because int might match the return type of a gcc2
  7167. builtin and then its argument prototype would still apply. */
  7168. char shl_load ();
  7169. int
  7170. main ()
  7171. {
  7172. shl_load ();
  7173. ;
  7174. return 0;
  7175. }
  7176. _ACEOF
  7177. rm -f conftest.$ac_objext conftest$ac_exeext
  7178. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7179. (eval $ac_link) 2>conftest.er1
  7180. ac_status=$?
  7181. grep -v '^ *+' conftest.er1 >conftest.err
  7182. rm -f conftest.er1
  7183. cat conftest.err >&5
  7184. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7185. (exit $ac_status); } &&
  7186. { ac_try='test -z "$ac_c_werror_flag"
  7187. || test ! -s conftest.err'
  7188. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7189. (eval $ac_try) 2>&5
  7190. ac_status=$?
  7191. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7192. (exit $ac_status); }; } &&
  7193. { ac_try='test -s conftest$ac_exeext'
  7194. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7195. (eval $ac_try) 2>&5
  7196. ac_status=$?
  7197. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7198. (exit $ac_status); }; }; then
  7199. ac_cv_lib_dld_shl_load=yes
  7200. else
  7201. echo "$as_me: failed program was:" >&5
  7202. sed 's/^/| /' conftest.$ac_ext >&5
  7203. ac_cv_lib_dld_shl_load=no
  7204. fi
  7205. rm -f conftest.err conftest.$ac_objext \
  7206. conftest$ac_exeext conftest.$ac_ext
  7207. LIBS=$ac_check_lib_save_LIBS
  7208. fi
  7209. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  7210. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  7211. if test $ac_cv_lib_dld_shl_load = yes; then
  7212. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  7213. else
  7214. echo "$as_me:$LINENO: checking for dlopen" >&5
  7215. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  7216. if test "${ac_cv_func_dlopen+set}" = set; then
  7217. echo $ECHO_N "(cached) $ECHO_C" >&6
  7218. else
  7219. cat >conftest.$ac_ext <<_ACEOF
  7220. /* confdefs.h. */
  7221. _ACEOF
  7222. cat confdefs.h >>conftest.$ac_ext
  7223. cat >>conftest.$ac_ext <<_ACEOF
  7224. /* end confdefs.h. */
  7225. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  7226. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7227. #define dlopen innocuous_dlopen
  7228. /* System header to define __stub macros and hopefully few prototypes,
  7229. which can conflict with char dlopen (); below.
  7230. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7231. <limits.h> exists even on freestanding compilers. */
  7232. #ifdef __STDC__
  7233. # include <limits.h>
  7234. #else
  7235. # include <assert.h>
  7236. #endif
  7237. #undef dlopen
  7238. /* Override any gcc2 internal prototype to avoid an error. */
  7239. #ifdef __cplusplus
  7240. extern "C"
  7241. {
  7242. #endif
  7243. /* We use char because int might match the return type of a gcc2
  7244. builtin and then its argument prototype would still apply. */
  7245. char dlopen ();
  7246. /* The GNU C library defines this for functions which it implements
  7247. to always fail with ENOSYS. Some functions are actually named
  7248. something starting with __ and the normal name is an alias. */
  7249. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  7250. choke me
  7251. #else
  7252. char (*f) () = dlopen;
  7253. #endif
  7254. #ifdef __cplusplus
  7255. }
  7256. #endif
  7257. int
  7258. main ()
  7259. {
  7260. return f != dlopen;
  7261. ;
  7262. return 0;
  7263. }
  7264. _ACEOF
  7265. rm -f conftest.$ac_objext conftest$ac_exeext
  7266. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7267. (eval $ac_link) 2>conftest.er1
  7268. ac_status=$?
  7269. grep -v '^ *+' conftest.er1 >conftest.err
  7270. rm -f conftest.er1
  7271. cat conftest.err >&5
  7272. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7273. (exit $ac_status); } &&
  7274. { ac_try='test -z "$ac_c_werror_flag"
  7275. || test ! -s conftest.err'
  7276. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7277. (eval $ac_try) 2>&5
  7278. ac_status=$?
  7279. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7280. (exit $ac_status); }; } &&
  7281. { ac_try='test -s conftest$ac_exeext'
  7282. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7283. (eval $ac_try) 2>&5
  7284. ac_status=$?
  7285. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7286. (exit $ac_status); }; }; then
  7287. ac_cv_func_dlopen=yes
  7288. else
  7289. echo "$as_me: failed program was:" >&5
  7290. sed 's/^/| /' conftest.$ac_ext >&5
  7291. ac_cv_func_dlopen=no
  7292. fi
  7293. rm -f conftest.err conftest.$ac_objext \
  7294. conftest$ac_exeext conftest.$ac_ext
  7295. fi
  7296. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  7297. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  7298. if test $ac_cv_func_dlopen = yes; then
  7299. lt_cv_dlopen="dlopen"
  7300. else
  7301. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  7302. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  7303. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  7304. echo $ECHO_N "(cached) $ECHO_C" >&6
  7305. else
  7306. ac_check_lib_save_LIBS=$LIBS
  7307. LIBS="-ldl $LIBS"
  7308. cat >conftest.$ac_ext <<_ACEOF
  7309. /* confdefs.h. */
  7310. _ACEOF
  7311. cat confdefs.h >>conftest.$ac_ext
  7312. cat >>conftest.$ac_ext <<_ACEOF
  7313. /* end confdefs.h. */
  7314. /* Override any gcc2 internal prototype to avoid an error. */
  7315. #ifdef __cplusplus
  7316. extern "C"
  7317. #endif
  7318. /* We use char because int might match the return type of a gcc2
  7319. builtin and then its argument prototype would still apply. */
  7320. char dlopen ();
  7321. int
  7322. main ()
  7323. {
  7324. dlopen ();
  7325. ;
  7326. return 0;
  7327. }
  7328. _ACEOF
  7329. rm -f conftest.$ac_objext conftest$ac_exeext
  7330. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7331. (eval $ac_link) 2>conftest.er1
  7332. ac_status=$?
  7333. grep -v '^ *+' conftest.er1 >conftest.err
  7334. rm -f conftest.er1
  7335. cat conftest.err >&5
  7336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7337. (exit $ac_status); } &&
  7338. { ac_try='test -z "$ac_c_werror_flag"
  7339. || test ! -s conftest.err'
  7340. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7341. (eval $ac_try) 2>&5
  7342. ac_status=$?
  7343. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7344. (exit $ac_status); }; } &&
  7345. { ac_try='test -s conftest$ac_exeext'
  7346. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7347. (eval $ac_try) 2>&5
  7348. ac_status=$?
  7349. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7350. (exit $ac_status); }; }; then
  7351. ac_cv_lib_dl_dlopen=yes
  7352. else
  7353. echo "$as_me: failed program was:" >&5
  7354. sed 's/^/| /' conftest.$ac_ext >&5
  7355. ac_cv_lib_dl_dlopen=no
  7356. fi
  7357. rm -f conftest.err conftest.$ac_objext \
  7358. conftest$ac_exeext conftest.$ac_ext
  7359. LIBS=$ac_check_lib_save_LIBS
  7360. fi
  7361. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  7362. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  7363. if test $ac_cv_lib_dl_dlopen = yes; then
  7364. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  7365. else
  7366. echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  7367. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  7368. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  7369. echo $ECHO_N "(cached) $ECHO_C" >&6
  7370. else
  7371. ac_check_lib_save_LIBS=$LIBS
  7372. LIBS="-lsvld $LIBS"
  7373. cat >conftest.$ac_ext <<_ACEOF
  7374. /* confdefs.h. */
  7375. _ACEOF
  7376. cat confdefs.h >>conftest.$ac_ext
  7377. cat >>conftest.$ac_ext <<_ACEOF
  7378. /* end confdefs.h. */
  7379. /* Override any gcc2 internal prototype to avoid an error. */
  7380. #ifdef __cplusplus
  7381. extern "C"
  7382. #endif
  7383. /* We use char because int might match the return type of a gcc2
  7384. builtin and then its argument prototype would still apply. */
  7385. char dlopen ();
  7386. int
  7387. main ()
  7388. {
  7389. dlopen ();
  7390. ;
  7391. return 0;
  7392. }
  7393. _ACEOF
  7394. rm -f conftest.$ac_objext conftest$ac_exeext
  7395. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7396. (eval $ac_link) 2>conftest.er1
  7397. ac_status=$?
  7398. grep -v '^ *+' conftest.er1 >conftest.err
  7399. rm -f conftest.er1
  7400. cat conftest.err >&5
  7401. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7402. (exit $ac_status); } &&
  7403. { ac_try='test -z "$ac_c_werror_flag"
  7404. || test ! -s conftest.err'
  7405. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7406. (eval $ac_try) 2>&5
  7407. ac_status=$?
  7408. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7409. (exit $ac_status); }; } &&
  7410. { ac_try='test -s conftest$ac_exeext'
  7411. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7412. (eval $ac_try) 2>&5
  7413. ac_status=$?
  7414. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7415. (exit $ac_status); }; }; then
  7416. ac_cv_lib_svld_dlopen=yes
  7417. else
  7418. echo "$as_me: failed program was:" >&5
  7419. sed 's/^/| /' conftest.$ac_ext >&5
  7420. ac_cv_lib_svld_dlopen=no
  7421. fi
  7422. rm -f conftest.err conftest.$ac_objext \
  7423. conftest$ac_exeext conftest.$ac_ext
  7424. LIBS=$ac_check_lib_save_LIBS
  7425. fi
  7426. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  7427. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  7428. if test $ac_cv_lib_svld_dlopen = yes; then
  7429. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  7430. else
  7431. echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  7432. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  7433. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  7434. echo $ECHO_N "(cached) $ECHO_C" >&6
  7435. else
  7436. ac_check_lib_save_LIBS=$LIBS
  7437. LIBS="-ldld $LIBS"
  7438. cat >conftest.$ac_ext <<_ACEOF
  7439. /* confdefs.h. */
  7440. _ACEOF
  7441. cat confdefs.h >>conftest.$ac_ext
  7442. cat >>conftest.$ac_ext <<_ACEOF
  7443. /* end confdefs.h. */
  7444. /* Override any gcc2 internal prototype to avoid an error. */
  7445. #ifdef __cplusplus
  7446. extern "C"
  7447. #endif
  7448. /* We use char because int might match the return type of a gcc2
  7449. builtin and then its argument prototype would still apply. */
  7450. char dld_link ();
  7451. int
  7452. main ()
  7453. {
  7454. dld_link ();
  7455. ;
  7456. return 0;
  7457. }
  7458. _ACEOF
  7459. rm -f conftest.$ac_objext conftest$ac_exeext
  7460. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7461. (eval $ac_link) 2>conftest.er1
  7462. ac_status=$?
  7463. grep -v '^ *+' conftest.er1 >conftest.err
  7464. rm -f conftest.er1
  7465. cat conftest.err >&5
  7466. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7467. (exit $ac_status); } &&
  7468. { ac_try='test -z "$ac_c_werror_flag"
  7469. || test ! -s conftest.err'
  7470. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7471. (eval $ac_try) 2>&5
  7472. ac_status=$?
  7473. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7474. (exit $ac_status); }; } &&
  7475. { ac_try='test -s conftest$ac_exeext'
  7476. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7477. (eval $ac_try) 2>&5
  7478. ac_status=$?
  7479. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7480. (exit $ac_status); }; }; then
  7481. ac_cv_lib_dld_dld_link=yes
  7482. else
  7483. echo "$as_me: failed program was:" >&5
  7484. sed 's/^/| /' conftest.$ac_ext >&5
  7485. ac_cv_lib_dld_dld_link=no
  7486. fi
  7487. rm -f conftest.err conftest.$ac_objext \
  7488. conftest$ac_exeext conftest.$ac_ext
  7489. LIBS=$ac_check_lib_save_LIBS
  7490. fi
  7491. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  7492. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  7493. if test $ac_cv_lib_dld_dld_link = yes; then
  7494. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  7495. fi
  7496. fi
  7497. fi
  7498. fi
  7499. fi
  7500. fi
  7501. ;;
  7502. esac
  7503. if test "x$lt_cv_dlopen" != xno; then
  7504. enable_dlopen=yes
  7505. else
  7506. enable_dlopen=no
  7507. fi
  7508. case $lt_cv_dlopen in
  7509. dlopen)
  7510. save_CPPFLAGS="$CPPFLAGS"
  7511. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  7512. save_LDFLAGS="$LDFLAGS"
  7513. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  7514. save_LIBS="$LIBS"
  7515. LIBS="$lt_cv_dlopen_libs $LIBS"
  7516. echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  7517. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  7518. if test "${lt_cv_dlopen_self+set}" = set; then
  7519. echo $ECHO_N "(cached) $ECHO_C" >&6
  7520. else
  7521. if test "$cross_compiling" = yes; then :
  7522. lt_cv_dlopen_self=cross
  7523. else
  7524. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  7525. lt_status=$lt_dlunknown
  7526. cat > conftest.$ac_ext <<EOF
  7527. #line 8270 "configure"
  7528. #include "confdefs.h"
  7529. #if HAVE_DLFCN_H
  7530. #include <dlfcn.h>
  7531. #endif
  7532. #include <stdio.h>
  7533. #ifdef RTLD_GLOBAL
  7534. # define LT_DLGLOBAL RTLD_GLOBAL
  7535. #else
  7536. # ifdef DL_GLOBAL
  7537. # define LT_DLGLOBAL DL_GLOBAL
  7538. # else
  7539. # define LT_DLGLOBAL 0
  7540. # endif
  7541. #endif
  7542. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  7543. find out it does not work in some platform. */
  7544. #ifndef LT_DLLAZY_OR_NOW
  7545. # ifdef RTLD_LAZY
  7546. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  7547. # else
  7548. # ifdef DL_LAZY
  7549. # define LT_DLLAZY_OR_NOW DL_LAZY
  7550. # else
  7551. # ifdef RTLD_NOW
  7552. # define LT_DLLAZY_OR_NOW RTLD_NOW
  7553. # else
  7554. # ifdef DL_NOW
  7555. # define LT_DLLAZY_OR_NOW DL_NOW
  7556. # else
  7557. # define LT_DLLAZY_OR_NOW 0
  7558. # endif
  7559. # endif
  7560. # endif
  7561. # endif
  7562. #endif
  7563. #ifdef __cplusplus
  7564. extern "C" void exit (int);
  7565. #endif
  7566. void fnord() { int i=42;}
  7567. int main ()
  7568. {
  7569. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  7570. int status = $lt_dlunknown;
  7571. if (self)
  7572. {
  7573. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  7574. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  7575. /* dlclose (self); */
  7576. }
  7577. exit (status);
  7578. }
  7579. EOF
  7580. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7581. (eval $ac_link) 2>&5
  7582. ac_status=$?
  7583. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7584. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  7585. (./conftest; exit; ) 2>/dev/null
  7586. lt_status=$?
  7587. case x$lt_status in
  7588. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  7589. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  7590. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  7591. esac
  7592. else :
  7593. # compilation failed
  7594. lt_cv_dlopen_self=no
  7595. fi
  7596. fi
  7597. rm -fr conftest*
  7598. fi
  7599. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  7600. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  7601. if test "x$lt_cv_dlopen_self" = xyes; then
  7602. LDFLAGS="$LDFLAGS $link_static_flag"
  7603. echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  7604. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  7605. if test "${lt_cv_dlopen_self_static+set}" = set; then
  7606. echo $ECHO_N "(cached) $ECHO_C" >&6
  7607. else
  7608. if test "$cross_compiling" = yes; then :
  7609. lt_cv_dlopen_self_static=cross
  7610. else
  7611. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  7612. lt_status=$lt_dlunknown
  7613. cat > conftest.$ac_ext <<EOF
  7614. #line 8368 "configure"
  7615. #include "confdefs.h"
  7616. #if HAVE_DLFCN_H
  7617. #include <dlfcn.h>
  7618. #endif
  7619. #include <stdio.h>
  7620. #ifdef RTLD_GLOBAL
  7621. # define LT_DLGLOBAL RTLD_GLOBAL
  7622. #else
  7623. # ifdef DL_GLOBAL
  7624. # define LT_DLGLOBAL DL_GLOBAL
  7625. # else
  7626. # define LT_DLGLOBAL 0
  7627. # endif
  7628. #endif
  7629. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  7630. find out it does not work in some platform. */
  7631. #ifndef LT_DLLAZY_OR_NOW
  7632. # ifdef RTLD_LAZY
  7633. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  7634. # else
  7635. # ifdef DL_LAZY
  7636. # define LT_DLLAZY_OR_NOW DL_LAZY
  7637. # else
  7638. # ifdef RTLD_NOW
  7639. # define LT_DLLAZY_OR_NOW RTLD_NOW
  7640. # else
  7641. # ifdef DL_NOW
  7642. # define LT_DLLAZY_OR_NOW DL_NOW
  7643. # else
  7644. # define LT_DLLAZY_OR_NOW 0
  7645. # endif
  7646. # endif
  7647. # endif
  7648. # endif
  7649. #endif
  7650. #ifdef __cplusplus
  7651. extern "C" void exit (int);
  7652. #endif
  7653. void fnord() { int i=42;}
  7654. int main ()
  7655. {
  7656. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  7657. int status = $lt_dlunknown;
  7658. if (self)
  7659. {
  7660. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  7661. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  7662. /* dlclose (self); */
  7663. }
  7664. exit (status);
  7665. }
  7666. EOF
  7667. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7668. (eval $ac_link) 2>&5
  7669. ac_status=$?
  7670. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7671. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  7672. (./conftest; exit; ) 2>/dev/null
  7673. lt_status=$?
  7674. case x$lt_status in
  7675. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  7676. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  7677. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  7678. esac
  7679. else :
  7680. # compilation failed
  7681. lt_cv_dlopen_self_static=no
  7682. fi
  7683. fi
  7684. rm -fr conftest*
  7685. fi
  7686. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  7687. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  7688. fi
  7689. CPPFLAGS="$save_CPPFLAGS"
  7690. LDFLAGS="$save_LDFLAGS"
  7691. LIBS="$save_LIBS"
  7692. ;;
  7693. esac
  7694. case $lt_cv_dlopen_self in
  7695. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  7696. *) enable_dlopen_self=unknown ;;
  7697. esac
  7698. case $lt_cv_dlopen_self_static in
  7699. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  7700. *) enable_dlopen_self_static=unknown ;;
  7701. esac
  7702. fi
  7703. # Report which librarie types wil actually be built
  7704. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  7705. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  7706. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  7707. echo "${ECHO_T}$can_build_shared" >&6
  7708. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  7709. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  7710. test "$can_build_shared" = "no" && enable_shared=no
  7711. # On AIX, shared libraries and static libraries use the same namespace, and
  7712. # are all built from PIC.
  7713. case "$host_os" in
  7714. aix3*)
  7715. test "$enable_shared" = yes && enable_static=no
  7716. if test -n "$RANLIB"; then
  7717. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  7718. postinstall_cmds='$RANLIB $lib'
  7719. fi
  7720. ;;
  7721. aix4* | aix5*)
  7722. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  7723. test "$enable_shared" = yes && enable_static=no
  7724. fi
  7725. ;;
  7726. esac
  7727. echo "$as_me:$LINENO: result: $enable_shared" >&5
  7728. echo "${ECHO_T}$enable_shared" >&6
  7729. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  7730. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  7731. # Make sure either enable_shared or enable_static is yes.
  7732. test "$enable_shared" = yes || enable_static=yes
  7733. echo "$as_me:$LINENO: result: $enable_static" >&5
  7734. echo "${ECHO_T}$enable_static" >&6
  7735. # The else clause should only fire when bootstrapping the
  7736. # libtool distribution, otherwise you forgot to ship ltmain.sh
  7737. # with your package, and you will get complaints that there are
  7738. # no rules to generate ltmain.sh.
  7739. if test -f "$ltmain"; then
  7740. # See if we are running on zsh, and set the options which allow our commands through
  7741. # without removal of \ escapes.
  7742. if test -n "${ZSH_VERSION+set}" ; then
  7743. setopt NO_GLOB_SUBST
  7744. fi
  7745. # Now quote all the things that may contain metacharacters while being
  7746. # careful not to overquote the AC_SUBSTed values. We take copies of the
  7747. # variables and quote the copies for generation of the libtool script.
  7748. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  7749. SED SHELL STRIP \
  7750. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  7751. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  7752. deplibs_check_method reload_flag reload_cmds need_locks \
  7753. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  7754. lt_cv_sys_global_symbol_to_c_name_address \
  7755. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  7756. old_postinstall_cmds old_postuninstall_cmds \
  7757. compiler \
  7758. CC \
  7759. LD \
  7760. lt_prog_compiler_wl \
  7761. lt_prog_compiler_pic \
  7762. lt_prog_compiler_static \
  7763. lt_prog_compiler_no_builtin_flag \
  7764. export_dynamic_flag_spec \
  7765. thread_safe_flag_spec \
  7766. whole_archive_flag_spec \
  7767. enable_shared_with_static_runtimes \
  7768. old_archive_cmds \
  7769. old_archive_from_new_cmds \
  7770. predep_objects \
  7771. postdep_objects \
  7772. predeps \
  7773. postdeps \
  7774. compiler_lib_search_path \
  7775. archive_cmds \
  7776. archive_expsym_cmds \
  7777. postinstall_cmds \
  7778. postuninstall_cmds \
  7779. old_archive_from_expsyms_cmds \
  7780. allow_undefined_flag \
  7781. no_undefined_flag \
  7782. export_symbols_cmds \
  7783. hardcode_libdir_flag_spec \
  7784. hardcode_libdir_flag_spec_ld \
  7785. hardcode_libdir_separator \
  7786. hardcode_automatic \
  7787. module_cmds \
  7788. module_expsym_cmds \
  7789. lt_cv_prog_compiler_c_o \
  7790. exclude_expsyms \
  7791. include_expsyms; do
  7792. case $var in
  7793. old_archive_cmds | \
  7794. old_archive_from_new_cmds | \
  7795. archive_cmds | \
  7796. archive_expsym_cmds | \
  7797. module_cmds | \
  7798. module_expsym_cmds | \
  7799. old_archive_from_expsyms_cmds | \
  7800. export_symbols_cmds | \
  7801. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  7802. postinstall_cmds | postuninstall_cmds | \
  7803. old_postinstall_cmds | old_postuninstall_cmds | \
  7804. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  7805. # Double-quote double-evaled strings.
  7806. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  7807. ;;
  7808. *)
  7809. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  7810. ;;
  7811. esac
  7812. done
  7813. case $lt_echo in
  7814. *'\$0 --fallback-echo"')
  7815. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  7816. ;;
  7817. esac
  7818. cfgfile="${ofile}T"
  7819. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  7820. $rm -f "$cfgfile"
  7821. { echo "$as_me:$LINENO: creating $ofile" >&5
  7822. echo "$as_me: creating $ofile" >&6;}
  7823. cat <<__EOF__ >> "$cfgfile"
  7824. #! $SHELL
  7825. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  7826. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  7827. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  7828. #
  7829. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  7830. # Free Software Foundation, Inc.
  7831. #
  7832. # This file is part of GNU Libtool:
  7833. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  7834. #
  7835. # This program is free software; you can redistribute it and/or modify
  7836. # it under the terms of the GNU General Public License as published by
  7837. # the Free Software Foundation; either version 2 of the License, or
  7838. # (at your option) any later version.
  7839. #
  7840. # This program is distributed in the hope that it will be useful, but
  7841. # WITHOUT ANY WARRANTY; without even the implied warranty of
  7842. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  7843. # General Public License for more details.
  7844. #
  7845. # You should have received a copy of the GNU General Public License
  7846. # along with this program; if not, write to the Free Software
  7847. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  7848. #
  7849. # As a special exception to the GNU General Public License, if you
  7850. # distribute this file as part of a program that contains a
  7851. # configuration script generated by Autoconf, you may include it under
  7852. # the same distribution terms that you use for the rest of that program.
  7853. # A sed program that does not truncate output.
  7854. SED=$lt_SED
  7855. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  7856. Xsed="$SED -e 1s/^X//"
  7857. # The HP-UX ksh and POSIX shell print the target directory to stdout
  7858. # if CDPATH is set.
  7859. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  7860. # The names of the tagged configurations supported by this script.
  7861. available_tags=
  7862. # ### BEGIN LIBTOOL CONFIG
  7863. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  7864. # Shell to use when invoking shell scripts.
  7865. SHELL=$lt_SHELL
  7866. # Whether or not to build shared libraries.
  7867. build_libtool_libs=$enable_shared
  7868. # Whether or not to build static libraries.
  7869. build_old_libs=$enable_static
  7870. # Whether or not to add -lc for building shared libraries.
  7871. build_libtool_need_lc=$archive_cmds_need_lc
  7872. # Whether or not to disallow shared libs when runtime libs are static
  7873. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  7874. # Whether or not to optimize for fast installation.
  7875. fast_install=$enable_fast_install
  7876. # The host system.
  7877. host_alias=$host_alias
  7878. host=$host
  7879. host_os=$host_os
  7880. # The build system.
  7881. build_alias=$build_alias
  7882. build=$build
  7883. build_os=$build_os
  7884. # An echo program that does not interpret backslashes.
  7885. echo=$lt_echo
  7886. # The archiver.
  7887. AR=$lt_AR
  7888. AR_FLAGS=$lt_AR_FLAGS
  7889. # A C compiler.
  7890. LTCC=$lt_LTCC
  7891. # A language-specific compiler.
  7892. CC=$lt_compiler
  7893. # Is the compiler the GNU C compiler?
  7894. with_gcc=$GCC
  7895. # An ERE matcher.
  7896. EGREP=$lt_EGREP
  7897. # The linker used to build libraries.
  7898. LD=$lt_LD
  7899. # Whether we need hard or soft links.
  7900. LN_S=$lt_LN_S
  7901. # A BSD-compatible nm program.
  7902. NM=$lt_NM
  7903. # A symbol stripping program
  7904. STRIP=$lt_STRIP
  7905. # Used to examine libraries when file_magic_cmd begins "file"
  7906. MAGIC_CMD=$MAGIC_CMD
  7907. # Used on cygwin: DLL creation program.
  7908. DLLTOOL="$DLLTOOL"
  7909. # Used on cygwin: object dumper.
  7910. OBJDUMP="$OBJDUMP"
  7911. # Used on cygwin: assembler.
  7912. AS="$AS"
  7913. # The name of the directory that contains temporary libtool files.
  7914. objdir=$objdir
  7915. # How to create reloadable object files.
  7916. reload_flag=$lt_reload_flag
  7917. reload_cmds=$lt_reload_cmds
  7918. # How to pass a linker flag through the compiler.
  7919. wl=$lt_lt_prog_compiler_wl
  7920. # Object file suffix (normally "o").
  7921. objext="$ac_objext"
  7922. # Old archive suffix (normally "a").
  7923. libext="$libext"
  7924. # Shared library suffix (normally ".so").
  7925. shrext_cmds='$shrext_cmds'
  7926. # Executable file suffix (normally "").
  7927. exeext="$exeext"
  7928. # Additional compiler flags for building library objects.
  7929. pic_flag=$lt_lt_prog_compiler_pic
  7930. pic_mode=$pic_mode
  7931. # What is the maximum length of a command?
  7932. max_cmd_len=$lt_cv_sys_max_cmd_len
  7933. # Does compiler simultaneously support -c and -o options?
  7934. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  7935. # Must we lock files when doing compilation?
  7936. need_locks=$lt_need_locks
  7937. # Do we need the lib prefix for modules?
  7938. need_lib_prefix=$need_lib_prefix
  7939. # Do we need a version for libraries?
  7940. need_version=$need_version
  7941. # Whether dlopen is supported.
  7942. dlopen_support=$enable_dlopen
  7943. # Whether dlopen of programs is supported.
  7944. dlopen_self=$enable_dlopen_self
  7945. # Whether dlopen of statically linked programs is supported.
  7946. dlopen_self_static=$enable_dlopen_self_static
  7947. # Compiler flag to prevent dynamic linking.
  7948. link_static_flag=$lt_lt_prog_compiler_static
  7949. # Compiler flag to turn off builtin functions.
  7950. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  7951. # Compiler flag to allow reflexive dlopens.
  7952. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  7953. # Compiler flag to generate shared objects directly from archives.
  7954. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  7955. # Compiler flag to generate thread-safe objects.
  7956. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  7957. # Library versioning type.
  7958. version_type=$version_type
  7959. # Format of library name prefix.
  7960. libname_spec=$lt_libname_spec
  7961. # List of archive names. First name is the real one, the rest are links.
  7962. # The last name is the one that the linker finds with -lNAME.
  7963. library_names_spec=$lt_library_names_spec
  7964. # The coded name of the library, if different from the real name.
  7965. soname_spec=$lt_soname_spec
  7966. # Commands used to build and install an old-style archive.
  7967. RANLIB=$lt_RANLIB
  7968. old_archive_cmds=$lt_old_archive_cmds
  7969. old_postinstall_cmds=$lt_old_postinstall_cmds
  7970. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  7971. # Create an old-style archive from a shared archive.
  7972. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  7973. # Create a temporary old-style archive to link instead of a shared archive.
  7974. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  7975. # Commands used to build and install a shared archive.
  7976. archive_cmds=$lt_archive_cmds
  7977. archive_expsym_cmds=$lt_archive_expsym_cmds
  7978. postinstall_cmds=$lt_postinstall_cmds
  7979. postuninstall_cmds=$lt_postuninstall_cmds
  7980. # Commands used to build a loadable module (assumed same as above if empty)
  7981. module_cmds=$lt_module_cmds
  7982. module_expsym_cmds=$lt_module_expsym_cmds
  7983. # Commands to strip libraries.
  7984. old_striplib=$lt_old_striplib
  7985. striplib=$lt_striplib
  7986. # Dependencies to place before the objects being linked to create a
  7987. # shared library.
  7988. predep_objects=$lt_predep_objects
  7989. # Dependencies to place after the objects being linked to create a
  7990. # shared library.
  7991. postdep_objects=$lt_postdep_objects
  7992. # Dependencies to place before the objects being linked to create a
  7993. # shared library.
  7994. predeps=$lt_predeps
  7995. # Dependencies to place after the objects being linked to create a
  7996. # shared library.
  7997. postdeps=$lt_postdeps
  7998. # The library search path used internally by the compiler when linking
  7999. # a shared library.
  8000. compiler_lib_search_path=$lt_compiler_lib_search_path
  8001. # Method to check whether dependent libraries are shared objects.
  8002. deplibs_check_method=$lt_deplibs_check_method
  8003. # Command to use when deplibs_check_method == file_magic.
  8004. file_magic_cmd=$lt_file_magic_cmd
  8005. # Flag that allows shared libraries with undefined symbols to be built.
  8006. allow_undefined_flag=$lt_allow_undefined_flag
  8007. # Flag that forces no undefined symbols.
  8008. no_undefined_flag=$lt_no_undefined_flag
  8009. # Commands used to finish a libtool library installation in a directory.
  8010. finish_cmds=$lt_finish_cmds
  8011. # Same as above, but a single script fragment to be evaled but not shown.
  8012. finish_eval=$lt_finish_eval
  8013. # Take the output of nm and produce a listing of raw symbols and C names.
  8014. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  8015. # Transform the output of nm in a proper C declaration
  8016. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  8017. # Transform the output of nm in a C name address pair
  8018. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  8019. # This is the shared library runtime path variable.
  8020. runpath_var=$runpath_var
  8021. # This is the shared library path variable.
  8022. shlibpath_var=$shlibpath_var
  8023. # Is shlibpath searched before the hard-coded library search path?
  8024. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  8025. # How to hardcode a shared library path into an executable.
  8026. hardcode_action=$hardcode_action
  8027. # Whether we should hardcode library paths into libraries.
  8028. hardcode_into_libs=$hardcode_into_libs
  8029. # Flag to hardcode \$libdir into a binary during linking.
  8030. # This must work even if \$libdir does not exist.
  8031. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  8032. # If ld is used when linking, flag to hardcode \$libdir into
  8033. # a binary during linking. This must work even if \$libdir does
  8034. # not exist.
  8035. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  8036. # Whether we need a single -rpath flag with a separated argument.
  8037. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  8038. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  8039. # resulting binary.
  8040. hardcode_direct=$hardcode_direct
  8041. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  8042. # resulting binary.
  8043. hardcode_minus_L=$hardcode_minus_L
  8044. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  8045. # the resulting binary.
  8046. hardcode_shlibpath_var=$hardcode_shlibpath_var
  8047. # Set to yes if building a shared library automatically hardcodes DIR into the library
  8048. # and all subsequent libraries and executables linked against it.
  8049. hardcode_automatic=$hardcode_automatic
  8050. # Variables whose values should be saved in libtool wrapper scripts and
  8051. # restored at relink time.
  8052. variables_saved_for_relink="$variables_saved_for_relink"
  8053. # Whether libtool must link a program against all its dependency libraries.
  8054. link_all_deplibs=$link_all_deplibs
  8055. # Compile-time system search path for libraries
  8056. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  8057. # Run-time system search path for libraries
  8058. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  8059. # Fix the shell variable \$srcfile for the compiler.
  8060. fix_srcfile_path="$fix_srcfile_path"
  8061. # Set to yes if exported symbols are required.
  8062. always_export_symbols=$always_export_symbols
  8063. # The commands to list exported symbols.
  8064. export_symbols_cmds=$lt_export_symbols_cmds
  8065. # The commands to extract the exported symbol list from a shared archive.
  8066. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  8067. # Symbols that should not be listed in the preloaded symbols.
  8068. exclude_expsyms=$lt_exclude_expsyms
  8069. # Symbols that must always be exported.
  8070. include_expsyms=$lt_include_expsyms
  8071. # ### END LIBTOOL CONFIG
  8072. __EOF__
  8073. case $host_os in
  8074. aix3*)
  8075. cat <<\EOF >> "$cfgfile"
  8076. # AIX sometimes has problems with the GCC collect2 program. For some
  8077. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8078. # vanish in a puff of smoke.
  8079. if test "X${COLLECT_NAMES+set}" != Xset; then
  8080. COLLECT_NAMES=
  8081. export COLLECT_NAMES
  8082. fi
  8083. EOF
  8084. ;;
  8085. esac
  8086. # We use sed instead of cat because bash on DJGPP gets confused if
  8087. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  8088. # text mode, it properly converts lines to CR/LF. This bash problem
  8089. # is reportedly fixed, but why not run on old versions too?
  8090. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  8091. mv -f "$cfgfile" "$ofile" || \
  8092. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  8093. chmod +x "$ofile"
  8094. else
  8095. # If there is no Makefile yet, we rely on a make rule to execute
  8096. # `config.status --recheck' to rerun these tests and create the
  8097. # libtool script then.
  8098. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  8099. if test -f "$ltmain_in"; then
  8100. test -f Makefile && make "$ltmain"
  8101. fi
  8102. fi
  8103. ac_ext=c
  8104. ac_cpp='$CPP $CPPFLAGS'
  8105. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8106. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8107. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8108. CC="$lt_save_CC"
  8109. # Check whether --with-tags or --without-tags was given.
  8110. if test "${with_tags+set}" = set; then
  8111. withval="$with_tags"
  8112. tagnames="$withval"
  8113. fi;
  8114. if test -f "$ltmain" && test -n "$tagnames"; then
  8115. if test ! -f "${ofile}"; then
  8116. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  8117. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  8118. fi
  8119. if test -z "$LTCC"; then
  8120. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  8121. if test -z "$LTCC"; then
  8122. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  8123. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  8124. else
  8125. { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  8126. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  8127. fi
  8128. fi
  8129. # Extract list of available tagged configurations in $ofile.
  8130. # Note that this assumes the entire list is on one line.
  8131. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  8132. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  8133. for tagname in $tagnames; do
  8134. IFS="$lt_save_ifs"
  8135. # Check whether tagname contains only valid characters
  8136. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  8137. "") ;;
  8138. *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  8139. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  8140. { (exit 1); exit 1; }; }
  8141. ;;
  8142. esac
  8143. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  8144. then
  8145. { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  8146. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  8147. { (exit 1); exit 1; }; }
  8148. fi
  8149. # Update the list of available tags.
  8150. if test -n "$tagname"; then
  8151. echo appending configuration tag \"$tagname\" to $ofile
  8152. case $tagname in
  8153. CXX)
  8154. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  8155. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  8156. (test "X$CXX" != "Xg++"))) ; then
  8157. ac_ext=cc
  8158. ac_cpp='$CXXCPP $CPPFLAGS'
  8159. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8160. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8161. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  8162. archive_cmds_need_lc_CXX=no
  8163. allow_undefined_flag_CXX=
  8164. always_export_symbols_CXX=no
  8165. archive_expsym_cmds_CXX=
  8166. export_dynamic_flag_spec_CXX=
  8167. hardcode_direct_CXX=no
  8168. hardcode_libdir_flag_spec_CXX=
  8169. hardcode_libdir_flag_spec_ld_CXX=
  8170. hardcode_libdir_separator_CXX=
  8171. hardcode_minus_L_CXX=no
  8172. hardcode_automatic_CXX=no
  8173. module_cmds_CXX=
  8174. module_expsym_cmds_CXX=
  8175. link_all_deplibs_CXX=unknown
  8176. old_archive_cmds_CXX=$old_archive_cmds
  8177. no_undefined_flag_CXX=
  8178. whole_archive_flag_spec_CXX=
  8179. enable_shared_with_static_runtimes_CXX=no
  8180. # Dependencies to place before and after the object being linked:
  8181. predep_objects_CXX=
  8182. postdep_objects_CXX=
  8183. predeps_CXX=
  8184. postdeps_CXX=
  8185. compiler_lib_search_path_CXX=
  8186. # Source file extension for C++ test sources.
  8187. ac_ext=cc
  8188. # Object file extension for compiled C++ test sources.
  8189. objext=o
  8190. objext_CXX=$objext
  8191. # Code to be used in simple compile tests
  8192. lt_simple_compile_test_code="int some_variable = 0;\n"
  8193. # Code to be used in simple link tests
  8194. lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
  8195. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  8196. # If no C compiler was specified, use CC.
  8197. LTCC=${LTCC-"$CC"}
  8198. # Allow CC to be a program name with arguments.
  8199. compiler=$CC
  8200. # save warnings/boilerplate of simple test code
  8201. ac_outfile=conftest.$ac_objext
  8202. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  8203. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  8204. _lt_compiler_boilerplate=`cat conftest.err`
  8205. $rm conftest*
  8206. ac_outfile=conftest.$ac_objext
  8207. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  8208. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  8209. _lt_linker_boilerplate=`cat conftest.err`
  8210. $rm conftest*
  8211. # Allow CC to be a program name with arguments.
  8212. lt_save_CC=$CC
  8213. lt_save_LD=$LD
  8214. lt_save_GCC=$GCC
  8215. GCC=$GXX
  8216. lt_save_with_gnu_ld=$with_gnu_ld
  8217. lt_save_path_LD=$lt_cv_path_LD
  8218. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  8219. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  8220. else
  8221. unset lt_cv_prog_gnu_ld
  8222. fi
  8223. if test -n "${lt_cv_path_LDCXX+set}"; then
  8224. lt_cv_path_LD=$lt_cv_path_LDCXX
  8225. else
  8226. unset lt_cv_path_LD
  8227. fi
  8228. test -z "${LDCXX+set}" || LD=$LDCXX
  8229. CC=${CXX-"c++"}
  8230. compiler=$CC
  8231. compiler_CXX=$CC
  8232. for cc_temp in $compiler""; do
  8233. case $cc_temp in
  8234. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  8235. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  8236. \-*) ;;
  8237. *) break;;
  8238. esac
  8239. done
  8240. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  8241. # We don't want -fno-exception wen compiling C++ code, so set the
  8242. # no_builtin_flag separately
  8243. if test "$GXX" = yes; then
  8244. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  8245. else
  8246. lt_prog_compiler_no_builtin_flag_CXX=
  8247. fi
  8248. if test "$GXX" = yes; then
  8249. # Set up default GNU C++ configuration
  8250. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  8251. if test "${with_gnu_ld+set}" = set; then
  8252. withval="$with_gnu_ld"
  8253. test "$withval" = no || with_gnu_ld=yes
  8254. else
  8255. with_gnu_ld=no
  8256. fi;
  8257. ac_prog=ld
  8258. if test "$GCC" = yes; then
  8259. # Check if gcc -print-prog-name=ld gives a path.
  8260. echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  8261. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  8262. case $host in
  8263. *-*-mingw*)
  8264. # gcc leaves a trailing carriage return which upsets mingw
  8265. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  8266. *)
  8267. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  8268. esac
  8269. case $ac_prog in
  8270. # Accept absolute paths.
  8271. [\\/]* | ?:[\\/]*)
  8272. re_direlt='/[^/][^/]*/\.\./'
  8273. # Canonicalize the pathname of ld
  8274. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  8275. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  8276. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  8277. done
  8278. test -z "$LD" && LD="$ac_prog"
  8279. ;;
  8280. "")
  8281. # If it fails, then pretend we aren't using GCC.
  8282. ac_prog=ld
  8283. ;;
  8284. *)
  8285. # If it is relative, then search for the first ld in PATH.
  8286. with_gnu_ld=unknown
  8287. ;;
  8288. esac
  8289. elif test "$with_gnu_ld" = yes; then
  8290. echo "$as_me:$LINENO: checking for GNU ld" >&5
  8291. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  8292. else
  8293. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  8294. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  8295. fi
  8296. if test "${lt_cv_path_LD+set}" = set; then
  8297. echo $ECHO_N "(cached) $ECHO_C" >&6
  8298. else
  8299. if test -z "$LD"; then
  8300. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8301. for ac_dir in $PATH; do
  8302. IFS="$lt_save_ifs"
  8303. test -z "$ac_dir" && ac_dir=.
  8304. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  8305. lt_cv_path_LD="$ac_dir/$ac_prog"
  8306. # Check to see if the program is GNU ld. I'd rather use --version,
  8307. # but apparently some GNU ld's only accept -v.
  8308. # Break only if it was the GNU/non-GNU ld that we prefer.
  8309. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  8310. *GNU* | *'with BFD'*)
  8311. test "$with_gnu_ld" != no && break
  8312. ;;
  8313. *)
  8314. test "$with_gnu_ld" != yes && break
  8315. ;;
  8316. esac
  8317. fi
  8318. done
  8319. IFS="$lt_save_ifs"
  8320. else
  8321. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  8322. fi
  8323. fi
  8324. LD="$lt_cv_path_LD"
  8325. if test -n "$LD"; then
  8326. echo "$as_me:$LINENO: result: $LD" >&5
  8327. echo "${ECHO_T}$LD" >&6
  8328. else
  8329. echo "$as_me:$LINENO: result: no" >&5
  8330. echo "${ECHO_T}no" >&6
  8331. fi
  8332. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  8333. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  8334. { (exit 1); exit 1; }; }
  8335. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  8336. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  8337. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  8338. echo $ECHO_N "(cached) $ECHO_C" >&6
  8339. else
  8340. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  8341. case `$LD -v 2>&1 </dev/null` in
  8342. *GNU* | *'with BFD'*)
  8343. lt_cv_prog_gnu_ld=yes
  8344. ;;
  8345. *)
  8346. lt_cv_prog_gnu_ld=no
  8347. ;;
  8348. esac
  8349. fi
  8350. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  8351. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  8352. with_gnu_ld=$lt_cv_prog_gnu_ld
  8353. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  8354. # archiving commands below assume that GNU ld is being used.
  8355. if test "$with_gnu_ld" = yes; then
  8356. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8357. 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'
  8358. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  8359. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  8360. # If archive_cmds runs LD, not CC, wlarc should be empty
  8361. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  8362. # investigate it a little bit more. (MM)
  8363. wlarc='${wl}'
  8364. # ancient GNU ld didn't support --whole-archive et. al.
  8365. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  8366. grep 'no-whole-archive' > /dev/null; then
  8367. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8368. else
  8369. whole_archive_flag_spec_CXX=
  8370. fi
  8371. else
  8372. with_gnu_ld=no
  8373. wlarc=
  8374. # A generic and very simple default shared library creation
  8375. # command for GNU C++ for the case where it uses the native
  8376. # linker, instead of GNU ld. If possible, this setting should
  8377. # overridden to take advantage of the native linker features on
  8378. # the platform it is being used on.
  8379. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  8380. fi
  8381. # Commands to make compiler produce verbose output that lists
  8382. # what "hidden" libraries, object files and flags are used when
  8383. # linking a shared library.
  8384. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  8385. else
  8386. GXX=no
  8387. with_gnu_ld=no
  8388. wlarc=
  8389. fi
  8390. # PORTME: fill in a description of your system's C++ link characteristics
  8391. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8392. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  8393. ld_shlibs_CXX=yes
  8394. case $host_os in
  8395. aix3*)
  8396. # FIXME: insert proper C++ library support
  8397. ld_shlibs_CXX=no
  8398. ;;
  8399. aix4* | aix5*)
  8400. if test "$host_cpu" = ia64; then
  8401. # On IA64, the linker does run time linking by default, so we don't
  8402. # have to do anything special.
  8403. aix_use_runtimelinking=no
  8404. exp_sym_flag='-Bexport'
  8405. no_entry_flag=""
  8406. else
  8407. aix_use_runtimelinking=no
  8408. # Test if we are trying to use run time linking or normal
  8409. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8410. # need to do runtime linking.
  8411. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  8412. for ld_flag in $LDFLAGS; do
  8413. case $ld_flag in
  8414. *-brtl*)
  8415. aix_use_runtimelinking=yes
  8416. break
  8417. ;;
  8418. esac
  8419. done
  8420. esac
  8421. exp_sym_flag='-bexport'
  8422. no_entry_flag='-bnoentry'
  8423. fi
  8424. # When large executables or shared objects are built, AIX ld can
  8425. # have problems creating the table of contents. If linking a library
  8426. # or program results in "error TOC overflow" add -mminimal-toc to
  8427. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8428. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8429. archive_cmds_CXX=''
  8430. hardcode_direct_CXX=yes
  8431. hardcode_libdir_separator_CXX=':'
  8432. link_all_deplibs_CXX=yes
  8433. if test "$GXX" = yes; then
  8434. case $host_os in aix4.[012]|aix4.[012].*)
  8435. # We only want to do this on AIX 4.2 and lower, the check
  8436. # below for broken collect2 doesn't work under 4.3+
  8437. collect2name=`${CC} -print-prog-name=collect2`
  8438. if test -f "$collect2name" && \
  8439. strings "$collect2name" | grep resolve_lib_name >/dev/null
  8440. then
  8441. # We have reworked collect2
  8442. hardcode_direct_CXX=yes
  8443. else
  8444. # We have old collect2
  8445. hardcode_direct_CXX=unsupported
  8446. # It fails to find uninstalled libraries when the uninstalled
  8447. # path is not listed in the libpath. Setting hardcode_minus_L
  8448. # to unsupported forces relinking
  8449. hardcode_minus_L_CXX=yes
  8450. hardcode_libdir_flag_spec_CXX='-L$libdir'
  8451. hardcode_libdir_separator_CXX=
  8452. fi
  8453. esac
  8454. shared_flag='-shared'
  8455. if test "$aix_use_runtimelinking" = yes; then
  8456. shared_flag="$shared_flag "'${wl}-G'
  8457. fi
  8458. else
  8459. # not using gcc
  8460. if test "$host_cpu" = ia64; then
  8461. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8462. # chokes on -Wl,-G. The following line is correct:
  8463. shared_flag='-G'
  8464. else
  8465. if test "$aix_use_runtimelinking" = yes; then
  8466. shared_flag='${wl}-G'
  8467. else
  8468. shared_flag='${wl}-bM:SRE'
  8469. fi
  8470. fi
  8471. fi
  8472. # It seems that -bexpall does not export symbols beginning with
  8473. # underscore (_), so it is better to generate a list of symbols to export.
  8474. always_export_symbols_CXX=yes
  8475. if test "$aix_use_runtimelinking" = yes; then
  8476. # Warning - without using the other runtime loading flags (-brtl),
  8477. # -berok will link without error, but may produce a broken library.
  8478. allow_undefined_flag_CXX='-berok'
  8479. # Determine the default libpath from the value encoded in an empty executable.
  8480. cat >conftest.$ac_ext <<_ACEOF
  8481. /* confdefs.h. */
  8482. _ACEOF
  8483. cat confdefs.h >>conftest.$ac_ext
  8484. cat >>conftest.$ac_ext <<_ACEOF
  8485. /* end confdefs.h. */
  8486. int
  8487. main ()
  8488. {
  8489. ;
  8490. return 0;
  8491. }
  8492. _ACEOF
  8493. rm -f conftest.$ac_objext conftest$ac_exeext
  8494. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8495. (eval $ac_link) 2>conftest.er1
  8496. ac_status=$?
  8497. grep -v '^ *+' conftest.er1 >conftest.err
  8498. rm -f conftest.er1
  8499. cat conftest.err >&5
  8500. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8501. (exit $ac_status); } &&
  8502. { ac_try='test -z "$ac_cxx_werror_flag"
  8503. || test ! -s conftest.err'
  8504. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8505. (eval $ac_try) 2>&5
  8506. ac_status=$?
  8507. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8508. (exit $ac_status); }; } &&
  8509. { ac_try='test -s conftest$ac_exeext'
  8510. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8511. (eval $ac_try) 2>&5
  8512. ac_status=$?
  8513. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8514. (exit $ac_status); }; }; then
  8515. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  8516. }'`
  8517. # Check for a 64-bit object if we didn't find anything.
  8518. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  8519. }'`; fi
  8520. else
  8521. echo "$as_me: failed program was:" >&5
  8522. sed 's/^/| /' conftest.$ac_ext >&5
  8523. fi
  8524. rm -f conftest.err conftest.$ac_objext \
  8525. conftest$ac_exeext conftest.$ac_ext
  8526. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8527. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  8528. archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8529. else
  8530. if test "$host_cpu" = ia64; then
  8531. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  8532. allow_undefined_flag_CXX="-z nodefs"
  8533. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  8534. else
  8535. # Determine the default libpath from the value encoded in an empty executable.
  8536. cat >conftest.$ac_ext <<_ACEOF
  8537. /* confdefs.h. */
  8538. _ACEOF
  8539. cat confdefs.h >>conftest.$ac_ext
  8540. cat >>conftest.$ac_ext <<_ACEOF
  8541. /* end confdefs.h. */
  8542. int
  8543. main ()
  8544. {
  8545. ;
  8546. return 0;
  8547. }
  8548. _ACEOF
  8549. rm -f conftest.$ac_objext conftest$ac_exeext
  8550. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8551. (eval $ac_link) 2>conftest.er1
  8552. ac_status=$?
  8553. grep -v '^ *+' conftest.er1 >conftest.err
  8554. rm -f conftest.er1
  8555. cat conftest.err >&5
  8556. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8557. (exit $ac_status); } &&
  8558. { ac_try='test -z "$ac_cxx_werror_flag"
  8559. || test ! -s conftest.err'
  8560. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8561. (eval $ac_try) 2>&5
  8562. ac_status=$?
  8563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8564. (exit $ac_status); }; } &&
  8565. { ac_try='test -s conftest$ac_exeext'
  8566. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8567. (eval $ac_try) 2>&5
  8568. ac_status=$?
  8569. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8570. (exit $ac_status); }; }; then
  8571. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  8572. }'`
  8573. # Check for a 64-bit object if we didn't find anything.
  8574. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  8575. }'`; fi
  8576. else
  8577. echo "$as_me: failed program was:" >&5
  8578. sed 's/^/| /' conftest.$ac_ext >&5
  8579. fi
  8580. rm -f conftest.err conftest.$ac_objext \
  8581. conftest$ac_exeext conftest.$ac_ext
  8582. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8583. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  8584. # Warning - without using the other run time loading flags,
  8585. # -berok will link without error, but may produce a broken library.
  8586. no_undefined_flag_CXX=' ${wl}-bernotok'
  8587. allow_undefined_flag_CXX=' ${wl}-berok'
  8588. # -bexpall does not export symbols beginning with underscore (_)
  8589. always_export_symbols_CXX=yes
  8590. # Exported symbols can be pulled into shared objects from archives
  8591. whole_archive_flag_spec_CXX=' '
  8592. archive_cmds_need_lc_CXX=yes
  8593. # This is similar to how AIX traditionally builds it's shared libraries.
  8594. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  8595. fi
  8596. fi
  8597. ;;
  8598. chorus*)
  8599. case $cc_basename in
  8600. *)
  8601. # FIXME: insert proper C++ library support
  8602. ld_shlibs_CXX=no
  8603. ;;
  8604. esac
  8605. ;;
  8606. cygwin* | mingw* | pw32*)
  8607. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  8608. # as there is no search path for DLLs.
  8609. hardcode_libdir_flag_spec_CXX='-L$libdir'
  8610. allow_undefined_flag_CXX=unsupported
  8611. always_export_symbols_CXX=no
  8612. enable_shared_with_static_runtimes_CXX=yes
  8613. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  8614. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  8615. # If the export-symbols file already is a .def file (1st line
  8616. # is EXPORTS), use it as is; otherwise, prepend...
  8617. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8618. cp $export_symbols $output_objdir/$soname.def;
  8619. else
  8620. echo EXPORTS > $output_objdir/$soname.def;
  8621. cat $export_symbols >> $output_objdir/$soname.def;
  8622. fi~
  8623. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  8624. else
  8625. ld_shlibs_CXX=no
  8626. fi
  8627. ;;
  8628. darwin* | rhapsody*)
  8629. case "$host_os" in
  8630. rhapsody* | darwin1.[012])
  8631. allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  8632. ;;
  8633. *) # Darwin 1.3 on
  8634. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  8635. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  8636. else
  8637. case ${MACOSX_DEPLOYMENT_TARGET} in
  8638. 10.[012])
  8639. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  8640. ;;
  8641. 10.*)
  8642. allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  8643. ;;
  8644. esac
  8645. fi
  8646. ;;
  8647. esac
  8648. archive_cmds_need_lc_CXX=no
  8649. hardcode_direct_CXX=no
  8650. hardcode_automatic_CXX=yes
  8651. hardcode_shlibpath_var_CXX=unsupported
  8652. whole_archive_flag_spec_CXX=''
  8653. link_all_deplibs_CXX=yes
  8654. if test "$GXX" = yes ; then
  8655. lt_int_apple_cc_single_mod=no
  8656. output_verbose_link_cmd='echo'
  8657. if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  8658. lt_int_apple_cc_single_mod=yes
  8659. fi
  8660. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  8661. archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  8662. else
  8663. 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'
  8664. fi
  8665. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  8666. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  8667. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  8668. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  8669. else
  8670. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  8671. fi
  8672. 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}'
  8673. else
  8674. case $cc_basename in
  8675. xlc*)
  8676. output_verbose_link_cmd='echo'
  8677. archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  8678. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  8679. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  8680. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  8681. 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}'
  8682. ;;
  8683. *)
  8684. ld_shlibs_CXX=no
  8685. ;;
  8686. esac
  8687. fi
  8688. ;;
  8689. dgux*)
  8690. case $cc_basename in
  8691. ec++*)
  8692. # FIXME: insert proper C++ library support
  8693. ld_shlibs_CXX=no
  8694. ;;
  8695. ghcx*)
  8696. # Green Hills C++ Compiler
  8697. # FIXME: insert proper C++ library support
  8698. ld_shlibs_CXX=no
  8699. ;;
  8700. *)
  8701. # FIXME: insert proper C++ library support
  8702. ld_shlibs_CXX=no
  8703. ;;
  8704. esac
  8705. ;;
  8706. freebsd[12]*)
  8707. # C++ shared libraries reported to be fairly broken before switch to ELF
  8708. ld_shlibs_CXX=no
  8709. ;;
  8710. freebsd-elf*)
  8711. archive_cmds_need_lc_CXX=no
  8712. ;;
  8713. freebsd* | kfreebsd*-gnu | dragonfly*)
  8714. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  8715. # conventions
  8716. ld_shlibs_CXX=yes
  8717. ;;
  8718. gnu*)
  8719. ;;
  8720. hpux9*)
  8721. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  8722. hardcode_libdir_separator_CXX=:
  8723. export_dynamic_flag_spec_CXX='${wl}-E'
  8724. hardcode_direct_CXX=yes
  8725. hardcode_minus_L_CXX=yes # Not in the search PATH,
  8726. # but as the default
  8727. # location of the library.
  8728. case $cc_basename in
  8729. CC*)
  8730. # FIXME: insert proper C++ library support
  8731. ld_shlibs_CXX=no
  8732. ;;
  8733. aCC*)
  8734. 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'
  8735. # Commands to make compiler produce verbose output that lists
  8736. # what "hidden" libraries, object files and flags are used when
  8737. # linking a shared library.
  8738. #
  8739. # There doesn't appear to be a way to prevent this compiler from
  8740. # explicitly linking system object files so we need to strip them
  8741. # from the output so that they don't get included in the library
  8742. # dependencies.
  8743. 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'
  8744. ;;
  8745. *)
  8746. if test "$GXX" = yes; then
  8747. 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'
  8748. else
  8749. # FIXME: insert proper C++ library support
  8750. ld_shlibs_CXX=no
  8751. fi
  8752. ;;
  8753. esac
  8754. ;;
  8755. hpux10*|hpux11*)
  8756. if test $with_gnu_ld = no; then
  8757. case "$host_cpu" in
  8758. hppa*64*)
  8759. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  8760. hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  8761. hardcode_libdir_separator_CXX=:
  8762. ;;
  8763. ia64*)
  8764. hardcode_libdir_flag_spec_CXX='-L$libdir'
  8765. ;;
  8766. *)
  8767. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  8768. hardcode_libdir_separator_CXX=:
  8769. export_dynamic_flag_spec_CXX='${wl}-E'
  8770. ;;
  8771. esac
  8772. fi
  8773. case "$host_cpu" in
  8774. hppa*64*)
  8775. hardcode_direct_CXX=no
  8776. hardcode_shlibpath_var_CXX=no
  8777. ;;
  8778. ia64*)
  8779. hardcode_direct_CXX=no
  8780. hardcode_shlibpath_var_CXX=no
  8781. hardcode_minus_L_CXX=yes # Not in the search PATH,
  8782. # but as the default
  8783. # location of the library.
  8784. ;;
  8785. *)
  8786. hardcode_direct_CXX=yes
  8787. hardcode_minus_L_CXX=yes # Not in the search PATH,
  8788. # but as the default
  8789. # location of the library.
  8790. ;;
  8791. esac
  8792. case $cc_basename in
  8793. CC*)
  8794. # FIXME: insert proper C++ library support
  8795. ld_shlibs_CXX=no
  8796. ;;
  8797. aCC*)
  8798. case "$host_cpu" in
  8799. hppa*64*|ia64*)
  8800. archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  8801. ;;
  8802. *)
  8803. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  8804. ;;
  8805. esac
  8806. # Commands to make compiler produce verbose output that lists
  8807. # what "hidden" libraries, object files and flags are used when
  8808. # linking a shared library.
  8809. #
  8810. # There doesn't appear to be a way to prevent this compiler from
  8811. # explicitly linking system object files so we need to strip them
  8812. # from the output so that they don't get included in the library
  8813. # dependencies.
  8814. 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'
  8815. ;;
  8816. *)
  8817. if test "$GXX" = yes; then
  8818. if test $with_gnu_ld = no; then
  8819. case "$host_cpu" in
  8820. ia64*|hppa*64*)
  8821. archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  8822. ;;
  8823. *)
  8824. 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'
  8825. ;;
  8826. esac
  8827. fi
  8828. else
  8829. # FIXME: insert proper C++ library support
  8830. ld_shlibs_CXX=no
  8831. fi
  8832. ;;
  8833. esac
  8834. ;;
  8835. irix5* | irix6*)
  8836. case $cc_basename in
  8837. CC*)
  8838. # SGI C++
  8839. 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'
  8840. # Archives containing C++ object files must be created using
  8841. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  8842. # necessary to make sure instantiated templates are included
  8843. # in the archive.
  8844. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  8845. ;;
  8846. *)
  8847. if test "$GXX" = yes; then
  8848. if test "$with_gnu_ld" = no; then
  8849. 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'
  8850. else
  8851. 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'
  8852. fi
  8853. fi
  8854. link_all_deplibs_CXX=yes
  8855. ;;
  8856. esac
  8857. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  8858. hardcode_libdir_separator_CXX=:
  8859. ;;
  8860. linux*)
  8861. case $cc_basename in
  8862. KCC*)
  8863. # Kuck and Associates, Inc. (KAI) C++ Compiler
  8864. # KCC will only create a shared library if the output file
  8865. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  8866. # to its proper name (with version) after linking.
  8867. 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'
  8868. 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'
  8869. # Commands to make compiler produce verbose output that lists
  8870. # what "hidden" libraries, object files and flags are used when
  8871. # linking a shared library.
  8872. #
  8873. # There doesn't appear to be a way to prevent this compiler from
  8874. # explicitly linking system object files so we need to strip them
  8875. # from the output so that they don't get included in the library
  8876. # dependencies.
  8877. 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'
  8878. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  8879. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  8880. # Archives containing C++ object files must be created using
  8881. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  8882. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  8883. ;;
  8884. icpc*)
  8885. # Intel C++
  8886. with_gnu_ld=yes
  8887. # version 8.0 and above of icpc choke on multiply defined symbols
  8888. # if we add $predep_objects and $postdep_objects, however 7.1 and
  8889. # earlier do not add the objects themselves.
  8890. case `$CC -V 2>&1` in
  8891. *"Version 7."*)
  8892. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8893. 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'
  8894. ;;
  8895. *) # Version 8.0 or newer
  8896. tmp_idyn=
  8897. case $host_cpu in
  8898. ia64*) tmp_idyn=' -i_dynamic';;
  8899. esac
  8900. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8901. 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'
  8902. ;;
  8903. esac
  8904. archive_cmds_need_lc_CXX=no
  8905. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  8906. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  8907. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8908. ;;
  8909. pgCC*)
  8910. # Portland Group C++ compiler
  8911. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  8912. 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'
  8913. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  8914. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  8915. 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'
  8916. ;;
  8917. cxx*)
  8918. # Compaq C++
  8919. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8920. 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'
  8921. runpath_var=LD_RUN_PATH
  8922. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  8923. hardcode_libdir_separator_CXX=:
  8924. # Commands to make compiler produce verbose output that lists
  8925. # what "hidden" libraries, object files and flags are used when
  8926. # linking a shared library.
  8927. #
  8928. # There doesn't appear to be a way to prevent this compiler from
  8929. # explicitly linking system object files so we need to strip them
  8930. # from the output so that they don't get included in the library
  8931. # dependencies.
  8932. 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'
  8933. ;;
  8934. esac
  8935. ;;
  8936. lynxos*)
  8937. # FIXME: insert proper C++ library support
  8938. ld_shlibs_CXX=no
  8939. ;;
  8940. m88k*)
  8941. # FIXME: insert proper C++ library support
  8942. ld_shlibs_CXX=no
  8943. ;;
  8944. mvs*)
  8945. case $cc_basename in
  8946. cxx*)
  8947. # FIXME: insert proper C++ library support
  8948. ld_shlibs_CXX=no
  8949. ;;
  8950. *)
  8951. # FIXME: insert proper C++ library support
  8952. ld_shlibs_CXX=no
  8953. ;;
  8954. esac
  8955. ;;
  8956. netbsd*)
  8957. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  8958. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  8959. wlarc=
  8960. hardcode_libdir_flag_spec_CXX='-R$libdir'
  8961. hardcode_direct_CXX=yes
  8962. hardcode_shlibpath_var_CXX=no
  8963. fi
  8964. # Workaround some broken pre-1.5 toolchains
  8965. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  8966. ;;
  8967. openbsd2*)
  8968. # C++ shared libraries are fairly broken
  8969. ld_shlibs_CXX=no
  8970. ;;
  8971. openbsd*)
  8972. hardcode_direct_CXX=yes
  8973. hardcode_shlibpath_var_CXX=no
  8974. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  8975. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  8976. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8977. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  8978. export_dynamic_flag_spec_CXX='${wl}-E'
  8979. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8980. fi
  8981. output_verbose_link_cmd='echo'
  8982. ;;
  8983. osf3*)
  8984. case $cc_basename in
  8985. KCC*)
  8986. # Kuck and Associates, Inc. (KAI) C++ Compiler
  8987. # KCC will only create a shared library if the output file
  8988. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  8989. # to its proper name (with version) after linking.
  8990. 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'
  8991. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  8992. hardcode_libdir_separator_CXX=:
  8993. # Archives containing C++ object files must be created using
  8994. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  8995. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  8996. ;;
  8997. RCC*)
  8998. # Rational C++ 2.4.1
  8999. # FIXME: insert proper C++ library support
  9000. ld_shlibs_CXX=no
  9001. ;;
  9002. cxx*)
  9003. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9004. 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'
  9005. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9006. hardcode_libdir_separator_CXX=:
  9007. # Commands to make compiler produce verbose output that lists
  9008. # what "hidden" libraries, object files and flags are used when
  9009. # linking a shared library.
  9010. #
  9011. # There doesn't appear to be a way to prevent this compiler from
  9012. # explicitly linking system object files so we need to strip them
  9013. # from the output so that they don't get included in the library
  9014. # dependencies.
  9015. 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'
  9016. ;;
  9017. *)
  9018. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9019. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9020. 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'
  9021. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9022. hardcode_libdir_separator_CXX=:
  9023. # Commands to make compiler produce verbose output that lists
  9024. # what "hidden" libraries, object files and flags are used when
  9025. # linking a shared library.
  9026. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9027. else
  9028. # FIXME: insert proper C++ library support
  9029. ld_shlibs_CXX=no
  9030. fi
  9031. ;;
  9032. esac
  9033. ;;
  9034. osf4* | osf5*)
  9035. case $cc_basename in
  9036. KCC*)
  9037. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9038. # KCC will only create a shared library if the output file
  9039. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9040. # to its proper name (with version) after linking.
  9041. 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'
  9042. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9043. hardcode_libdir_separator_CXX=:
  9044. # Archives containing C++ object files must be created using
  9045. # the KAI C++ compiler.
  9046. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  9047. ;;
  9048. RCC*)
  9049. # Rational C++ 2.4.1
  9050. # FIXME: insert proper C++ library support
  9051. ld_shlibs_CXX=no
  9052. ;;
  9053. cxx*)
  9054. allow_undefined_flag_CXX=' -expect_unresolved \*'
  9055. 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'
  9056. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  9057. echo "-hidden">> $lib.exp~
  9058. $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~
  9059. $rm $lib.exp'
  9060. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  9061. hardcode_libdir_separator_CXX=:
  9062. # Commands to make compiler produce verbose output that lists
  9063. # what "hidden" libraries, object files and flags are used when
  9064. # linking a shared library.
  9065. #
  9066. # There doesn't appear to be a way to prevent this compiler from
  9067. # explicitly linking system object files so we need to strip them
  9068. # from the output so that they don't get included in the library
  9069. # dependencies.
  9070. 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'
  9071. ;;
  9072. *)
  9073. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9074. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9075. 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'
  9076. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9077. hardcode_libdir_separator_CXX=:
  9078. # Commands to make compiler produce verbose output that lists
  9079. # what "hidden" libraries, object files and flags are used when
  9080. # linking a shared library.
  9081. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9082. else
  9083. # FIXME: insert proper C++ library support
  9084. ld_shlibs_CXX=no
  9085. fi
  9086. ;;
  9087. esac
  9088. ;;
  9089. psos*)
  9090. # FIXME: insert proper C++ library support
  9091. ld_shlibs_CXX=no
  9092. ;;
  9093. sco*)
  9094. archive_cmds_need_lc_CXX=no
  9095. case $cc_basename in
  9096. CC*)
  9097. # FIXME: insert proper C++ library support
  9098. ld_shlibs_CXX=no
  9099. ;;
  9100. *)
  9101. # FIXME: insert proper C++ library support
  9102. ld_shlibs_CXX=no
  9103. ;;
  9104. esac
  9105. ;;
  9106. sunos4*)
  9107. case $cc_basename in
  9108. CC*)
  9109. # Sun C++ 4.x
  9110. # FIXME: insert proper C++ library support
  9111. ld_shlibs_CXX=no
  9112. ;;
  9113. lcc*)
  9114. # Lucid
  9115. # FIXME: insert proper C++ library support
  9116. ld_shlibs_CXX=no
  9117. ;;
  9118. *)
  9119. # FIXME: insert proper C++ library support
  9120. ld_shlibs_CXX=no
  9121. ;;
  9122. esac
  9123. ;;
  9124. solaris*)
  9125. case $cc_basename in
  9126. CC*)
  9127. # Sun C++ 4.2, 5.x and Centerline C++
  9128. no_undefined_flag_CXX=' -zdefs'
  9129. archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9130. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  9131. $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  9132. hardcode_libdir_flag_spec_CXX='-R$libdir'
  9133. hardcode_shlibpath_var_CXX=no
  9134. case $host_os in
  9135. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9136. *)
  9137. # The C++ compiler is used as linker so we must use $wl
  9138. # flag to pass the commands to the underlying system
  9139. # linker. We must also pass each convience library through
  9140. # to the system linker between allextract/defaultextract.
  9141. # The C++ compiler will combine linker options so we
  9142. # cannot just pass the convience library names through
  9143. # without $wl.
  9144. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9145. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
  9146. ;;
  9147. esac
  9148. link_all_deplibs_CXX=yes
  9149. # Commands to make compiler produce verbose output that lists
  9150. # what "hidden" libraries, object files and flags are used when
  9151. # linking a shared library.
  9152. #
  9153. # There doesn't appear to be a way to prevent this compiler from
  9154. # explicitly linking system object files so we need to strip them
  9155. # from the output so that they don't get included in the library
  9156. # dependencies.
  9157. output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  9158. # Archives containing C++ object files must be created using
  9159. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  9160. # necessary to make sure instantiated templates are included
  9161. # in the archive.
  9162. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  9163. ;;
  9164. gcx*)
  9165. # Green Hills C++ Compiler
  9166. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  9167. # The C++ compiler must be used to create the archive.
  9168. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  9169. ;;
  9170. *)
  9171. # GNU C++ compiler with Solaris linker
  9172. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9173. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  9174. if $CC --version | grep -v '^2\.7' > /dev/null; then
  9175. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  9176. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  9177. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  9178. # Commands to make compiler produce verbose output that lists
  9179. # what "hidden" libraries, object files and flags are used when
  9180. # linking a shared library.
  9181. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  9182. else
  9183. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  9184. # platform.
  9185. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  9186. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  9187. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  9188. # Commands to make compiler produce verbose output that lists
  9189. # what "hidden" libraries, object files and flags are used when
  9190. # linking a shared library.
  9191. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  9192. fi
  9193. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  9194. fi
  9195. ;;
  9196. esac
  9197. ;;
  9198. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  9199. archive_cmds_need_lc_CXX=no
  9200. ;;
  9201. tandem*)
  9202. case $cc_basename in
  9203. NCC*)
  9204. # NonStop-UX NCC 3.20
  9205. # FIXME: insert proper C++ library support
  9206. ld_shlibs_CXX=no
  9207. ;;
  9208. *)
  9209. # FIXME: insert proper C++ library support
  9210. ld_shlibs_CXX=no
  9211. ;;
  9212. esac
  9213. ;;
  9214. vxworks*)
  9215. # FIXME: insert proper C++ library support
  9216. ld_shlibs_CXX=no
  9217. ;;
  9218. *)
  9219. # FIXME: insert proper C++ library support
  9220. ld_shlibs_CXX=no
  9221. ;;
  9222. esac
  9223. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  9224. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  9225. test "$ld_shlibs_CXX" = no && can_build_shared=no
  9226. GCC_CXX="$GXX"
  9227. LD_CXX="$LD"
  9228. cat > conftest.$ac_ext <<EOF
  9229. class Foo
  9230. {
  9231. public:
  9232. Foo (void) { a = 0; }
  9233. private:
  9234. int a;
  9235. };
  9236. EOF
  9237. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9238. (eval $ac_compile) 2>&5
  9239. ac_status=$?
  9240. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9241. (exit $ac_status); }; then
  9242. # Parse the compiler output and extract the necessary
  9243. # objects, libraries and library flags.
  9244. # Sentinel used to keep track of whether or not we are before
  9245. # the conftest object file.
  9246. pre_test_object_deps_done=no
  9247. # The `*' in the case matches for architectures that use `case' in
  9248. # $output_verbose_cmd can trigger glob expansion during the loop
  9249. # eval without this substitution.
  9250. output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
  9251. for p in `eval $output_verbose_link_cmd`; do
  9252. case $p in
  9253. -L* | -R* | -l*)
  9254. # Some compilers place space between "-{L,R}" and the path.
  9255. # Remove the space.
  9256. if test $p = "-L" \
  9257. || test $p = "-R"; then
  9258. prev=$p
  9259. continue
  9260. else
  9261. prev=
  9262. fi
  9263. if test "$pre_test_object_deps_done" = no; then
  9264. case $p in
  9265. -L* | -R*)
  9266. # Internal compiler library paths should come after those
  9267. # provided the user. The postdeps already come after the
  9268. # user supplied libs so there is no need to process them.
  9269. if test -z "$compiler_lib_search_path_CXX"; then
  9270. compiler_lib_search_path_CXX="${prev}${p}"
  9271. else
  9272. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  9273. fi
  9274. ;;
  9275. # The "-l" case would never come before the object being
  9276. # linked, so don't bother handling this case.
  9277. esac
  9278. else
  9279. if test -z "$postdeps_CXX"; then
  9280. postdeps_CXX="${prev}${p}"
  9281. else
  9282. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  9283. fi
  9284. fi
  9285. ;;
  9286. *.$objext)
  9287. # This assumes that the test object file only shows up
  9288. # once in the compiler output.
  9289. if test "$p" = "conftest.$objext"; then
  9290. pre_test_object_deps_done=yes
  9291. continue
  9292. fi
  9293. if test "$pre_test_object_deps_done" = no; then
  9294. if test -z "$predep_objects_CXX"; then
  9295. predep_objects_CXX="$p"
  9296. else
  9297. predep_objects_CXX="$predep_objects_CXX $p"
  9298. fi
  9299. else
  9300. if test -z "$postdep_objects_CXX"; then
  9301. postdep_objects_CXX="$p"
  9302. else
  9303. postdep_objects_CXX="$postdep_objects_CXX $p"
  9304. fi
  9305. fi
  9306. ;;
  9307. *) ;; # Ignore the rest.
  9308. esac
  9309. done
  9310. # Clean up.
  9311. rm -f a.out a.exe
  9312. else
  9313. echo "libtool.m4: error: problem compiling CXX test program"
  9314. fi
  9315. $rm -f confest.$objext
  9316. case " $postdeps_CXX " in
  9317. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  9318. esac
  9319. lt_prog_compiler_wl_CXX=
  9320. lt_prog_compiler_pic_CXX=
  9321. lt_prog_compiler_static_CXX=
  9322. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  9323. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  9324. # C++ specific cases for pic, static, wl, etc.
  9325. if test "$GXX" = yes; then
  9326. lt_prog_compiler_wl_CXX='-Wl,'
  9327. lt_prog_compiler_static_CXX='-static'
  9328. case $host_os in
  9329. aix*)
  9330. # All AIX code is PIC.
  9331. if test "$host_cpu" = ia64; then
  9332. # AIX 5 now supports IA64 processor
  9333. lt_prog_compiler_static_CXX='-Bstatic'
  9334. fi
  9335. ;;
  9336. amigaos*)
  9337. # FIXME: we need at least 68020 code to build shared libraries, but
  9338. # adding the `-m68020' flag to GCC prevents building anything better,
  9339. # like `-m68040'.
  9340. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  9341. ;;
  9342. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  9343. # PIC is the default for these OSes.
  9344. ;;
  9345. mingw* | os2* | pw32*)
  9346. # This hack is so that the source file can tell whether it is being
  9347. # built for inclusion in a dll (and should export symbols for example).
  9348. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  9349. ;;
  9350. darwin* | rhapsody*)
  9351. # PIC is the default on this platform
  9352. # Common symbols not allowed in MH_DYLIB files
  9353. lt_prog_compiler_pic_CXX='-fno-common'
  9354. ;;
  9355. *djgpp*)
  9356. # DJGPP does not support shared libraries at all
  9357. lt_prog_compiler_pic_CXX=
  9358. ;;
  9359. sysv4*MP*)
  9360. if test -d /usr/nec; then
  9361. lt_prog_compiler_pic_CXX=-Kconform_pic
  9362. fi
  9363. ;;
  9364. hpux*)
  9365. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  9366. # not for PA HP-UX.
  9367. case "$host_cpu" in
  9368. hppa*64*|ia64*)
  9369. ;;
  9370. *)
  9371. lt_prog_compiler_pic_CXX='-fPIC'
  9372. ;;
  9373. esac
  9374. ;;
  9375. *)
  9376. lt_prog_compiler_pic_CXX='-fPIC'
  9377. ;;
  9378. esac
  9379. else
  9380. case $host_os in
  9381. aix4* | aix5*)
  9382. # All AIX code is PIC.
  9383. if test "$host_cpu" = ia64; then
  9384. # AIX 5 now supports IA64 processor
  9385. lt_prog_compiler_static_CXX='-Bstatic'
  9386. else
  9387. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  9388. fi
  9389. ;;
  9390. chorus*)
  9391. case $cc_basename in
  9392. cxch68*)
  9393. # Green Hills C++ Compiler
  9394. # _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"
  9395. ;;
  9396. esac
  9397. ;;
  9398. darwin*)
  9399. # PIC is the default on this platform
  9400. # Common symbols not allowed in MH_DYLIB files
  9401. case $cc_basename in
  9402. xlc*)
  9403. lt_prog_compiler_pic_CXX='-qnocommon'
  9404. lt_prog_compiler_wl_CXX='-Wl,'
  9405. ;;
  9406. esac
  9407. ;;
  9408. dgux*)
  9409. case $cc_basename in
  9410. ec++*)
  9411. lt_prog_compiler_pic_CXX='-KPIC'
  9412. ;;
  9413. ghcx*)
  9414. # Green Hills C++ Compiler
  9415. lt_prog_compiler_pic_CXX='-pic'
  9416. ;;
  9417. *)
  9418. ;;
  9419. esac
  9420. ;;
  9421. freebsd* | kfreebsd*-gnu | dragonfly*)
  9422. # FreeBSD uses GNU C++
  9423. ;;
  9424. hpux9* | hpux10* | hpux11*)
  9425. case $cc_basename in
  9426. CC*)
  9427. lt_prog_compiler_wl_CXX='-Wl,'
  9428. lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  9429. if test "$host_cpu" != ia64; then
  9430. lt_prog_compiler_pic_CXX='+Z'
  9431. fi
  9432. ;;
  9433. aCC*)
  9434. lt_prog_compiler_wl_CXX='-Wl,'
  9435. lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  9436. case "$host_cpu" in
  9437. hppa*64*|ia64*)
  9438. # +Z the default
  9439. ;;
  9440. *)
  9441. lt_prog_compiler_pic_CXX='+Z'
  9442. ;;
  9443. esac
  9444. ;;
  9445. *)
  9446. ;;
  9447. esac
  9448. ;;
  9449. irix5* | irix6* | nonstopux*)
  9450. case $cc_basename in
  9451. CC*)
  9452. lt_prog_compiler_wl_CXX='-Wl,'
  9453. lt_prog_compiler_static_CXX='-non_shared'
  9454. # CC pic flag -KPIC is the default.
  9455. ;;
  9456. *)
  9457. ;;
  9458. esac
  9459. ;;
  9460. linux*)
  9461. case $cc_basename in
  9462. KCC*)
  9463. # KAI C++ Compiler
  9464. lt_prog_compiler_wl_CXX='--backend -Wl,'
  9465. lt_prog_compiler_pic_CXX='-fPIC'
  9466. ;;
  9467. icpc* | ecpc*)
  9468. # Intel C++
  9469. lt_prog_compiler_wl_CXX='-Wl,'
  9470. lt_prog_compiler_pic_CXX='-KPIC'
  9471. lt_prog_compiler_static_CXX='-static'
  9472. ;;
  9473. pgCC*)
  9474. # Portland Group C++ compiler.
  9475. lt_prog_compiler_wl_CXX='-Wl,'
  9476. lt_prog_compiler_pic_CXX='-fpic'
  9477. lt_prog_compiler_static_CXX='-static'
  9478. ;;
  9479. cxx*)
  9480. # Compaq C++
  9481. # Make sure the PIC flag is empty. It appears that all Alpha
  9482. # Linux and Compaq Tru64 Unix objects are PIC.
  9483. lt_prog_compiler_pic_CXX=
  9484. lt_prog_compiler_static_CXX='-non_shared'
  9485. ;;
  9486. *)
  9487. ;;
  9488. esac
  9489. ;;
  9490. lynxos*)
  9491. ;;
  9492. m88k*)
  9493. ;;
  9494. mvs*)
  9495. case $cc_basename in
  9496. cxx*)
  9497. lt_prog_compiler_pic_CXX='-W c,exportall'
  9498. ;;
  9499. *)
  9500. ;;
  9501. esac
  9502. ;;
  9503. netbsd*)
  9504. ;;
  9505. osf3* | osf4* | osf5*)
  9506. case $cc_basename in
  9507. KCC*)
  9508. lt_prog_compiler_wl_CXX='--backend -Wl,'
  9509. ;;
  9510. RCC*)
  9511. # Rational C++ 2.4.1
  9512. lt_prog_compiler_pic_CXX='-pic'
  9513. ;;
  9514. cxx*)
  9515. # Digital/Compaq C++
  9516. lt_prog_compiler_wl_CXX='-Wl,'
  9517. # Make sure the PIC flag is empty. It appears that all Alpha
  9518. # Linux and Compaq Tru64 Unix objects are PIC.
  9519. lt_prog_compiler_pic_CXX=
  9520. lt_prog_compiler_static_CXX='-non_shared'
  9521. ;;
  9522. *)
  9523. ;;
  9524. esac
  9525. ;;
  9526. psos*)
  9527. ;;
  9528. sco*)
  9529. case $cc_basename in
  9530. CC*)
  9531. lt_prog_compiler_pic_CXX='-fPIC'
  9532. ;;
  9533. *)
  9534. ;;
  9535. esac
  9536. ;;
  9537. solaris*)
  9538. case $cc_basename in
  9539. CC*)
  9540. # Sun C++ 4.2, 5.x and Centerline C++
  9541. lt_prog_compiler_pic_CXX='-KPIC'
  9542. lt_prog_compiler_static_CXX='-Bstatic'
  9543. lt_prog_compiler_wl_CXX='-Qoption ld '
  9544. ;;
  9545. gcx*)
  9546. # Green Hills C++ Compiler
  9547. lt_prog_compiler_pic_CXX='-PIC'
  9548. ;;
  9549. *)
  9550. ;;
  9551. esac
  9552. ;;
  9553. sunos4*)
  9554. case $cc_basename in
  9555. CC*)
  9556. # Sun C++ 4.x
  9557. lt_prog_compiler_pic_CXX='-pic'
  9558. lt_prog_compiler_static_CXX='-Bstatic'
  9559. ;;
  9560. lcc*)
  9561. # Lucid
  9562. lt_prog_compiler_pic_CXX='-pic'
  9563. ;;
  9564. *)
  9565. ;;
  9566. esac
  9567. ;;
  9568. tandem*)
  9569. case $cc_basename in
  9570. NCC*)
  9571. # NonStop-UX NCC 3.20
  9572. lt_prog_compiler_pic_CXX='-KPIC'
  9573. ;;
  9574. *)
  9575. ;;
  9576. esac
  9577. ;;
  9578. unixware*)
  9579. ;;
  9580. vxworks*)
  9581. ;;
  9582. *)
  9583. lt_prog_compiler_can_build_shared_CXX=no
  9584. ;;
  9585. esac
  9586. fi
  9587. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  9588. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
  9589. #
  9590. # Check to make sure the PIC flag actually works.
  9591. #
  9592. if test -n "$lt_prog_compiler_pic_CXX"; then
  9593. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  9594. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
  9595. if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  9596. echo $ECHO_N "(cached) $ECHO_C" >&6
  9597. else
  9598. lt_prog_compiler_pic_works_CXX=no
  9599. ac_outfile=conftest.$ac_objext
  9600. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  9601. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  9602. # Insert the option either (1) after the last *FLAGS variable, or
  9603. # (2) before a word containing "conftest.", or (3) at the end.
  9604. # Note that $ac_compile itself does not contain backslashes and begins
  9605. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9606. # The option is referenced via a variable to avoid confusing sed.
  9607. lt_compile=`echo "$ac_compile" | $SED \
  9608. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  9609. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9610. -e 's:$: $lt_compiler_flag:'`
  9611. (eval echo "\"\$as_me:10616: $lt_compile\"" >&5)
  9612. (eval "$lt_compile" 2>conftest.err)
  9613. ac_status=$?
  9614. cat conftest.err >&5
  9615. echo "$as_me:10620: \$? = $ac_status" >&5
  9616. if (exit $ac_status) && test -s "$ac_outfile"; then
  9617. # The compiler can only warn and ignore the option if not recognized
  9618. # So say no if there are warnings other than the usual output.
  9619. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  9620. $SED '/^$/d' conftest.err >conftest.er2
  9621. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  9622. lt_prog_compiler_pic_works_CXX=yes
  9623. fi
  9624. fi
  9625. $rm conftest*
  9626. fi
  9627. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  9628. echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
  9629. if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  9630. case $lt_prog_compiler_pic_CXX in
  9631. "" | " "*) ;;
  9632. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  9633. esac
  9634. else
  9635. lt_prog_compiler_pic_CXX=
  9636. lt_prog_compiler_can_build_shared_CXX=no
  9637. fi
  9638. fi
  9639. case "$host_os" in
  9640. # For platforms which do not support PIC, -DPIC is meaningless:
  9641. *djgpp*)
  9642. lt_prog_compiler_pic_CXX=
  9643. ;;
  9644. *)
  9645. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  9646. ;;
  9647. esac
  9648. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  9649. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  9650. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  9651. echo $ECHO_N "(cached) $ECHO_C" >&6
  9652. else
  9653. lt_cv_prog_compiler_c_o_CXX=no
  9654. $rm -r conftest 2>/dev/null
  9655. mkdir conftest
  9656. cd conftest
  9657. mkdir out
  9658. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  9659. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9660. # Insert the option either (1) after the last *FLAGS variable, or
  9661. # (2) before a word containing "conftest.", or (3) at the end.
  9662. # Note that $ac_compile itself does not contain backslashes and begins
  9663. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9664. lt_compile=`echo "$ac_compile" | $SED \
  9665. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  9666. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9667. -e 's:$: $lt_compiler_flag:'`
  9668. (eval echo "\"\$as_me:10678: $lt_compile\"" >&5)
  9669. (eval "$lt_compile" 2>out/conftest.err)
  9670. ac_status=$?
  9671. cat out/conftest.err >&5
  9672. echo "$as_me:10682: \$? = $ac_status" >&5
  9673. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9674. then
  9675. # The compiler can only warn and ignore the option if not recognized
  9676. # So say no if there are warnings
  9677. $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
  9678. $SED '/^$/d' out/conftest.err >out/conftest.er2
  9679. if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9680. lt_cv_prog_compiler_c_o_CXX=yes
  9681. fi
  9682. fi
  9683. chmod u+w .
  9684. $rm conftest*
  9685. # SGI C++ compiler will create directory out/ii_files/ for
  9686. # template instantiation
  9687. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  9688. $rm out/* && rmdir out
  9689. cd ..
  9690. rmdir conftest
  9691. $rm conftest*
  9692. fi
  9693. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  9694. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
  9695. hard_links="nottested"
  9696. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  9697. # do not overwrite the value of need_locks provided by the user
  9698. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  9699. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  9700. hard_links=yes
  9701. $rm conftest*
  9702. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9703. touch conftest.a
  9704. ln conftest.a conftest.b 2>&5 || hard_links=no
  9705. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9706. echo "$as_me:$LINENO: result: $hard_links" >&5
  9707. echo "${ECHO_T}$hard_links" >&6
  9708. if test "$hard_links" = no; then
  9709. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  9710. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  9711. need_locks=warn
  9712. fi
  9713. else
  9714. need_locks=no
  9715. fi
  9716. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9717. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  9718. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9719. case $host_os in
  9720. aix4* | aix5*)
  9721. # If we're using GNU nm, then we don't want the "-C" option.
  9722. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  9723. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  9724. 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'
  9725. else
  9726. 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'
  9727. fi
  9728. ;;
  9729. pw32*)
  9730. export_symbols_cmds_CXX="$ltdll_cmds"
  9731. ;;
  9732. cygwin* | mingw*)
  9733. 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'
  9734. ;;
  9735. *)
  9736. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9737. ;;
  9738. esac
  9739. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  9740. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  9741. test "$ld_shlibs_CXX" = no && can_build_shared=no
  9742. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9743. if test "$GCC" = yes; then
  9744. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9745. fi
  9746. #
  9747. # Do we need to explicitly link libc?
  9748. #
  9749. case "x$archive_cmds_need_lc_CXX" in
  9750. x|xyes)
  9751. # Assume -lc should be added
  9752. archive_cmds_need_lc_CXX=yes
  9753. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9754. case $archive_cmds_CXX in
  9755. *'~'*)
  9756. # FIXME: we may have to deal with multi-command sequences.
  9757. ;;
  9758. '$CC '*)
  9759. # Test whether the compiler implicitly links with -lc since on some
  9760. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9761. # to ld, don't add -lc before -lgcc.
  9762. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  9763. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  9764. $rm conftest*
  9765. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  9766. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9767. (eval $ac_compile) 2>&5
  9768. ac_status=$?
  9769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9770. (exit $ac_status); } 2>conftest.err; then
  9771. soname=conftest
  9772. lib=conftest
  9773. libobjs=conftest.$ac_objext
  9774. deplibs=
  9775. wl=$lt_prog_compiler_wl_CXX
  9776. compiler_flags=-v
  9777. linker_flags=-v
  9778. verstring=
  9779. output_objdir=.
  9780. libname=conftest
  9781. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  9782. allow_undefined_flag_CXX=
  9783. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  9784. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9785. ac_status=$?
  9786. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9787. (exit $ac_status); }
  9788. then
  9789. archive_cmds_need_lc_CXX=no
  9790. else
  9791. archive_cmds_need_lc_CXX=yes
  9792. fi
  9793. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  9794. else
  9795. cat conftest.err 1>&5
  9796. fi
  9797. $rm conftest*
  9798. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  9799. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
  9800. ;;
  9801. esac
  9802. fi
  9803. ;;
  9804. esac
  9805. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  9806. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  9807. library_names_spec=
  9808. libname_spec='lib$name'
  9809. soname_spec=
  9810. shrext_cmds=".so"
  9811. postinstall_cmds=
  9812. postuninstall_cmds=
  9813. finish_cmds=
  9814. finish_eval=
  9815. shlibpath_var=
  9816. shlibpath_overrides_runpath=unknown
  9817. version_type=none
  9818. dynamic_linker="$host_os ld.so"
  9819. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9820. if test "$GCC" = yes; then
  9821. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9822. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  9823. # if the path contains ";" then we assume it to be the separator
  9824. # otherwise default to the standard path separator (i.e. ":") - it is
  9825. # assumed that no part of a normal pathname contains ";" but that should
  9826. # okay in the real world where ";" in dirpaths is itself problematic.
  9827. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9828. else
  9829. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9830. fi
  9831. else
  9832. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9833. fi
  9834. need_lib_prefix=unknown
  9835. hardcode_into_libs=no
  9836. # when you set need_version to no, make sure it does not cause -set_version
  9837. # flags to be left without arguments
  9838. need_version=unknown
  9839. case $host_os in
  9840. aix3*)
  9841. version_type=linux
  9842. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9843. shlibpath_var=LIBPATH
  9844. # AIX 3 has no versioning support, so we append a major version to the name.
  9845. soname_spec='${libname}${release}${shared_ext}$major'
  9846. ;;
  9847. aix4* | aix5*)
  9848. version_type=linux
  9849. need_lib_prefix=no
  9850. need_version=no
  9851. hardcode_into_libs=yes
  9852. if test "$host_cpu" = ia64; then
  9853. # AIX 5 supports IA64
  9854. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9855. shlibpath_var=LD_LIBRARY_PATH
  9856. else
  9857. # With GCC up to 2.95.x, collect2 would create an import file
  9858. # for dependence libraries. The import file would start with
  9859. # the line `#! .'. This would cause the generated library to
  9860. # depend on `.', always an invalid library. This was fixed in
  9861. # development snapshots of GCC prior to 3.0.
  9862. case $host_os in
  9863. aix4 | aix4.[01] | aix4.[01].*)
  9864. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9865. echo ' yes '
  9866. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  9867. :
  9868. else
  9869. can_build_shared=no
  9870. fi
  9871. ;;
  9872. esac
  9873. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9874. # soname into executable. Probably we can add versioning support to
  9875. # collect2, so additional links can be useful in future.
  9876. if test "$aix_use_runtimelinking" = yes; then
  9877. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9878. # instead of lib<name>.a to let people know that these are not
  9879. # typical AIX shared libraries.
  9880. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9881. else
  9882. # We preserve .a as extension for shared libraries through AIX4.2
  9883. # and later when we are not doing run time linking.
  9884. library_names_spec='${libname}${release}.a $libname.a'
  9885. soname_spec='${libname}${release}${shared_ext}$major'
  9886. fi
  9887. shlibpath_var=LIBPATH
  9888. fi
  9889. ;;
  9890. amigaos*)
  9891. library_names_spec='$libname.ixlibrary $libname.a'
  9892. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9893. 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'
  9894. ;;
  9895. beos*)
  9896. library_names_spec='${libname}${shared_ext}'
  9897. dynamic_linker="$host_os ld.so"
  9898. shlibpath_var=LIBRARY_PATH
  9899. ;;
  9900. bsdi[45]*)
  9901. version_type=linux
  9902. need_version=no
  9903. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9904. soname_spec='${libname}${release}${shared_ext}$major'
  9905. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9906. shlibpath_var=LD_LIBRARY_PATH
  9907. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9908. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9909. # the default ld.so.conf also contains /usr/contrib/lib and
  9910. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9911. # libtool to hard-code these into programs
  9912. ;;
  9913. cygwin* | mingw* | pw32*)
  9914. version_type=windows
  9915. shrext_cmds=".dll"
  9916. need_version=no
  9917. need_lib_prefix=no
  9918. case $GCC,$host_os in
  9919. yes,cygwin* | yes,mingw* | yes,pw32*)
  9920. library_names_spec='$libname.dll.a'
  9921. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9922. postinstall_cmds='base_file=`basename \${file}`~
  9923. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  9924. dldir=$destdir/`dirname \$dlpath`~
  9925. test -d \$dldir || mkdir -p \$dldir~
  9926. $install_prog $dir/$dlname \$dldir/$dlname'
  9927. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9928. dlpath=$dir/\$dldll~
  9929. $rm \$dlpath'
  9930. shlibpath_overrides_runpath=yes
  9931. case $host_os in
  9932. cygwin*)
  9933. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9934. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9935. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  9936. ;;
  9937. mingw*)
  9938. # MinGW DLLs use traditional 'lib' prefix
  9939. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9940. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9941. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  9942. # It is most probably a Windows format PATH printed by
  9943. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  9944. # path with ; separators, and with drive letters. We can handle the
  9945. # drive letters (cygwin fileutils understands them), so leave them,
  9946. # especially as we might pass files found there to a mingw objdump,
  9947. # which wouldn't understand a cygwinified path. Ahh.
  9948. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9949. else
  9950. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9951. fi
  9952. ;;
  9953. pw32*)
  9954. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9955. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9956. ;;
  9957. esac
  9958. ;;
  9959. *)
  9960. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9961. ;;
  9962. esac
  9963. dynamic_linker='Win32 ld.exe'
  9964. # FIXME: first we should search . and the directory the executable is in
  9965. shlibpath_var=PATH
  9966. ;;
  9967. darwin* | rhapsody*)
  9968. dynamic_linker="$host_os dyld"
  9969. version_type=darwin
  9970. need_lib_prefix=no
  9971. need_version=no
  9972. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9973. soname_spec='${libname}${release}${major}$shared_ext'
  9974. shlibpath_overrides_runpath=yes
  9975. shlibpath_var=DYLD_LIBRARY_PATH
  9976. shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  9977. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  9978. if test "$GCC" = yes; then
  9979. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  9980. else
  9981. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  9982. fi
  9983. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9984. ;;
  9985. dgux*)
  9986. version_type=linux
  9987. need_lib_prefix=no
  9988. need_version=no
  9989. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9990. soname_spec='${libname}${release}${shared_ext}$major'
  9991. shlibpath_var=LD_LIBRARY_PATH
  9992. ;;
  9993. freebsd1*)
  9994. dynamic_linker=no
  9995. ;;
  9996. kfreebsd*-gnu)
  9997. version_type=linux
  9998. need_lib_prefix=no
  9999. need_version=no
  10000. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10001. soname_spec='${libname}${release}${shared_ext}$major'
  10002. shlibpath_var=LD_LIBRARY_PATH
  10003. shlibpath_overrides_runpath=no
  10004. hardcode_into_libs=yes
  10005. dynamic_linker='GNU ld.so'
  10006. ;;
  10007. freebsd* | dragonfly*)
  10008. # DragonFly does not have aout. When/if they implement a new
  10009. # versioning mechanism, adjust this.
  10010. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  10011. version_type=freebsd-$objformat
  10012. case $version_type in
  10013. freebsd-elf*)
  10014. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10015. need_version=no
  10016. need_lib_prefix=no
  10017. ;;
  10018. freebsd-*)
  10019. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  10020. need_version=yes
  10021. ;;
  10022. esac
  10023. shlibpath_var=LD_LIBRARY_PATH
  10024. case $host_os in
  10025. freebsd2*)
  10026. shlibpath_overrides_runpath=yes
  10027. ;;
  10028. freebsd3.[01]* | freebsdelf3.[01]*)
  10029. shlibpath_overrides_runpath=yes
  10030. hardcode_into_libs=yes
  10031. ;;
  10032. *) # from 3.2 on
  10033. shlibpath_overrides_runpath=no
  10034. hardcode_into_libs=yes
  10035. ;;
  10036. esac
  10037. ;;
  10038. gnu*)
  10039. version_type=linux
  10040. need_lib_prefix=no
  10041. need_version=no
  10042. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10043. soname_spec='${libname}${release}${shared_ext}$major'
  10044. shlibpath_var=LD_LIBRARY_PATH
  10045. hardcode_into_libs=yes
  10046. ;;
  10047. hpux9* | hpux10* | hpux11*)
  10048. # Give a soname corresponding to the major version so that dld.sl refuses to
  10049. # link against other versions.
  10050. version_type=sunos
  10051. need_lib_prefix=no
  10052. need_version=no
  10053. case "$host_cpu" in
  10054. ia64*)
  10055. shrext_cmds='.so'
  10056. hardcode_into_libs=yes
  10057. dynamic_linker="$host_os dld.so"
  10058. shlibpath_var=LD_LIBRARY_PATH
  10059. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10060. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10061. soname_spec='${libname}${release}${shared_ext}$major'
  10062. if test "X$HPUX_IA64_MODE" = X32; then
  10063. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10064. else
  10065. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10066. fi
  10067. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10068. ;;
  10069. hppa*64*)
  10070. shrext_cmds='.sl'
  10071. hardcode_into_libs=yes
  10072. dynamic_linker="$host_os dld.sl"
  10073. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10074. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10075. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10076. soname_spec='${libname}${release}${shared_ext}$major'
  10077. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10078. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10079. ;;
  10080. *)
  10081. shrext_cmds='.sl'
  10082. dynamic_linker="$host_os dld.sl"
  10083. shlibpath_var=SHLIB_PATH
  10084. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10085. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10086. soname_spec='${libname}${release}${shared_ext}$major'
  10087. ;;
  10088. esac
  10089. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  10090. postinstall_cmds='chmod 555 $lib'
  10091. ;;
  10092. irix5* | irix6* | nonstopux*)
  10093. case $host_os in
  10094. nonstopux*) version_type=nonstopux ;;
  10095. *)
  10096. if test "$lt_cv_prog_gnu_ld" = yes; then
  10097. version_type=linux
  10098. else
  10099. version_type=irix
  10100. fi ;;
  10101. esac
  10102. need_lib_prefix=no
  10103. need_version=no
  10104. soname_spec='${libname}${release}${shared_ext}$major'
  10105. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  10106. case $host_os in
  10107. irix5* | nonstopux*)
  10108. libsuff= shlibsuff=
  10109. ;;
  10110. *)
  10111. case $LD in # libtool.m4 will add one of these switches to LD
  10112. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10113. libsuff= shlibsuff= libmagic=32-bit;;
  10114. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10115. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10116. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10117. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10118. *) libsuff= shlibsuff= libmagic=never-match;;
  10119. esac
  10120. ;;
  10121. esac
  10122. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10123. shlibpath_overrides_runpath=no
  10124. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  10125. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  10126. hardcode_into_libs=yes
  10127. ;;
  10128. # No shared lib support for Linux oldld, aout, or coff.
  10129. linux*oldld* | linux*aout* | linux*coff*)
  10130. dynamic_linker=no
  10131. ;;
  10132. # This must be Linux ELF.
  10133. linux*)
  10134. version_type=linux
  10135. need_lib_prefix=no
  10136. need_version=no
  10137. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10138. soname_spec='${libname}${release}${shared_ext}$major'
  10139. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10140. shlibpath_var=LD_LIBRARY_PATH
  10141. shlibpath_overrides_runpath=no
  10142. # This implies no fast_install, which is unacceptable.
  10143. # Some rework will be needed to allow for fast_install
  10144. # before this can be enabled.
  10145. hardcode_into_libs=yes
  10146. # Append ld.so.conf contents to the search path
  10147. if test -f /etc/ld.so.conf; then
  10148. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  10149. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10150. fi
  10151. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10152. # powerpc, because MkLinux only supported shared libraries with the
  10153. # GNU dynamic linker. Since this was broken with cross compilers,
  10154. # most powerpc-linux boxes support dynamic linking these days and
  10155. # people can always --disable-shared, the test was removed, and we
  10156. # assume the GNU/Linux dynamic linker is in use.
  10157. dynamic_linker='GNU/Linux ld.so'
  10158. ;;
  10159. knetbsd*-gnu)
  10160. version_type=linux
  10161. need_lib_prefix=no
  10162. need_version=no
  10163. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10164. soname_spec='${libname}${release}${shared_ext}$major'
  10165. shlibpath_var=LD_LIBRARY_PATH
  10166. shlibpath_overrides_runpath=no
  10167. hardcode_into_libs=yes
  10168. dynamic_linker='GNU ld.so'
  10169. ;;
  10170. netbsd*)
  10171. version_type=sunos
  10172. need_lib_prefix=no
  10173. need_version=no
  10174. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  10175. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10176. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10177. dynamic_linker='NetBSD (a.out) ld.so'
  10178. else
  10179. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10180. soname_spec='${libname}${release}${shared_ext}$major'
  10181. dynamic_linker='NetBSD ld.elf_so'
  10182. fi
  10183. shlibpath_var=LD_LIBRARY_PATH
  10184. shlibpath_overrides_runpath=yes
  10185. hardcode_into_libs=yes
  10186. ;;
  10187. newsos6)
  10188. version_type=linux
  10189. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10190. shlibpath_var=LD_LIBRARY_PATH
  10191. shlibpath_overrides_runpath=yes
  10192. ;;
  10193. nto-qnx*)
  10194. version_type=linux
  10195. need_lib_prefix=no
  10196. need_version=no
  10197. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10198. soname_spec='${libname}${release}${shared_ext}$major'
  10199. shlibpath_var=LD_LIBRARY_PATH
  10200. shlibpath_overrides_runpath=yes
  10201. ;;
  10202. openbsd*)
  10203. version_type=sunos
  10204. need_lib_prefix=no
  10205. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10206. case $host_os in
  10207. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  10208. *) need_version=no ;;
  10209. esac
  10210. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10211. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10212. shlibpath_var=LD_LIBRARY_PATH
  10213. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10214. case $host_os in
  10215. openbsd2.[89] | openbsd2.[89].*)
  10216. shlibpath_overrides_runpath=no
  10217. ;;
  10218. *)
  10219. shlibpath_overrides_runpath=yes
  10220. ;;
  10221. esac
  10222. else
  10223. shlibpath_overrides_runpath=yes
  10224. fi
  10225. ;;
  10226. os2*)
  10227. libname_spec='$name'
  10228. shrext_cmds=".dll"
  10229. need_lib_prefix=no
  10230. library_names_spec='$libname${shared_ext} $libname.a'
  10231. dynamic_linker='OS/2 ld.exe'
  10232. shlibpath_var=LIBPATH
  10233. ;;
  10234. osf3* | osf4* | osf5*)
  10235. version_type=osf
  10236. need_lib_prefix=no
  10237. need_version=no
  10238. soname_spec='${libname}${release}${shared_ext}$major'
  10239. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10240. shlibpath_var=LD_LIBRARY_PATH
  10241. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10242. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10243. ;;
  10244. sco3.2v5*)
  10245. version_type=osf
  10246. soname_spec='${libname}${release}${shared_ext}$major'
  10247. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10248. shlibpath_var=LD_LIBRARY_PATH
  10249. ;;
  10250. solaris*)
  10251. version_type=linux
  10252. need_lib_prefix=no
  10253. need_version=no
  10254. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10255. soname_spec='${libname}${release}${shared_ext}$major'
  10256. shlibpath_var=LD_LIBRARY_PATH
  10257. shlibpath_overrides_runpath=yes
  10258. hardcode_into_libs=yes
  10259. # ldd complains unless libraries are executable
  10260. postinstall_cmds='chmod +x $lib'
  10261. ;;
  10262. sunos4*)
  10263. version_type=sunos
  10264. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10265. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10266. shlibpath_var=LD_LIBRARY_PATH
  10267. shlibpath_overrides_runpath=yes
  10268. if test "$with_gnu_ld" = yes; then
  10269. need_lib_prefix=no
  10270. fi
  10271. need_version=yes
  10272. ;;
  10273. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  10274. version_type=linux
  10275. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10276. soname_spec='${libname}${release}${shared_ext}$major'
  10277. shlibpath_var=LD_LIBRARY_PATH
  10278. case $host_vendor in
  10279. sni)
  10280. shlibpath_overrides_runpath=no
  10281. need_lib_prefix=no
  10282. export_dynamic_flag_spec='${wl}-Blargedynsym'
  10283. runpath_var=LD_RUN_PATH
  10284. ;;
  10285. siemens)
  10286. need_lib_prefix=no
  10287. ;;
  10288. motorola)
  10289. need_lib_prefix=no
  10290. need_version=no
  10291. shlibpath_overrides_runpath=no
  10292. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10293. ;;
  10294. esac
  10295. ;;
  10296. sysv4*MP*)
  10297. if test -d /usr/nec ;then
  10298. version_type=linux
  10299. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10300. soname_spec='$libname${shared_ext}.$major'
  10301. shlibpath_var=LD_LIBRARY_PATH
  10302. fi
  10303. ;;
  10304. uts4*)
  10305. version_type=linux
  10306. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10307. soname_spec='${libname}${release}${shared_ext}$major'
  10308. shlibpath_var=LD_LIBRARY_PATH
  10309. ;;
  10310. *)
  10311. dynamic_linker=no
  10312. ;;
  10313. esac
  10314. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  10315. echo "${ECHO_T}$dynamic_linker" >&6
  10316. test "$dynamic_linker" = no && can_build_shared=no
  10317. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  10318. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  10319. hardcode_action_CXX=
  10320. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  10321. test -n "$runpath_var_CXX" || \
  10322. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  10323. # We can hardcode non-existant directories.
  10324. if test "$hardcode_direct_CXX" != no &&
  10325. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10326. # have to relink, otherwise we might link with an installed library
  10327. # when we should be linking with a yet-to-be-installed one
  10328. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  10329. test "$hardcode_minus_L_CXX" != no; then
  10330. # Linking always hardcodes the temporary library directory.
  10331. hardcode_action_CXX=relink
  10332. else
  10333. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10334. hardcode_action_CXX=immediate
  10335. fi
  10336. else
  10337. # We cannot hardcode anything, or else we can only hardcode existing
  10338. # directories.
  10339. hardcode_action_CXX=unsupported
  10340. fi
  10341. echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  10342. echo "${ECHO_T}$hardcode_action_CXX" >&6
  10343. if test "$hardcode_action_CXX" = relink; then
  10344. # Fast installation is not supported
  10345. enable_fast_install=no
  10346. elif test "$shlibpath_overrides_runpath" = yes ||
  10347. test "$enable_shared" = no; then
  10348. # Fast installation is not necessary
  10349. enable_fast_install=needless
  10350. fi
  10351. striplib=
  10352. old_striplib=
  10353. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  10354. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  10355. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  10356. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10357. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10358. echo "$as_me:$LINENO: result: yes" >&5
  10359. echo "${ECHO_T}yes" >&6
  10360. else
  10361. # FIXME - insert some real tests, host_os isn't really good enough
  10362. case $host_os in
  10363. darwin*)
  10364. if test -n "$STRIP" ; then
  10365. striplib="$STRIP -x"
  10366. echo "$as_me:$LINENO: result: yes" >&5
  10367. echo "${ECHO_T}yes" >&6
  10368. else
  10369. echo "$as_me:$LINENO: result: no" >&5
  10370. echo "${ECHO_T}no" >&6
  10371. fi
  10372. ;;
  10373. *)
  10374. echo "$as_me:$LINENO: result: no" >&5
  10375. echo "${ECHO_T}no" >&6
  10376. ;;
  10377. esac
  10378. fi
  10379. if test "x$enable_dlopen" != xyes; then
  10380. enable_dlopen=unknown
  10381. enable_dlopen_self=unknown
  10382. enable_dlopen_self_static=unknown
  10383. else
  10384. lt_cv_dlopen=no
  10385. lt_cv_dlopen_libs=
  10386. case $host_os in
  10387. beos*)
  10388. lt_cv_dlopen="load_add_on"
  10389. lt_cv_dlopen_libs=
  10390. lt_cv_dlopen_self=yes
  10391. ;;
  10392. mingw* | pw32*)
  10393. lt_cv_dlopen="LoadLibrary"
  10394. lt_cv_dlopen_libs=
  10395. ;;
  10396. cygwin*)
  10397. lt_cv_dlopen="dlopen"
  10398. lt_cv_dlopen_libs=
  10399. ;;
  10400. darwin*)
  10401. # if libdl is installed we need to link against it
  10402. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  10403. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  10404. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  10405. echo $ECHO_N "(cached) $ECHO_C" >&6
  10406. else
  10407. ac_check_lib_save_LIBS=$LIBS
  10408. LIBS="-ldl $LIBS"
  10409. cat >conftest.$ac_ext <<_ACEOF
  10410. /* confdefs.h. */
  10411. _ACEOF
  10412. cat confdefs.h >>conftest.$ac_ext
  10413. cat >>conftest.$ac_ext <<_ACEOF
  10414. /* end confdefs.h. */
  10415. /* Override any gcc2 internal prototype to avoid an error. */
  10416. #ifdef __cplusplus
  10417. extern "C"
  10418. #endif
  10419. /* We use char because int might match the return type of a gcc2
  10420. builtin and then its argument prototype would still apply. */
  10421. char dlopen ();
  10422. int
  10423. main ()
  10424. {
  10425. dlopen ();
  10426. ;
  10427. return 0;
  10428. }
  10429. _ACEOF
  10430. rm -f conftest.$ac_objext conftest$ac_exeext
  10431. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10432. (eval $ac_link) 2>conftest.er1
  10433. ac_status=$?
  10434. grep -v '^ *+' conftest.er1 >conftest.err
  10435. rm -f conftest.er1
  10436. cat conftest.err >&5
  10437. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10438. (exit $ac_status); } &&
  10439. { ac_try='test -z "$ac_cxx_werror_flag"
  10440. || test ! -s conftest.err'
  10441. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10442. (eval $ac_try) 2>&5
  10443. ac_status=$?
  10444. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10445. (exit $ac_status); }; } &&
  10446. { ac_try='test -s conftest$ac_exeext'
  10447. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10448. (eval $ac_try) 2>&5
  10449. ac_status=$?
  10450. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10451. (exit $ac_status); }; }; then
  10452. ac_cv_lib_dl_dlopen=yes
  10453. else
  10454. echo "$as_me: failed program was:" >&5
  10455. sed 's/^/| /' conftest.$ac_ext >&5
  10456. ac_cv_lib_dl_dlopen=no
  10457. fi
  10458. rm -f conftest.err conftest.$ac_objext \
  10459. conftest$ac_exeext conftest.$ac_ext
  10460. LIBS=$ac_check_lib_save_LIBS
  10461. fi
  10462. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  10463. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  10464. if test $ac_cv_lib_dl_dlopen = yes; then
  10465. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10466. else
  10467. lt_cv_dlopen="dyld"
  10468. lt_cv_dlopen_libs=
  10469. lt_cv_dlopen_self=yes
  10470. fi
  10471. ;;
  10472. *)
  10473. echo "$as_me:$LINENO: checking for shl_load" >&5
  10474. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  10475. if test "${ac_cv_func_shl_load+set}" = set; then
  10476. echo $ECHO_N "(cached) $ECHO_C" >&6
  10477. else
  10478. cat >conftest.$ac_ext <<_ACEOF
  10479. /* confdefs.h. */
  10480. _ACEOF
  10481. cat confdefs.h >>conftest.$ac_ext
  10482. cat >>conftest.$ac_ext <<_ACEOF
  10483. /* end confdefs.h. */
  10484. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  10485. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10486. #define shl_load innocuous_shl_load
  10487. /* System header to define __stub macros and hopefully few prototypes,
  10488. which can conflict with char shl_load (); below.
  10489. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10490. <limits.h> exists even on freestanding compilers. */
  10491. #ifdef __STDC__
  10492. # include <limits.h>
  10493. #else
  10494. # include <assert.h>
  10495. #endif
  10496. #undef shl_load
  10497. /* Override any gcc2 internal prototype to avoid an error. */
  10498. #ifdef __cplusplus
  10499. extern "C"
  10500. {
  10501. #endif
  10502. /* We use char because int might match the return type of a gcc2
  10503. builtin and then its argument prototype would still apply. */
  10504. char shl_load ();
  10505. /* The GNU C library defines this for functions which it implements
  10506. to always fail with ENOSYS. Some functions are actually named
  10507. something starting with __ and the normal name is an alias. */
  10508. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  10509. choke me
  10510. #else
  10511. char (*f) () = shl_load;
  10512. #endif
  10513. #ifdef __cplusplus
  10514. }
  10515. #endif
  10516. int
  10517. main ()
  10518. {
  10519. return f != shl_load;
  10520. ;
  10521. return 0;
  10522. }
  10523. _ACEOF
  10524. rm -f conftest.$ac_objext conftest$ac_exeext
  10525. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10526. (eval $ac_link) 2>conftest.er1
  10527. ac_status=$?
  10528. grep -v '^ *+' conftest.er1 >conftest.err
  10529. rm -f conftest.er1
  10530. cat conftest.err >&5
  10531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10532. (exit $ac_status); } &&
  10533. { ac_try='test -z "$ac_cxx_werror_flag"
  10534. || test ! -s conftest.err'
  10535. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10536. (eval $ac_try) 2>&5
  10537. ac_status=$?
  10538. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10539. (exit $ac_status); }; } &&
  10540. { ac_try='test -s conftest$ac_exeext'
  10541. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10542. (eval $ac_try) 2>&5
  10543. ac_status=$?
  10544. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10545. (exit $ac_status); }; }; then
  10546. ac_cv_func_shl_load=yes
  10547. else
  10548. echo "$as_me: failed program was:" >&5
  10549. sed 's/^/| /' conftest.$ac_ext >&5
  10550. ac_cv_func_shl_load=no
  10551. fi
  10552. rm -f conftest.err conftest.$ac_objext \
  10553. conftest$ac_exeext conftest.$ac_ext
  10554. fi
  10555. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  10556. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  10557. if test $ac_cv_func_shl_load = yes; then
  10558. lt_cv_dlopen="shl_load"
  10559. else
  10560. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  10561. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  10562. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  10563. echo $ECHO_N "(cached) $ECHO_C" >&6
  10564. else
  10565. ac_check_lib_save_LIBS=$LIBS
  10566. LIBS="-ldld $LIBS"
  10567. cat >conftest.$ac_ext <<_ACEOF
  10568. /* confdefs.h. */
  10569. _ACEOF
  10570. cat confdefs.h >>conftest.$ac_ext
  10571. cat >>conftest.$ac_ext <<_ACEOF
  10572. /* end confdefs.h. */
  10573. /* Override any gcc2 internal prototype to avoid an error. */
  10574. #ifdef __cplusplus
  10575. extern "C"
  10576. #endif
  10577. /* We use char because int might match the return type of a gcc2
  10578. builtin and then its argument prototype would still apply. */
  10579. char shl_load ();
  10580. int
  10581. main ()
  10582. {
  10583. shl_load ();
  10584. ;
  10585. return 0;
  10586. }
  10587. _ACEOF
  10588. rm -f conftest.$ac_objext conftest$ac_exeext
  10589. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10590. (eval $ac_link) 2>conftest.er1
  10591. ac_status=$?
  10592. grep -v '^ *+' conftest.er1 >conftest.err
  10593. rm -f conftest.er1
  10594. cat conftest.err >&5
  10595. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10596. (exit $ac_status); } &&
  10597. { ac_try='test -z "$ac_cxx_werror_flag"
  10598. || test ! -s conftest.err'
  10599. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10600. (eval $ac_try) 2>&5
  10601. ac_status=$?
  10602. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10603. (exit $ac_status); }; } &&
  10604. { ac_try='test -s conftest$ac_exeext'
  10605. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10606. (eval $ac_try) 2>&5
  10607. ac_status=$?
  10608. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10609. (exit $ac_status); }; }; then
  10610. ac_cv_lib_dld_shl_load=yes
  10611. else
  10612. echo "$as_me: failed program was:" >&5
  10613. sed 's/^/| /' conftest.$ac_ext >&5
  10614. ac_cv_lib_dld_shl_load=no
  10615. fi
  10616. rm -f conftest.err conftest.$ac_objext \
  10617. conftest$ac_exeext conftest.$ac_ext
  10618. LIBS=$ac_check_lib_save_LIBS
  10619. fi
  10620. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  10621. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  10622. if test $ac_cv_lib_dld_shl_load = yes; then
  10623. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  10624. else
  10625. echo "$as_me:$LINENO: checking for dlopen" >&5
  10626. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  10627. if test "${ac_cv_func_dlopen+set}" = set; then
  10628. echo $ECHO_N "(cached) $ECHO_C" >&6
  10629. else
  10630. cat >conftest.$ac_ext <<_ACEOF
  10631. /* confdefs.h. */
  10632. _ACEOF
  10633. cat confdefs.h >>conftest.$ac_ext
  10634. cat >>conftest.$ac_ext <<_ACEOF
  10635. /* end confdefs.h. */
  10636. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  10637. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10638. #define dlopen innocuous_dlopen
  10639. /* System header to define __stub macros and hopefully few prototypes,
  10640. which can conflict with char dlopen (); below.
  10641. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10642. <limits.h> exists even on freestanding compilers. */
  10643. #ifdef __STDC__
  10644. # include <limits.h>
  10645. #else
  10646. # include <assert.h>
  10647. #endif
  10648. #undef dlopen
  10649. /* Override any gcc2 internal prototype to avoid an error. */
  10650. #ifdef __cplusplus
  10651. extern "C"
  10652. {
  10653. #endif
  10654. /* We use char because int might match the return type of a gcc2
  10655. builtin and then its argument prototype would still apply. */
  10656. char dlopen ();
  10657. /* The GNU C library defines this for functions which it implements
  10658. to always fail with ENOSYS. Some functions are actually named
  10659. something starting with __ and the normal name is an alias. */
  10660. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  10661. choke me
  10662. #else
  10663. char (*f) () = dlopen;
  10664. #endif
  10665. #ifdef __cplusplus
  10666. }
  10667. #endif
  10668. int
  10669. main ()
  10670. {
  10671. return f != dlopen;
  10672. ;
  10673. return 0;
  10674. }
  10675. _ACEOF
  10676. rm -f conftest.$ac_objext conftest$ac_exeext
  10677. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10678. (eval $ac_link) 2>conftest.er1
  10679. ac_status=$?
  10680. grep -v '^ *+' conftest.er1 >conftest.err
  10681. rm -f conftest.er1
  10682. cat conftest.err >&5
  10683. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10684. (exit $ac_status); } &&
  10685. { ac_try='test -z "$ac_cxx_werror_flag"
  10686. || test ! -s conftest.err'
  10687. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10688. (eval $ac_try) 2>&5
  10689. ac_status=$?
  10690. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10691. (exit $ac_status); }; } &&
  10692. { ac_try='test -s conftest$ac_exeext'
  10693. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10694. (eval $ac_try) 2>&5
  10695. ac_status=$?
  10696. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10697. (exit $ac_status); }; }; then
  10698. ac_cv_func_dlopen=yes
  10699. else
  10700. echo "$as_me: failed program was:" >&5
  10701. sed 's/^/| /' conftest.$ac_ext >&5
  10702. ac_cv_func_dlopen=no
  10703. fi
  10704. rm -f conftest.err conftest.$ac_objext \
  10705. conftest$ac_exeext conftest.$ac_ext
  10706. fi
  10707. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  10708. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  10709. if test $ac_cv_func_dlopen = yes; then
  10710. lt_cv_dlopen="dlopen"
  10711. else
  10712. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  10713. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  10714. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  10715. echo $ECHO_N "(cached) $ECHO_C" >&6
  10716. else
  10717. ac_check_lib_save_LIBS=$LIBS
  10718. LIBS="-ldl $LIBS"
  10719. cat >conftest.$ac_ext <<_ACEOF
  10720. /* confdefs.h. */
  10721. _ACEOF
  10722. cat confdefs.h >>conftest.$ac_ext
  10723. cat >>conftest.$ac_ext <<_ACEOF
  10724. /* end confdefs.h. */
  10725. /* Override any gcc2 internal prototype to avoid an error. */
  10726. #ifdef __cplusplus
  10727. extern "C"
  10728. #endif
  10729. /* We use char because int might match the return type of a gcc2
  10730. builtin and then its argument prototype would still apply. */
  10731. char dlopen ();
  10732. int
  10733. main ()
  10734. {
  10735. dlopen ();
  10736. ;
  10737. return 0;
  10738. }
  10739. _ACEOF
  10740. rm -f conftest.$ac_objext conftest$ac_exeext
  10741. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10742. (eval $ac_link) 2>conftest.er1
  10743. ac_status=$?
  10744. grep -v '^ *+' conftest.er1 >conftest.err
  10745. rm -f conftest.er1
  10746. cat conftest.err >&5
  10747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10748. (exit $ac_status); } &&
  10749. { ac_try='test -z "$ac_cxx_werror_flag"
  10750. || test ! -s conftest.err'
  10751. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10752. (eval $ac_try) 2>&5
  10753. ac_status=$?
  10754. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10755. (exit $ac_status); }; } &&
  10756. { ac_try='test -s conftest$ac_exeext'
  10757. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10758. (eval $ac_try) 2>&5
  10759. ac_status=$?
  10760. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10761. (exit $ac_status); }; }; then
  10762. ac_cv_lib_dl_dlopen=yes
  10763. else
  10764. echo "$as_me: failed program was:" >&5
  10765. sed 's/^/| /' conftest.$ac_ext >&5
  10766. ac_cv_lib_dl_dlopen=no
  10767. fi
  10768. rm -f conftest.err conftest.$ac_objext \
  10769. conftest$ac_exeext conftest.$ac_ext
  10770. LIBS=$ac_check_lib_save_LIBS
  10771. fi
  10772. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  10773. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  10774. if test $ac_cv_lib_dl_dlopen = yes; then
  10775. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10776. else
  10777. echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  10778. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  10779. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  10780. echo $ECHO_N "(cached) $ECHO_C" >&6
  10781. else
  10782. ac_check_lib_save_LIBS=$LIBS
  10783. LIBS="-lsvld $LIBS"
  10784. cat >conftest.$ac_ext <<_ACEOF
  10785. /* confdefs.h. */
  10786. _ACEOF
  10787. cat confdefs.h >>conftest.$ac_ext
  10788. cat >>conftest.$ac_ext <<_ACEOF
  10789. /* end confdefs.h. */
  10790. /* Override any gcc2 internal prototype to avoid an error. */
  10791. #ifdef __cplusplus
  10792. extern "C"
  10793. #endif
  10794. /* We use char because int might match the return type of a gcc2
  10795. builtin and then its argument prototype would still apply. */
  10796. char dlopen ();
  10797. int
  10798. main ()
  10799. {
  10800. dlopen ();
  10801. ;
  10802. return 0;
  10803. }
  10804. _ACEOF
  10805. rm -f conftest.$ac_objext conftest$ac_exeext
  10806. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10807. (eval $ac_link) 2>conftest.er1
  10808. ac_status=$?
  10809. grep -v '^ *+' conftest.er1 >conftest.err
  10810. rm -f conftest.er1
  10811. cat conftest.err >&5
  10812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10813. (exit $ac_status); } &&
  10814. { ac_try='test -z "$ac_cxx_werror_flag"
  10815. || test ! -s conftest.err'
  10816. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10817. (eval $ac_try) 2>&5
  10818. ac_status=$?
  10819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10820. (exit $ac_status); }; } &&
  10821. { ac_try='test -s conftest$ac_exeext'
  10822. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10823. (eval $ac_try) 2>&5
  10824. ac_status=$?
  10825. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10826. (exit $ac_status); }; }; then
  10827. ac_cv_lib_svld_dlopen=yes
  10828. else
  10829. echo "$as_me: failed program was:" >&5
  10830. sed 's/^/| /' conftest.$ac_ext >&5
  10831. ac_cv_lib_svld_dlopen=no
  10832. fi
  10833. rm -f conftest.err conftest.$ac_objext \
  10834. conftest$ac_exeext conftest.$ac_ext
  10835. LIBS=$ac_check_lib_save_LIBS
  10836. fi
  10837. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  10838. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  10839. if test $ac_cv_lib_svld_dlopen = yes; then
  10840. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10841. else
  10842. echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  10843. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  10844. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  10845. echo $ECHO_N "(cached) $ECHO_C" >&6
  10846. else
  10847. ac_check_lib_save_LIBS=$LIBS
  10848. LIBS="-ldld $LIBS"
  10849. cat >conftest.$ac_ext <<_ACEOF
  10850. /* confdefs.h. */
  10851. _ACEOF
  10852. cat confdefs.h >>conftest.$ac_ext
  10853. cat >>conftest.$ac_ext <<_ACEOF
  10854. /* end confdefs.h. */
  10855. /* Override any gcc2 internal prototype to avoid an error. */
  10856. #ifdef __cplusplus
  10857. extern "C"
  10858. #endif
  10859. /* We use char because int might match the return type of a gcc2
  10860. builtin and then its argument prototype would still apply. */
  10861. char dld_link ();
  10862. int
  10863. main ()
  10864. {
  10865. dld_link ();
  10866. ;
  10867. return 0;
  10868. }
  10869. _ACEOF
  10870. rm -f conftest.$ac_objext conftest$ac_exeext
  10871. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10872. (eval $ac_link) 2>conftest.er1
  10873. ac_status=$?
  10874. grep -v '^ *+' conftest.er1 >conftest.err
  10875. rm -f conftest.er1
  10876. cat conftest.err >&5
  10877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10878. (exit $ac_status); } &&
  10879. { ac_try='test -z "$ac_cxx_werror_flag"
  10880. || test ! -s conftest.err'
  10881. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10882. (eval $ac_try) 2>&5
  10883. ac_status=$?
  10884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10885. (exit $ac_status); }; } &&
  10886. { ac_try='test -s conftest$ac_exeext'
  10887. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10888. (eval $ac_try) 2>&5
  10889. ac_status=$?
  10890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10891. (exit $ac_status); }; }; then
  10892. ac_cv_lib_dld_dld_link=yes
  10893. else
  10894. echo "$as_me: failed program was:" >&5
  10895. sed 's/^/| /' conftest.$ac_ext >&5
  10896. ac_cv_lib_dld_dld_link=no
  10897. fi
  10898. rm -f conftest.err conftest.$ac_objext \
  10899. conftest$ac_exeext conftest.$ac_ext
  10900. LIBS=$ac_check_lib_save_LIBS
  10901. fi
  10902. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  10903. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  10904. if test $ac_cv_lib_dld_dld_link = yes; then
  10905. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  10906. fi
  10907. fi
  10908. fi
  10909. fi
  10910. fi
  10911. fi
  10912. ;;
  10913. esac
  10914. if test "x$lt_cv_dlopen" != xno; then
  10915. enable_dlopen=yes
  10916. else
  10917. enable_dlopen=no
  10918. fi
  10919. case $lt_cv_dlopen in
  10920. dlopen)
  10921. save_CPPFLAGS="$CPPFLAGS"
  10922. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10923. save_LDFLAGS="$LDFLAGS"
  10924. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10925. save_LIBS="$LIBS"
  10926. LIBS="$lt_cv_dlopen_libs $LIBS"
  10927. echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  10928. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  10929. if test "${lt_cv_dlopen_self+set}" = set; then
  10930. echo $ECHO_N "(cached) $ECHO_C" >&6
  10931. else
  10932. if test "$cross_compiling" = yes; then :
  10933. lt_cv_dlopen_self=cross
  10934. else
  10935. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10936. lt_status=$lt_dlunknown
  10937. cat > conftest.$ac_ext <<EOF
  10938. #line 12047 "configure"
  10939. #include "confdefs.h"
  10940. #if HAVE_DLFCN_H
  10941. #include <dlfcn.h>
  10942. #endif
  10943. #include <stdio.h>
  10944. #ifdef RTLD_GLOBAL
  10945. # define LT_DLGLOBAL RTLD_GLOBAL
  10946. #else
  10947. # ifdef DL_GLOBAL
  10948. # define LT_DLGLOBAL DL_GLOBAL
  10949. # else
  10950. # define LT_DLGLOBAL 0
  10951. # endif
  10952. #endif
  10953. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10954. find out it does not work in some platform. */
  10955. #ifndef LT_DLLAZY_OR_NOW
  10956. # ifdef RTLD_LAZY
  10957. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10958. # else
  10959. # ifdef DL_LAZY
  10960. # define LT_DLLAZY_OR_NOW DL_LAZY
  10961. # else
  10962. # ifdef RTLD_NOW
  10963. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10964. # else
  10965. # ifdef DL_NOW
  10966. # define LT_DLLAZY_OR_NOW DL_NOW
  10967. # else
  10968. # define LT_DLLAZY_OR_NOW 0
  10969. # endif
  10970. # endif
  10971. # endif
  10972. # endif
  10973. #endif
  10974. #ifdef __cplusplus
  10975. extern "C" void exit (int);
  10976. #endif
  10977. void fnord() { int i=42;}
  10978. int main ()
  10979. {
  10980. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10981. int status = $lt_dlunknown;
  10982. if (self)
  10983. {
  10984. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10985. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10986. /* dlclose (self); */
  10987. }
  10988. exit (status);
  10989. }
  10990. EOF
  10991. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10992. (eval $ac_link) 2>&5
  10993. ac_status=$?
  10994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10995. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  10996. (./conftest; exit; ) 2>/dev/null
  10997. lt_status=$?
  10998. case x$lt_status in
  10999. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11000. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11001. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  11002. esac
  11003. else :
  11004. # compilation failed
  11005. lt_cv_dlopen_self=no
  11006. fi
  11007. fi
  11008. rm -fr conftest*
  11009. fi
  11010. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  11011. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  11012. if test "x$lt_cv_dlopen_self" = xyes; then
  11013. LDFLAGS="$LDFLAGS $link_static_flag"
  11014. echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  11015. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  11016. if test "${lt_cv_dlopen_self_static+set}" = set; then
  11017. echo $ECHO_N "(cached) $ECHO_C" >&6
  11018. else
  11019. if test "$cross_compiling" = yes; then :
  11020. lt_cv_dlopen_self_static=cross
  11021. else
  11022. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11023. lt_status=$lt_dlunknown
  11024. cat > conftest.$ac_ext <<EOF
  11025. #line 12145 "configure"
  11026. #include "confdefs.h"
  11027. #if HAVE_DLFCN_H
  11028. #include <dlfcn.h>
  11029. #endif
  11030. #include <stdio.h>
  11031. #ifdef RTLD_GLOBAL
  11032. # define LT_DLGLOBAL RTLD_GLOBAL
  11033. #else
  11034. # ifdef DL_GLOBAL
  11035. # define LT_DLGLOBAL DL_GLOBAL
  11036. # else
  11037. # define LT_DLGLOBAL 0
  11038. # endif
  11039. #endif
  11040. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11041. find out it does not work in some platform. */
  11042. #ifndef LT_DLLAZY_OR_NOW
  11043. # ifdef RTLD_LAZY
  11044. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11045. # else
  11046. # ifdef DL_LAZY
  11047. # define LT_DLLAZY_OR_NOW DL_LAZY
  11048. # else
  11049. # ifdef RTLD_NOW
  11050. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11051. # else
  11052. # ifdef DL_NOW
  11053. # define LT_DLLAZY_OR_NOW DL_NOW
  11054. # else
  11055. # define LT_DLLAZY_OR_NOW 0
  11056. # endif
  11057. # endif
  11058. # endif
  11059. # endif
  11060. #endif
  11061. #ifdef __cplusplus
  11062. extern "C" void exit (int);
  11063. #endif
  11064. void fnord() { int i=42;}
  11065. int main ()
  11066. {
  11067. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11068. int status = $lt_dlunknown;
  11069. if (self)
  11070. {
  11071. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11072. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11073. /* dlclose (self); */
  11074. }
  11075. exit (status);
  11076. }
  11077. EOF
  11078. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11079. (eval $ac_link) 2>&5
  11080. ac_status=$?
  11081. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11082. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  11083. (./conftest; exit; ) 2>/dev/null
  11084. lt_status=$?
  11085. case x$lt_status in
  11086. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11087. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11088. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  11089. esac
  11090. else :
  11091. # compilation failed
  11092. lt_cv_dlopen_self_static=no
  11093. fi
  11094. fi
  11095. rm -fr conftest*
  11096. fi
  11097. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  11098. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  11099. fi
  11100. CPPFLAGS="$save_CPPFLAGS"
  11101. LDFLAGS="$save_LDFLAGS"
  11102. LIBS="$save_LIBS"
  11103. ;;
  11104. esac
  11105. case $lt_cv_dlopen_self in
  11106. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11107. *) enable_dlopen_self=unknown ;;
  11108. esac
  11109. case $lt_cv_dlopen_self_static in
  11110. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11111. *) enable_dlopen_self_static=unknown ;;
  11112. esac
  11113. fi
  11114. # The else clause should only fire when bootstrapping the
  11115. # libtool distribution, otherwise you forgot to ship ltmain.sh
  11116. # with your package, and you will get complaints that there are
  11117. # no rules to generate ltmain.sh.
  11118. if test -f "$ltmain"; then
  11119. # See if we are running on zsh, and set the options which allow our commands through
  11120. # without removal of \ escapes.
  11121. if test -n "${ZSH_VERSION+set}" ; then
  11122. setopt NO_GLOB_SUBST
  11123. fi
  11124. # Now quote all the things that may contain metacharacters while being
  11125. # careful not to overquote the AC_SUBSTed values. We take copies of the
  11126. # variables and quote the copies for generation of the libtool script.
  11127. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  11128. SED SHELL STRIP \
  11129. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  11130. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  11131. deplibs_check_method reload_flag reload_cmds need_locks \
  11132. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  11133. lt_cv_sys_global_symbol_to_c_name_address \
  11134. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  11135. old_postinstall_cmds old_postuninstall_cmds \
  11136. compiler_CXX \
  11137. CC_CXX \
  11138. LD_CXX \
  11139. lt_prog_compiler_wl_CXX \
  11140. lt_prog_compiler_pic_CXX \
  11141. lt_prog_compiler_static_CXX \
  11142. lt_prog_compiler_no_builtin_flag_CXX \
  11143. export_dynamic_flag_spec_CXX \
  11144. thread_safe_flag_spec_CXX \
  11145. whole_archive_flag_spec_CXX \
  11146. enable_shared_with_static_runtimes_CXX \
  11147. old_archive_cmds_CXX \
  11148. old_archive_from_new_cmds_CXX \
  11149. predep_objects_CXX \
  11150. postdep_objects_CXX \
  11151. predeps_CXX \
  11152. postdeps_CXX \
  11153. compiler_lib_search_path_CXX \
  11154. archive_cmds_CXX \
  11155. archive_expsym_cmds_CXX \
  11156. postinstall_cmds_CXX \
  11157. postuninstall_cmds_CXX \
  11158. old_archive_from_expsyms_cmds_CXX \
  11159. allow_undefined_flag_CXX \
  11160. no_undefined_flag_CXX \
  11161. export_symbols_cmds_CXX \
  11162. hardcode_libdir_flag_spec_CXX \
  11163. hardcode_libdir_flag_spec_ld_CXX \
  11164. hardcode_libdir_separator_CXX \
  11165. hardcode_automatic_CXX \
  11166. module_cmds_CXX \
  11167. module_expsym_cmds_CXX \
  11168. lt_cv_prog_compiler_c_o_CXX \
  11169. exclude_expsyms_CXX \
  11170. include_expsyms_CXX; do
  11171. case $var in
  11172. old_archive_cmds_CXX | \
  11173. old_archive_from_new_cmds_CXX | \
  11174. archive_cmds_CXX | \
  11175. archive_expsym_cmds_CXX | \
  11176. module_cmds_CXX | \
  11177. module_expsym_cmds_CXX | \
  11178. old_archive_from_expsyms_cmds_CXX | \
  11179. export_symbols_cmds_CXX | \
  11180. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  11181. postinstall_cmds | postuninstall_cmds | \
  11182. old_postinstall_cmds | old_postuninstall_cmds | \
  11183. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  11184. # Double-quote double-evaled strings.
  11185. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  11186. ;;
  11187. *)
  11188. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  11189. ;;
  11190. esac
  11191. done
  11192. case $lt_echo in
  11193. *'\$0 --fallback-echo"')
  11194. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  11195. ;;
  11196. esac
  11197. cfgfile="$ofile"
  11198. cat <<__EOF__ >> "$cfgfile"
  11199. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  11200. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11201. # Shell to use when invoking shell scripts.
  11202. SHELL=$lt_SHELL
  11203. # Whether or not to build shared libraries.
  11204. build_libtool_libs=$enable_shared
  11205. # Whether or not to build static libraries.
  11206. build_old_libs=$enable_static
  11207. # Whether or not to add -lc for building shared libraries.
  11208. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  11209. # Whether or not to disallow shared libs when runtime libs are static
  11210. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  11211. # Whether or not to optimize for fast installation.
  11212. fast_install=$enable_fast_install
  11213. # The host system.
  11214. host_alias=$host_alias
  11215. host=$host
  11216. host_os=$host_os
  11217. # The build system.
  11218. build_alias=$build_alias
  11219. build=$build
  11220. build_os=$build_os
  11221. # An echo program that does not interpret backslashes.
  11222. echo=$lt_echo
  11223. # The archiver.
  11224. AR=$lt_AR
  11225. AR_FLAGS=$lt_AR_FLAGS
  11226. # A C compiler.
  11227. LTCC=$lt_LTCC
  11228. # A language-specific compiler.
  11229. CC=$lt_compiler_CXX
  11230. # Is the compiler the GNU C compiler?
  11231. with_gcc=$GCC_CXX
  11232. # An ERE matcher.
  11233. EGREP=$lt_EGREP
  11234. # The linker used to build libraries.
  11235. LD=$lt_LD_CXX
  11236. # Whether we need hard or soft links.
  11237. LN_S=$lt_LN_S
  11238. # A BSD-compatible nm program.
  11239. NM=$lt_NM
  11240. # A symbol stripping program
  11241. STRIP=$lt_STRIP
  11242. # Used to examine libraries when file_magic_cmd begins "file"
  11243. MAGIC_CMD=$MAGIC_CMD
  11244. # Used on cygwin: DLL creation program.
  11245. DLLTOOL="$DLLTOOL"
  11246. # Used on cygwin: object dumper.
  11247. OBJDUMP="$OBJDUMP"
  11248. # Used on cygwin: assembler.
  11249. AS="$AS"
  11250. # The name of the directory that contains temporary libtool files.
  11251. objdir=$objdir
  11252. # How to create reloadable object files.
  11253. reload_flag=$lt_reload_flag
  11254. reload_cmds=$lt_reload_cmds
  11255. # How to pass a linker flag through the compiler.
  11256. wl=$lt_lt_prog_compiler_wl_CXX
  11257. # Object file suffix (normally "o").
  11258. objext="$ac_objext"
  11259. # Old archive suffix (normally "a").
  11260. libext="$libext"
  11261. # Shared library suffix (normally ".so").
  11262. shrext_cmds='$shrext_cmds'
  11263. # Executable file suffix (normally "").
  11264. exeext="$exeext"
  11265. # Additional compiler flags for building library objects.
  11266. pic_flag=$lt_lt_prog_compiler_pic_CXX
  11267. pic_mode=$pic_mode
  11268. # What is the maximum length of a command?
  11269. max_cmd_len=$lt_cv_sys_max_cmd_len
  11270. # Does compiler simultaneously support -c and -o options?
  11271. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  11272. # Must we lock files when doing compilation?
  11273. need_locks=$lt_need_locks
  11274. # Do we need the lib prefix for modules?
  11275. need_lib_prefix=$need_lib_prefix
  11276. # Do we need a version for libraries?
  11277. need_version=$need_version
  11278. # Whether dlopen is supported.
  11279. dlopen_support=$enable_dlopen
  11280. # Whether dlopen of programs is supported.
  11281. dlopen_self=$enable_dlopen_self
  11282. # Whether dlopen of statically linked programs is supported.
  11283. dlopen_self_static=$enable_dlopen_self_static
  11284. # Compiler flag to prevent dynamic linking.
  11285. link_static_flag=$lt_lt_prog_compiler_static_CXX
  11286. # Compiler flag to turn off builtin functions.
  11287. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  11288. # Compiler flag to allow reflexive dlopens.
  11289. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  11290. # Compiler flag to generate shared objects directly from archives.
  11291. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  11292. # Compiler flag to generate thread-safe objects.
  11293. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  11294. # Library versioning type.
  11295. version_type=$version_type
  11296. # Format of library name prefix.
  11297. libname_spec=$lt_libname_spec
  11298. # List of archive names. First name is the real one, the rest are links.
  11299. # The last name is the one that the linker finds with -lNAME.
  11300. library_names_spec=$lt_library_names_spec
  11301. # The coded name of the library, if different from the real name.
  11302. soname_spec=$lt_soname_spec
  11303. # Commands used to build and install an old-style archive.
  11304. RANLIB=$lt_RANLIB
  11305. old_archive_cmds=$lt_old_archive_cmds_CXX
  11306. old_postinstall_cmds=$lt_old_postinstall_cmds
  11307. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11308. # Create an old-style archive from a shared archive.
  11309. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  11310. # Create a temporary old-style archive to link instead of a shared archive.
  11311. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  11312. # Commands used to build and install a shared archive.
  11313. archive_cmds=$lt_archive_cmds_CXX
  11314. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  11315. postinstall_cmds=$lt_postinstall_cmds
  11316. postuninstall_cmds=$lt_postuninstall_cmds
  11317. # Commands used to build a loadable module (assumed same as above if empty)
  11318. module_cmds=$lt_module_cmds_CXX
  11319. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  11320. # Commands to strip libraries.
  11321. old_striplib=$lt_old_striplib
  11322. striplib=$lt_striplib
  11323. # Dependencies to place before the objects being linked to create a
  11324. # shared library.
  11325. predep_objects=$lt_predep_objects_CXX
  11326. # Dependencies to place after the objects being linked to create a
  11327. # shared library.
  11328. postdep_objects=$lt_postdep_objects_CXX
  11329. # Dependencies to place before the objects being linked to create a
  11330. # shared library.
  11331. predeps=$lt_predeps_CXX
  11332. # Dependencies to place after the objects being linked to create a
  11333. # shared library.
  11334. postdeps=$lt_postdeps_CXX
  11335. # The library search path used internally by the compiler when linking
  11336. # a shared library.
  11337. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  11338. # Method to check whether dependent libraries are shared objects.
  11339. deplibs_check_method=$lt_deplibs_check_method
  11340. # Command to use when deplibs_check_method == file_magic.
  11341. file_magic_cmd=$lt_file_magic_cmd
  11342. # Flag that allows shared libraries with undefined symbols to be built.
  11343. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  11344. # Flag that forces no undefined symbols.
  11345. no_undefined_flag=$lt_no_undefined_flag_CXX
  11346. # Commands used to finish a libtool library installation in a directory.
  11347. finish_cmds=$lt_finish_cmds
  11348. # Same as above, but a single script fragment to be evaled but not shown.
  11349. finish_eval=$lt_finish_eval
  11350. # Take the output of nm and produce a listing of raw symbols and C names.
  11351. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11352. # Transform the output of nm in a proper C declaration
  11353. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11354. # Transform the output of nm in a C name address pair
  11355. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11356. # This is the shared library runtime path variable.
  11357. runpath_var=$runpath_var
  11358. # This is the shared library path variable.
  11359. shlibpath_var=$shlibpath_var
  11360. # Is shlibpath searched before the hard-coded library search path?
  11361. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11362. # How to hardcode a shared library path into an executable.
  11363. hardcode_action=$hardcode_action_CXX
  11364. # Whether we should hardcode library paths into libraries.
  11365. hardcode_into_libs=$hardcode_into_libs
  11366. # Flag to hardcode \$libdir into a binary during linking.
  11367. # This must work even if \$libdir does not exist.
  11368. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  11369. # If ld is used when linking, flag to hardcode \$libdir into
  11370. # a binary during linking. This must work even if \$libdir does
  11371. # not exist.
  11372. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  11373. # Whether we need a single -rpath flag with a separated argument.
  11374. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  11375. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  11376. # resulting binary.
  11377. hardcode_direct=$hardcode_direct_CXX
  11378. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  11379. # resulting binary.
  11380. hardcode_minus_L=$hardcode_minus_L_CXX
  11381. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  11382. # the resulting binary.
  11383. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  11384. # Set to yes if building a shared library automatically hardcodes DIR into the library
  11385. # and all subsequent libraries and executables linked against it.
  11386. hardcode_automatic=$hardcode_automatic_CXX
  11387. # Variables whose values should be saved in libtool wrapper scripts and
  11388. # restored at relink time.
  11389. variables_saved_for_relink="$variables_saved_for_relink"
  11390. # Whether libtool must link a program against all its dependency libraries.
  11391. link_all_deplibs=$link_all_deplibs_CXX
  11392. # Compile-time system search path for libraries
  11393. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  11394. # Run-time system search path for libraries
  11395. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11396. # Fix the shell variable \$srcfile for the compiler.
  11397. fix_srcfile_path="$fix_srcfile_path_CXX"
  11398. # Set to yes if exported symbols are required.
  11399. always_export_symbols=$always_export_symbols_CXX
  11400. # The commands to list exported symbols.
  11401. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  11402. # The commands to extract the exported symbol list from a shared archive.
  11403. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11404. # Symbols that should not be listed in the preloaded symbols.
  11405. exclude_expsyms=$lt_exclude_expsyms_CXX
  11406. # Symbols that must always be exported.
  11407. include_expsyms=$lt_include_expsyms_CXX
  11408. # ### END LIBTOOL TAG CONFIG: $tagname
  11409. __EOF__
  11410. else
  11411. # If there is no Makefile yet, we rely on a make rule to execute
  11412. # `config.status --recheck' to rerun these tests and create the
  11413. # libtool script then.
  11414. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  11415. if test -f "$ltmain_in"; then
  11416. test -f Makefile && make "$ltmain"
  11417. fi
  11418. fi
  11419. ac_ext=c
  11420. ac_cpp='$CPP $CPPFLAGS'
  11421. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11422. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11423. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11424. CC=$lt_save_CC
  11425. LDCXX=$LD
  11426. LD=$lt_save_LD
  11427. GCC=$lt_save_GCC
  11428. with_gnu_ldcxx=$with_gnu_ld
  11429. with_gnu_ld=$lt_save_with_gnu_ld
  11430. lt_cv_path_LDCXX=$lt_cv_path_LD
  11431. lt_cv_path_LD=$lt_save_path_LD
  11432. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  11433. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  11434. else
  11435. tagname=""
  11436. fi
  11437. ;;
  11438. F77)
  11439. if test -n "$F77" && test "X$F77" != "Xno"; then
  11440. ac_ext=f
  11441. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  11442. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11443. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  11444. archive_cmds_need_lc_F77=no
  11445. allow_undefined_flag_F77=
  11446. always_export_symbols_F77=no
  11447. archive_expsym_cmds_F77=
  11448. export_dynamic_flag_spec_F77=
  11449. hardcode_direct_F77=no
  11450. hardcode_libdir_flag_spec_F77=
  11451. hardcode_libdir_flag_spec_ld_F77=
  11452. hardcode_libdir_separator_F77=
  11453. hardcode_minus_L_F77=no
  11454. hardcode_automatic_F77=no
  11455. module_cmds_F77=
  11456. module_expsym_cmds_F77=
  11457. link_all_deplibs_F77=unknown
  11458. old_archive_cmds_F77=$old_archive_cmds
  11459. no_undefined_flag_F77=
  11460. whole_archive_flag_spec_F77=
  11461. enable_shared_with_static_runtimes_F77=no
  11462. # Source file extension for f77 test sources.
  11463. ac_ext=f
  11464. # Object file extension for compiled f77 test sources.
  11465. objext=o
  11466. objext_F77=$objext
  11467. # Code to be used in simple compile tests
  11468. lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  11469. # Code to be used in simple link tests
  11470. lt_simple_link_test_code=" program t\n end\n"
  11471. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11472. # If no C compiler was specified, use CC.
  11473. LTCC=${LTCC-"$CC"}
  11474. # Allow CC to be a program name with arguments.
  11475. compiler=$CC
  11476. # save warnings/boilerplate of simple test code
  11477. ac_outfile=conftest.$ac_objext
  11478. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  11479. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  11480. _lt_compiler_boilerplate=`cat conftest.err`
  11481. $rm conftest*
  11482. ac_outfile=conftest.$ac_objext
  11483. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  11484. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  11485. _lt_linker_boilerplate=`cat conftest.err`
  11486. $rm conftest*
  11487. # Allow CC to be a program name with arguments.
  11488. lt_save_CC="$CC"
  11489. CC=${F77-"f77"}
  11490. compiler=$CC
  11491. compiler_F77=$CC
  11492. for cc_temp in $compiler""; do
  11493. case $cc_temp in
  11494. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11495. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11496. \-*) ;;
  11497. *) break;;
  11498. esac
  11499. done
  11500. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  11501. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  11502. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  11503. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  11504. echo "${ECHO_T}$can_build_shared" >&6
  11505. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  11506. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  11507. test "$can_build_shared" = "no" && enable_shared=no
  11508. # On AIX, shared libraries and static libraries use the same namespace, and
  11509. # are all built from PIC.
  11510. case "$host_os" in
  11511. aix3*)
  11512. test "$enable_shared" = yes && enable_static=no
  11513. if test -n "$RANLIB"; then
  11514. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11515. postinstall_cmds='$RANLIB $lib'
  11516. fi
  11517. ;;
  11518. aix4* | aix5*)
  11519. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11520. test "$enable_shared" = yes && enable_static=no
  11521. fi
  11522. ;;
  11523. esac
  11524. echo "$as_me:$LINENO: result: $enable_shared" >&5
  11525. echo "${ECHO_T}$enable_shared" >&6
  11526. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  11527. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  11528. # Make sure either enable_shared or enable_static is yes.
  11529. test "$enable_shared" = yes || enable_static=yes
  11530. echo "$as_me:$LINENO: result: $enable_static" >&5
  11531. echo "${ECHO_T}$enable_static" >&6
  11532. test "$ld_shlibs_F77" = no && can_build_shared=no
  11533. GCC_F77="$G77"
  11534. LD_F77="$LD"
  11535. lt_prog_compiler_wl_F77=
  11536. lt_prog_compiler_pic_F77=
  11537. lt_prog_compiler_static_F77=
  11538. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  11539. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  11540. if test "$GCC" = yes; then
  11541. lt_prog_compiler_wl_F77='-Wl,'
  11542. lt_prog_compiler_static_F77='-static'
  11543. case $host_os in
  11544. aix*)
  11545. # All AIX code is PIC.
  11546. if test "$host_cpu" = ia64; then
  11547. # AIX 5 now supports IA64 processor
  11548. lt_prog_compiler_static_F77='-Bstatic'
  11549. fi
  11550. ;;
  11551. amigaos*)
  11552. # FIXME: we need at least 68020 code to build shared libraries, but
  11553. # adding the `-m68020' flag to GCC prevents building anything better,
  11554. # like `-m68040'.
  11555. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  11556. ;;
  11557. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11558. # PIC is the default for these OSes.
  11559. ;;
  11560. mingw* | pw32* | os2*)
  11561. # This hack is so that the source file can tell whether it is being
  11562. # built for inclusion in a dll (and should export symbols for example).
  11563. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  11564. ;;
  11565. darwin* | rhapsody*)
  11566. # PIC is the default on this platform
  11567. # Common symbols not allowed in MH_DYLIB files
  11568. lt_prog_compiler_pic_F77='-fno-common'
  11569. ;;
  11570. msdosdjgpp*)
  11571. # Just because we use GCC doesn't mean we suddenly get shared libraries
  11572. # on systems that don't support them.
  11573. lt_prog_compiler_can_build_shared_F77=no
  11574. enable_shared=no
  11575. ;;
  11576. sysv4*MP*)
  11577. if test -d /usr/nec; then
  11578. lt_prog_compiler_pic_F77=-Kconform_pic
  11579. fi
  11580. ;;
  11581. hpux*)
  11582. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11583. # not for PA HP-UX.
  11584. case "$host_cpu" in
  11585. hppa*64*|ia64*)
  11586. # +Z the default
  11587. ;;
  11588. *)
  11589. lt_prog_compiler_pic_F77='-fPIC'
  11590. ;;
  11591. esac
  11592. ;;
  11593. *)
  11594. lt_prog_compiler_pic_F77='-fPIC'
  11595. ;;
  11596. esac
  11597. else
  11598. # PORTME Check for flag to pass linker flags through the system compiler.
  11599. case $host_os in
  11600. aix*)
  11601. lt_prog_compiler_wl_F77='-Wl,'
  11602. if test "$host_cpu" = ia64; then
  11603. # AIX 5 now supports IA64 processor
  11604. lt_prog_compiler_static_F77='-Bstatic'
  11605. else
  11606. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  11607. fi
  11608. ;;
  11609. darwin*)
  11610. # PIC is the default on this platform
  11611. # Common symbols not allowed in MH_DYLIB files
  11612. case $cc_basename in
  11613. xlc*)
  11614. lt_prog_compiler_pic_F77='-qnocommon'
  11615. lt_prog_compiler_wl_F77='-Wl,'
  11616. ;;
  11617. esac
  11618. ;;
  11619. mingw* | pw32* | os2*)
  11620. # This hack is so that the source file can tell whether it is being
  11621. # built for inclusion in a dll (and should export symbols for example).
  11622. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  11623. ;;
  11624. hpux9* | hpux10* | hpux11*)
  11625. lt_prog_compiler_wl_F77='-Wl,'
  11626. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11627. # not for PA HP-UX.
  11628. case "$host_cpu" in
  11629. hppa*64*|ia64*)
  11630. # +Z the default
  11631. ;;
  11632. *)
  11633. lt_prog_compiler_pic_F77='+Z'
  11634. ;;
  11635. esac
  11636. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  11637. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  11638. ;;
  11639. irix5* | irix6* | nonstopux*)
  11640. lt_prog_compiler_wl_F77='-Wl,'
  11641. # PIC (with -KPIC) is the default.
  11642. lt_prog_compiler_static_F77='-non_shared'
  11643. ;;
  11644. newsos6)
  11645. lt_prog_compiler_pic_F77='-KPIC'
  11646. lt_prog_compiler_static_F77='-Bstatic'
  11647. ;;
  11648. linux*)
  11649. case $cc_basename in
  11650. icc* | ecc*)
  11651. lt_prog_compiler_wl_F77='-Wl,'
  11652. lt_prog_compiler_pic_F77='-KPIC'
  11653. lt_prog_compiler_static_F77='-static'
  11654. ;;
  11655. pgcc* | pgf77* | pgf90*)
  11656. # Portland Group compilers (*not* the Pentium gcc compiler,
  11657. # which looks to be a dead project)
  11658. lt_prog_compiler_wl_F77='-Wl,'
  11659. lt_prog_compiler_pic_F77='-fpic'
  11660. lt_prog_compiler_static_F77='-static'
  11661. ;;
  11662. ccc*)
  11663. lt_prog_compiler_wl_F77='-Wl,'
  11664. # All Alpha code is PIC.
  11665. lt_prog_compiler_static_F77='-non_shared'
  11666. ;;
  11667. esac
  11668. ;;
  11669. osf3* | osf4* | osf5*)
  11670. lt_prog_compiler_wl_F77='-Wl,'
  11671. # All OSF/1 code is PIC.
  11672. lt_prog_compiler_static_F77='-non_shared'
  11673. ;;
  11674. sco3.2v5*)
  11675. lt_prog_compiler_pic_F77='-Kpic'
  11676. lt_prog_compiler_static_F77='-dn'
  11677. ;;
  11678. solaris*)
  11679. lt_prog_compiler_pic_F77='-KPIC'
  11680. lt_prog_compiler_static_F77='-Bstatic'
  11681. case $cc_basename in
  11682. f77* | f90* | f95*)
  11683. lt_prog_compiler_wl_F77='-Qoption ld ';;
  11684. *)
  11685. lt_prog_compiler_wl_F77='-Wl,';;
  11686. esac
  11687. ;;
  11688. sunos4*)
  11689. lt_prog_compiler_wl_F77='-Qoption ld '
  11690. lt_prog_compiler_pic_F77='-PIC'
  11691. lt_prog_compiler_static_F77='-Bstatic'
  11692. ;;
  11693. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  11694. lt_prog_compiler_wl_F77='-Wl,'
  11695. lt_prog_compiler_pic_F77='-KPIC'
  11696. lt_prog_compiler_static_F77='-Bstatic'
  11697. ;;
  11698. sysv4*MP*)
  11699. if test -d /usr/nec ;then
  11700. lt_prog_compiler_pic_F77='-Kconform_pic'
  11701. lt_prog_compiler_static_F77='-Bstatic'
  11702. fi
  11703. ;;
  11704. unicos*)
  11705. lt_prog_compiler_wl_F77='-Wl,'
  11706. lt_prog_compiler_can_build_shared_F77=no
  11707. ;;
  11708. uts4*)
  11709. lt_prog_compiler_pic_F77='-pic'
  11710. lt_prog_compiler_static_F77='-Bstatic'
  11711. ;;
  11712. *)
  11713. lt_prog_compiler_can_build_shared_F77=no
  11714. ;;
  11715. esac
  11716. fi
  11717. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  11718. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
  11719. #
  11720. # Check to make sure the PIC flag actually works.
  11721. #
  11722. if test -n "$lt_prog_compiler_pic_F77"; then
  11723. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  11724. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
  11725. if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  11726. echo $ECHO_N "(cached) $ECHO_C" >&6
  11727. else
  11728. lt_prog_compiler_pic_works_F77=no
  11729. ac_outfile=conftest.$ac_objext
  11730. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  11731. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  11732. # Insert the option either (1) after the last *FLAGS variable, or
  11733. # (2) before a word containing "conftest.", or (3) at the end.
  11734. # Note that $ac_compile itself does not contain backslashes and begins
  11735. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11736. # The option is referenced via a variable to avoid confusing sed.
  11737. lt_compile=`echo "$ac_compile" | $SED \
  11738. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  11739. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11740. -e 's:$: $lt_compiler_flag:'`
  11741. (eval echo "\"\$as_me:13030: $lt_compile\"" >&5)
  11742. (eval "$lt_compile" 2>conftest.err)
  11743. ac_status=$?
  11744. cat conftest.err >&5
  11745. echo "$as_me:13034: \$? = $ac_status" >&5
  11746. if (exit $ac_status) && test -s "$ac_outfile"; then
  11747. # The compiler can only warn and ignore the option if not recognized
  11748. # So say no if there are warnings other than the usual output.
  11749. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  11750. $SED '/^$/d' conftest.err >conftest.er2
  11751. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  11752. lt_prog_compiler_pic_works_F77=yes
  11753. fi
  11754. fi
  11755. $rm conftest*
  11756. fi
  11757. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  11758. echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
  11759. if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  11760. case $lt_prog_compiler_pic_F77 in
  11761. "" | " "*) ;;
  11762. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  11763. esac
  11764. else
  11765. lt_prog_compiler_pic_F77=
  11766. lt_prog_compiler_can_build_shared_F77=no
  11767. fi
  11768. fi
  11769. case "$host_os" in
  11770. # For platforms which do not support PIC, -DPIC is meaningless:
  11771. *djgpp*)
  11772. lt_prog_compiler_pic_F77=
  11773. ;;
  11774. *)
  11775. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  11776. ;;
  11777. esac
  11778. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  11779. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  11780. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  11781. echo $ECHO_N "(cached) $ECHO_C" >&6
  11782. else
  11783. lt_cv_prog_compiler_c_o_F77=no
  11784. $rm -r conftest 2>/dev/null
  11785. mkdir conftest
  11786. cd conftest
  11787. mkdir out
  11788. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  11789. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11790. # Insert the option either (1) after the last *FLAGS variable, or
  11791. # (2) before a word containing "conftest.", or (3) at the end.
  11792. # Note that $ac_compile itself does not contain backslashes and begins
  11793. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11794. lt_compile=`echo "$ac_compile" | $SED \
  11795. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  11796. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11797. -e 's:$: $lt_compiler_flag:'`
  11798. (eval echo "\"\$as_me:13092: $lt_compile\"" >&5)
  11799. (eval "$lt_compile" 2>out/conftest.err)
  11800. ac_status=$?
  11801. cat out/conftest.err >&5
  11802. echo "$as_me:13096: \$? = $ac_status" >&5
  11803. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11804. then
  11805. # The compiler can only warn and ignore the option if not recognized
  11806. # So say no if there are warnings
  11807. $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
  11808. $SED '/^$/d' out/conftest.err >out/conftest.er2
  11809. if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11810. lt_cv_prog_compiler_c_o_F77=yes
  11811. fi
  11812. fi
  11813. chmod u+w .
  11814. $rm conftest*
  11815. # SGI C++ compiler will create directory out/ii_files/ for
  11816. # template instantiation
  11817. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  11818. $rm out/* && rmdir out
  11819. cd ..
  11820. rmdir conftest
  11821. $rm conftest*
  11822. fi
  11823. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  11824. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
  11825. hard_links="nottested"
  11826. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  11827. # do not overwrite the value of need_locks provided by the user
  11828. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  11829. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  11830. hard_links=yes
  11831. $rm conftest*
  11832. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11833. touch conftest.a
  11834. ln conftest.a conftest.b 2>&5 || hard_links=no
  11835. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11836. echo "$as_me:$LINENO: result: $hard_links" >&5
  11837. echo "${ECHO_T}$hard_links" >&6
  11838. if test "$hard_links" = no; then
  11839. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11840. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11841. need_locks=warn
  11842. fi
  11843. else
  11844. need_locks=no
  11845. fi
  11846. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11847. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  11848. runpath_var=
  11849. allow_undefined_flag_F77=
  11850. enable_shared_with_static_runtimes_F77=no
  11851. archive_cmds_F77=
  11852. archive_expsym_cmds_F77=
  11853. old_archive_From_new_cmds_F77=
  11854. old_archive_from_expsyms_cmds_F77=
  11855. export_dynamic_flag_spec_F77=
  11856. whole_archive_flag_spec_F77=
  11857. thread_safe_flag_spec_F77=
  11858. hardcode_libdir_flag_spec_F77=
  11859. hardcode_libdir_flag_spec_ld_F77=
  11860. hardcode_libdir_separator_F77=
  11861. hardcode_direct_F77=no
  11862. hardcode_minus_L_F77=no
  11863. hardcode_shlibpath_var_F77=unsupported
  11864. link_all_deplibs_F77=unknown
  11865. hardcode_automatic_F77=no
  11866. module_cmds_F77=
  11867. module_expsym_cmds_F77=
  11868. always_export_symbols_F77=no
  11869. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11870. # include_expsyms should be a list of space-separated symbols to be *always*
  11871. # included in the symbol list
  11872. include_expsyms_F77=
  11873. # exclude_expsyms can be an extended regexp of symbols to exclude
  11874. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  11875. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  11876. # as well as any symbol that contains `d'.
  11877. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  11878. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  11879. # platforms (ab)use it in PIC code, but their linkers get confused if
  11880. # the symbol is explicitly referenced. Since portable code cannot
  11881. # rely on this symbol name, it's probably fine to never include it in
  11882. # preloaded symbol tables.
  11883. extract_expsyms_cmds=
  11884. # Just being paranoid about ensuring that cc_basename is set.
  11885. for cc_temp in $compiler""; do
  11886. case $cc_temp in
  11887. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11888. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11889. \-*) ;;
  11890. *) break;;
  11891. esac
  11892. done
  11893. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  11894. case $host_os in
  11895. cygwin* | mingw* | pw32*)
  11896. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  11897. # When not using gcc, we currently assume that we are using
  11898. # Microsoft Visual C++.
  11899. if test "$GCC" != yes; then
  11900. with_gnu_ld=no
  11901. fi
  11902. ;;
  11903. openbsd*)
  11904. with_gnu_ld=no
  11905. ;;
  11906. esac
  11907. ld_shlibs_F77=yes
  11908. if test "$with_gnu_ld" = yes; then
  11909. # If archive_cmds runs LD, not CC, wlarc should be empty
  11910. wlarc='${wl}'
  11911. # Set some defaults for GNU ld with shared library support. These
  11912. # are reset later if shared libraries are not supported. Putting them
  11913. # here allows them to be overridden if necessary.
  11914. runpath_var=LD_RUN_PATH
  11915. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  11916. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  11917. # ancient GNU ld didn't support --whole-archive et. al.
  11918. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  11919. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11920. else
  11921. whole_archive_flag_spec_F77=
  11922. fi
  11923. supports_anon_versioning=no
  11924. case `$LD -v 2>/dev/null` in
  11925. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  11926. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  11927. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  11928. *\ 2.11.*) ;; # other 2.11 versions
  11929. *) supports_anon_versioning=yes ;;
  11930. esac
  11931. # See if GNU ld supports shared libraries.
  11932. case $host_os in
  11933. aix3* | aix4* | aix5*)
  11934. # On AIX/PPC, the GNU linker is very broken
  11935. if test "$host_cpu" != ia64; then
  11936. ld_shlibs_F77=no
  11937. cat <<EOF 1>&2
  11938. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  11939. *** to be unable to reliably create shared libraries on AIX.
  11940. *** Therefore, libtool is disabling shared libraries support. If you
  11941. *** really care for shared libraries, you may want to modify your PATH
  11942. *** so that a non-GNU linker is found, and then restart.
  11943. EOF
  11944. fi
  11945. ;;
  11946. amigaos*)
  11947. 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)'
  11948. hardcode_libdir_flag_spec_F77='-L$libdir'
  11949. hardcode_minus_L_F77=yes
  11950. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  11951. # that the semantics of dynamic libraries on AmigaOS, at least up
  11952. # to version 4, is to share data among multiple programs linked
  11953. # with the same dynamic library. Since this doesn't match the
  11954. # behavior of shared libraries on other platforms, we can't use
  11955. # them.
  11956. ld_shlibs_F77=no
  11957. ;;
  11958. beos*)
  11959. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11960. allow_undefined_flag_F77=unsupported
  11961. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11962. # support --undefined. This deserves some investigation. FIXME
  11963. archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11964. else
  11965. ld_shlibs_F77=no
  11966. fi
  11967. ;;
  11968. cygwin* | mingw* | pw32*)
  11969. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  11970. # as there is no search path for DLLs.
  11971. hardcode_libdir_flag_spec_F77='-L$libdir'
  11972. allow_undefined_flag_F77=unsupported
  11973. always_export_symbols_F77=no
  11974. enable_shared_with_static_runtimes_F77=yes
  11975. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  11976. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  11977. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  11978. # If the export-symbols file already is a .def file (1st line
  11979. # is EXPORTS), use it as is; otherwise, prepend...
  11980. archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11981. cp $export_symbols $output_objdir/$soname.def;
  11982. else
  11983. echo EXPORTS > $output_objdir/$soname.def;
  11984. cat $export_symbols >> $output_objdir/$soname.def;
  11985. fi~
  11986. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  11987. else
  11988. ld_shlibs_F77=no
  11989. fi
  11990. ;;
  11991. linux*)
  11992. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11993. tmp_addflag=
  11994. case $cc_basename,$host_cpu in
  11995. pgcc*) # Portland Group C compiler
  11996. 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'
  11997. tmp_addflag=' $pic_flag'
  11998. ;;
  11999. pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
  12000. 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'
  12001. tmp_addflag=' $pic_flag -Mnomain' ;;
  12002. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  12003. tmp_addflag=' -i_dynamic' ;;
  12004. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  12005. tmp_addflag=' -i_dynamic -nofor_main' ;;
  12006. ifc* | ifort*) # Intel Fortran compiler
  12007. tmp_addflag=' -nofor_main' ;;
  12008. esac
  12009. archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12010. if test $supports_anon_versioning = yes; then
  12011. archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  12012. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12013. $echo "local: *; };" >> $output_objdir/$libname.ver~
  12014. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  12015. fi
  12016. else
  12017. ld_shlibs_F77=no
  12018. fi
  12019. ;;
  12020. netbsd*)
  12021. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12022. archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  12023. wlarc=
  12024. else
  12025. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12026. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12027. fi
  12028. ;;
  12029. solaris* | sysv5*)
  12030. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  12031. ld_shlibs_F77=no
  12032. cat <<EOF 1>&2
  12033. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  12034. *** create shared libraries on Solaris systems. Therefore, libtool
  12035. *** is disabling shared libraries support. We urge you to upgrade GNU
  12036. *** binutils to release 2.9.1 or newer. Another option is to modify
  12037. *** your PATH or compiler configuration so that the native linker is
  12038. *** used, and then restart.
  12039. EOF
  12040. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12041. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12042. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12043. else
  12044. ld_shlibs_F77=no
  12045. fi
  12046. ;;
  12047. sunos4*)
  12048. archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12049. wlarc=
  12050. hardcode_direct_F77=yes
  12051. hardcode_shlibpath_var_F77=no
  12052. ;;
  12053. *)
  12054. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12055. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12056. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12057. else
  12058. ld_shlibs_F77=no
  12059. fi
  12060. ;;
  12061. esac
  12062. if test "$ld_shlibs_F77" = no; then
  12063. runpath_var=
  12064. hardcode_libdir_flag_spec_F77=
  12065. export_dynamic_flag_spec_F77=
  12066. whole_archive_flag_spec_F77=
  12067. fi
  12068. else
  12069. # PORTME fill in a description of your system's linker (not GNU ld)
  12070. case $host_os in
  12071. aix3*)
  12072. allow_undefined_flag_F77=unsupported
  12073. always_export_symbols_F77=yes
  12074. 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'
  12075. # Note: this linker hardcodes the directories in LIBPATH if there
  12076. # are no directories specified by -L.
  12077. hardcode_minus_L_F77=yes
  12078. if test "$GCC" = yes && test -z "$link_static_flag"; then
  12079. # Neither direct hardcoding nor static linking is supported with a
  12080. # broken collect2.
  12081. hardcode_direct_F77=unsupported
  12082. fi
  12083. ;;
  12084. aix4* | aix5*)
  12085. if test "$host_cpu" = ia64; then
  12086. # On IA64, the linker does run time linking by default, so we don't
  12087. # have to do anything special.
  12088. aix_use_runtimelinking=no
  12089. exp_sym_flag='-Bexport'
  12090. no_entry_flag=""
  12091. else
  12092. # If we're using GNU nm, then we don't want the "-C" option.
  12093. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12094. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  12095. 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'
  12096. else
  12097. 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'
  12098. fi
  12099. aix_use_runtimelinking=no
  12100. # Test if we are trying to use run time linking or normal
  12101. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12102. # need to do runtime linking.
  12103. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  12104. for ld_flag in $LDFLAGS; do
  12105. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  12106. aix_use_runtimelinking=yes
  12107. break
  12108. fi
  12109. done
  12110. esac
  12111. exp_sym_flag='-bexport'
  12112. no_entry_flag='-bnoentry'
  12113. fi
  12114. # When large executables or shared objects are built, AIX ld can
  12115. # have problems creating the table of contents. If linking a library
  12116. # or program results in "error TOC overflow" add -mminimal-toc to
  12117. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12118. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12119. archive_cmds_F77=''
  12120. hardcode_direct_F77=yes
  12121. hardcode_libdir_separator_F77=':'
  12122. link_all_deplibs_F77=yes
  12123. if test "$GCC" = yes; then
  12124. case $host_os in aix4.[012]|aix4.[012].*)
  12125. # We only want to do this on AIX 4.2 and lower, the check
  12126. # below for broken collect2 doesn't work under 4.3+
  12127. collect2name=`${CC} -print-prog-name=collect2`
  12128. if test -f "$collect2name" && \
  12129. strings "$collect2name" | grep resolve_lib_name >/dev/null
  12130. then
  12131. # We have reworked collect2
  12132. hardcode_direct_F77=yes
  12133. else
  12134. # We have old collect2
  12135. hardcode_direct_F77=unsupported
  12136. # It fails to find uninstalled libraries when the uninstalled
  12137. # path is not listed in the libpath. Setting hardcode_minus_L
  12138. # to unsupported forces relinking
  12139. hardcode_minus_L_F77=yes
  12140. hardcode_libdir_flag_spec_F77='-L$libdir'
  12141. hardcode_libdir_separator_F77=
  12142. fi
  12143. esac
  12144. shared_flag='-shared'
  12145. if test "$aix_use_runtimelinking" = yes; then
  12146. shared_flag="$shared_flag "'${wl}-G'
  12147. fi
  12148. else
  12149. # not using gcc
  12150. if test "$host_cpu" = ia64; then
  12151. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12152. # chokes on -Wl,-G. The following line is correct:
  12153. shared_flag='-G'
  12154. else
  12155. if test "$aix_use_runtimelinking" = yes; then
  12156. shared_flag='${wl}-G'
  12157. else
  12158. shared_flag='${wl}-bM:SRE'
  12159. fi
  12160. fi
  12161. fi
  12162. # It seems that -bexpall does not export symbols beginning with
  12163. # underscore (_), so it is better to generate a list of symbols to export.
  12164. always_export_symbols_F77=yes
  12165. if test "$aix_use_runtimelinking" = yes; then
  12166. # Warning - without using the other runtime loading flags (-brtl),
  12167. # -berok will link without error, but may produce a broken library.
  12168. allow_undefined_flag_F77='-berok'
  12169. # Determine the default libpath from the value encoded in an empty executable.
  12170. cat >conftest.$ac_ext <<_ACEOF
  12171. program main
  12172. end
  12173. _ACEOF
  12174. rm -f conftest.$ac_objext conftest$ac_exeext
  12175. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12176. (eval $ac_link) 2>conftest.er1
  12177. ac_status=$?
  12178. grep -v '^ *+' conftest.er1 >conftest.err
  12179. rm -f conftest.er1
  12180. cat conftest.err >&5
  12181. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12182. (exit $ac_status); } &&
  12183. { ac_try='test -z "$ac_f77_werror_flag"
  12184. || test ! -s conftest.err'
  12185. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12186. (eval $ac_try) 2>&5
  12187. ac_status=$?
  12188. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12189. (exit $ac_status); }; } &&
  12190. { ac_try='test -s conftest$ac_exeext'
  12191. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12192. (eval $ac_try) 2>&5
  12193. ac_status=$?
  12194. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12195. (exit $ac_status); }; }; then
  12196. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12197. }'`
  12198. # Check for a 64-bit object if we didn't find anything.
  12199. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12200. }'`; fi
  12201. else
  12202. echo "$as_me: failed program was:" >&5
  12203. sed 's/^/| /' conftest.$ac_ext >&5
  12204. fi
  12205. rm -f conftest.err conftest.$ac_objext \
  12206. conftest$ac_exeext conftest.$ac_ext
  12207. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12208. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  12209. archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  12210. else
  12211. if test "$host_cpu" = ia64; then
  12212. hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  12213. allow_undefined_flag_F77="-z nodefs"
  12214. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  12215. else
  12216. # Determine the default libpath from the value encoded in an empty executable.
  12217. cat >conftest.$ac_ext <<_ACEOF
  12218. program main
  12219. end
  12220. _ACEOF
  12221. rm -f conftest.$ac_objext conftest$ac_exeext
  12222. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12223. (eval $ac_link) 2>conftest.er1
  12224. ac_status=$?
  12225. grep -v '^ *+' conftest.er1 >conftest.err
  12226. rm -f conftest.er1
  12227. cat conftest.err >&5
  12228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12229. (exit $ac_status); } &&
  12230. { ac_try='test -z "$ac_f77_werror_flag"
  12231. || test ! -s conftest.err'
  12232. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12233. (eval $ac_try) 2>&5
  12234. ac_status=$?
  12235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12236. (exit $ac_status); }; } &&
  12237. { ac_try='test -s conftest$ac_exeext'
  12238. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12239. (eval $ac_try) 2>&5
  12240. ac_status=$?
  12241. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12242. (exit $ac_status); }; }; then
  12243. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12244. }'`
  12245. # Check for a 64-bit object if we didn't find anything.
  12246. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12247. }'`; fi
  12248. else
  12249. echo "$as_me: failed program was:" >&5
  12250. sed 's/^/| /' conftest.$ac_ext >&5
  12251. fi
  12252. rm -f conftest.err conftest.$ac_objext \
  12253. conftest$ac_exeext conftest.$ac_ext
  12254. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12255. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  12256. # Warning - without using the other run time loading flags,
  12257. # -berok will link without error, but may produce a broken library.
  12258. no_undefined_flag_F77=' ${wl}-bernotok'
  12259. allow_undefined_flag_F77=' ${wl}-berok'
  12260. # -bexpall does not export symbols beginning with underscore (_)
  12261. always_export_symbols_F77=yes
  12262. # Exported symbols can be pulled into shared objects from archives
  12263. whole_archive_flag_spec_F77=' '
  12264. archive_cmds_need_lc_F77=yes
  12265. # This is similar to how AIX traditionally builds it's shared libraries.
  12266. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  12267. fi
  12268. fi
  12269. ;;
  12270. amigaos*)
  12271. 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)'
  12272. hardcode_libdir_flag_spec_F77='-L$libdir'
  12273. hardcode_minus_L_F77=yes
  12274. # see comment about different semantics on the GNU ld section
  12275. ld_shlibs_F77=no
  12276. ;;
  12277. bsdi[45]*)
  12278. export_dynamic_flag_spec_F77=-rdynamic
  12279. ;;
  12280. cygwin* | mingw* | pw32*)
  12281. # When not using gcc, we currently assume that we are using
  12282. # Microsoft Visual C++.
  12283. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12284. # no search path for DLLs.
  12285. hardcode_libdir_flag_spec_F77=' '
  12286. allow_undefined_flag_F77=unsupported
  12287. # Tell ltmain to make .lib files, not .a files.
  12288. libext=lib
  12289. # Tell ltmain to make .dll files, not .so files.
  12290. shrext_cmds=".dll"
  12291. # FIXME: Setting linknames here is a bad hack.
  12292. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  12293. # The linker will automatically build a .lib file if we build a DLL.
  12294. old_archive_From_new_cmds_F77='true'
  12295. # FIXME: Should let the user specify the lib program.
  12296. old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  12297. fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  12298. enable_shared_with_static_runtimes_F77=yes
  12299. ;;
  12300. darwin* | rhapsody*)
  12301. case "$host_os" in
  12302. rhapsody* | darwin1.[012])
  12303. allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  12304. ;;
  12305. *) # Darwin 1.3 on
  12306. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  12307. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  12308. else
  12309. case ${MACOSX_DEPLOYMENT_TARGET} in
  12310. 10.[012])
  12311. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  12312. ;;
  12313. 10.*)
  12314. allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  12315. ;;
  12316. esac
  12317. fi
  12318. ;;
  12319. esac
  12320. archive_cmds_need_lc_F77=no
  12321. hardcode_direct_F77=no
  12322. hardcode_automatic_F77=yes
  12323. hardcode_shlibpath_var_F77=unsupported
  12324. whole_archive_flag_spec_F77=''
  12325. link_all_deplibs_F77=yes
  12326. if test "$GCC" = yes ; then
  12327. output_verbose_link_cmd='echo'
  12328. archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  12329. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12330. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  12331. archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  12332. 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}'
  12333. else
  12334. case $cc_basename in
  12335. xlc*)
  12336. output_verbose_link_cmd='echo'
  12337. archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  12338. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12339. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  12340. archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  12341. 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}'
  12342. ;;
  12343. *)
  12344. ld_shlibs_F77=no
  12345. ;;
  12346. esac
  12347. fi
  12348. ;;
  12349. dgux*)
  12350. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12351. hardcode_libdir_flag_spec_F77='-L$libdir'
  12352. hardcode_shlibpath_var_F77=no
  12353. ;;
  12354. freebsd1*)
  12355. ld_shlibs_F77=no
  12356. ;;
  12357. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  12358. # support. Future versions do this automatically, but an explicit c++rt0.o
  12359. # does not break anything, and helps significantly (at the cost of a little
  12360. # extra space).
  12361. freebsd2.2*)
  12362. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  12363. hardcode_libdir_flag_spec_F77='-R$libdir'
  12364. hardcode_direct_F77=yes
  12365. hardcode_shlibpath_var_F77=no
  12366. ;;
  12367. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  12368. freebsd2*)
  12369. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12370. hardcode_direct_F77=yes
  12371. hardcode_minus_L_F77=yes
  12372. hardcode_shlibpath_var_F77=no
  12373. ;;
  12374. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  12375. freebsd* | kfreebsd*-gnu | dragonfly*)
  12376. archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  12377. hardcode_libdir_flag_spec_F77='-R$libdir'
  12378. hardcode_direct_F77=yes
  12379. hardcode_shlibpath_var_F77=no
  12380. ;;
  12381. hpux9*)
  12382. if test "$GCC" = yes; then
  12383. 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'
  12384. else
  12385. 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'
  12386. fi
  12387. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12388. hardcode_libdir_separator_F77=:
  12389. hardcode_direct_F77=yes
  12390. # hardcode_minus_L: Not really in the search PATH,
  12391. # but as the default location of the library.
  12392. hardcode_minus_L_F77=yes
  12393. export_dynamic_flag_spec_F77='${wl}-E'
  12394. ;;
  12395. hpux10* | hpux11*)
  12396. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12397. case "$host_cpu" in
  12398. hppa*64*|ia64*)
  12399. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12400. ;;
  12401. *)
  12402. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12403. ;;
  12404. esac
  12405. else
  12406. case "$host_cpu" in
  12407. hppa*64*|ia64*)
  12408. archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  12409. ;;
  12410. *)
  12411. archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  12412. ;;
  12413. esac
  12414. fi
  12415. if test "$with_gnu_ld" = no; then
  12416. case "$host_cpu" in
  12417. hppa*64*)
  12418. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12419. hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  12420. hardcode_libdir_separator_F77=:
  12421. hardcode_direct_F77=no
  12422. hardcode_shlibpath_var_F77=no
  12423. ;;
  12424. ia64*)
  12425. hardcode_libdir_flag_spec_F77='-L$libdir'
  12426. hardcode_direct_F77=no
  12427. hardcode_shlibpath_var_F77=no
  12428. # hardcode_minus_L: Not really in the search PATH,
  12429. # but as the default location of the library.
  12430. hardcode_minus_L_F77=yes
  12431. ;;
  12432. *)
  12433. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12434. hardcode_libdir_separator_F77=:
  12435. hardcode_direct_F77=yes
  12436. export_dynamic_flag_spec_F77='${wl}-E'
  12437. # hardcode_minus_L: Not really in the search PATH,
  12438. # but as the default location of the library.
  12439. hardcode_minus_L_F77=yes
  12440. ;;
  12441. esac
  12442. fi
  12443. ;;
  12444. irix5* | irix6* | nonstopux*)
  12445. if test "$GCC" = yes; then
  12446. 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'
  12447. else
  12448. 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'
  12449. hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  12450. fi
  12451. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12452. hardcode_libdir_separator_F77=:
  12453. link_all_deplibs_F77=yes
  12454. ;;
  12455. netbsd*)
  12456. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12457. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  12458. else
  12459. archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  12460. fi
  12461. hardcode_libdir_flag_spec_F77='-R$libdir'
  12462. hardcode_direct_F77=yes
  12463. hardcode_shlibpath_var_F77=no
  12464. ;;
  12465. newsos6)
  12466. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12467. hardcode_direct_F77=yes
  12468. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12469. hardcode_libdir_separator_F77=:
  12470. hardcode_shlibpath_var_F77=no
  12471. ;;
  12472. openbsd*)
  12473. hardcode_direct_F77=yes
  12474. hardcode_shlibpath_var_F77=no
  12475. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12476. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12477. archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  12478. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12479. export_dynamic_flag_spec_F77='${wl}-E'
  12480. else
  12481. case $host_os in
  12482. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  12483. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12484. hardcode_libdir_flag_spec_F77='-R$libdir'
  12485. ;;
  12486. *)
  12487. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12488. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12489. ;;
  12490. esac
  12491. fi
  12492. ;;
  12493. os2*)
  12494. hardcode_libdir_flag_spec_F77='-L$libdir'
  12495. hardcode_minus_L_F77=yes
  12496. allow_undefined_flag_F77=unsupported
  12497. 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'
  12498. old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  12499. ;;
  12500. osf3*)
  12501. if test "$GCC" = yes; then
  12502. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  12503. 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'
  12504. else
  12505. allow_undefined_flag_F77=' -expect_unresolved \*'
  12506. 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'
  12507. fi
  12508. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12509. hardcode_libdir_separator_F77=:
  12510. ;;
  12511. osf4* | osf5*) # as osf3* with the addition of -msym flag
  12512. if test "$GCC" = yes; then
  12513. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  12514. 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'
  12515. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12516. else
  12517. allow_undefined_flag_F77=' -expect_unresolved \*'
  12518. 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'
  12519. 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~
  12520. $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'
  12521. # Both c and cxx compiler support -rpath directly
  12522. hardcode_libdir_flag_spec_F77='-rpath $libdir'
  12523. fi
  12524. hardcode_libdir_separator_F77=:
  12525. ;;
  12526. sco3.2v5*)
  12527. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12528. hardcode_shlibpath_var_F77=no
  12529. export_dynamic_flag_spec_F77='${wl}-Bexport'
  12530. runpath_var=LD_RUN_PATH
  12531. hardcode_runpath_var=yes
  12532. ;;
  12533. solaris*)
  12534. no_undefined_flag_F77=' -z text'
  12535. if test "$GCC" = yes; then
  12536. wlarc='${wl}'
  12537. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12538. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12539. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  12540. else
  12541. wlarc=''
  12542. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12543. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12544. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  12545. fi
  12546. hardcode_libdir_flag_spec_F77='-R$libdir'
  12547. hardcode_shlibpath_var_F77=no
  12548. case $host_os in
  12549. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12550. *)
  12551. # The compiler driver will combine linker options so we
  12552. # cannot just pass the convience library names through
  12553. # without $wl, iff we do not link with $LD.
  12554. # Luckily, gcc supports the same syntax we need for Sun Studio.
  12555. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12556. case $wlarc in
  12557. '')
  12558. whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
  12559. *)
  12560. whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  12561. esac ;;
  12562. esac
  12563. link_all_deplibs_F77=yes
  12564. ;;
  12565. sunos4*)
  12566. if test "x$host_vendor" = xsequent; then
  12567. # Use $CC to link under sequent, because it throws in some extra .o
  12568. # files that make .init and .fini sections work.
  12569. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  12570. else
  12571. archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  12572. fi
  12573. hardcode_libdir_flag_spec_F77='-L$libdir'
  12574. hardcode_direct_F77=yes
  12575. hardcode_minus_L_F77=yes
  12576. hardcode_shlibpath_var_F77=no
  12577. ;;
  12578. sysv4)
  12579. case $host_vendor in
  12580. sni)
  12581. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12582. hardcode_direct_F77=yes # is this really true???
  12583. ;;
  12584. siemens)
  12585. ## LD is ld it makes a PLAMLIB
  12586. ## CC just makes a GrossModule.
  12587. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  12588. reload_cmds_F77='$CC -r -o $output$reload_objs'
  12589. hardcode_direct_F77=no
  12590. ;;
  12591. motorola)
  12592. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12593. hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  12594. ;;
  12595. esac
  12596. runpath_var='LD_RUN_PATH'
  12597. hardcode_shlibpath_var_F77=no
  12598. ;;
  12599. sysv4.3*)
  12600. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12601. hardcode_shlibpath_var_F77=no
  12602. export_dynamic_flag_spec_F77='-Bexport'
  12603. ;;
  12604. sysv4*MP*)
  12605. if test -d /usr/nec; then
  12606. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12607. hardcode_shlibpath_var_F77=no
  12608. runpath_var=LD_RUN_PATH
  12609. hardcode_runpath_var=yes
  12610. ld_shlibs_F77=yes
  12611. fi
  12612. ;;
  12613. sysv4.2uw2*)
  12614. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  12615. hardcode_direct_F77=yes
  12616. hardcode_minus_L_F77=no
  12617. hardcode_shlibpath_var_F77=no
  12618. hardcode_runpath_var=yes
  12619. runpath_var=LD_RUN_PATH
  12620. ;;
  12621. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  12622. no_undefined_flag_F77='${wl}-z ${wl}text'
  12623. if test "$GCC" = yes; then
  12624. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12625. else
  12626. archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12627. fi
  12628. runpath_var='LD_RUN_PATH'
  12629. hardcode_shlibpath_var_F77=no
  12630. ;;
  12631. sysv5*)
  12632. no_undefined_flag_F77=' -z text'
  12633. # $CC -shared without GNU ld will not create a library from C++
  12634. # object files and a static libstdc++, better avoid it by now
  12635. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12636. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12637. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  12638. hardcode_libdir_flag_spec_F77=
  12639. hardcode_shlibpath_var_F77=no
  12640. runpath_var='LD_RUN_PATH'
  12641. ;;
  12642. uts4*)
  12643. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12644. hardcode_libdir_flag_spec_F77='-L$libdir'
  12645. hardcode_shlibpath_var_F77=no
  12646. ;;
  12647. *)
  12648. ld_shlibs_F77=no
  12649. ;;
  12650. esac
  12651. fi
  12652. echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  12653. echo "${ECHO_T}$ld_shlibs_F77" >&6
  12654. test "$ld_shlibs_F77" = no && can_build_shared=no
  12655. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12656. if test "$GCC" = yes; then
  12657. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12658. fi
  12659. #
  12660. # Do we need to explicitly link libc?
  12661. #
  12662. case "x$archive_cmds_need_lc_F77" in
  12663. x|xyes)
  12664. # Assume -lc should be added
  12665. archive_cmds_need_lc_F77=yes
  12666. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12667. case $archive_cmds_F77 in
  12668. *'~'*)
  12669. # FIXME: we may have to deal with multi-command sequences.
  12670. ;;
  12671. '$CC '*)
  12672. # Test whether the compiler implicitly links with -lc since on some
  12673. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12674. # to ld, don't add -lc before -lgcc.
  12675. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  12676. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  12677. $rm conftest*
  12678. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12679. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12680. (eval $ac_compile) 2>&5
  12681. ac_status=$?
  12682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12683. (exit $ac_status); } 2>conftest.err; then
  12684. soname=conftest
  12685. lib=conftest
  12686. libobjs=conftest.$ac_objext
  12687. deplibs=
  12688. wl=$lt_prog_compiler_wl_F77
  12689. compiler_flags=-v
  12690. linker_flags=-v
  12691. verstring=
  12692. output_objdir=.
  12693. libname=conftest
  12694. lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  12695. allow_undefined_flag_F77=
  12696. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  12697. (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12698. ac_status=$?
  12699. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12700. (exit $ac_status); }
  12701. then
  12702. archive_cmds_need_lc_F77=no
  12703. else
  12704. archive_cmds_need_lc_F77=yes
  12705. fi
  12706. allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  12707. else
  12708. cat conftest.err 1>&5
  12709. fi
  12710. $rm conftest*
  12711. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  12712. echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
  12713. ;;
  12714. esac
  12715. fi
  12716. ;;
  12717. esac
  12718. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  12719. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  12720. library_names_spec=
  12721. libname_spec='lib$name'
  12722. soname_spec=
  12723. shrext_cmds=".so"
  12724. postinstall_cmds=
  12725. postuninstall_cmds=
  12726. finish_cmds=
  12727. finish_eval=
  12728. shlibpath_var=
  12729. shlibpath_overrides_runpath=unknown
  12730. version_type=none
  12731. dynamic_linker="$host_os ld.so"
  12732. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12733. if test "$GCC" = yes; then
  12734. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  12735. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  12736. # if the path contains ";" then we assume it to be the separator
  12737. # otherwise default to the standard path separator (i.e. ":") - it is
  12738. # assumed that no part of a normal pathname contains ";" but that should
  12739. # okay in the real world where ";" in dirpaths is itself problematic.
  12740. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12741. else
  12742. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12743. fi
  12744. else
  12745. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  12746. fi
  12747. need_lib_prefix=unknown
  12748. hardcode_into_libs=no
  12749. # when you set need_version to no, make sure it does not cause -set_version
  12750. # flags to be left without arguments
  12751. need_version=unknown
  12752. case $host_os in
  12753. aix3*)
  12754. version_type=linux
  12755. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12756. shlibpath_var=LIBPATH
  12757. # AIX 3 has no versioning support, so we append a major version to the name.
  12758. soname_spec='${libname}${release}${shared_ext}$major'
  12759. ;;
  12760. aix4* | aix5*)
  12761. version_type=linux
  12762. need_lib_prefix=no
  12763. need_version=no
  12764. hardcode_into_libs=yes
  12765. if test "$host_cpu" = ia64; then
  12766. # AIX 5 supports IA64
  12767. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12768. shlibpath_var=LD_LIBRARY_PATH
  12769. else
  12770. # With GCC up to 2.95.x, collect2 would create an import file
  12771. # for dependence libraries. The import file would start with
  12772. # the line `#! .'. This would cause the generated library to
  12773. # depend on `.', always an invalid library. This was fixed in
  12774. # development snapshots of GCC prior to 3.0.
  12775. case $host_os in
  12776. aix4 | aix4.[01] | aix4.[01].*)
  12777. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12778. echo ' yes '
  12779. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  12780. :
  12781. else
  12782. can_build_shared=no
  12783. fi
  12784. ;;
  12785. esac
  12786. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12787. # soname into executable. Probably we can add versioning support to
  12788. # collect2, so additional links can be useful in future.
  12789. if test "$aix_use_runtimelinking" = yes; then
  12790. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12791. # instead of lib<name>.a to let people know that these are not
  12792. # typical AIX shared libraries.
  12793. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12794. else
  12795. # We preserve .a as extension for shared libraries through AIX4.2
  12796. # and later when we are not doing run time linking.
  12797. library_names_spec='${libname}${release}.a $libname.a'
  12798. soname_spec='${libname}${release}${shared_ext}$major'
  12799. fi
  12800. shlibpath_var=LIBPATH
  12801. fi
  12802. ;;
  12803. amigaos*)
  12804. library_names_spec='$libname.ixlibrary $libname.a'
  12805. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12806. 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'
  12807. ;;
  12808. beos*)
  12809. library_names_spec='${libname}${shared_ext}'
  12810. dynamic_linker="$host_os ld.so"
  12811. shlibpath_var=LIBRARY_PATH
  12812. ;;
  12813. bsdi[45]*)
  12814. version_type=linux
  12815. need_version=no
  12816. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12817. soname_spec='${libname}${release}${shared_ext}$major'
  12818. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12819. shlibpath_var=LD_LIBRARY_PATH
  12820. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12821. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12822. # the default ld.so.conf also contains /usr/contrib/lib and
  12823. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12824. # libtool to hard-code these into programs
  12825. ;;
  12826. cygwin* | mingw* | pw32*)
  12827. version_type=windows
  12828. shrext_cmds=".dll"
  12829. need_version=no
  12830. need_lib_prefix=no
  12831. case $GCC,$host_os in
  12832. yes,cygwin* | yes,mingw* | yes,pw32*)
  12833. library_names_spec='$libname.dll.a'
  12834. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12835. postinstall_cmds='base_file=`basename \${file}`~
  12836. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  12837. dldir=$destdir/`dirname \$dlpath`~
  12838. test -d \$dldir || mkdir -p \$dldir~
  12839. $install_prog $dir/$dlname \$dldir/$dlname'
  12840. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12841. dlpath=$dir/\$dldll~
  12842. $rm \$dlpath'
  12843. shlibpath_overrides_runpath=yes
  12844. case $host_os in
  12845. cygwin*)
  12846. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12847. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12848. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  12849. ;;
  12850. mingw*)
  12851. # MinGW DLLs use traditional 'lib' prefix
  12852. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12853. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  12854. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  12855. # It is most probably a Windows format PATH printed by
  12856. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  12857. # path with ; separators, and with drive letters. We can handle the
  12858. # drive letters (cygwin fileutils understands them), so leave them,
  12859. # especially as we might pass files found there to a mingw objdump,
  12860. # which wouldn't understand a cygwinified path. Ahh.
  12861. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12862. else
  12863. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12864. fi
  12865. ;;
  12866. pw32*)
  12867. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12868. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12869. ;;
  12870. esac
  12871. ;;
  12872. *)
  12873. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12874. ;;
  12875. esac
  12876. dynamic_linker='Win32 ld.exe'
  12877. # FIXME: first we should search . and the directory the executable is in
  12878. shlibpath_var=PATH
  12879. ;;
  12880. darwin* | rhapsody*)
  12881. dynamic_linker="$host_os dyld"
  12882. version_type=darwin
  12883. need_lib_prefix=no
  12884. need_version=no
  12885. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12886. soname_spec='${libname}${release}${major}$shared_ext'
  12887. shlibpath_overrides_runpath=yes
  12888. shlibpath_var=DYLD_LIBRARY_PATH
  12889. shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  12890. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  12891. if test "$GCC" = yes; then
  12892. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  12893. else
  12894. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  12895. fi
  12896. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12897. ;;
  12898. dgux*)
  12899. version_type=linux
  12900. need_lib_prefix=no
  12901. need_version=no
  12902. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12903. soname_spec='${libname}${release}${shared_ext}$major'
  12904. shlibpath_var=LD_LIBRARY_PATH
  12905. ;;
  12906. freebsd1*)
  12907. dynamic_linker=no
  12908. ;;
  12909. kfreebsd*-gnu)
  12910. version_type=linux
  12911. need_lib_prefix=no
  12912. need_version=no
  12913. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12914. soname_spec='${libname}${release}${shared_ext}$major'
  12915. shlibpath_var=LD_LIBRARY_PATH
  12916. shlibpath_overrides_runpath=no
  12917. hardcode_into_libs=yes
  12918. dynamic_linker='GNU ld.so'
  12919. ;;
  12920. freebsd* | dragonfly*)
  12921. # DragonFly does not have aout. When/if they implement a new
  12922. # versioning mechanism, adjust this.
  12923. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  12924. version_type=freebsd-$objformat
  12925. case $version_type in
  12926. freebsd-elf*)
  12927. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12928. need_version=no
  12929. need_lib_prefix=no
  12930. ;;
  12931. freebsd-*)
  12932. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12933. need_version=yes
  12934. ;;
  12935. esac
  12936. shlibpath_var=LD_LIBRARY_PATH
  12937. case $host_os in
  12938. freebsd2*)
  12939. shlibpath_overrides_runpath=yes
  12940. ;;
  12941. freebsd3.[01]* | freebsdelf3.[01]*)
  12942. shlibpath_overrides_runpath=yes
  12943. hardcode_into_libs=yes
  12944. ;;
  12945. *) # from 3.2 on
  12946. shlibpath_overrides_runpath=no
  12947. hardcode_into_libs=yes
  12948. ;;
  12949. esac
  12950. ;;
  12951. gnu*)
  12952. version_type=linux
  12953. need_lib_prefix=no
  12954. need_version=no
  12955. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12956. soname_spec='${libname}${release}${shared_ext}$major'
  12957. shlibpath_var=LD_LIBRARY_PATH
  12958. hardcode_into_libs=yes
  12959. ;;
  12960. hpux9* | hpux10* | hpux11*)
  12961. # Give a soname corresponding to the major version so that dld.sl refuses to
  12962. # link against other versions.
  12963. version_type=sunos
  12964. need_lib_prefix=no
  12965. need_version=no
  12966. case "$host_cpu" in
  12967. ia64*)
  12968. shrext_cmds='.so'
  12969. hardcode_into_libs=yes
  12970. dynamic_linker="$host_os dld.so"
  12971. shlibpath_var=LD_LIBRARY_PATH
  12972. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12973. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12974. soname_spec='${libname}${release}${shared_ext}$major'
  12975. if test "X$HPUX_IA64_MODE" = X32; then
  12976. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12977. else
  12978. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12979. fi
  12980. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12981. ;;
  12982. hppa*64*)
  12983. shrext_cmds='.sl'
  12984. hardcode_into_libs=yes
  12985. dynamic_linker="$host_os dld.sl"
  12986. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12987. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12988. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12989. soname_spec='${libname}${release}${shared_ext}$major'
  12990. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12991. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12992. ;;
  12993. *)
  12994. shrext_cmds='.sl'
  12995. dynamic_linker="$host_os dld.sl"
  12996. shlibpath_var=SHLIB_PATH
  12997. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12998. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12999. soname_spec='${libname}${release}${shared_ext}$major'
  13000. ;;
  13001. esac
  13002. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  13003. postinstall_cmds='chmod 555 $lib'
  13004. ;;
  13005. irix5* | irix6* | nonstopux*)
  13006. case $host_os in
  13007. nonstopux*) version_type=nonstopux ;;
  13008. *)
  13009. if test "$lt_cv_prog_gnu_ld" = yes; then
  13010. version_type=linux
  13011. else
  13012. version_type=irix
  13013. fi ;;
  13014. esac
  13015. need_lib_prefix=no
  13016. need_version=no
  13017. soname_spec='${libname}${release}${shared_ext}$major'
  13018. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13019. case $host_os in
  13020. irix5* | nonstopux*)
  13021. libsuff= shlibsuff=
  13022. ;;
  13023. *)
  13024. case $LD in # libtool.m4 will add one of these switches to LD
  13025. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13026. libsuff= shlibsuff= libmagic=32-bit;;
  13027. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13028. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13029. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13030. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13031. *) libsuff= shlibsuff= libmagic=never-match;;
  13032. esac
  13033. ;;
  13034. esac
  13035. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13036. shlibpath_overrides_runpath=no
  13037. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13038. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13039. hardcode_into_libs=yes
  13040. ;;
  13041. # No shared lib support for Linux oldld, aout, or coff.
  13042. linux*oldld* | linux*aout* | linux*coff*)
  13043. dynamic_linker=no
  13044. ;;
  13045. # This must be Linux ELF.
  13046. linux*)
  13047. version_type=linux
  13048. need_lib_prefix=no
  13049. need_version=no
  13050. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13051. soname_spec='${libname}${release}${shared_ext}$major'
  13052. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13053. shlibpath_var=LD_LIBRARY_PATH
  13054. shlibpath_overrides_runpath=no
  13055. # This implies no fast_install, which is unacceptable.
  13056. # Some rework will be needed to allow for fast_install
  13057. # before this can be enabled.
  13058. hardcode_into_libs=yes
  13059. # Append ld.so.conf contents to the search path
  13060. if test -f /etc/ld.so.conf; then
  13061. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  13062. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13063. fi
  13064. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13065. # powerpc, because MkLinux only supported shared libraries with the
  13066. # GNU dynamic linker. Since this was broken with cross compilers,
  13067. # most powerpc-linux boxes support dynamic linking these days and
  13068. # people can always --disable-shared, the test was removed, and we
  13069. # assume the GNU/Linux dynamic linker is in use.
  13070. dynamic_linker='GNU/Linux ld.so'
  13071. ;;
  13072. knetbsd*-gnu)
  13073. version_type=linux
  13074. need_lib_prefix=no
  13075. need_version=no
  13076. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13077. soname_spec='${libname}${release}${shared_ext}$major'
  13078. shlibpath_var=LD_LIBRARY_PATH
  13079. shlibpath_overrides_runpath=no
  13080. hardcode_into_libs=yes
  13081. dynamic_linker='GNU ld.so'
  13082. ;;
  13083. netbsd*)
  13084. version_type=sunos
  13085. need_lib_prefix=no
  13086. need_version=no
  13087. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13088. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13089. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13090. dynamic_linker='NetBSD (a.out) ld.so'
  13091. else
  13092. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13093. soname_spec='${libname}${release}${shared_ext}$major'
  13094. dynamic_linker='NetBSD ld.elf_so'
  13095. fi
  13096. shlibpath_var=LD_LIBRARY_PATH
  13097. shlibpath_overrides_runpath=yes
  13098. hardcode_into_libs=yes
  13099. ;;
  13100. newsos6)
  13101. version_type=linux
  13102. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13103. shlibpath_var=LD_LIBRARY_PATH
  13104. shlibpath_overrides_runpath=yes
  13105. ;;
  13106. nto-qnx*)
  13107. version_type=linux
  13108. need_lib_prefix=no
  13109. need_version=no
  13110. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13111. soname_spec='${libname}${release}${shared_ext}$major'
  13112. shlibpath_var=LD_LIBRARY_PATH
  13113. shlibpath_overrides_runpath=yes
  13114. ;;
  13115. openbsd*)
  13116. version_type=sunos
  13117. need_lib_prefix=no
  13118. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13119. case $host_os in
  13120. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13121. *) need_version=no ;;
  13122. esac
  13123. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13124. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13125. shlibpath_var=LD_LIBRARY_PATH
  13126. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13127. case $host_os in
  13128. openbsd2.[89] | openbsd2.[89].*)
  13129. shlibpath_overrides_runpath=no
  13130. ;;
  13131. *)
  13132. shlibpath_overrides_runpath=yes
  13133. ;;
  13134. esac
  13135. else
  13136. shlibpath_overrides_runpath=yes
  13137. fi
  13138. ;;
  13139. os2*)
  13140. libname_spec='$name'
  13141. shrext_cmds=".dll"
  13142. need_lib_prefix=no
  13143. library_names_spec='$libname${shared_ext} $libname.a'
  13144. dynamic_linker='OS/2 ld.exe'
  13145. shlibpath_var=LIBPATH
  13146. ;;
  13147. osf3* | osf4* | osf5*)
  13148. version_type=osf
  13149. need_lib_prefix=no
  13150. need_version=no
  13151. soname_spec='${libname}${release}${shared_ext}$major'
  13152. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13153. shlibpath_var=LD_LIBRARY_PATH
  13154. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13155. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13156. ;;
  13157. sco3.2v5*)
  13158. version_type=osf
  13159. soname_spec='${libname}${release}${shared_ext}$major'
  13160. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13161. shlibpath_var=LD_LIBRARY_PATH
  13162. ;;
  13163. solaris*)
  13164. version_type=linux
  13165. need_lib_prefix=no
  13166. need_version=no
  13167. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13168. soname_spec='${libname}${release}${shared_ext}$major'
  13169. shlibpath_var=LD_LIBRARY_PATH
  13170. shlibpath_overrides_runpath=yes
  13171. hardcode_into_libs=yes
  13172. # ldd complains unless libraries are executable
  13173. postinstall_cmds='chmod +x $lib'
  13174. ;;
  13175. sunos4*)
  13176. version_type=sunos
  13177. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13178. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13179. shlibpath_var=LD_LIBRARY_PATH
  13180. shlibpath_overrides_runpath=yes
  13181. if test "$with_gnu_ld" = yes; then
  13182. need_lib_prefix=no
  13183. fi
  13184. need_version=yes
  13185. ;;
  13186. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  13187. version_type=linux
  13188. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13189. soname_spec='${libname}${release}${shared_ext}$major'
  13190. shlibpath_var=LD_LIBRARY_PATH
  13191. case $host_vendor in
  13192. sni)
  13193. shlibpath_overrides_runpath=no
  13194. need_lib_prefix=no
  13195. export_dynamic_flag_spec='${wl}-Blargedynsym'
  13196. runpath_var=LD_RUN_PATH
  13197. ;;
  13198. siemens)
  13199. need_lib_prefix=no
  13200. ;;
  13201. motorola)
  13202. need_lib_prefix=no
  13203. need_version=no
  13204. shlibpath_overrides_runpath=no
  13205. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13206. ;;
  13207. esac
  13208. ;;
  13209. sysv4*MP*)
  13210. if test -d /usr/nec ;then
  13211. version_type=linux
  13212. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13213. soname_spec='$libname${shared_ext}.$major'
  13214. shlibpath_var=LD_LIBRARY_PATH
  13215. fi
  13216. ;;
  13217. uts4*)
  13218. version_type=linux
  13219. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13220. soname_spec='${libname}${release}${shared_ext}$major'
  13221. shlibpath_var=LD_LIBRARY_PATH
  13222. ;;
  13223. *)
  13224. dynamic_linker=no
  13225. ;;
  13226. esac
  13227. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  13228. echo "${ECHO_T}$dynamic_linker" >&6
  13229. test "$dynamic_linker" = no && can_build_shared=no
  13230. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  13231. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  13232. hardcode_action_F77=
  13233. if test -n "$hardcode_libdir_flag_spec_F77" || \
  13234. test -n "$runpath_var_F77" || \
  13235. test "X$hardcode_automatic_F77" = "Xyes" ; then
  13236. # We can hardcode non-existant directories.
  13237. if test "$hardcode_direct_F77" != no &&
  13238. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13239. # have to relink, otherwise we might link with an installed library
  13240. # when we should be linking with a yet-to-be-installed one
  13241. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  13242. test "$hardcode_minus_L_F77" != no; then
  13243. # Linking always hardcodes the temporary library directory.
  13244. hardcode_action_F77=relink
  13245. else
  13246. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13247. hardcode_action_F77=immediate
  13248. fi
  13249. else
  13250. # We cannot hardcode anything, or else we can only hardcode existing
  13251. # directories.
  13252. hardcode_action_F77=unsupported
  13253. fi
  13254. echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  13255. echo "${ECHO_T}$hardcode_action_F77" >&6
  13256. if test "$hardcode_action_F77" = relink; then
  13257. # Fast installation is not supported
  13258. enable_fast_install=no
  13259. elif test "$shlibpath_overrides_runpath" = yes ||
  13260. test "$enable_shared" = no; then
  13261. # Fast installation is not necessary
  13262. enable_fast_install=needless
  13263. fi
  13264. striplib=
  13265. old_striplib=
  13266. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  13267. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  13268. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  13269. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  13270. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  13271. echo "$as_me:$LINENO: result: yes" >&5
  13272. echo "${ECHO_T}yes" >&6
  13273. else
  13274. # FIXME - insert some real tests, host_os isn't really good enough
  13275. case $host_os in
  13276. darwin*)
  13277. if test -n "$STRIP" ; then
  13278. striplib="$STRIP -x"
  13279. echo "$as_me:$LINENO: result: yes" >&5
  13280. echo "${ECHO_T}yes" >&6
  13281. else
  13282. echo "$as_me:$LINENO: result: no" >&5
  13283. echo "${ECHO_T}no" >&6
  13284. fi
  13285. ;;
  13286. *)
  13287. echo "$as_me:$LINENO: result: no" >&5
  13288. echo "${ECHO_T}no" >&6
  13289. ;;
  13290. esac
  13291. fi
  13292. # The else clause should only fire when bootstrapping the
  13293. # libtool distribution, otherwise you forgot to ship ltmain.sh
  13294. # with your package, and you will get complaints that there are
  13295. # no rules to generate ltmain.sh.
  13296. if test -f "$ltmain"; then
  13297. # See if we are running on zsh, and set the options which allow our commands through
  13298. # without removal of \ escapes.
  13299. if test -n "${ZSH_VERSION+set}" ; then
  13300. setopt NO_GLOB_SUBST
  13301. fi
  13302. # Now quote all the things that may contain metacharacters while being
  13303. # careful not to overquote the AC_SUBSTed values. We take copies of the
  13304. # variables and quote the copies for generation of the libtool script.
  13305. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  13306. SED SHELL STRIP \
  13307. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  13308. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  13309. deplibs_check_method reload_flag reload_cmds need_locks \
  13310. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  13311. lt_cv_sys_global_symbol_to_c_name_address \
  13312. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  13313. old_postinstall_cmds old_postuninstall_cmds \
  13314. compiler_F77 \
  13315. CC_F77 \
  13316. LD_F77 \
  13317. lt_prog_compiler_wl_F77 \
  13318. lt_prog_compiler_pic_F77 \
  13319. lt_prog_compiler_static_F77 \
  13320. lt_prog_compiler_no_builtin_flag_F77 \
  13321. export_dynamic_flag_spec_F77 \
  13322. thread_safe_flag_spec_F77 \
  13323. whole_archive_flag_spec_F77 \
  13324. enable_shared_with_static_runtimes_F77 \
  13325. old_archive_cmds_F77 \
  13326. old_archive_from_new_cmds_F77 \
  13327. predep_objects_F77 \
  13328. postdep_objects_F77 \
  13329. predeps_F77 \
  13330. postdeps_F77 \
  13331. compiler_lib_search_path_F77 \
  13332. archive_cmds_F77 \
  13333. archive_expsym_cmds_F77 \
  13334. postinstall_cmds_F77 \
  13335. postuninstall_cmds_F77 \
  13336. old_archive_from_expsyms_cmds_F77 \
  13337. allow_undefined_flag_F77 \
  13338. no_undefined_flag_F77 \
  13339. export_symbols_cmds_F77 \
  13340. hardcode_libdir_flag_spec_F77 \
  13341. hardcode_libdir_flag_spec_ld_F77 \
  13342. hardcode_libdir_separator_F77 \
  13343. hardcode_automatic_F77 \
  13344. module_cmds_F77 \
  13345. module_expsym_cmds_F77 \
  13346. lt_cv_prog_compiler_c_o_F77 \
  13347. exclude_expsyms_F77 \
  13348. include_expsyms_F77; do
  13349. case $var in
  13350. old_archive_cmds_F77 | \
  13351. old_archive_from_new_cmds_F77 | \
  13352. archive_cmds_F77 | \
  13353. archive_expsym_cmds_F77 | \
  13354. module_cmds_F77 | \
  13355. module_expsym_cmds_F77 | \
  13356. old_archive_from_expsyms_cmds_F77 | \
  13357. export_symbols_cmds_F77 | \
  13358. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  13359. postinstall_cmds | postuninstall_cmds | \
  13360. old_postinstall_cmds | old_postuninstall_cmds | \
  13361. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  13362. # Double-quote double-evaled strings.
  13363. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  13364. ;;
  13365. *)
  13366. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  13367. ;;
  13368. esac
  13369. done
  13370. case $lt_echo in
  13371. *'\$0 --fallback-echo"')
  13372. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  13373. ;;
  13374. esac
  13375. cfgfile="$ofile"
  13376. cat <<__EOF__ >> "$cfgfile"
  13377. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  13378. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  13379. # Shell to use when invoking shell scripts.
  13380. SHELL=$lt_SHELL
  13381. # Whether or not to build shared libraries.
  13382. build_libtool_libs=$enable_shared
  13383. # Whether or not to build static libraries.
  13384. build_old_libs=$enable_static
  13385. # Whether or not to add -lc for building shared libraries.
  13386. build_libtool_need_lc=$archive_cmds_need_lc_F77
  13387. # Whether or not to disallow shared libs when runtime libs are static
  13388. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  13389. # Whether or not to optimize for fast installation.
  13390. fast_install=$enable_fast_install
  13391. # The host system.
  13392. host_alias=$host_alias
  13393. host=$host
  13394. host_os=$host_os
  13395. # The build system.
  13396. build_alias=$build_alias
  13397. build=$build
  13398. build_os=$build_os
  13399. # An echo program that does not interpret backslashes.
  13400. echo=$lt_echo
  13401. # The archiver.
  13402. AR=$lt_AR
  13403. AR_FLAGS=$lt_AR_FLAGS
  13404. # A C compiler.
  13405. LTCC=$lt_LTCC
  13406. # A language-specific compiler.
  13407. CC=$lt_compiler_F77
  13408. # Is the compiler the GNU C compiler?
  13409. with_gcc=$GCC_F77
  13410. # An ERE matcher.
  13411. EGREP=$lt_EGREP
  13412. # The linker used to build libraries.
  13413. LD=$lt_LD_F77
  13414. # Whether we need hard or soft links.
  13415. LN_S=$lt_LN_S
  13416. # A BSD-compatible nm program.
  13417. NM=$lt_NM
  13418. # A symbol stripping program
  13419. STRIP=$lt_STRIP
  13420. # Used to examine libraries when file_magic_cmd begins "file"
  13421. MAGIC_CMD=$MAGIC_CMD
  13422. # Used on cygwin: DLL creation program.
  13423. DLLTOOL="$DLLTOOL"
  13424. # Used on cygwin: object dumper.
  13425. OBJDUMP="$OBJDUMP"
  13426. # Used on cygwin: assembler.
  13427. AS="$AS"
  13428. # The name of the directory that contains temporary libtool files.
  13429. objdir=$objdir
  13430. # How to create reloadable object files.
  13431. reload_flag=$lt_reload_flag
  13432. reload_cmds=$lt_reload_cmds
  13433. # How to pass a linker flag through the compiler.
  13434. wl=$lt_lt_prog_compiler_wl_F77
  13435. # Object file suffix (normally "o").
  13436. objext="$ac_objext"
  13437. # Old archive suffix (normally "a").
  13438. libext="$libext"
  13439. # Shared library suffix (normally ".so").
  13440. shrext_cmds='$shrext_cmds'
  13441. # Executable file suffix (normally "").
  13442. exeext="$exeext"
  13443. # Additional compiler flags for building library objects.
  13444. pic_flag=$lt_lt_prog_compiler_pic_F77
  13445. pic_mode=$pic_mode
  13446. # What is the maximum length of a command?
  13447. max_cmd_len=$lt_cv_sys_max_cmd_len
  13448. # Does compiler simultaneously support -c and -o options?
  13449. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  13450. # Must we lock files when doing compilation?
  13451. need_locks=$lt_need_locks
  13452. # Do we need the lib prefix for modules?
  13453. need_lib_prefix=$need_lib_prefix
  13454. # Do we need a version for libraries?
  13455. need_version=$need_version
  13456. # Whether dlopen is supported.
  13457. dlopen_support=$enable_dlopen
  13458. # Whether dlopen of programs is supported.
  13459. dlopen_self=$enable_dlopen_self
  13460. # Whether dlopen of statically linked programs is supported.
  13461. dlopen_self_static=$enable_dlopen_self_static
  13462. # Compiler flag to prevent dynamic linking.
  13463. link_static_flag=$lt_lt_prog_compiler_static_F77
  13464. # Compiler flag to turn off builtin functions.
  13465. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  13466. # Compiler flag to allow reflexive dlopens.
  13467. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  13468. # Compiler flag to generate shared objects directly from archives.
  13469. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  13470. # Compiler flag to generate thread-safe objects.
  13471. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  13472. # Library versioning type.
  13473. version_type=$version_type
  13474. # Format of library name prefix.
  13475. libname_spec=$lt_libname_spec
  13476. # List of archive names. First name is the real one, the rest are links.
  13477. # The last name is the one that the linker finds with -lNAME.
  13478. library_names_spec=$lt_library_names_spec
  13479. # The coded name of the library, if different from the real name.
  13480. soname_spec=$lt_soname_spec
  13481. # Commands used to build and install an old-style archive.
  13482. RANLIB=$lt_RANLIB
  13483. old_archive_cmds=$lt_old_archive_cmds_F77
  13484. old_postinstall_cmds=$lt_old_postinstall_cmds
  13485. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  13486. # Create an old-style archive from a shared archive.
  13487. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  13488. # Create a temporary old-style archive to link instead of a shared archive.
  13489. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  13490. # Commands used to build and install a shared archive.
  13491. archive_cmds=$lt_archive_cmds_F77
  13492. archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  13493. postinstall_cmds=$lt_postinstall_cmds
  13494. postuninstall_cmds=$lt_postuninstall_cmds
  13495. # Commands used to build a loadable module (assumed same as above if empty)
  13496. module_cmds=$lt_module_cmds_F77
  13497. module_expsym_cmds=$lt_module_expsym_cmds_F77
  13498. # Commands to strip libraries.
  13499. old_striplib=$lt_old_striplib
  13500. striplib=$lt_striplib
  13501. # Dependencies to place before the objects being linked to create a
  13502. # shared library.
  13503. predep_objects=$lt_predep_objects_F77
  13504. # Dependencies to place after the objects being linked to create a
  13505. # shared library.
  13506. postdep_objects=$lt_postdep_objects_F77
  13507. # Dependencies to place before the objects being linked to create a
  13508. # shared library.
  13509. predeps=$lt_predeps_F77
  13510. # Dependencies to place after the objects being linked to create a
  13511. # shared library.
  13512. postdeps=$lt_postdeps_F77
  13513. # The library search path used internally by the compiler when linking
  13514. # a shared library.
  13515. compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  13516. # Method to check whether dependent libraries are shared objects.
  13517. deplibs_check_method=$lt_deplibs_check_method
  13518. # Command to use when deplibs_check_method == file_magic.
  13519. file_magic_cmd=$lt_file_magic_cmd
  13520. # Flag that allows shared libraries with undefined symbols to be built.
  13521. allow_undefined_flag=$lt_allow_undefined_flag_F77
  13522. # Flag that forces no undefined symbols.
  13523. no_undefined_flag=$lt_no_undefined_flag_F77
  13524. # Commands used to finish a libtool library installation in a directory.
  13525. finish_cmds=$lt_finish_cmds
  13526. # Same as above, but a single script fragment to be evaled but not shown.
  13527. finish_eval=$lt_finish_eval
  13528. # Take the output of nm and produce a listing of raw symbols and C names.
  13529. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  13530. # Transform the output of nm in a proper C declaration
  13531. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  13532. # Transform the output of nm in a C name address pair
  13533. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  13534. # This is the shared library runtime path variable.
  13535. runpath_var=$runpath_var
  13536. # This is the shared library path variable.
  13537. shlibpath_var=$shlibpath_var
  13538. # Is shlibpath searched before the hard-coded library search path?
  13539. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  13540. # How to hardcode a shared library path into an executable.
  13541. hardcode_action=$hardcode_action_F77
  13542. # Whether we should hardcode library paths into libraries.
  13543. hardcode_into_libs=$hardcode_into_libs
  13544. # Flag to hardcode \$libdir into a binary during linking.
  13545. # This must work even if \$libdir does not exist.
  13546. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  13547. # If ld is used when linking, flag to hardcode \$libdir into
  13548. # a binary during linking. This must work even if \$libdir does
  13549. # not exist.
  13550. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  13551. # Whether we need a single -rpath flag with a separated argument.
  13552. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  13553. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  13554. # resulting binary.
  13555. hardcode_direct=$hardcode_direct_F77
  13556. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  13557. # resulting binary.
  13558. hardcode_minus_L=$hardcode_minus_L_F77
  13559. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  13560. # the resulting binary.
  13561. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  13562. # Set to yes if building a shared library automatically hardcodes DIR into the library
  13563. # and all subsequent libraries and executables linked against it.
  13564. hardcode_automatic=$hardcode_automatic_F77
  13565. # Variables whose values should be saved in libtool wrapper scripts and
  13566. # restored at relink time.
  13567. variables_saved_for_relink="$variables_saved_for_relink"
  13568. # Whether libtool must link a program against all its dependency libraries.
  13569. link_all_deplibs=$link_all_deplibs_F77
  13570. # Compile-time system search path for libraries
  13571. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  13572. # Run-time system search path for libraries
  13573. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  13574. # Fix the shell variable \$srcfile for the compiler.
  13575. fix_srcfile_path="$fix_srcfile_path_F77"
  13576. # Set to yes if exported symbols are required.
  13577. always_export_symbols=$always_export_symbols_F77
  13578. # The commands to list exported symbols.
  13579. export_symbols_cmds=$lt_export_symbols_cmds_F77
  13580. # The commands to extract the exported symbol list from a shared archive.
  13581. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  13582. # Symbols that should not be listed in the preloaded symbols.
  13583. exclude_expsyms=$lt_exclude_expsyms_F77
  13584. # Symbols that must always be exported.
  13585. include_expsyms=$lt_include_expsyms_F77
  13586. # ### END LIBTOOL TAG CONFIG: $tagname
  13587. __EOF__
  13588. else
  13589. # If there is no Makefile yet, we rely on a make rule to execute
  13590. # `config.status --recheck' to rerun these tests and create the
  13591. # libtool script then.
  13592. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  13593. if test -f "$ltmain_in"; then
  13594. test -f Makefile && make "$ltmain"
  13595. fi
  13596. fi
  13597. ac_ext=c
  13598. ac_cpp='$CPP $CPPFLAGS'
  13599. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13600. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13601. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13602. CC="$lt_save_CC"
  13603. else
  13604. tagname=""
  13605. fi
  13606. ;;
  13607. GCJ)
  13608. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  13609. # Source file extension for Java test sources.
  13610. ac_ext=java
  13611. # Object file extension for compiled Java test sources.
  13612. objext=o
  13613. objext_GCJ=$objext
  13614. # Code to be used in simple compile tests
  13615. lt_simple_compile_test_code="class foo {}\n"
  13616. # Code to be used in simple link tests
  13617. lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  13618. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  13619. # If no C compiler was specified, use CC.
  13620. LTCC=${LTCC-"$CC"}
  13621. # Allow CC to be a program name with arguments.
  13622. compiler=$CC
  13623. # save warnings/boilerplate of simple test code
  13624. ac_outfile=conftest.$ac_objext
  13625. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  13626. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  13627. _lt_compiler_boilerplate=`cat conftest.err`
  13628. $rm conftest*
  13629. ac_outfile=conftest.$ac_objext
  13630. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  13631. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  13632. _lt_linker_boilerplate=`cat conftest.err`
  13633. $rm conftest*
  13634. # Allow CC to be a program name with arguments.
  13635. lt_save_CC="$CC"
  13636. CC=${GCJ-"gcj"}
  13637. compiler=$CC
  13638. compiler_GCJ=$CC
  13639. for cc_temp in $compiler""; do
  13640. case $cc_temp in
  13641. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  13642. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  13643. \-*) ;;
  13644. *) break;;
  13645. esac
  13646. done
  13647. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  13648. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  13649. archive_cmds_need_lc_GCJ=no
  13650. old_archive_cmds_GCJ=$old_archive_cmds
  13651. lt_prog_compiler_no_builtin_flag_GCJ=
  13652. if test "$GCC" = yes; then
  13653. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  13654. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  13655. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  13656. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  13657. echo $ECHO_N "(cached) $ECHO_C" >&6
  13658. else
  13659. lt_cv_prog_compiler_rtti_exceptions=no
  13660. ac_outfile=conftest.$ac_objext
  13661. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13662. lt_compiler_flag="-fno-rtti -fno-exceptions"
  13663. # Insert the option either (1) after the last *FLAGS variable, or
  13664. # (2) before a word containing "conftest.", or (3) at the end.
  13665. # Note that $ac_compile itself does not contain backslashes and begins
  13666. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13667. # The option is referenced via a variable to avoid confusing sed.
  13668. lt_compile=`echo "$ac_compile" | $SED \
  13669. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  13670. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13671. -e 's:$: $lt_compiler_flag:'`
  13672. (eval echo "\"\$as_me:15214: $lt_compile\"" >&5)
  13673. (eval "$lt_compile" 2>conftest.err)
  13674. ac_status=$?
  13675. cat conftest.err >&5
  13676. echo "$as_me:15218: \$? = $ac_status" >&5
  13677. if (exit $ac_status) && test -s "$ac_outfile"; then
  13678. # The compiler can only warn and ignore the option if not recognized
  13679. # So say no if there are warnings other than the usual output.
  13680. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  13681. $SED '/^$/d' conftest.err >conftest.er2
  13682. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  13683. lt_cv_prog_compiler_rtti_exceptions=yes
  13684. fi
  13685. fi
  13686. $rm conftest*
  13687. fi
  13688. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  13689. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  13690. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  13691. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  13692. else
  13693. :
  13694. fi
  13695. fi
  13696. lt_prog_compiler_wl_GCJ=
  13697. lt_prog_compiler_pic_GCJ=
  13698. lt_prog_compiler_static_GCJ=
  13699. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  13700. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  13701. if test "$GCC" = yes; then
  13702. lt_prog_compiler_wl_GCJ='-Wl,'
  13703. lt_prog_compiler_static_GCJ='-static'
  13704. case $host_os in
  13705. aix*)
  13706. # All AIX code is PIC.
  13707. if test "$host_cpu" = ia64; then
  13708. # AIX 5 now supports IA64 processor
  13709. lt_prog_compiler_static_GCJ='-Bstatic'
  13710. fi
  13711. ;;
  13712. amigaos*)
  13713. # FIXME: we need at least 68020 code to build shared libraries, but
  13714. # adding the `-m68020' flag to GCC prevents building anything better,
  13715. # like `-m68040'.
  13716. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  13717. ;;
  13718. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13719. # PIC is the default for these OSes.
  13720. ;;
  13721. mingw* | pw32* | os2*)
  13722. # This hack is so that the source file can tell whether it is being
  13723. # built for inclusion in a dll (and should export symbols for example).
  13724. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  13725. ;;
  13726. darwin* | rhapsody*)
  13727. # PIC is the default on this platform
  13728. # Common symbols not allowed in MH_DYLIB files
  13729. lt_prog_compiler_pic_GCJ='-fno-common'
  13730. ;;
  13731. msdosdjgpp*)
  13732. # Just because we use GCC doesn't mean we suddenly get shared libraries
  13733. # on systems that don't support them.
  13734. lt_prog_compiler_can_build_shared_GCJ=no
  13735. enable_shared=no
  13736. ;;
  13737. sysv4*MP*)
  13738. if test -d /usr/nec; then
  13739. lt_prog_compiler_pic_GCJ=-Kconform_pic
  13740. fi
  13741. ;;
  13742. hpux*)
  13743. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  13744. # not for PA HP-UX.
  13745. case "$host_cpu" in
  13746. hppa*64*|ia64*)
  13747. # +Z the default
  13748. ;;
  13749. *)
  13750. lt_prog_compiler_pic_GCJ='-fPIC'
  13751. ;;
  13752. esac
  13753. ;;
  13754. *)
  13755. lt_prog_compiler_pic_GCJ='-fPIC'
  13756. ;;
  13757. esac
  13758. else
  13759. # PORTME Check for flag to pass linker flags through the system compiler.
  13760. case $host_os in
  13761. aix*)
  13762. lt_prog_compiler_wl_GCJ='-Wl,'
  13763. if test "$host_cpu" = ia64; then
  13764. # AIX 5 now supports IA64 processor
  13765. lt_prog_compiler_static_GCJ='-Bstatic'
  13766. else
  13767. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  13768. fi
  13769. ;;
  13770. darwin*)
  13771. # PIC is the default on this platform
  13772. # Common symbols not allowed in MH_DYLIB files
  13773. case $cc_basename in
  13774. xlc*)
  13775. lt_prog_compiler_pic_GCJ='-qnocommon'
  13776. lt_prog_compiler_wl_GCJ='-Wl,'
  13777. ;;
  13778. esac
  13779. ;;
  13780. mingw* | pw32* | os2*)
  13781. # This hack is so that the source file can tell whether it is being
  13782. # built for inclusion in a dll (and should export symbols for example).
  13783. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  13784. ;;
  13785. hpux9* | hpux10* | hpux11*)
  13786. lt_prog_compiler_wl_GCJ='-Wl,'
  13787. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  13788. # not for PA HP-UX.
  13789. case "$host_cpu" in
  13790. hppa*64*|ia64*)
  13791. # +Z the default
  13792. ;;
  13793. *)
  13794. lt_prog_compiler_pic_GCJ='+Z'
  13795. ;;
  13796. esac
  13797. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  13798. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  13799. ;;
  13800. irix5* | irix6* | nonstopux*)
  13801. lt_prog_compiler_wl_GCJ='-Wl,'
  13802. # PIC (with -KPIC) is the default.
  13803. lt_prog_compiler_static_GCJ='-non_shared'
  13804. ;;
  13805. newsos6)
  13806. lt_prog_compiler_pic_GCJ='-KPIC'
  13807. lt_prog_compiler_static_GCJ='-Bstatic'
  13808. ;;
  13809. linux*)
  13810. case $cc_basename in
  13811. icc* | ecc*)
  13812. lt_prog_compiler_wl_GCJ='-Wl,'
  13813. lt_prog_compiler_pic_GCJ='-KPIC'
  13814. lt_prog_compiler_static_GCJ='-static'
  13815. ;;
  13816. pgcc* | pgf77* | pgf90*)
  13817. # Portland Group compilers (*not* the Pentium gcc compiler,
  13818. # which looks to be a dead project)
  13819. lt_prog_compiler_wl_GCJ='-Wl,'
  13820. lt_prog_compiler_pic_GCJ='-fpic'
  13821. lt_prog_compiler_static_GCJ='-static'
  13822. ;;
  13823. ccc*)
  13824. lt_prog_compiler_wl_GCJ='-Wl,'
  13825. # All Alpha code is PIC.
  13826. lt_prog_compiler_static_GCJ='-non_shared'
  13827. ;;
  13828. esac
  13829. ;;
  13830. osf3* | osf4* | osf5*)
  13831. lt_prog_compiler_wl_GCJ='-Wl,'
  13832. # All OSF/1 code is PIC.
  13833. lt_prog_compiler_static_GCJ='-non_shared'
  13834. ;;
  13835. sco3.2v5*)
  13836. lt_prog_compiler_pic_GCJ='-Kpic'
  13837. lt_prog_compiler_static_GCJ='-dn'
  13838. ;;
  13839. solaris*)
  13840. lt_prog_compiler_pic_GCJ='-KPIC'
  13841. lt_prog_compiler_static_GCJ='-Bstatic'
  13842. case $cc_basename in
  13843. f77* | f90* | f95*)
  13844. lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  13845. *)
  13846. lt_prog_compiler_wl_GCJ='-Wl,';;
  13847. esac
  13848. ;;
  13849. sunos4*)
  13850. lt_prog_compiler_wl_GCJ='-Qoption ld '
  13851. lt_prog_compiler_pic_GCJ='-PIC'
  13852. lt_prog_compiler_static_GCJ='-Bstatic'
  13853. ;;
  13854. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  13855. lt_prog_compiler_wl_GCJ='-Wl,'
  13856. lt_prog_compiler_pic_GCJ='-KPIC'
  13857. lt_prog_compiler_static_GCJ='-Bstatic'
  13858. ;;
  13859. sysv4*MP*)
  13860. if test -d /usr/nec ;then
  13861. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  13862. lt_prog_compiler_static_GCJ='-Bstatic'
  13863. fi
  13864. ;;
  13865. unicos*)
  13866. lt_prog_compiler_wl_GCJ='-Wl,'
  13867. lt_prog_compiler_can_build_shared_GCJ=no
  13868. ;;
  13869. uts4*)
  13870. lt_prog_compiler_pic_GCJ='-pic'
  13871. lt_prog_compiler_static_GCJ='-Bstatic'
  13872. ;;
  13873. *)
  13874. lt_prog_compiler_can_build_shared_GCJ=no
  13875. ;;
  13876. esac
  13877. fi
  13878. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  13879. echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
  13880. #
  13881. # Check to make sure the PIC flag actually works.
  13882. #
  13883. if test -n "$lt_prog_compiler_pic_GCJ"; then
  13884. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  13885. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
  13886. if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  13887. echo $ECHO_N "(cached) $ECHO_C" >&6
  13888. else
  13889. lt_prog_compiler_pic_works_GCJ=no
  13890. ac_outfile=conftest.$ac_objext
  13891. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13892. lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  13893. # Insert the option either (1) after the last *FLAGS variable, or
  13894. # (2) before a word containing "conftest.", or (3) at the end.
  13895. # Note that $ac_compile itself does not contain backslashes and begins
  13896. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13897. # The option is referenced via a variable to avoid confusing sed.
  13898. lt_compile=`echo "$ac_compile" | $SED \
  13899. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  13900. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13901. -e 's:$: $lt_compiler_flag:'`
  13902. (eval echo "\"\$as_me:15476: $lt_compile\"" >&5)
  13903. (eval "$lt_compile" 2>conftest.err)
  13904. ac_status=$?
  13905. cat conftest.err >&5
  13906. echo "$as_me:15480: \$? = $ac_status" >&5
  13907. if (exit $ac_status) && test -s "$ac_outfile"; then
  13908. # The compiler can only warn and ignore the option if not recognized
  13909. # So say no if there are warnings other than the usual output.
  13910. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  13911. $SED '/^$/d' conftest.err >conftest.er2
  13912. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  13913. lt_prog_compiler_pic_works_GCJ=yes
  13914. fi
  13915. fi
  13916. $rm conftest*
  13917. fi
  13918. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  13919. echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
  13920. if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  13921. case $lt_prog_compiler_pic_GCJ in
  13922. "" | " "*) ;;
  13923. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  13924. esac
  13925. else
  13926. lt_prog_compiler_pic_GCJ=
  13927. lt_prog_compiler_can_build_shared_GCJ=no
  13928. fi
  13929. fi
  13930. case "$host_os" in
  13931. # For platforms which do not support PIC, -DPIC is meaningless:
  13932. *djgpp*)
  13933. lt_prog_compiler_pic_GCJ=
  13934. ;;
  13935. *)
  13936. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  13937. ;;
  13938. esac
  13939. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  13940. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  13941. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  13942. echo $ECHO_N "(cached) $ECHO_C" >&6
  13943. else
  13944. lt_cv_prog_compiler_c_o_GCJ=no
  13945. $rm -r conftest 2>/dev/null
  13946. mkdir conftest
  13947. cd conftest
  13948. mkdir out
  13949. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13950. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13951. # Insert the option either (1) after the last *FLAGS variable, or
  13952. # (2) before a word containing "conftest.", or (3) at the end.
  13953. # Note that $ac_compile itself does not contain backslashes and begins
  13954. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13955. lt_compile=`echo "$ac_compile" | $SED \
  13956. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  13957. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13958. -e 's:$: $lt_compiler_flag:'`
  13959. (eval echo "\"\$as_me:15538: $lt_compile\"" >&5)
  13960. (eval "$lt_compile" 2>out/conftest.err)
  13961. ac_status=$?
  13962. cat out/conftest.err >&5
  13963. echo "$as_me:15542: \$? = $ac_status" >&5
  13964. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13965. then
  13966. # The compiler can only warn and ignore the option if not recognized
  13967. # So say no if there are warnings
  13968. $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
  13969. $SED '/^$/d' out/conftest.err >out/conftest.er2
  13970. if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13971. lt_cv_prog_compiler_c_o_GCJ=yes
  13972. fi
  13973. fi
  13974. chmod u+w .
  13975. $rm conftest*
  13976. # SGI C++ compiler will create directory out/ii_files/ for
  13977. # template instantiation
  13978. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  13979. $rm out/* && rmdir out
  13980. cd ..
  13981. rmdir conftest
  13982. $rm conftest*
  13983. fi
  13984. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  13985. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
  13986. hard_links="nottested"
  13987. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  13988. # do not overwrite the value of need_locks provided by the user
  13989. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  13990. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  13991. hard_links=yes
  13992. $rm conftest*
  13993. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13994. touch conftest.a
  13995. ln conftest.a conftest.b 2>&5 || hard_links=no
  13996. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13997. echo "$as_me:$LINENO: result: $hard_links" >&5
  13998. echo "${ECHO_T}$hard_links" >&6
  13999. if test "$hard_links" = no; then
  14000. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  14001. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  14002. need_locks=warn
  14003. fi
  14004. else
  14005. need_locks=no
  14006. fi
  14007. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14008. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  14009. runpath_var=
  14010. allow_undefined_flag_GCJ=
  14011. enable_shared_with_static_runtimes_GCJ=no
  14012. archive_cmds_GCJ=
  14013. archive_expsym_cmds_GCJ=
  14014. old_archive_From_new_cmds_GCJ=
  14015. old_archive_from_expsyms_cmds_GCJ=
  14016. export_dynamic_flag_spec_GCJ=
  14017. whole_archive_flag_spec_GCJ=
  14018. thread_safe_flag_spec_GCJ=
  14019. hardcode_libdir_flag_spec_GCJ=
  14020. hardcode_libdir_flag_spec_ld_GCJ=
  14021. hardcode_libdir_separator_GCJ=
  14022. hardcode_direct_GCJ=no
  14023. hardcode_minus_L_GCJ=no
  14024. hardcode_shlibpath_var_GCJ=unsupported
  14025. link_all_deplibs_GCJ=unknown
  14026. hardcode_automatic_GCJ=no
  14027. module_cmds_GCJ=
  14028. module_expsym_cmds_GCJ=
  14029. always_export_symbols_GCJ=no
  14030. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14031. # include_expsyms should be a list of space-separated symbols to be *always*
  14032. # included in the symbol list
  14033. include_expsyms_GCJ=
  14034. # exclude_expsyms can be an extended regexp of symbols to exclude
  14035. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  14036. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  14037. # as well as any symbol that contains `d'.
  14038. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  14039. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  14040. # platforms (ab)use it in PIC code, but their linkers get confused if
  14041. # the symbol is explicitly referenced. Since portable code cannot
  14042. # rely on this symbol name, it's probably fine to never include it in
  14043. # preloaded symbol tables.
  14044. extract_expsyms_cmds=
  14045. # Just being paranoid about ensuring that cc_basename is set.
  14046. for cc_temp in $compiler""; do
  14047. case $cc_temp in
  14048. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14049. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14050. \-*) ;;
  14051. *) break;;
  14052. esac
  14053. done
  14054. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14055. case $host_os in
  14056. cygwin* | mingw* | pw32*)
  14057. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  14058. # When not using gcc, we currently assume that we are using
  14059. # Microsoft Visual C++.
  14060. if test "$GCC" != yes; then
  14061. with_gnu_ld=no
  14062. fi
  14063. ;;
  14064. openbsd*)
  14065. with_gnu_ld=no
  14066. ;;
  14067. esac
  14068. ld_shlibs_GCJ=yes
  14069. if test "$with_gnu_ld" = yes; then
  14070. # If archive_cmds runs LD, not CC, wlarc should be empty
  14071. wlarc='${wl}'
  14072. # Set some defaults for GNU ld with shared library support. These
  14073. # are reset later if shared libraries are not supported. Putting them
  14074. # here allows them to be overridden if necessary.
  14075. runpath_var=LD_RUN_PATH
  14076. hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  14077. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  14078. # ancient GNU ld didn't support --whole-archive et. al.
  14079. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  14080. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  14081. else
  14082. whole_archive_flag_spec_GCJ=
  14083. fi
  14084. supports_anon_versioning=no
  14085. case `$LD -v 2>/dev/null` in
  14086. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  14087. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  14088. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  14089. *\ 2.11.*) ;; # other 2.11 versions
  14090. *) supports_anon_versioning=yes ;;
  14091. esac
  14092. # See if GNU ld supports shared libraries.
  14093. case $host_os in
  14094. aix3* | aix4* | aix5*)
  14095. # On AIX/PPC, the GNU linker is very broken
  14096. if test "$host_cpu" != ia64; then
  14097. ld_shlibs_GCJ=no
  14098. cat <<EOF 1>&2
  14099. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  14100. *** to be unable to reliably create shared libraries on AIX.
  14101. *** Therefore, libtool is disabling shared libraries support. If you
  14102. *** really care for shared libraries, you may want to modify your PATH
  14103. *** so that a non-GNU linker is found, and then restart.
  14104. EOF
  14105. fi
  14106. ;;
  14107. amigaos*)
  14108. 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)'
  14109. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14110. hardcode_minus_L_GCJ=yes
  14111. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  14112. # that the semantics of dynamic libraries on AmigaOS, at least up
  14113. # to version 4, is to share data among multiple programs linked
  14114. # with the same dynamic library. Since this doesn't match the
  14115. # behavior of shared libraries on other platforms, we can't use
  14116. # them.
  14117. ld_shlibs_GCJ=no
  14118. ;;
  14119. beos*)
  14120. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14121. allow_undefined_flag_GCJ=unsupported
  14122. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  14123. # support --undefined. This deserves some investigation. FIXME
  14124. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14125. else
  14126. ld_shlibs_GCJ=no
  14127. fi
  14128. ;;
  14129. cygwin* | mingw* | pw32*)
  14130. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  14131. # as there is no search path for DLLs.
  14132. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14133. allow_undefined_flag_GCJ=unsupported
  14134. always_export_symbols_GCJ=no
  14135. enable_shared_with_static_runtimes_GCJ=yes
  14136. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  14137. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  14138. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  14139. # If the export-symbols file already is a .def file (1st line
  14140. # is EXPORTS), use it as is; otherwise, prepend...
  14141. archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  14142. cp $export_symbols $output_objdir/$soname.def;
  14143. else
  14144. echo EXPORTS > $output_objdir/$soname.def;
  14145. cat $export_symbols >> $output_objdir/$soname.def;
  14146. fi~
  14147. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  14148. else
  14149. ld_shlibs_GCJ=no
  14150. fi
  14151. ;;
  14152. linux*)
  14153. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14154. tmp_addflag=
  14155. case $cc_basename,$host_cpu in
  14156. pgcc*) # Portland Group C compiler
  14157. 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'
  14158. tmp_addflag=' $pic_flag'
  14159. ;;
  14160. pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
  14161. 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'
  14162. tmp_addflag=' $pic_flag -Mnomain' ;;
  14163. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  14164. tmp_addflag=' -i_dynamic' ;;
  14165. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  14166. tmp_addflag=' -i_dynamic -nofor_main' ;;
  14167. ifc* | ifort*) # Intel Fortran compiler
  14168. tmp_addflag=' -nofor_main' ;;
  14169. esac
  14170. archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14171. if test $supports_anon_versioning = yes; then
  14172. archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  14173. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  14174. $echo "local: *; };" >> $output_objdir/$libname.ver~
  14175. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  14176. fi
  14177. else
  14178. ld_shlibs_GCJ=no
  14179. fi
  14180. ;;
  14181. netbsd*)
  14182. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14183. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  14184. wlarc=
  14185. else
  14186. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14187. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14188. fi
  14189. ;;
  14190. solaris* | sysv5*)
  14191. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  14192. ld_shlibs_GCJ=no
  14193. cat <<EOF 1>&2
  14194. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  14195. *** create shared libraries on Solaris systems. Therefore, libtool
  14196. *** is disabling shared libraries support. We urge you to upgrade GNU
  14197. *** binutils to release 2.9.1 or newer. Another option is to modify
  14198. *** your PATH or compiler configuration so that the native linker is
  14199. *** used, and then restart.
  14200. EOF
  14201. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14202. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14203. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14204. else
  14205. ld_shlibs_GCJ=no
  14206. fi
  14207. ;;
  14208. sunos4*)
  14209. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14210. wlarc=
  14211. hardcode_direct_GCJ=yes
  14212. hardcode_shlibpath_var_GCJ=no
  14213. ;;
  14214. *)
  14215. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14216. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14217. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14218. else
  14219. ld_shlibs_GCJ=no
  14220. fi
  14221. ;;
  14222. esac
  14223. if test "$ld_shlibs_GCJ" = no; then
  14224. runpath_var=
  14225. hardcode_libdir_flag_spec_GCJ=
  14226. export_dynamic_flag_spec_GCJ=
  14227. whole_archive_flag_spec_GCJ=
  14228. fi
  14229. else
  14230. # PORTME fill in a description of your system's linker (not GNU ld)
  14231. case $host_os in
  14232. aix3*)
  14233. allow_undefined_flag_GCJ=unsupported
  14234. always_export_symbols_GCJ=yes
  14235. 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'
  14236. # Note: this linker hardcodes the directories in LIBPATH if there
  14237. # are no directories specified by -L.
  14238. hardcode_minus_L_GCJ=yes
  14239. if test "$GCC" = yes && test -z "$link_static_flag"; then
  14240. # Neither direct hardcoding nor static linking is supported with a
  14241. # broken collect2.
  14242. hardcode_direct_GCJ=unsupported
  14243. fi
  14244. ;;
  14245. aix4* | aix5*)
  14246. if test "$host_cpu" = ia64; then
  14247. # On IA64, the linker does run time linking by default, so we don't
  14248. # have to do anything special.
  14249. aix_use_runtimelinking=no
  14250. exp_sym_flag='-Bexport'
  14251. no_entry_flag=""
  14252. else
  14253. # If we're using GNU nm, then we don't want the "-C" option.
  14254. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  14255. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  14256. 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'
  14257. else
  14258. 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'
  14259. fi
  14260. aix_use_runtimelinking=no
  14261. # Test if we are trying to use run time linking or normal
  14262. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  14263. # need to do runtime linking.
  14264. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  14265. for ld_flag in $LDFLAGS; do
  14266. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  14267. aix_use_runtimelinking=yes
  14268. break
  14269. fi
  14270. done
  14271. esac
  14272. exp_sym_flag='-bexport'
  14273. no_entry_flag='-bnoentry'
  14274. fi
  14275. # When large executables or shared objects are built, AIX ld can
  14276. # have problems creating the table of contents. If linking a library
  14277. # or program results in "error TOC overflow" add -mminimal-toc to
  14278. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  14279. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  14280. archive_cmds_GCJ=''
  14281. hardcode_direct_GCJ=yes
  14282. hardcode_libdir_separator_GCJ=':'
  14283. link_all_deplibs_GCJ=yes
  14284. if test "$GCC" = yes; then
  14285. case $host_os in aix4.[012]|aix4.[012].*)
  14286. # We only want to do this on AIX 4.2 and lower, the check
  14287. # below for broken collect2 doesn't work under 4.3+
  14288. collect2name=`${CC} -print-prog-name=collect2`
  14289. if test -f "$collect2name" && \
  14290. strings "$collect2name" | grep resolve_lib_name >/dev/null
  14291. then
  14292. # We have reworked collect2
  14293. hardcode_direct_GCJ=yes
  14294. else
  14295. # We have old collect2
  14296. hardcode_direct_GCJ=unsupported
  14297. # It fails to find uninstalled libraries when the uninstalled
  14298. # path is not listed in the libpath. Setting hardcode_minus_L
  14299. # to unsupported forces relinking
  14300. hardcode_minus_L_GCJ=yes
  14301. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14302. hardcode_libdir_separator_GCJ=
  14303. fi
  14304. esac
  14305. shared_flag='-shared'
  14306. if test "$aix_use_runtimelinking" = yes; then
  14307. shared_flag="$shared_flag "'${wl}-G'
  14308. fi
  14309. else
  14310. # not using gcc
  14311. if test "$host_cpu" = ia64; then
  14312. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  14313. # chokes on -Wl,-G. The following line is correct:
  14314. shared_flag='-G'
  14315. else
  14316. if test "$aix_use_runtimelinking" = yes; then
  14317. shared_flag='${wl}-G'
  14318. else
  14319. shared_flag='${wl}-bM:SRE'
  14320. fi
  14321. fi
  14322. fi
  14323. # It seems that -bexpall does not export symbols beginning with
  14324. # underscore (_), so it is better to generate a list of symbols to export.
  14325. always_export_symbols_GCJ=yes
  14326. if test "$aix_use_runtimelinking" = yes; then
  14327. # Warning - without using the other runtime loading flags (-brtl),
  14328. # -berok will link without error, but may produce a broken library.
  14329. allow_undefined_flag_GCJ='-berok'
  14330. # Determine the default libpath from the value encoded in an empty executable.
  14331. cat >conftest.$ac_ext <<_ACEOF
  14332. /* confdefs.h. */
  14333. _ACEOF
  14334. cat confdefs.h >>conftest.$ac_ext
  14335. cat >>conftest.$ac_ext <<_ACEOF
  14336. /* end confdefs.h. */
  14337. int
  14338. main ()
  14339. {
  14340. ;
  14341. return 0;
  14342. }
  14343. _ACEOF
  14344. rm -f conftest.$ac_objext conftest$ac_exeext
  14345. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14346. (eval $ac_link) 2>conftest.er1
  14347. ac_status=$?
  14348. grep -v '^ *+' conftest.er1 >conftest.err
  14349. rm -f conftest.er1
  14350. cat conftest.err >&5
  14351. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14352. (exit $ac_status); } &&
  14353. { ac_try='test -z "$ac_c_werror_flag"
  14354. || test ! -s conftest.err'
  14355. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14356. (eval $ac_try) 2>&5
  14357. ac_status=$?
  14358. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14359. (exit $ac_status); }; } &&
  14360. { ac_try='test -s conftest$ac_exeext'
  14361. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14362. (eval $ac_try) 2>&5
  14363. ac_status=$?
  14364. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14365. (exit $ac_status); }; }; then
  14366. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14367. }'`
  14368. # Check for a 64-bit object if we didn't find anything.
  14369. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14370. }'`; fi
  14371. else
  14372. echo "$as_me: failed program was:" >&5
  14373. sed 's/^/| /' conftest.$ac_ext >&5
  14374. fi
  14375. rm -f conftest.err conftest.$ac_objext \
  14376. conftest$ac_exeext conftest.$ac_ext
  14377. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  14378. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  14379. archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  14380. else
  14381. if test "$host_cpu" = ia64; then
  14382. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  14383. allow_undefined_flag_GCJ="-z nodefs"
  14384. archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  14385. else
  14386. # Determine the default libpath from the value encoded in an empty executable.
  14387. cat >conftest.$ac_ext <<_ACEOF
  14388. /* confdefs.h. */
  14389. _ACEOF
  14390. cat confdefs.h >>conftest.$ac_ext
  14391. cat >>conftest.$ac_ext <<_ACEOF
  14392. /* end confdefs.h. */
  14393. int
  14394. main ()
  14395. {
  14396. ;
  14397. return 0;
  14398. }
  14399. _ACEOF
  14400. rm -f conftest.$ac_objext conftest$ac_exeext
  14401. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14402. (eval $ac_link) 2>conftest.er1
  14403. ac_status=$?
  14404. grep -v '^ *+' conftest.er1 >conftest.err
  14405. rm -f conftest.er1
  14406. cat conftest.err >&5
  14407. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14408. (exit $ac_status); } &&
  14409. { ac_try='test -z "$ac_c_werror_flag"
  14410. || test ! -s conftest.err'
  14411. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14412. (eval $ac_try) 2>&5
  14413. ac_status=$?
  14414. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14415. (exit $ac_status); }; } &&
  14416. { ac_try='test -s conftest$ac_exeext'
  14417. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14418. (eval $ac_try) 2>&5
  14419. ac_status=$?
  14420. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14421. (exit $ac_status); }; }; then
  14422. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14423. }'`
  14424. # Check for a 64-bit object if we didn't find anything.
  14425. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14426. }'`; fi
  14427. else
  14428. echo "$as_me: failed program was:" >&5
  14429. sed 's/^/| /' conftest.$ac_ext >&5
  14430. fi
  14431. rm -f conftest.err conftest.$ac_objext \
  14432. conftest$ac_exeext conftest.$ac_ext
  14433. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  14434. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  14435. # Warning - without using the other run time loading flags,
  14436. # -berok will link without error, but may produce a broken library.
  14437. no_undefined_flag_GCJ=' ${wl}-bernotok'
  14438. allow_undefined_flag_GCJ=' ${wl}-berok'
  14439. # -bexpall does not export symbols beginning with underscore (_)
  14440. always_export_symbols_GCJ=yes
  14441. # Exported symbols can be pulled into shared objects from archives
  14442. whole_archive_flag_spec_GCJ=' '
  14443. archive_cmds_need_lc_GCJ=yes
  14444. # This is similar to how AIX traditionally builds it's shared libraries.
  14445. archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  14446. fi
  14447. fi
  14448. ;;
  14449. amigaos*)
  14450. 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)'
  14451. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14452. hardcode_minus_L_GCJ=yes
  14453. # see comment about different semantics on the GNU ld section
  14454. ld_shlibs_GCJ=no
  14455. ;;
  14456. bsdi[45]*)
  14457. export_dynamic_flag_spec_GCJ=-rdynamic
  14458. ;;
  14459. cygwin* | mingw* | pw32*)
  14460. # When not using gcc, we currently assume that we are using
  14461. # Microsoft Visual C++.
  14462. # hardcode_libdir_flag_spec is actually meaningless, as there is
  14463. # no search path for DLLs.
  14464. hardcode_libdir_flag_spec_GCJ=' '
  14465. allow_undefined_flag_GCJ=unsupported
  14466. # Tell ltmain to make .lib files, not .a files.
  14467. libext=lib
  14468. # Tell ltmain to make .dll files, not .so files.
  14469. shrext_cmds=".dll"
  14470. # FIXME: Setting linknames here is a bad hack.
  14471. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  14472. # The linker will automatically build a .lib file if we build a DLL.
  14473. old_archive_From_new_cmds_GCJ='true'
  14474. # FIXME: Should let the user specify the lib program.
  14475. old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  14476. fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  14477. enable_shared_with_static_runtimes_GCJ=yes
  14478. ;;
  14479. darwin* | rhapsody*)
  14480. case "$host_os" in
  14481. rhapsody* | darwin1.[012])
  14482. allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  14483. ;;
  14484. *) # Darwin 1.3 on
  14485. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  14486. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  14487. else
  14488. case ${MACOSX_DEPLOYMENT_TARGET} in
  14489. 10.[012])
  14490. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  14491. ;;
  14492. 10.*)
  14493. allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  14494. ;;
  14495. esac
  14496. fi
  14497. ;;
  14498. esac
  14499. archive_cmds_need_lc_GCJ=no
  14500. hardcode_direct_GCJ=no
  14501. hardcode_automatic_GCJ=yes
  14502. hardcode_shlibpath_var_GCJ=unsupported
  14503. whole_archive_flag_spec_GCJ=''
  14504. link_all_deplibs_GCJ=yes
  14505. if test "$GCC" = yes ; then
  14506. output_verbose_link_cmd='echo'
  14507. archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  14508. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  14509. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  14510. archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  14511. 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}'
  14512. else
  14513. case $cc_basename in
  14514. xlc*)
  14515. output_verbose_link_cmd='echo'
  14516. archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  14517. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  14518. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  14519. archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  14520. 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}'
  14521. ;;
  14522. *)
  14523. ld_shlibs_GCJ=no
  14524. ;;
  14525. esac
  14526. fi
  14527. ;;
  14528. dgux*)
  14529. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14530. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14531. hardcode_shlibpath_var_GCJ=no
  14532. ;;
  14533. freebsd1*)
  14534. ld_shlibs_GCJ=no
  14535. ;;
  14536. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  14537. # support. Future versions do this automatically, but an explicit c++rt0.o
  14538. # does not break anything, and helps significantly (at the cost of a little
  14539. # extra space).
  14540. freebsd2.2*)
  14541. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  14542. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  14543. hardcode_direct_GCJ=yes
  14544. hardcode_shlibpath_var_GCJ=no
  14545. ;;
  14546. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  14547. freebsd2*)
  14548. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14549. hardcode_direct_GCJ=yes
  14550. hardcode_minus_L_GCJ=yes
  14551. hardcode_shlibpath_var_GCJ=no
  14552. ;;
  14553. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  14554. freebsd* | kfreebsd*-gnu | dragonfly*)
  14555. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  14556. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  14557. hardcode_direct_GCJ=yes
  14558. hardcode_shlibpath_var_GCJ=no
  14559. ;;
  14560. hpux9*)
  14561. if test "$GCC" = yes; then
  14562. 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'
  14563. else
  14564. 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'
  14565. fi
  14566. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  14567. hardcode_libdir_separator_GCJ=:
  14568. hardcode_direct_GCJ=yes
  14569. # hardcode_minus_L: Not really in the search PATH,
  14570. # but as the default location of the library.
  14571. hardcode_minus_L_GCJ=yes
  14572. export_dynamic_flag_spec_GCJ='${wl}-E'
  14573. ;;
  14574. hpux10* | hpux11*)
  14575. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  14576. case "$host_cpu" in
  14577. hppa*64*|ia64*)
  14578. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14579. ;;
  14580. *)
  14581. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  14582. ;;
  14583. esac
  14584. else
  14585. case "$host_cpu" in
  14586. hppa*64*|ia64*)
  14587. archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  14588. ;;
  14589. *)
  14590. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  14591. ;;
  14592. esac
  14593. fi
  14594. if test "$with_gnu_ld" = no; then
  14595. case "$host_cpu" in
  14596. hppa*64*)
  14597. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  14598. hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  14599. hardcode_libdir_separator_GCJ=:
  14600. hardcode_direct_GCJ=no
  14601. hardcode_shlibpath_var_GCJ=no
  14602. ;;
  14603. ia64*)
  14604. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14605. hardcode_direct_GCJ=no
  14606. hardcode_shlibpath_var_GCJ=no
  14607. # hardcode_minus_L: Not really in the search PATH,
  14608. # but as the default location of the library.
  14609. hardcode_minus_L_GCJ=yes
  14610. ;;
  14611. *)
  14612. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  14613. hardcode_libdir_separator_GCJ=:
  14614. hardcode_direct_GCJ=yes
  14615. export_dynamic_flag_spec_GCJ='${wl}-E'
  14616. # hardcode_minus_L: Not really in the search PATH,
  14617. # but as the default location of the library.
  14618. hardcode_minus_L_GCJ=yes
  14619. ;;
  14620. esac
  14621. fi
  14622. ;;
  14623. irix5* | irix6* | nonstopux*)
  14624. if test "$GCC" = yes; then
  14625. 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'
  14626. else
  14627. 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'
  14628. hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  14629. fi
  14630. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  14631. hardcode_libdir_separator_GCJ=:
  14632. link_all_deplibs_GCJ=yes
  14633. ;;
  14634. netbsd*)
  14635. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14636. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  14637. else
  14638. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  14639. fi
  14640. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  14641. hardcode_direct_GCJ=yes
  14642. hardcode_shlibpath_var_GCJ=no
  14643. ;;
  14644. newsos6)
  14645. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14646. hardcode_direct_GCJ=yes
  14647. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  14648. hardcode_libdir_separator_GCJ=:
  14649. hardcode_shlibpath_var_GCJ=no
  14650. ;;
  14651. openbsd*)
  14652. hardcode_direct_GCJ=yes
  14653. hardcode_shlibpath_var_GCJ=no
  14654. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14655. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  14656. archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  14657. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  14658. export_dynamic_flag_spec_GCJ='${wl}-E'
  14659. else
  14660. case $host_os in
  14661. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  14662. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14663. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  14664. ;;
  14665. *)
  14666. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  14667. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  14668. ;;
  14669. esac
  14670. fi
  14671. ;;
  14672. os2*)
  14673. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14674. hardcode_minus_L_GCJ=yes
  14675. allow_undefined_flag_GCJ=unsupported
  14676. 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'
  14677. old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  14678. ;;
  14679. osf3*)
  14680. if test "$GCC" = yes; then
  14681. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  14682. 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'
  14683. else
  14684. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  14685. 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'
  14686. fi
  14687. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  14688. hardcode_libdir_separator_GCJ=:
  14689. ;;
  14690. osf4* | osf5*) # as osf3* with the addition of -msym flag
  14691. if test "$GCC" = yes; then
  14692. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  14693. 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'
  14694. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  14695. else
  14696. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  14697. 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'
  14698. 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~
  14699. $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'
  14700. # Both c and cxx compiler support -rpath directly
  14701. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  14702. fi
  14703. hardcode_libdir_separator_GCJ=:
  14704. ;;
  14705. sco3.2v5*)
  14706. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14707. hardcode_shlibpath_var_GCJ=no
  14708. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  14709. runpath_var=LD_RUN_PATH
  14710. hardcode_runpath_var=yes
  14711. ;;
  14712. solaris*)
  14713. no_undefined_flag_GCJ=' -z text'
  14714. if test "$GCC" = yes; then
  14715. wlarc='${wl}'
  14716. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14717. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  14718. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  14719. else
  14720. wlarc=''
  14721. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14722. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  14723. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  14724. fi
  14725. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  14726. hardcode_shlibpath_var_GCJ=no
  14727. case $host_os in
  14728. solaris2.[0-5] | solaris2.[0-5].*) ;;
  14729. *)
  14730. # The compiler driver will combine linker options so we
  14731. # cannot just pass the convience library names through
  14732. # without $wl, iff we do not link with $LD.
  14733. # Luckily, gcc supports the same syntax we need for Sun Studio.
  14734. # Supported since Solaris 2.6 (maybe 2.5.1?)
  14735. case $wlarc in
  14736. '')
  14737. whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  14738. *)
  14739. whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  14740. esac ;;
  14741. esac
  14742. link_all_deplibs_GCJ=yes
  14743. ;;
  14744. sunos4*)
  14745. if test "x$host_vendor" = xsequent; then
  14746. # Use $CC to link under sequent, because it throws in some extra .o
  14747. # files that make .init and .fini sections work.
  14748. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  14749. else
  14750. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  14751. fi
  14752. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14753. hardcode_direct_GCJ=yes
  14754. hardcode_minus_L_GCJ=yes
  14755. hardcode_shlibpath_var_GCJ=no
  14756. ;;
  14757. sysv4)
  14758. case $host_vendor in
  14759. sni)
  14760. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14761. hardcode_direct_GCJ=yes # is this really true???
  14762. ;;
  14763. siemens)
  14764. ## LD is ld it makes a PLAMLIB
  14765. ## CC just makes a GrossModule.
  14766. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  14767. reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  14768. hardcode_direct_GCJ=no
  14769. ;;
  14770. motorola)
  14771. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14772. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  14773. ;;
  14774. esac
  14775. runpath_var='LD_RUN_PATH'
  14776. hardcode_shlibpath_var_GCJ=no
  14777. ;;
  14778. sysv4.3*)
  14779. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14780. hardcode_shlibpath_var_GCJ=no
  14781. export_dynamic_flag_spec_GCJ='-Bexport'
  14782. ;;
  14783. sysv4*MP*)
  14784. if test -d /usr/nec; then
  14785. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14786. hardcode_shlibpath_var_GCJ=no
  14787. runpath_var=LD_RUN_PATH
  14788. hardcode_runpath_var=yes
  14789. ld_shlibs_GCJ=yes
  14790. fi
  14791. ;;
  14792. sysv4.2uw2*)
  14793. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  14794. hardcode_direct_GCJ=yes
  14795. hardcode_minus_L_GCJ=no
  14796. hardcode_shlibpath_var_GCJ=no
  14797. hardcode_runpath_var=yes
  14798. runpath_var=LD_RUN_PATH
  14799. ;;
  14800. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  14801. no_undefined_flag_GCJ='${wl}-z ${wl}text'
  14802. if test "$GCC" = yes; then
  14803. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14804. else
  14805. archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14806. fi
  14807. runpath_var='LD_RUN_PATH'
  14808. hardcode_shlibpath_var_GCJ=no
  14809. ;;
  14810. sysv5*)
  14811. no_undefined_flag_GCJ=' -z text'
  14812. # $CC -shared without GNU ld will not create a library from C++
  14813. # object files and a static libstdc++, better avoid it by now
  14814. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14815. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  14816. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  14817. hardcode_libdir_flag_spec_GCJ=
  14818. hardcode_shlibpath_var_GCJ=no
  14819. runpath_var='LD_RUN_PATH'
  14820. ;;
  14821. uts4*)
  14822. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14823. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14824. hardcode_shlibpath_var_GCJ=no
  14825. ;;
  14826. *)
  14827. ld_shlibs_GCJ=no
  14828. ;;
  14829. esac
  14830. fi
  14831. echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  14832. echo "${ECHO_T}$ld_shlibs_GCJ" >&6
  14833. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  14834. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14835. if test "$GCC" = yes; then
  14836. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14837. fi
  14838. #
  14839. # Do we need to explicitly link libc?
  14840. #
  14841. case "x$archive_cmds_need_lc_GCJ" in
  14842. x|xyes)
  14843. # Assume -lc should be added
  14844. archive_cmds_need_lc_GCJ=yes
  14845. if test "$enable_shared" = yes && test "$GCC" = yes; then
  14846. case $archive_cmds_GCJ in
  14847. *'~'*)
  14848. # FIXME: we may have to deal with multi-command sequences.
  14849. ;;
  14850. '$CC '*)
  14851. # Test whether the compiler implicitly links with -lc since on some
  14852. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14853. # to ld, don't add -lc before -lgcc.
  14854. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  14855. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  14856. $rm conftest*
  14857. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14858. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14859. (eval $ac_compile) 2>&5
  14860. ac_status=$?
  14861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14862. (exit $ac_status); } 2>conftest.err; then
  14863. soname=conftest
  14864. lib=conftest
  14865. libobjs=conftest.$ac_objext
  14866. deplibs=
  14867. wl=$lt_prog_compiler_wl_GCJ
  14868. compiler_flags=-v
  14869. linker_flags=-v
  14870. verstring=
  14871. output_objdir=.
  14872. libname=conftest
  14873. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  14874. allow_undefined_flag_GCJ=
  14875. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  14876. (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14877. ac_status=$?
  14878. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14879. (exit $ac_status); }
  14880. then
  14881. archive_cmds_need_lc_GCJ=no
  14882. else
  14883. archive_cmds_need_lc_GCJ=yes
  14884. fi
  14885. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  14886. else
  14887. cat conftest.err 1>&5
  14888. fi
  14889. $rm conftest*
  14890. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  14891. echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
  14892. ;;
  14893. esac
  14894. fi
  14895. ;;
  14896. esac
  14897. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  14898. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  14899. library_names_spec=
  14900. libname_spec='lib$name'
  14901. soname_spec=
  14902. shrext_cmds=".so"
  14903. postinstall_cmds=
  14904. postuninstall_cmds=
  14905. finish_cmds=
  14906. finish_eval=
  14907. shlibpath_var=
  14908. shlibpath_overrides_runpath=unknown
  14909. version_type=none
  14910. dynamic_linker="$host_os ld.so"
  14911. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14912. if test "$GCC" = yes; then
  14913. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  14914. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  14915. # if the path contains ";" then we assume it to be the separator
  14916. # otherwise default to the standard path separator (i.e. ":") - it is
  14917. # assumed that no part of a normal pathname contains ";" but that should
  14918. # okay in the real world where ";" in dirpaths is itself problematic.
  14919. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14920. else
  14921. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14922. fi
  14923. else
  14924. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  14925. fi
  14926. need_lib_prefix=unknown
  14927. hardcode_into_libs=no
  14928. # when you set need_version to no, make sure it does not cause -set_version
  14929. # flags to be left without arguments
  14930. need_version=unknown
  14931. case $host_os in
  14932. aix3*)
  14933. version_type=linux
  14934. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  14935. shlibpath_var=LIBPATH
  14936. # AIX 3 has no versioning support, so we append a major version to the name.
  14937. soname_spec='${libname}${release}${shared_ext}$major'
  14938. ;;
  14939. aix4* | aix5*)
  14940. version_type=linux
  14941. need_lib_prefix=no
  14942. need_version=no
  14943. hardcode_into_libs=yes
  14944. if test "$host_cpu" = ia64; then
  14945. # AIX 5 supports IA64
  14946. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  14947. shlibpath_var=LD_LIBRARY_PATH
  14948. else
  14949. # With GCC up to 2.95.x, collect2 would create an import file
  14950. # for dependence libraries. The import file would start with
  14951. # the line `#! .'. This would cause the generated library to
  14952. # depend on `.', always an invalid library. This was fixed in
  14953. # development snapshots of GCC prior to 3.0.
  14954. case $host_os in
  14955. aix4 | aix4.[01] | aix4.[01].*)
  14956. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14957. echo ' yes '
  14958. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  14959. :
  14960. else
  14961. can_build_shared=no
  14962. fi
  14963. ;;
  14964. esac
  14965. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  14966. # soname into executable. Probably we can add versioning support to
  14967. # collect2, so additional links can be useful in future.
  14968. if test "$aix_use_runtimelinking" = yes; then
  14969. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14970. # instead of lib<name>.a to let people know that these are not
  14971. # typical AIX shared libraries.
  14972. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14973. else
  14974. # We preserve .a as extension for shared libraries through AIX4.2
  14975. # and later when we are not doing run time linking.
  14976. library_names_spec='${libname}${release}.a $libname.a'
  14977. soname_spec='${libname}${release}${shared_ext}$major'
  14978. fi
  14979. shlibpath_var=LIBPATH
  14980. fi
  14981. ;;
  14982. amigaos*)
  14983. library_names_spec='$libname.ixlibrary $libname.a'
  14984. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14985. 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'
  14986. ;;
  14987. beos*)
  14988. library_names_spec='${libname}${shared_ext}'
  14989. dynamic_linker="$host_os ld.so"
  14990. shlibpath_var=LIBRARY_PATH
  14991. ;;
  14992. bsdi[45]*)
  14993. version_type=linux
  14994. need_version=no
  14995. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14996. soname_spec='${libname}${release}${shared_ext}$major'
  14997. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14998. shlibpath_var=LD_LIBRARY_PATH
  14999. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  15000. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  15001. # the default ld.so.conf also contains /usr/contrib/lib and
  15002. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  15003. # libtool to hard-code these into programs
  15004. ;;
  15005. cygwin* | mingw* | pw32*)
  15006. version_type=windows
  15007. shrext_cmds=".dll"
  15008. need_version=no
  15009. need_lib_prefix=no
  15010. case $GCC,$host_os in
  15011. yes,cygwin* | yes,mingw* | yes,pw32*)
  15012. library_names_spec='$libname.dll.a'
  15013. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  15014. postinstall_cmds='base_file=`basename \${file}`~
  15015. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  15016. dldir=$destdir/`dirname \$dlpath`~
  15017. test -d \$dldir || mkdir -p \$dldir~
  15018. $install_prog $dir/$dlname \$dldir/$dlname'
  15019. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  15020. dlpath=$dir/\$dldll~
  15021. $rm \$dlpath'
  15022. shlibpath_overrides_runpath=yes
  15023. case $host_os in
  15024. cygwin*)
  15025. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  15026. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15027. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  15028. ;;
  15029. mingw*)
  15030. # MinGW DLLs use traditional 'lib' prefix
  15031. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15032. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  15033. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  15034. # It is most probably a Windows format PATH printed by
  15035. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  15036. # path with ; separators, and with drive letters. We can handle the
  15037. # drive letters (cygwin fileutils understands them), so leave them,
  15038. # especially as we might pass files found there to a mingw objdump,
  15039. # which wouldn't understand a cygwinified path. Ahh.
  15040. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15041. else
  15042. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15043. fi
  15044. ;;
  15045. pw32*)
  15046. # pw32 DLLs use 'pw' prefix rather than 'lib'
  15047. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15048. ;;
  15049. esac
  15050. ;;
  15051. *)
  15052. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  15053. ;;
  15054. esac
  15055. dynamic_linker='Win32 ld.exe'
  15056. # FIXME: first we should search . and the directory the executable is in
  15057. shlibpath_var=PATH
  15058. ;;
  15059. darwin* | rhapsody*)
  15060. dynamic_linker="$host_os dyld"
  15061. version_type=darwin
  15062. need_lib_prefix=no
  15063. need_version=no
  15064. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  15065. soname_spec='${libname}${release}${major}$shared_ext'
  15066. shlibpath_overrides_runpath=yes
  15067. shlibpath_var=DYLD_LIBRARY_PATH
  15068. shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  15069. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  15070. if test "$GCC" = yes; then
  15071. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  15072. else
  15073. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  15074. fi
  15075. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  15076. ;;
  15077. dgux*)
  15078. version_type=linux
  15079. need_lib_prefix=no
  15080. need_version=no
  15081. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  15082. soname_spec='${libname}${release}${shared_ext}$major'
  15083. shlibpath_var=LD_LIBRARY_PATH
  15084. ;;
  15085. freebsd1*)
  15086. dynamic_linker=no
  15087. ;;
  15088. kfreebsd*-gnu)
  15089. version_type=linux
  15090. need_lib_prefix=no
  15091. need_version=no
  15092. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15093. soname_spec='${libname}${release}${shared_ext}$major'
  15094. shlibpath_var=LD_LIBRARY_PATH
  15095. shlibpath_overrides_runpath=no
  15096. hardcode_into_libs=yes
  15097. dynamic_linker='GNU ld.so'
  15098. ;;
  15099. freebsd* | dragonfly*)
  15100. # DragonFly does not have aout. When/if they implement a new
  15101. # versioning mechanism, adjust this.
  15102. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  15103. version_type=freebsd-$objformat
  15104. case $version_type in
  15105. freebsd-elf*)
  15106. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  15107. need_version=no
  15108. need_lib_prefix=no
  15109. ;;
  15110. freebsd-*)
  15111. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  15112. need_version=yes
  15113. ;;
  15114. esac
  15115. shlibpath_var=LD_LIBRARY_PATH
  15116. case $host_os in
  15117. freebsd2*)
  15118. shlibpath_overrides_runpath=yes
  15119. ;;
  15120. freebsd3.[01]* | freebsdelf3.[01]*)
  15121. shlibpath_overrides_runpath=yes
  15122. hardcode_into_libs=yes
  15123. ;;
  15124. *) # from 3.2 on
  15125. shlibpath_overrides_runpath=no
  15126. hardcode_into_libs=yes
  15127. ;;
  15128. esac
  15129. ;;
  15130. gnu*)
  15131. version_type=linux
  15132. need_lib_prefix=no
  15133. need_version=no
  15134. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  15135. soname_spec='${libname}${release}${shared_ext}$major'
  15136. shlibpath_var=LD_LIBRARY_PATH
  15137. hardcode_into_libs=yes
  15138. ;;
  15139. hpux9* | hpux10* | hpux11*)
  15140. # Give a soname corresponding to the major version so that dld.sl refuses to
  15141. # link against other versions.
  15142. version_type=sunos
  15143. need_lib_prefix=no
  15144. need_version=no
  15145. case "$host_cpu" in
  15146. ia64*)
  15147. shrext_cmds='.so'
  15148. hardcode_into_libs=yes
  15149. dynamic_linker="$host_os dld.so"
  15150. shlibpath_var=LD_LIBRARY_PATH
  15151. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15152. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15153. soname_spec='${libname}${release}${shared_ext}$major'
  15154. if test "X$HPUX_IA64_MODE" = X32; then
  15155. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  15156. else
  15157. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  15158. fi
  15159. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15160. ;;
  15161. hppa*64*)
  15162. shrext_cmds='.sl'
  15163. hardcode_into_libs=yes
  15164. dynamic_linker="$host_os dld.sl"
  15165. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  15166. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15167. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15168. soname_spec='${libname}${release}${shared_ext}$major'
  15169. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  15170. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15171. ;;
  15172. *)
  15173. shrext_cmds='.sl'
  15174. dynamic_linker="$host_os dld.sl"
  15175. shlibpath_var=SHLIB_PATH
  15176. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  15177. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15178. soname_spec='${libname}${release}${shared_ext}$major'
  15179. ;;
  15180. esac
  15181. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  15182. postinstall_cmds='chmod 555 $lib'
  15183. ;;
  15184. irix5* | irix6* | nonstopux*)
  15185. case $host_os in
  15186. nonstopux*) version_type=nonstopux ;;
  15187. *)
  15188. if test "$lt_cv_prog_gnu_ld" = yes; then
  15189. version_type=linux
  15190. else
  15191. version_type=irix
  15192. fi ;;
  15193. esac
  15194. need_lib_prefix=no
  15195. need_version=no
  15196. soname_spec='${libname}${release}${shared_ext}$major'
  15197. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  15198. case $host_os in
  15199. irix5* | nonstopux*)
  15200. libsuff= shlibsuff=
  15201. ;;
  15202. *)
  15203. case $LD in # libtool.m4 will add one of these switches to LD
  15204. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  15205. libsuff= shlibsuff= libmagic=32-bit;;
  15206. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  15207. libsuff=32 shlibsuff=N32 libmagic=N32;;
  15208. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  15209. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  15210. *) libsuff= shlibsuff= libmagic=never-match;;
  15211. esac
  15212. ;;
  15213. esac
  15214. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  15215. shlibpath_overrides_runpath=no
  15216. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  15217. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  15218. hardcode_into_libs=yes
  15219. ;;
  15220. # No shared lib support for Linux oldld, aout, or coff.
  15221. linux*oldld* | linux*aout* | linux*coff*)
  15222. dynamic_linker=no
  15223. ;;
  15224. # This must be Linux ELF.
  15225. linux*)
  15226. version_type=linux
  15227. need_lib_prefix=no
  15228. need_version=no
  15229. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15230. soname_spec='${libname}${release}${shared_ext}$major'
  15231. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15232. shlibpath_var=LD_LIBRARY_PATH
  15233. shlibpath_overrides_runpath=no
  15234. # This implies no fast_install, which is unacceptable.
  15235. # Some rework will be needed to allow for fast_install
  15236. # before this can be enabled.
  15237. hardcode_into_libs=yes
  15238. # Append ld.so.conf contents to the search path
  15239. if test -f /etc/ld.so.conf; then
  15240. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  15241. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  15242. fi
  15243. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15244. # powerpc, because MkLinux only supported shared libraries with the
  15245. # GNU dynamic linker. Since this was broken with cross compilers,
  15246. # most powerpc-linux boxes support dynamic linking these days and
  15247. # people can always --disable-shared, the test was removed, and we
  15248. # assume the GNU/Linux dynamic linker is in use.
  15249. dynamic_linker='GNU/Linux ld.so'
  15250. ;;
  15251. knetbsd*-gnu)
  15252. version_type=linux
  15253. need_lib_prefix=no
  15254. need_version=no
  15255. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15256. soname_spec='${libname}${release}${shared_ext}$major'
  15257. shlibpath_var=LD_LIBRARY_PATH
  15258. shlibpath_overrides_runpath=no
  15259. hardcode_into_libs=yes
  15260. dynamic_linker='GNU ld.so'
  15261. ;;
  15262. netbsd*)
  15263. version_type=sunos
  15264. need_lib_prefix=no
  15265. need_version=no
  15266. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15267. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15268. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15269. dynamic_linker='NetBSD (a.out) ld.so'
  15270. else
  15271. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15272. soname_spec='${libname}${release}${shared_ext}$major'
  15273. dynamic_linker='NetBSD ld.elf_so'
  15274. fi
  15275. shlibpath_var=LD_LIBRARY_PATH
  15276. shlibpath_overrides_runpath=yes
  15277. hardcode_into_libs=yes
  15278. ;;
  15279. newsos6)
  15280. version_type=linux
  15281. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15282. shlibpath_var=LD_LIBRARY_PATH
  15283. shlibpath_overrides_runpath=yes
  15284. ;;
  15285. nto-qnx*)
  15286. version_type=linux
  15287. need_lib_prefix=no
  15288. need_version=no
  15289. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15290. soname_spec='${libname}${release}${shared_ext}$major'
  15291. shlibpath_var=LD_LIBRARY_PATH
  15292. shlibpath_overrides_runpath=yes
  15293. ;;
  15294. openbsd*)
  15295. version_type=sunos
  15296. need_lib_prefix=no
  15297. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  15298. case $host_os in
  15299. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  15300. *) need_version=no ;;
  15301. esac
  15302. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15303. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15304. shlibpath_var=LD_LIBRARY_PATH
  15305. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15306. case $host_os in
  15307. openbsd2.[89] | openbsd2.[89].*)
  15308. shlibpath_overrides_runpath=no
  15309. ;;
  15310. *)
  15311. shlibpath_overrides_runpath=yes
  15312. ;;
  15313. esac
  15314. else
  15315. shlibpath_overrides_runpath=yes
  15316. fi
  15317. ;;
  15318. os2*)
  15319. libname_spec='$name'
  15320. shrext_cmds=".dll"
  15321. need_lib_prefix=no
  15322. library_names_spec='$libname${shared_ext} $libname.a'
  15323. dynamic_linker='OS/2 ld.exe'
  15324. shlibpath_var=LIBPATH
  15325. ;;
  15326. osf3* | osf4* | osf5*)
  15327. version_type=osf
  15328. need_lib_prefix=no
  15329. need_version=no
  15330. soname_spec='${libname}${release}${shared_ext}$major'
  15331. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15332. shlibpath_var=LD_LIBRARY_PATH
  15333. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15334. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  15335. ;;
  15336. sco3.2v5*)
  15337. version_type=osf
  15338. soname_spec='${libname}${release}${shared_ext}$major'
  15339. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15340. shlibpath_var=LD_LIBRARY_PATH
  15341. ;;
  15342. solaris*)
  15343. version_type=linux
  15344. need_lib_prefix=no
  15345. need_version=no
  15346. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15347. soname_spec='${libname}${release}${shared_ext}$major'
  15348. shlibpath_var=LD_LIBRARY_PATH
  15349. shlibpath_overrides_runpath=yes
  15350. hardcode_into_libs=yes
  15351. # ldd complains unless libraries are executable
  15352. postinstall_cmds='chmod +x $lib'
  15353. ;;
  15354. sunos4*)
  15355. version_type=sunos
  15356. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15357. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15358. shlibpath_var=LD_LIBRARY_PATH
  15359. shlibpath_overrides_runpath=yes
  15360. if test "$with_gnu_ld" = yes; then
  15361. need_lib_prefix=no
  15362. fi
  15363. need_version=yes
  15364. ;;
  15365. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  15366. version_type=linux
  15367. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15368. soname_spec='${libname}${release}${shared_ext}$major'
  15369. shlibpath_var=LD_LIBRARY_PATH
  15370. case $host_vendor in
  15371. sni)
  15372. shlibpath_overrides_runpath=no
  15373. need_lib_prefix=no
  15374. export_dynamic_flag_spec='${wl}-Blargedynsym'
  15375. runpath_var=LD_RUN_PATH
  15376. ;;
  15377. siemens)
  15378. need_lib_prefix=no
  15379. ;;
  15380. motorola)
  15381. need_lib_prefix=no
  15382. need_version=no
  15383. shlibpath_overrides_runpath=no
  15384. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15385. ;;
  15386. esac
  15387. ;;
  15388. sysv4*MP*)
  15389. if test -d /usr/nec ;then
  15390. version_type=linux
  15391. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  15392. soname_spec='$libname${shared_ext}.$major'
  15393. shlibpath_var=LD_LIBRARY_PATH
  15394. fi
  15395. ;;
  15396. uts4*)
  15397. version_type=linux
  15398. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15399. soname_spec='${libname}${release}${shared_ext}$major'
  15400. shlibpath_var=LD_LIBRARY_PATH
  15401. ;;
  15402. *)
  15403. dynamic_linker=no
  15404. ;;
  15405. esac
  15406. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  15407. echo "${ECHO_T}$dynamic_linker" >&6
  15408. test "$dynamic_linker" = no && can_build_shared=no
  15409. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  15410. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  15411. hardcode_action_GCJ=
  15412. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  15413. test -n "$runpath_var_GCJ" || \
  15414. test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  15415. # We can hardcode non-existant directories.
  15416. if test "$hardcode_direct_GCJ" != no &&
  15417. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15418. # have to relink, otherwise we might link with an installed library
  15419. # when we should be linking with a yet-to-be-installed one
  15420. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  15421. test "$hardcode_minus_L_GCJ" != no; then
  15422. # Linking always hardcodes the temporary library directory.
  15423. hardcode_action_GCJ=relink
  15424. else
  15425. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15426. hardcode_action_GCJ=immediate
  15427. fi
  15428. else
  15429. # We cannot hardcode anything, or else we can only hardcode existing
  15430. # directories.
  15431. hardcode_action_GCJ=unsupported
  15432. fi
  15433. echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  15434. echo "${ECHO_T}$hardcode_action_GCJ" >&6
  15435. if test "$hardcode_action_GCJ" = relink; then
  15436. # Fast installation is not supported
  15437. enable_fast_install=no
  15438. elif test "$shlibpath_overrides_runpath" = yes ||
  15439. test "$enable_shared" = no; then
  15440. # Fast installation is not necessary
  15441. enable_fast_install=needless
  15442. fi
  15443. striplib=
  15444. old_striplib=
  15445. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  15446. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  15447. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  15448. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  15449. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  15450. echo "$as_me:$LINENO: result: yes" >&5
  15451. echo "${ECHO_T}yes" >&6
  15452. else
  15453. # FIXME - insert some real tests, host_os isn't really good enough
  15454. case $host_os in
  15455. darwin*)
  15456. if test -n "$STRIP" ; then
  15457. striplib="$STRIP -x"
  15458. echo "$as_me:$LINENO: result: yes" >&5
  15459. echo "${ECHO_T}yes" >&6
  15460. else
  15461. echo "$as_me:$LINENO: result: no" >&5
  15462. echo "${ECHO_T}no" >&6
  15463. fi
  15464. ;;
  15465. *)
  15466. echo "$as_me:$LINENO: result: no" >&5
  15467. echo "${ECHO_T}no" >&6
  15468. ;;
  15469. esac
  15470. fi
  15471. if test "x$enable_dlopen" != xyes; then
  15472. enable_dlopen=unknown
  15473. enable_dlopen_self=unknown
  15474. enable_dlopen_self_static=unknown
  15475. else
  15476. lt_cv_dlopen=no
  15477. lt_cv_dlopen_libs=
  15478. case $host_os in
  15479. beos*)
  15480. lt_cv_dlopen="load_add_on"
  15481. lt_cv_dlopen_libs=
  15482. lt_cv_dlopen_self=yes
  15483. ;;
  15484. mingw* | pw32*)
  15485. lt_cv_dlopen="LoadLibrary"
  15486. lt_cv_dlopen_libs=
  15487. ;;
  15488. cygwin*)
  15489. lt_cv_dlopen="dlopen"
  15490. lt_cv_dlopen_libs=
  15491. ;;
  15492. darwin*)
  15493. # if libdl is installed we need to link against it
  15494. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  15495. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  15496. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  15497. echo $ECHO_N "(cached) $ECHO_C" >&6
  15498. else
  15499. ac_check_lib_save_LIBS=$LIBS
  15500. LIBS="-ldl $LIBS"
  15501. cat >conftest.$ac_ext <<_ACEOF
  15502. /* confdefs.h. */
  15503. _ACEOF
  15504. cat confdefs.h >>conftest.$ac_ext
  15505. cat >>conftest.$ac_ext <<_ACEOF
  15506. /* end confdefs.h. */
  15507. /* Override any gcc2 internal prototype to avoid an error. */
  15508. #ifdef __cplusplus
  15509. extern "C"
  15510. #endif
  15511. /* We use char because int might match the return type of a gcc2
  15512. builtin and then its argument prototype would still apply. */
  15513. char dlopen ();
  15514. int
  15515. main ()
  15516. {
  15517. dlopen ();
  15518. ;
  15519. return 0;
  15520. }
  15521. _ACEOF
  15522. rm -f conftest.$ac_objext conftest$ac_exeext
  15523. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  15524. (eval $ac_link) 2>conftest.er1
  15525. ac_status=$?
  15526. grep -v '^ *+' conftest.er1 >conftest.err
  15527. rm -f conftest.er1
  15528. cat conftest.err >&5
  15529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15530. (exit $ac_status); } &&
  15531. { ac_try='test -z "$ac_c_werror_flag"
  15532. || test ! -s conftest.err'
  15533. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15534. (eval $ac_try) 2>&5
  15535. ac_status=$?
  15536. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15537. (exit $ac_status); }; } &&
  15538. { ac_try='test -s conftest$ac_exeext'
  15539. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15540. (eval $ac_try) 2>&5
  15541. ac_status=$?
  15542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15543. (exit $ac_status); }; }; then
  15544. ac_cv_lib_dl_dlopen=yes
  15545. else
  15546. echo "$as_me: failed program was:" >&5
  15547. sed 's/^/| /' conftest.$ac_ext >&5
  15548. ac_cv_lib_dl_dlopen=no
  15549. fi
  15550. rm -f conftest.err conftest.$ac_objext \
  15551. conftest$ac_exeext conftest.$ac_ext
  15552. LIBS=$ac_check_lib_save_LIBS
  15553. fi
  15554. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  15555. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  15556. if test $ac_cv_lib_dl_dlopen = yes; then
  15557. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  15558. else
  15559. lt_cv_dlopen="dyld"
  15560. lt_cv_dlopen_libs=
  15561. lt_cv_dlopen_self=yes
  15562. fi
  15563. ;;
  15564. *)
  15565. echo "$as_me:$LINENO: checking for shl_load" >&5
  15566. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  15567. if test "${ac_cv_func_shl_load+set}" = set; then
  15568. echo $ECHO_N "(cached) $ECHO_C" >&6
  15569. else
  15570. cat >conftest.$ac_ext <<_ACEOF
  15571. /* confdefs.h. */
  15572. _ACEOF
  15573. cat confdefs.h >>conftest.$ac_ext
  15574. cat >>conftest.$ac_ext <<_ACEOF
  15575. /* end confdefs.h. */
  15576. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  15577. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15578. #define shl_load innocuous_shl_load
  15579. /* System header to define __stub macros and hopefully few prototypes,
  15580. which can conflict with char shl_load (); below.
  15581. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15582. <limits.h> exists even on freestanding compilers. */
  15583. #ifdef __STDC__
  15584. # include <limits.h>
  15585. #else
  15586. # include <assert.h>
  15587. #endif
  15588. #undef shl_load
  15589. /* Override any gcc2 internal prototype to avoid an error. */
  15590. #ifdef __cplusplus
  15591. extern "C"
  15592. {
  15593. #endif
  15594. /* We use char because int might match the return type of a gcc2
  15595. builtin and then its argument prototype would still apply. */
  15596. char shl_load ();
  15597. /* The GNU C library defines this for functions which it implements
  15598. to always fail with ENOSYS. Some functions are actually named
  15599. something starting with __ and the normal name is an alias. */
  15600. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  15601. choke me
  15602. #else
  15603. char (*f) () = shl_load;
  15604. #endif
  15605. #ifdef __cplusplus
  15606. }
  15607. #endif
  15608. int
  15609. main ()
  15610. {
  15611. return f != shl_load;
  15612. ;
  15613. return 0;
  15614. }
  15615. _ACEOF
  15616. rm -f conftest.$ac_objext conftest$ac_exeext
  15617. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  15618. (eval $ac_link) 2>conftest.er1
  15619. ac_status=$?
  15620. grep -v '^ *+' conftest.er1 >conftest.err
  15621. rm -f conftest.er1
  15622. cat conftest.err >&5
  15623. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15624. (exit $ac_status); } &&
  15625. { ac_try='test -z "$ac_c_werror_flag"
  15626. || test ! -s conftest.err'
  15627. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15628. (eval $ac_try) 2>&5
  15629. ac_status=$?
  15630. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15631. (exit $ac_status); }; } &&
  15632. { ac_try='test -s conftest$ac_exeext'
  15633. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15634. (eval $ac_try) 2>&5
  15635. ac_status=$?
  15636. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15637. (exit $ac_status); }; }; then
  15638. ac_cv_func_shl_load=yes
  15639. else
  15640. echo "$as_me: failed program was:" >&5
  15641. sed 's/^/| /' conftest.$ac_ext >&5
  15642. ac_cv_func_shl_load=no
  15643. fi
  15644. rm -f conftest.err conftest.$ac_objext \
  15645. conftest$ac_exeext conftest.$ac_ext
  15646. fi
  15647. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  15648. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  15649. if test $ac_cv_func_shl_load = yes; then
  15650. lt_cv_dlopen="shl_load"
  15651. else
  15652. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  15653. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  15654. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  15655. echo $ECHO_N "(cached) $ECHO_C" >&6
  15656. else
  15657. ac_check_lib_save_LIBS=$LIBS
  15658. LIBS="-ldld $LIBS"
  15659. cat >conftest.$ac_ext <<_ACEOF
  15660. /* confdefs.h. */
  15661. _ACEOF
  15662. cat confdefs.h >>conftest.$ac_ext
  15663. cat >>conftest.$ac_ext <<_ACEOF
  15664. /* end confdefs.h. */
  15665. /* Override any gcc2 internal prototype to avoid an error. */
  15666. #ifdef __cplusplus
  15667. extern "C"
  15668. #endif
  15669. /* We use char because int might match the return type of a gcc2
  15670. builtin and then its argument prototype would still apply. */
  15671. char shl_load ();
  15672. int
  15673. main ()
  15674. {
  15675. shl_load ();
  15676. ;
  15677. return 0;
  15678. }
  15679. _ACEOF
  15680. rm -f conftest.$ac_objext conftest$ac_exeext
  15681. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  15682. (eval $ac_link) 2>conftest.er1
  15683. ac_status=$?
  15684. grep -v '^ *+' conftest.er1 >conftest.err
  15685. rm -f conftest.er1
  15686. cat conftest.err >&5
  15687. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15688. (exit $ac_status); } &&
  15689. { ac_try='test -z "$ac_c_werror_flag"
  15690. || test ! -s conftest.err'
  15691. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15692. (eval $ac_try) 2>&5
  15693. ac_status=$?
  15694. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15695. (exit $ac_status); }; } &&
  15696. { ac_try='test -s conftest$ac_exeext'
  15697. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15698. (eval $ac_try) 2>&5
  15699. ac_status=$?
  15700. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15701. (exit $ac_status); }; }; then
  15702. ac_cv_lib_dld_shl_load=yes
  15703. else
  15704. echo "$as_me: failed program was:" >&5
  15705. sed 's/^/| /' conftest.$ac_ext >&5
  15706. ac_cv_lib_dld_shl_load=no
  15707. fi
  15708. rm -f conftest.err conftest.$ac_objext \
  15709. conftest$ac_exeext conftest.$ac_ext
  15710. LIBS=$ac_check_lib_save_LIBS
  15711. fi
  15712. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  15713. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  15714. if test $ac_cv_lib_dld_shl_load = yes; then
  15715. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  15716. else
  15717. echo "$as_me:$LINENO: checking for dlopen" >&5
  15718. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  15719. if test "${ac_cv_func_dlopen+set}" = set; then
  15720. echo $ECHO_N "(cached) $ECHO_C" >&6
  15721. else
  15722. cat >conftest.$ac_ext <<_ACEOF
  15723. /* confdefs.h. */
  15724. _ACEOF
  15725. cat confdefs.h >>conftest.$ac_ext
  15726. cat >>conftest.$ac_ext <<_ACEOF
  15727. /* end confdefs.h. */
  15728. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  15729. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15730. #define dlopen innocuous_dlopen
  15731. /* System header to define __stub macros and hopefully few prototypes,
  15732. which can conflict with char dlopen (); below.
  15733. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15734. <limits.h> exists even on freestanding compilers. */
  15735. #ifdef __STDC__
  15736. # include <limits.h>
  15737. #else
  15738. # include <assert.h>
  15739. #endif
  15740. #undef dlopen
  15741. /* Override any gcc2 internal prototype to avoid an error. */
  15742. #ifdef __cplusplus
  15743. extern "C"
  15744. {
  15745. #endif
  15746. /* We use char because int might match the return type of a gcc2
  15747. builtin and then its argument prototype would still apply. */
  15748. char dlopen ();
  15749. /* The GNU C library defines this for functions which it implements
  15750. to always fail with ENOSYS. Some functions are actually named
  15751. something starting with __ and the normal name is an alias. */
  15752. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  15753. choke me
  15754. #else
  15755. char (*f) () = dlopen;
  15756. #endif
  15757. #ifdef __cplusplus
  15758. }
  15759. #endif
  15760. int
  15761. main ()
  15762. {
  15763. return f != dlopen;
  15764. ;
  15765. return 0;
  15766. }
  15767. _ACEOF
  15768. rm -f conftest.$ac_objext conftest$ac_exeext
  15769. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  15770. (eval $ac_link) 2>conftest.er1
  15771. ac_status=$?
  15772. grep -v '^ *+' conftest.er1 >conftest.err
  15773. rm -f conftest.er1
  15774. cat conftest.err >&5
  15775. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15776. (exit $ac_status); } &&
  15777. { ac_try='test -z "$ac_c_werror_flag"
  15778. || test ! -s conftest.err'
  15779. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15780. (eval $ac_try) 2>&5
  15781. ac_status=$?
  15782. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15783. (exit $ac_status); }; } &&
  15784. { ac_try='test -s conftest$ac_exeext'
  15785. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15786. (eval $ac_try) 2>&5
  15787. ac_status=$?
  15788. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15789. (exit $ac_status); }; }; then
  15790. ac_cv_func_dlopen=yes
  15791. else
  15792. echo "$as_me: failed program was:" >&5
  15793. sed 's/^/| /' conftest.$ac_ext >&5
  15794. ac_cv_func_dlopen=no
  15795. fi
  15796. rm -f conftest.err conftest.$ac_objext \
  15797. conftest$ac_exeext conftest.$ac_ext
  15798. fi
  15799. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  15800. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  15801. if test $ac_cv_func_dlopen = yes; then
  15802. lt_cv_dlopen="dlopen"
  15803. else
  15804. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  15805. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  15806. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  15807. echo $ECHO_N "(cached) $ECHO_C" >&6
  15808. else
  15809. ac_check_lib_save_LIBS=$LIBS
  15810. LIBS="-ldl $LIBS"
  15811. cat >conftest.$ac_ext <<_ACEOF
  15812. /* confdefs.h. */
  15813. _ACEOF
  15814. cat confdefs.h >>conftest.$ac_ext
  15815. cat >>conftest.$ac_ext <<_ACEOF
  15816. /* end confdefs.h. */
  15817. /* Override any gcc2 internal prototype to avoid an error. */
  15818. #ifdef __cplusplus
  15819. extern "C"
  15820. #endif
  15821. /* We use char because int might match the return type of a gcc2
  15822. builtin and then its argument prototype would still apply. */
  15823. char dlopen ();
  15824. int
  15825. main ()
  15826. {
  15827. dlopen ();
  15828. ;
  15829. return 0;
  15830. }
  15831. _ACEOF
  15832. rm -f conftest.$ac_objext conftest$ac_exeext
  15833. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  15834. (eval $ac_link) 2>conftest.er1
  15835. ac_status=$?
  15836. grep -v '^ *+' conftest.er1 >conftest.err
  15837. rm -f conftest.er1
  15838. cat conftest.err >&5
  15839. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15840. (exit $ac_status); } &&
  15841. { ac_try='test -z "$ac_c_werror_flag"
  15842. || test ! -s conftest.err'
  15843. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15844. (eval $ac_try) 2>&5
  15845. ac_status=$?
  15846. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15847. (exit $ac_status); }; } &&
  15848. { ac_try='test -s conftest$ac_exeext'
  15849. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15850. (eval $ac_try) 2>&5
  15851. ac_status=$?
  15852. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15853. (exit $ac_status); }; }; then
  15854. ac_cv_lib_dl_dlopen=yes
  15855. else
  15856. echo "$as_me: failed program was:" >&5
  15857. sed 's/^/| /' conftest.$ac_ext >&5
  15858. ac_cv_lib_dl_dlopen=no
  15859. fi
  15860. rm -f conftest.err conftest.$ac_objext \
  15861. conftest$ac_exeext conftest.$ac_ext
  15862. LIBS=$ac_check_lib_save_LIBS
  15863. fi
  15864. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  15865. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  15866. if test $ac_cv_lib_dl_dlopen = yes; then
  15867. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  15868. else
  15869. echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  15870. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  15871. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  15872. echo $ECHO_N "(cached) $ECHO_C" >&6
  15873. else
  15874. ac_check_lib_save_LIBS=$LIBS
  15875. LIBS="-lsvld $LIBS"
  15876. cat >conftest.$ac_ext <<_ACEOF
  15877. /* confdefs.h. */
  15878. _ACEOF
  15879. cat confdefs.h >>conftest.$ac_ext
  15880. cat >>conftest.$ac_ext <<_ACEOF
  15881. /* end confdefs.h. */
  15882. /* Override any gcc2 internal prototype to avoid an error. */
  15883. #ifdef __cplusplus
  15884. extern "C"
  15885. #endif
  15886. /* We use char because int might match the return type of a gcc2
  15887. builtin and then its argument prototype would still apply. */
  15888. char dlopen ();
  15889. int
  15890. main ()
  15891. {
  15892. dlopen ();
  15893. ;
  15894. return 0;
  15895. }
  15896. _ACEOF
  15897. rm -f conftest.$ac_objext conftest$ac_exeext
  15898. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  15899. (eval $ac_link) 2>conftest.er1
  15900. ac_status=$?
  15901. grep -v '^ *+' conftest.er1 >conftest.err
  15902. rm -f conftest.er1
  15903. cat conftest.err >&5
  15904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15905. (exit $ac_status); } &&
  15906. { ac_try='test -z "$ac_c_werror_flag"
  15907. || test ! -s conftest.err'
  15908. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15909. (eval $ac_try) 2>&5
  15910. ac_status=$?
  15911. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15912. (exit $ac_status); }; } &&
  15913. { ac_try='test -s conftest$ac_exeext'
  15914. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15915. (eval $ac_try) 2>&5
  15916. ac_status=$?
  15917. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15918. (exit $ac_status); }; }; then
  15919. ac_cv_lib_svld_dlopen=yes
  15920. else
  15921. echo "$as_me: failed program was:" >&5
  15922. sed 's/^/| /' conftest.$ac_ext >&5
  15923. ac_cv_lib_svld_dlopen=no
  15924. fi
  15925. rm -f conftest.err conftest.$ac_objext \
  15926. conftest$ac_exeext conftest.$ac_ext
  15927. LIBS=$ac_check_lib_save_LIBS
  15928. fi
  15929. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  15930. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  15931. if test $ac_cv_lib_svld_dlopen = yes; then
  15932. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  15933. else
  15934. echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  15935. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  15936. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  15937. echo $ECHO_N "(cached) $ECHO_C" >&6
  15938. else
  15939. ac_check_lib_save_LIBS=$LIBS
  15940. LIBS="-ldld $LIBS"
  15941. cat >conftest.$ac_ext <<_ACEOF
  15942. /* confdefs.h. */
  15943. _ACEOF
  15944. cat confdefs.h >>conftest.$ac_ext
  15945. cat >>conftest.$ac_ext <<_ACEOF
  15946. /* end confdefs.h. */
  15947. /* Override any gcc2 internal prototype to avoid an error. */
  15948. #ifdef __cplusplus
  15949. extern "C"
  15950. #endif
  15951. /* We use char because int might match the return type of a gcc2
  15952. builtin and then its argument prototype would still apply. */
  15953. char dld_link ();
  15954. int
  15955. main ()
  15956. {
  15957. dld_link ();
  15958. ;
  15959. return 0;
  15960. }
  15961. _ACEOF
  15962. rm -f conftest.$ac_objext conftest$ac_exeext
  15963. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  15964. (eval $ac_link) 2>conftest.er1
  15965. ac_status=$?
  15966. grep -v '^ *+' conftest.er1 >conftest.err
  15967. rm -f conftest.er1
  15968. cat conftest.err >&5
  15969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15970. (exit $ac_status); } &&
  15971. { ac_try='test -z "$ac_c_werror_flag"
  15972. || test ! -s conftest.err'
  15973. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15974. (eval $ac_try) 2>&5
  15975. ac_status=$?
  15976. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15977. (exit $ac_status); }; } &&
  15978. { ac_try='test -s conftest$ac_exeext'
  15979. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15980. (eval $ac_try) 2>&5
  15981. ac_status=$?
  15982. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15983. (exit $ac_status); }; }; then
  15984. ac_cv_lib_dld_dld_link=yes
  15985. else
  15986. echo "$as_me: failed program was:" >&5
  15987. sed 's/^/| /' conftest.$ac_ext >&5
  15988. ac_cv_lib_dld_dld_link=no
  15989. fi
  15990. rm -f conftest.err conftest.$ac_objext \
  15991. conftest$ac_exeext conftest.$ac_ext
  15992. LIBS=$ac_check_lib_save_LIBS
  15993. fi
  15994. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  15995. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  15996. if test $ac_cv_lib_dld_dld_link = yes; then
  15997. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  15998. fi
  15999. fi
  16000. fi
  16001. fi
  16002. fi
  16003. fi
  16004. ;;
  16005. esac
  16006. if test "x$lt_cv_dlopen" != xno; then
  16007. enable_dlopen=yes
  16008. else
  16009. enable_dlopen=no
  16010. fi
  16011. case $lt_cv_dlopen in
  16012. dlopen)
  16013. save_CPPFLAGS="$CPPFLAGS"
  16014. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  16015. save_LDFLAGS="$LDFLAGS"
  16016. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  16017. save_LIBS="$LIBS"
  16018. LIBS="$lt_cv_dlopen_libs $LIBS"
  16019. echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  16020. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  16021. if test "${lt_cv_dlopen_self+set}" = set; then
  16022. echo $ECHO_N "(cached) $ECHO_C" >&6
  16023. else
  16024. if test "$cross_compiling" = yes; then :
  16025. lt_cv_dlopen_self=cross
  16026. else
  16027. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  16028. lt_status=$lt_dlunknown
  16029. cat > conftest.$ac_ext <<EOF
  16030. #line 17778 "configure"
  16031. #include "confdefs.h"
  16032. #if HAVE_DLFCN_H
  16033. #include <dlfcn.h>
  16034. #endif
  16035. #include <stdio.h>
  16036. #ifdef RTLD_GLOBAL
  16037. # define LT_DLGLOBAL RTLD_GLOBAL
  16038. #else
  16039. # ifdef DL_GLOBAL
  16040. # define LT_DLGLOBAL DL_GLOBAL
  16041. # else
  16042. # define LT_DLGLOBAL 0
  16043. # endif
  16044. #endif
  16045. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  16046. find out it does not work in some platform. */
  16047. #ifndef LT_DLLAZY_OR_NOW
  16048. # ifdef RTLD_LAZY
  16049. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  16050. # else
  16051. # ifdef DL_LAZY
  16052. # define LT_DLLAZY_OR_NOW DL_LAZY
  16053. # else
  16054. # ifdef RTLD_NOW
  16055. # define LT_DLLAZY_OR_NOW RTLD_NOW
  16056. # else
  16057. # ifdef DL_NOW
  16058. # define LT_DLLAZY_OR_NOW DL_NOW
  16059. # else
  16060. # define LT_DLLAZY_OR_NOW 0
  16061. # endif
  16062. # endif
  16063. # endif
  16064. # endif
  16065. #endif
  16066. #ifdef __cplusplus
  16067. extern "C" void exit (int);
  16068. #endif
  16069. void fnord() { int i=42;}
  16070. int main ()
  16071. {
  16072. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  16073. int status = $lt_dlunknown;
  16074. if (self)
  16075. {
  16076. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  16077. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  16078. /* dlclose (self); */
  16079. }
  16080. exit (status);
  16081. }
  16082. EOF
  16083. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16084. (eval $ac_link) 2>&5
  16085. ac_status=$?
  16086. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16087. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  16088. (./conftest; exit; ) 2>/dev/null
  16089. lt_status=$?
  16090. case x$lt_status in
  16091. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  16092. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  16093. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  16094. esac
  16095. else :
  16096. # compilation failed
  16097. lt_cv_dlopen_self=no
  16098. fi
  16099. fi
  16100. rm -fr conftest*
  16101. fi
  16102. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  16103. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  16104. if test "x$lt_cv_dlopen_self" = xyes; then
  16105. LDFLAGS="$LDFLAGS $link_static_flag"
  16106. echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  16107. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  16108. if test "${lt_cv_dlopen_self_static+set}" = set; then
  16109. echo $ECHO_N "(cached) $ECHO_C" >&6
  16110. else
  16111. if test "$cross_compiling" = yes; then :
  16112. lt_cv_dlopen_self_static=cross
  16113. else
  16114. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  16115. lt_status=$lt_dlunknown
  16116. cat > conftest.$ac_ext <<EOF
  16117. #line 17876 "configure"
  16118. #include "confdefs.h"
  16119. #if HAVE_DLFCN_H
  16120. #include <dlfcn.h>
  16121. #endif
  16122. #include <stdio.h>
  16123. #ifdef RTLD_GLOBAL
  16124. # define LT_DLGLOBAL RTLD_GLOBAL
  16125. #else
  16126. # ifdef DL_GLOBAL
  16127. # define LT_DLGLOBAL DL_GLOBAL
  16128. # else
  16129. # define LT_DLGLOBAL 0
  16130. # endif
  16131. #endif
  16132. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  16133. find out it does not work in some platform. */
  16134. #ifndef LT_DLLAZY_OR_NOW
  16135. # ifdef RTLD_LAZY
  16136. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  16137. # else
  16138. # ifdef DL_LAZY
  16139. # define LT_DLLAZY_OR_NOW DL_LAZY
  16140. # else
  16141. # ifdef RTLD_NOW
  16142. # define LT_DLLAZY_OR_NOW RTLD_NOW
  16143. # else
  16144. # ifdef DL_NOW
  16145. # define LT_DLLAZY_OR_NOW DL_NOW
  16146. # else
  16147. # define LT_DLLAZY_OR_NOW 0
  16148. # endif
  16149. # endif
  16150. # endif
  16151. # endif
  16152. #endif
  16153. #ifdef __cplusplus
  16154. extern "C" void exit (int);
  16155. #endif
  16156. void fnord() { int i=42;}
  16157. int main ()
  16158. {
  16159. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  16160. int status = $lt_dlunknown;
  16161. if (self)
  16162. {
  16163. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  16164. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  16165. /* dlclose (self); */
  16166. }
  16167. exit (status);
  16168. }
  16169. EOF
  16170. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16171. (eval $ac_link) 2>&5
  16172. ac_status=$?
  16173. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16174. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  16175. (./conftest; exit; ) 2>/dev/null
  16176. lt_status=$?
  16177. case x$lt_status in
  16178. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  16179. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  16180. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  16181. esac
  16182. else :
  16183. # compilation failed
  16184. lt_cv_dlopen_self_static=no
  16185. fi
  16186. fi
  16187. rm -fr conftest*
  16188. fi
  16189. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  16190. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  16191. fi
  16192. CPPFLAGS="$save_CPPFLAGS"
  16193. LDFLAGS="$save_LDFLAGS"
  16194. LIBS="$save_LIBS"
  16195. ;;
  16196. esac
  16197. case $lt_cv_dlopen_self in
  16198. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  16199. *) enable_dlopen_self=unknown ;;
  16200. esac
  16201. case $lt_cv_dlopen_self_static in
  16202. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  16203. *) enable_dlopen_self_static=unknown ;;
  16204. esac
  16205. fi
  16206. # The else clause should only fire when bootstrapping the
  16207. # libtool distribution, otherwise you forgot to ship ltmain.sh
  16208. # with your package, and you will get complaints that there are
  16209. # no rules to generate ltmain.sh.
  16210. if test -f "$ltmain"; then
  16211. # See if we are running on zsh, and set the options which allow our commands through
  16212. # without removal of \ escapes.
  16213. if test -n "${ZSH_VERSION+set}" ; then
  16214. setopt NO_GLOB_SUBST
  16215. fi
  16216. # Now quote all the things that may contain metacharacters while being
  16217. # careful not to overquote the AC_SUBSTed values. We take copies of the
  16218. # variables and quote the copies for generation of the libtool script.
  16219. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  16220. SED SHELL STRIP \
  16221. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  16222. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  16223. deplibs_check_method reload_flag reload_cmds need_locks \
  16224. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  16225. lt_cv_sys_global_symbol_to_c_name_address \
  16226. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  16227. old_postinstall_cmds old_postuninstall_cmds \
  16228. compiler_GCJ \
  16229. CC_GCJ \
  16230. LD_GCJ \
  16231. lt_prog_compiler_wl_GCJ \
  16232. lt_prog_compiler_pic_GCJ \
  16233. lt_prog_compiler_static_GCJ \
  16234. lt_prog_compiler_no_builtin_flag_GCJ \
  16235. export_dynamic_flag_spec_GCJ \
  16236. thread_safe_flag_spec_GCJ \
  16237. whole_archive_flag_spec_GCJ \
  16238. enable_shared_with_static_runtimes_GCJ \
  16239. old_archive_cmds_GCJ \
  16240. old_archive_from_new_cmds_GCJ \
  16241. predep_objects_GCJ \
  16242. postdep_objects_GCJ \
  16243. predeps_GCJ \
  16244. postdeps_GCJ \
  16245. compiler_lib_search_path_GCJ \
  16246. archive_cmds_GCJ \
  16247. archive_expsym_cmds_GCJ \
  16248. postinstall_cmds_GCJ \
  16249. postuninstall_cmds_GCJ \
  16250. old_archive_from_expsyms_cmds_GCJ \
  16251. allow_undefined_flag_GCJ \
  16252. no_undefined_flag_GCJ \
  16253. export_symbols_cmds_GCJ \
  16254. hardcode_libdir_flag_spec_GCJ \
  16255. hardcode_libdir_flag_spec_ld_GCJ \
  16256. hardcode_libdir_separator_GCJ \
  16257. hardcode_automatic_GCJ \
  16258. module_cmds_GCJ \
  16259. module_expsym_cmds_GCJ \
  16260. lt_cv_prog_compiler_c_o_GCJ \
  16261. exclude_expsyms_GCJ \
  16262. include_expsyms_GCJ; do
  16263. case $var in
  16264. old_archive_cmds_GCJ | \
  16265. old_archive_from_new_cmds_GCJ | \
  16266. archive_cmds_GCJ | \
  16267. archive_expsym_cmds_GCJ | \
  16268. module_cmds_GCJ | \
  16269. module_expsym_cmds_GCJ | \
  16270. old_archive_from_expsyms_cmds_GCJ | \
  16271. export_symbols_cmds_GCJ | \
  16272. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16273. postinstall_cmds | postuninstall_cmds | \
  16274. old_postinstall_cmds | old_postuninstall_cmds | \
  16275. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16276. # Double-quote double-evaled strings.
  16277. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16278. ;;
  16279. *)
  16280. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16281. ;;
  16282. esac
  16283. done
  16284. case $lt_echo in
  16285. *'\$0 --fallback-echo"')
  16286. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  16287. ;;
  16288. esac
  16289. cfgfile="$ofile"
  16290. cat <<__EOF__ >> "$cfgfile"
  16291. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  16292. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16293. # Shell to use when invoking shell scripts.
  16294. SHELL=$lt_SHELL
  16295. # Whether or not to build shared libraries.
  16296. build_libtool_libs=$enable_shared
  16297. # Whether or not to build static libraries.
  16298. build_old_libs=$enable_static
  16299. # Whether or not to add -lc for building shared libraries.
  16300. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  16301. # Whether or not to disallow shared libs when runtime libs are static
  16302. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  16303. # Whether or not to optimize for fast installation.
  16304. fast_install=$enable_fast_install
  16305. # The host system.
  16306. host_alias=$host_alias
  16307. host=$host
  16308. host_os=$host_os
  16309. # The build system.
  16310. build_alias=$build_alias
  16311. build=$build
  16312. build_os=$build_os
  16313. # An echo program that does not interpret backslashes.
  16314. echo=$lt_echo
  16315. # The archiver.
  16316. AR=$lt_AR
  16317. AR_FLAGS=$lt_AR_FLAGS
  16318. # A C compiler.
  16319. LTCC=$lt_LTCC
  16320. # A language-specific compiler.
  16321. CC=$lt_compiler_GCJ
  16322. # Is the compiler the GNU C compiler?
  16323. with_gcc=$GCC_GCJ
  16324. # An ERE matcher.
  16325. EGREP=$lt_EGREP
  16326. # The linker used to build libraries.
  16327. LD=$lt_LD_GCJ
  16328. # Whether we need hard or soft links.
  16329. LN_S=$lt_LN_S
  16330. # A BSD-compatible nm program.
  16331. NM=$lt_NM
  16332. # A symbol stripping program
  16333. STRIP=$lt_STRIP
  16334. # Used to examine libraries when file_magic_cmd begins "file"
  16335. MAGIC_CMD=$MAGIC_CMD
  16336. # Used on cygwin: DLL creation program.
  16337. DLLTOOL="$DLLTOOL"
  16338. # Used on cygwin: object dumper.
  16339. OBJDUMP="$OBJDUMP"
  16340. # Used on cygwin: assembler.
  16341. AS="$AS"
  16342. # The name of the directory that contains temporary libtool files.
  16343. objdir=$objdir
  16344. # How to create reloadable object files.
  16345. reload_flag=$lt_reload_flag
  16346. reload_cmds=$lt_reload_cmds
  16347. # How to pass a linker flag through the compiler.
  16348. wl=$lt_lt_prog_compiler_wl_GCJ
  16349. # Object file suffix (normally "o").
  16350. objext="$ac_objext"
  16351. # Old archive suffix (normally "a").
  16352. libext="$libext"
  16353. # Shared library suffix (normally ".so").
  16354. shrext_cmds='$shrext_cmds'
  16355. # Executable file suffix (normally "").
  16356. exeext="$exeext"
  16357. # Additional compiler flags for building library objects.
  16358. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  16359. pic_mode=$pic_mode
  16360. # What is the maximum length of a command?
  16361. max_cmd_len=$lt_cv_sys_max_cmd_len
  16362. # Does compiler simultaneously support -c and -o options?
  16363. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  16364. # Must we lock files when doing compilation?
  16365. need_locks=$lt_need_locks
  16366. # Do we need the lib prefix for modules?
  16367. need_lib_prefix=$need_lib_prefix
  16368. # Do we need a version for libraries?
  16369. need_version=$need_version
  16370. # Whether dlopen is supported.
  16371. dlopen_support=$enable_dlopen
  16372. # Whether dlopen of programs is supported.
  16373. dlopen_self=$enable_dlopen_self
  16374. # Whether dlopen of statically linked programs is supported.
  16375. dlopen_self_static=$enable_dlopen_self_static
  16376. # Compiler flag to prevent dynamic linking.
  16377. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  16378. # Compiler flag to turn off builtin functions.
  16379. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  16380. # Compiler flag to allow reflexive dlopens.
  16381. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  16382. # Compiler flag to generate shared objects directly from archives.
  16383. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  16384. # Compiler flag to generate thread-safe objects.
  16385. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  16386. # Library versioning type.
  16387. version_type=$version_type
  16388. # Format of library name prefix.
  16389. libname_spec=$lt_libname_spec
  16390. # List of archive names. First name is the real one, the rest are links.
  16391. # The last name is the one that the linker finds with -lNAME.
  16392. library_names_spec=$lt_library_names_spec
  16393. # The coded name of the library, if different from the real name.
  16394. soname_spec=$lt_soname_spec
  16395. # Commands used to build and install an old-style archive.
  16396. RANLIB=$lt_RANLIB
  16397. old_archive_cmds=$lt_old_archive_cmds_GCJ
  16398. old_postinstall_cmds=$lt_old_postinstall_cmds
  16399. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16400. # Create an old-style archive from a shared archive.
  16401. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  16402. # Create a temporary old-style archive to link instead of a shared archive.
  16403. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  16404. # Commands used to build and install a shared archive.
  16405. archive_cmds=$lt_archive_cmds_GCJ
  16406. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  16407. postinstall_cmds=$lt_postinstall_cmds
  16408. postuninstall_cmds=$lt_postuninstall_cmds
  16409. # Commands used to build a loadable module (assumed same as above if empty)
  16410. module_cmds=$lt_module_cmds_GCJ
  16411. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  16412. # Commands to strip libraries.
  16413. old_striplib=$lt_old_striplib
  16414. striplib=$lt_striplib
  16415. # Dependencies to place before the objects being linked to create a
  16416. # shared library.
  16417. predep_objects=$lt_predep_objects_GCJ
  16418. # Dependencies to place after the objects being linked to create a
  16419. # shared library.
  16420. postdep_objects=$lt_postdep_objects_GCJ
  16421. # Dependencies to place before the objects being linked to create a
  16422. # shared library.
  16423. predeps=$lt_predeps_GCJ
  16424. # Dependencies to place after the objects being linked to create a
  16425. # shared library.
  16426. postdeps=$lt_postdeps_GCJ
  16427. # The library search path used internally by the compiler when linking
  16428. # a shared library.
  16429. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  16430. # Method to check whether dependent libraries are shared objects.
  16431. deplibs_check_method=$lt_deplibs_check_method
  16432. # Command to use when deplibs_check_method == file_magic.
  16433. file_magic_cmd=$lt_file_magic_cmd
  16434. # Flag that allows shared libraries with undefined symbols to be built.
  16435. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  16436. # Flag that forces no undefined symbols.
  16437. no_undefined_flag=$lt_no_undefined_flag_GCJ
  16438. # Commands used to finish a libtool library installation in a directory.
  16439. finish_cmds=$lt_finish_cmds
  16440. # Same as above, but a single script fragment to be evaled but not shown.
  16441. finish_eval=$lt_finish_eval
  16442. # Take the output of nm and produce a listing of raw symbols and C names.
  16443. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16444. # Transform the output of nm in a proper C declaration
  16445. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16446. # Transform the output of nm in a C name address pair
  16447. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16448. # This is the shared library runtime path variable.
  16449. runpath_var=$runpath_var
  16450. # This is the shared library path variable.
  16451. shlibpath_var=$shlibpath_var
  16452. # Is shlibpath searched before the hard-coded library search path?
  16453. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16454. # How to hardcode a shared library path into an executable.
  16455. hardcode_action=$hardcode_action_GCJ
  16456. # Whether we should hardcode library paths into libraries.
  16457. hardcode_into_libs=$hardcode_into_libs
  16458. # Flag to hardcode \$libdir into a binary during linking.
  16459. # This must work even if \$libdir does not exist.
  16460. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  16461. # If ld is used when linking, flag to hardcode \$libdir into
  16462. # a binary during linking. This must work even if \$libdir does
  16463. # not exist.
  16464. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  16465. # Whether we need a single -rpath flag with a separated argument.
  16466. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  16467. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  16468. # resulting binary.
  16469. hardcode_direct=$hardcode_direct_GCJ
  16470. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  16471. # resulting binary.
  16472. hardcode_minus_L=$hardcode_minus_L_GCJ
  16473. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  16474. # the resulting binary.
  16475. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  16476. # Set to yes if building a shared library automatically hardcodes DIR into the library
  16477. # and all subsequent libraries and executables linked against it.
  16478. hardcode_automatic=$hardcode_automatic_GCJ
  16479. # Variables whose values should be saved in libtool wrapper scripts and
  16480. # restored at relink time.
  16481. variables_saved_for_relink="$variables_saved_for_relink"
  16482. # Whether libtool must link a program against all its dependency libraries.
  16483. link_all_deplibs=$link_all_deplibs_GCJ
  16484. # Compile-time system search path for libraries
  16485. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16486. # Run-time system search path for libraries
  16487. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16488. # Fix the shell variable \$srcfile for the compiler.
  16489. fix_srcfile_path="$fix_srcfile_path_GCJ"
  16490. # Set to yes if exported symbols are required.
  16491. always_export_symbols=$always_export_symbols_GCJ
  16492. # The commands to list exported symbols.
  16493. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  16494. # The commands to extract the exported symbol list from a shared archive.
  16495. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16496. # Symbols that should not be listed in the preloaded symbols.
  16497. exclude_expsyms=$lt_exclude_expsyms_GCJ
  16498. # Symbols that must always be exported.
  16499. include_expsyms=$lt_include_expsyms_GCJ
  16500. # ### END LIBTOOL TAG CONFIG: $tagname
  16501. __EOF__
  16502. else
  16503. # If there is no Makefile yet, we rely on a make rule to execute
  16504. # `config.status --recheck' to rerun these tests and create the
  16505. # libtool script then.
  16506. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  16507. if test -f "$ltmain_in"; then
  16508. test -f Makefile && make "$ltmain"
  16509. fi
  16510. fi
  16511. ac_ext=c
  16512. ac_cpp='$CPP $CPPFLAGS'
  16513. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16514. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16515. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16516. CC="$lt_save_CC"
  16517. else
  16518. tagname=""
  16519. fi
  16520. ;;
  16521. RC)
  16522. # Source file extension for RC test sources.
  16523. ac_ext=rc
  16524. # Object file extension for compiled RC test sources.
  16525. objext=o
  16526. objext_RC=$objext
  16527. # Code to be used in simple compile tests
  16528. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  16529. # Code to be used in simple link tests
  16530. lt_simple_link_test_code="$lt_simple_compile_test_code"
  16531. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  16532. # If no C compiler was specified, use CC.
  16533. LTCC=${LTCC-"$CC"}
  16534. # Allow CC to be a program name with arguments.
  16535. compiler=$CC
  16536. # save warnings/boilerplate of simple test code
  16537. ac_outfile=conftest.$ac_objext
  16538. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  16539. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  16540. _lt_compiler_boilerplate=`cat conftest.err`
  16541. $rm conftest*
  16542. ac_outfile=conftest.$ac_objext
  16543. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  16544. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  16545. _lt_linker_boilerplate=`cat conftest.err`
  16546. $rm conftest*
  16547. # Allow CC to be a program name with arguments.
  16548. lt_save_CC="$CC"
  16549. CC=${RC-"windres"}
  16550. compiler=$CC
  16551. compiler_RC=$CC
  16552. for cc_temp in $compiler""; do
  16553. case $cc_temp in
  16554. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  16555. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  16556. \-*) ;;
  16557. *) break;;
  16558. esac
  16559. done
  16560. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  16561. lt_cv_prog_compiler_c_o_RC=yes
  16562. # The else clause should only fire when bootstrapping the
  16563. # libtool distribution, otherwise you forgot to ship ltmain.sh
  16564. # with your package, and you will get complaints that there are
  16565. # no rules to generate ltmain.sh.
  16566. if test -f "$ltmain"; then
  16567. # See if we are running on zsh, and set the options which allow our commands through
  16568. # without removal of \ escapes.
  16569. if test -n "${ZSH_VERSION+set}" ; then
  16570. setopt NO_GLOB_SUBST
  16571. fi
  16572. # Now quote all the things that may contain metacharacters while being
  16573. # careful not to overquote the AC_SUBSTed values. We take copies of the
  16574. # variables and quote the copies for generation of the libtool script.
  16575. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  16576. SED SHELL STRIP \
  16577. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  16578. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  16579. deplibs_check_method reload_flag reload_cmds need_locks \
  16580. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  16581. lt_cv_sys_global_symbol_to_c_name_address \
  16582. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  16583. old_postinstall_cmds old_postuninstall_cmds \
  16584. compiler_RC \
  16585. CC_RC \
  16586. LD_RC \
  16587. lt_prog_compiler_wl_RC \
  16588. lt_prog_compiler_pic_RC \
  16589. lt_prog_compiler_static_RC \
  16590. lt_prog_compiler_no_builtin_flag_RC \
  16591. export_dynamic_flag_spec_RC \
  16592. thread_safe_flag_spec_RC \
  16593. whole_archive_flag_spec_RC \
  16594. enable_shared_with_static_runtimes_RC \
  16595. old_archive_cmds_RC \
  16596. old_archive_from_new_cmds_RC \
  16597. predep_objects_RC \
  16598. postdep_objects_RC \
  16599. predeps_RC \
  16600. postdeps_RC \
  16601. compiler_lib_search_path_RC \
  16602. archive_cmds_RC \
  16603. archive_expsym_cmds_RC \
  16604. postinstall_cmds_RC \
  16605. postuninstall_cmds_RC \
  16606. old_archive_from_expsyms_cmds_RC \
  16607. allow_undefined_flag_RC \
  16608. no_undefined_flag_RC \
  16609. export_symbols_cmds_RC \
  16610. hardcode_libdir_flag_spec_RC \
  16611. hardcode_libdir_flag_spec_ld_RC \
  16612. hardcode_libdir_separator_RC \
  16613. hardcode_automatic_RC \
  16614. module_cmds_RC \
  16615. module_expsym_cmds_RC \
  16616. lt_cv_prog_compiler_c_o_RC \
  16617. exclude_expsyms_RC \
  16618. include_expsyms_RC; do
  16619. case $var in
  16620. old_archive_cmds_RC | \
  16621. old_archive_from_new_cmds_RC | \
  16622. archive_cmds_RC | \
  16623. archive_expsym_cmds_RC | \
  16624. module_cmds_RC | \
  16625. module_expsym_cmds_RC | \
  16626. old_archive_from_expsyms_cmds_RC | \
  16627. export_symbols_cmds_RC | \
  16628. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16629. postinstall_cmds | postuninstall_cmds | \
  16630. old_postinstall_cmds | old_postuninstall_cmds | \
  16631. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16632. # Double-quote double-evaled strings.
  16633. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16634. ;;
  16635. *)
  16636. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16637. ;;
  16638. esac
  16639. done
  16640. case $lt_echo in
  16641. *'\$0 --fallback-echo"')
  16642. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  16643. ;;
  16644. esac
  16645. cfgfile="$ofile"
  16646. cat <<__EOF__ >> "$cfgfile"
  16647. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  16648. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16649. # Shell to use when invoking shell scripts.
  16650. SHELL=$lt_SHELL
  16651. # Whether or not to build shared libraries.
  16652. build_libtool_libs=$enable_shared
  16653. # Whether or not to build static libraries.
  16654. build_old_libs=$enable_static
  16655. # Whether or not to add -lc for building shared libraries.
  16656. build_libtool_need_lc=$archive_cmds_need_lc_RC
  16657. # Whether or not to disallow shared libs when runtime libs are static
  16658. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  16659. # Whether or not to optimize for fast installation.
  16660. fast_install=$enable_fast_install
  16661. # The host system.
  16662. host_alias=$host_alias
  16663. host=$host
  16664. host_os=$host_os
  16665. # The build system.
  16666. build_alias=$build_alias
  16667. build=$build
  16668. build_os=$build_os
  16669. # An echo program that does not interpret backslashes.
  16670. echo=$lt_echo
  16671. # The archiver.
  16672. AR=$lt_AR
  16673. AR_FLAGS=$lt_AR_FLAGS
  16674. # A C compiler.
  16675. LTCC=$lt_LTCC
  16676. # A language-specific compiler.
  16677. CC=$lt_compiler_RC
  16678. # Is the compiler the GNU C compiler?
  16679. with_gcc=$GCC_RC
  16680. # An ERE matcher.
  16681. EGREP=$lt_EGREP
  16682. # The linker used to build libraries.
  16683. LD=$lt_LD_RC
  16684. # Whether we need hard or soft links.
  16685. LN_S=$lt_LN_S
  16686. # A BSD-compatible nm program.
  16687. NM=$lt_NM
  16688. # A symbol stripping program
  16689. STRIP=$lt_STRIP
  16690. # Used to examine libraries when file_magic_cmd begins "file"
  16691. MAGIC_CMD=$MAGIC_CMD
  16692. # Used on cygwin: DLL creation program.
  16693. DLLTOOL="$DLLTOOL"
  16694. # Used on cygwin: object dumper.
  16695. OBJDUMP="$OBJDUMP"
  16696. # Used on cygwin: assembler.
  16697. AS="$AS"
  16698. # The name of the directory that contains temporary libtool files.
  16699. objdir=$objdir
  16700. # How to create reloadable object files.
  16701. reload_flag=$lt_reload_flag
  16702. reload_cmds=$lt_reload_cmds
  16703. # How to pass a linker flag through the compiler.
  16704. wl=$lt_lt_prog_compiler_wl_RC
  16705. # Object file suffix (normally "o").
  16706. objext="$ac_objext"
  16707. # Old archive suffix (normally "a").
  16708. libext="$libext"
  16709. # Shared library suffix (normally ".so").
  16710. shrext_cmds='$shrext_cmds'
  16711. # Executable file suffix (normally "").
  16712. exeext="$exeext"
  16713. # Additional compiler flags for building library objects.
  16714. pic_flag=$lt_lt_prog_compiler_pic_RC
  16715. pic_mode=$pic_mode
  16716. # What is the maximum length of a command?
  16717. max_cmd_len=$lt_cv_sys_max_cmd_len
  16718. # Does compiler simultaneously support -c and -o options?
  16719. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  16720. # Must we lock files when doing compilation?
  16721. need_locks=$lt_need_locks
  16722. # Do we need the lib prefix for modules?
  16723. need_lib_prefix=$need_lib_prefix
  16724. # Do we need a version for libraries?
  16725. need_version=$need_version
  16726. # Whether dlopen is supported.
  16727. dlopen_support=$enable_dlopen
  16728. # Whether dlopen of programs is supported.
  16729. dlopen_self=$enable_dlopen_self
  16730. # Whether dlopen of statically linked programs is supported.
  16731. dlopen_self_static=$enable_dlopen_self_static
  16732. # Compiler flag to prevent dynamic linking.
  16733. link_static_flag=$lt_lt_prog_compiler_static_RC
  16734. # Compiler flag to turn off builtin functions.
  16735. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  16736. # Compiler flag to allow reflexive dlopens.
  16737. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  16738. # Compiler flag to generate shared objects directly from archives.
  16739. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  16740. # Compiler flag to generate thread-safe objects.
  16741. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  16742. # Library versioning type.
  16743. version_type=$version_type
  16744. # Format of library name prefix.
  16745. libname_spec=$lt_libname_spec
  16746. # List of archive names. First name is the real one, the rest are links.
  16747. # The last name is the one that the linker finds with -lNAME.
  16748. library_names_spec=$lt_library_names_spec
  16749. # The coded name of the library, if different from the real name.
  16750. soname_spec=$lt_soname_spec
  16751. # Commands used to build and install an old-style archive.
  16752. RANLIB=$lt_RANLIB
  16753. old_archive_cmds=$lt_old_archive_cmds_RC
  16754. old_postinstall_cmds=$lt_old_postinstall_cmds
  16755. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16756. # Create an old-style archive from a shared archive.
  16757. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  16758. # Create a temporary old-style archive to link instead of a shared archive.
  16759. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  16760. # Commands used to build and install a shared archive.
  16761. archive_cmds=$lt_archive_cmds_RC
  16762. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  16763. postinstall_cmds=$lt_postinstall_cmds
  16764. postuninstall_cmds=$lt_postuninstall_cmds
  16765. # Commands used to build a loadable module (assumed same as above if empty)
  16766. module_cmds=$lt_module_cmds_RC
  16767. module_expsym_cmds=$lt_module_expsym_cmds_RC
  16768. # Commands to strip libraries.
  16769. old_striplib=$lt_old_striplib
  16770. striplib=$lt_striplib
  16771. # Dependencies to place before the objects being linked to create a
  16772. # shared library.
  16773. predep_objects=$lt_predep_objects_RC
  16774. # Dependencies to place after the objects being linked to create a
  16775. # shared library.
  16776. postdep_objects=$lt_postdep_objects_RC
  16777. # Dependencies to place before the objects being linked to create a
  16778. # shared library.
  16779. predeps=$lt_predeps_RC
  16780. # Dependencies to place after the objects being linked to create a
  16781. # shared library.
  16782. postdeps=$lt_postdeps_RC
  16783. # The library search path used internally by the compiler when linking
  16784. # a shared library.
  16785. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  16786. # Method to check whether dependent libraries are shared objects.
  16787. deplibs_check_method=$lt_deplibs_check_method
  16788. # Command to use when deplibs_check_method == file_magic.
  16789. file_magic_cmd=$lt_file_magic_cmd
  16790. # Flag that allows shared libraries with undefined symbols to be built.
  16791. allow_undefined_flag=$lt_allow_undefined_flag_RC
  16792. # Flag that forces no undefined symbols.
  16793. no_undefined_flag=$lt_no_undefined_flag_RC
  16794. # Commands used to finish a libtool library installation in a directory.
  16795. finish_cmds=$lt_finish_cmds
  16796. # Same as above, but a single script fragment to be evaled but not shown.
  16797. finish_eval=$lt_finish_eval
  16798. # Take the output of nm and produce a listing of raw symbols and C names.
  16799. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16800. # Transform the output of nm in a proper C declaration
  16801. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16802. # Transform the output of nm in a C name address pair
  16803. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16804. # This is the shared library runtime path variable.
  16805. runpath_var=$runpath_var
  16806. # This is the shared library path variable.
  16807. shlibpath_var=$shlibpath_var
  16808. # Is shlibpath searched before the hard-coded library search path?
  16809. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16810. # How to hardcode a shared library path into an executable.
  16811. hardcode_action=$hardcode_action_RC
  16812. # Whether we should hardcode library paths into libraries.
  16813. hardcode_into_libs=$hardcode_into_libs
  16814. # Flag to hardcode \$libdir into a binary during linking.
  16815. # This must work even if \$libdir does not exist.
  16816. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  16817. # If ld is used when linking, flag to hardcode \$libdir into
  16818. # a binary during linking. This must work even if \$libdir does
  16819. # not exist.
  16820. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  16821. # Whether we need a single -rpath flag with a separated argument.
  16822. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  16823. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  16824. # resulting binary.
  16825. hardcode_direct=$hardcode_direct_RC
  16826. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  16827. # resulting binary.
  16828. hardcode_minus_L=$hardcode_minus_L_RC
  16829. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  16830. # the resulting binary.
  16831. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  16832. # Set to yes if building a shared library automatically hardcodes DIR into the library
  16833. # and all subsequent libraries and executables linked against it.
  16834. hardcode_automatic=$hardcode_automatic_RC
  16835. # Variables whose values should be saved in libtool wrapper scripts and
  16836. # restored at relink time.
  16837. variables_saved_for_relink="$variables_saved_for_relink"
  16838. # Whether libtool must link a program against all its dependency libraries.
  16839. link_all_deplibs=$link_all_deplibs_RC
  16840. # Compile-time system search path for libraries
  16841. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16842. # Run-time system search path for libraries
  16843. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16844. # Fix the shell variable \$srcfile for the compiler.
  16845. fix_srcfile_path="$fix_srcfile_path_RC"
  16846. # Set to yes if exported symbols are required.
  16847. always_export_symbols=$always_export_symbols_RC
  16848. # The commands to list exported symbols.
  16849. export_symbols_cmds=$lt_export_symbols_cmds_RC
  16850. # The commands to extract the exported symbol list from a shared archive.
  16851. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16852. # Symbols that should not be listed in the preloaded symbols.
  16853. exclude_expsyms=$lt_exclude_expsyms_RC
  16854. # Symbols that must always be exported.
  16855. include_expsyms=$lt_include_expsyms_RC
  16856. # ### END LIBTOOL TAG CONFIG: $tagname
  16857. __EOF__
  16858. else
  16859. # If there is no Makefile yet, we rely on a make rule to execute
  16860. # `config.status --recheck' to rerun these tests and create the
  16861. # libtool script then.
  16862. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  16863. if test -f "$ltmain_in"; then
  16864. test -f Makefile && make "$ltmain"
  16865. fi
  16866. fi
  16867. ac_ext=c
  16868. ac_cpp='$CPP $CPPFLAGS'
  16869. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16870. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16871. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16872. CC="$lt_save_CC"
  16873. ;;
  16874. *)
  16875. { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  16876. echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  16877. { (exit 1); exit 1; }; }
  16878. ;;
  16879. esac
  16880. # Append the new tag name to the list of available tags.
  16881. if test -n "$tagname" ; then
  16882. available_tags="$available_tags $tagname"
  16883. fi
  16884. fi
  16885. done
  16886. IFS="$lt_save_ifs"
  16887. # Now substitute the updated list of available tags.
  16888. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  16889. mv "${ofile}T" "$ofile"
  16890. chmod +x "$ofile"
  16891. else
  16892. rm -f "${ofile}T"
  16893. { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  16894. echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  16895. { (exit 1); exit 1; }; }
  16896. fi
  16897. fi
  16898. # This can be used to rebuild libtool when needed
  16899. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  16900. # Always use our own libtool.
  16901. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  16902. # Prevent multiple expansion
  16903. MAJOR_VERSION=3
  16904. MINOR_VERSION=0
  16905. MICRO_VERSION=beta6
  16906. TCPREPLAY_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION
  16907. TCPREPLAY_RELEASE=1
  16908. cat >>confdefs.h <<\_ACEOF
  16909. #define PACKAGE tcpreplay
  16910. _ACEOF
  16911. cat >>confdefs.h <<_ACEOF
  16912. #define VERSION "$TCPREPLAY_VERSION"
  16913. _ACEOF
  16914. CFLAGS="$CFLAGS -Wall -O2 -funroll-loops" # -std=c99 -Wno-variadic-macros"
  16915. echo "$as_me:$LINENO: checking target system type" >&5
  16916. echo $ECHO_N "checking target system type... $ECHO_C" >&6
  16917. if test "${ac_cv_target+set}" = set; then
  16918. echo $ECHO_N "(cached) $ECHO_C" >&6
  16919. else
  16920. ac_cv_target_alias=$target_alias
  16921. test "x$ac_cv_target_alias" = "x" &&
  16922. ac_cv_target_alias=$ac_cv_host_alias
  16923. ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
  16924. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
  16925. echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
  16926. { (exit 1); exit 1; }; }
  16927. fi
  16928. echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  16929. echo "${ECHO_T}$ac_cv_target" >&6
  16930. target=$ac_cv_target
  16931. target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  16932. target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  16933. target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  16934. # The aliases save the names the user supplied, while $host etc.
  16935. # will get canonicalized.
  16936. test -n "$target_alias" &&
  16937. test "$program_prefix$program_suffix$program_transform_name" = \
  16938. NONENONEs,x,x, &&
  16939. program_prefix=${target_alias}-
  16940. am__api_version="1.9"
  16941. # Find a good install program. We prefer a C program (faster),
  16942. # so one script is as good as another. But avoid the broken or
  16943. # incompatible versions:
  16944. # SysV /etc/install, /usr/sbin/install
  16945. # SunOS /usr/etc/install
  16946. # IRIX /sbin/install
  16947. # AIX /bin/install
  16948. # AmigaOS /C/install, which installs bootblocks on floppy discs
  16949. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  16950. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  16951. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  16952. # OS/2's system install, which has a completely different semantic
  16953. # ./install, which can be erroneously created by make from ./install.sh.
  16954. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  16955. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  16956. if test -z "$INSTALL"; then
  16957. if test "${ac_cv_path_install+set}" = set; then
  16958. echo $ECHO_N "(cached) $ECHO_C" >&6
  16959. else
  16960. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16961. for as_dir in $PATH
  16962. do
  16963. IFS=$as_save_IFS
  16964. test -z "$as_dir" && as_dir=.
  16965. # Account for people who put trailing slashes in PATH elements.
  16966. case $as_dir/ in
  16967. ./ | .// | /cC/* | \
  16968. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  16969. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  16970. /usr/ucb/* ) ;;
  16971. *)
  16972. # OSF1 and SCO ODT 3.0 have their own names for install.
  16973. # Don't use installbsd from OSF since it installs stuff as root
  16974. # by default.
  16975. for ac_prog in ginstall scoinst install; do
  16976. for ac_exec_ext in '' $ac_executable_extensions; do
  16977. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  16978. if test $ac_prog = install &&
  16979. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  16980. # AIX install. It has an incompatible calling convention.
  16981. :
  16982. elif test $ac_prog = install &&
  16983. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  16984. # program-specific install script used by HP pwplus--don't use.
  16985. :
  16986. else
  16987. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  16988. break 3
  16989. fi
  16990. fi
  16991. done
  16992. done
  16993. ;;
  16994. esac
  16995. done
  16996. fi
  16997. if test "${ac_cv_path_install+set}" = set; then
  16998. INSTALL=$ac_cv_path_install
  16999. else
  17000. # As a last resort, use the slow shell script. We don't cache a
  17001. # path for INSTALL within a source directory, because that will
  17002. # break other packages using the cache if that directory is
  17003. # removed, or if the path is relative.
  17004. INSTALL=$ac_install_sh
  17005. fi
  17006. fi
  17007. echo "$as_me:$LINENO: result: $INSTALL" >&5
  17008. echo "${ECHO_T}$INSTALL" >&6
  17009. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  17010. # It thinks the first close brace ends the variable substitution.
  17011. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  17012. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  17013. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  17014. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  17015. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  17016. # Just in case
  17017. sleep 1
  17018. echo timestamp > conftest.file
  17019. # Do `set' in a subshell so we don't clobber the current shell's
  17020. # arguments. Must try -L first in case configure is actually a
  17021. # symlink; some systems play weird games with the mod time of symlinks
  17022. # (eg FreeBSD returns the mod time of the symlink's containing
  17023. # directory).
  17024. if (
  17025. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  17026. if test "$*" = "X"; then
  17027. # -L didn't work.
  17028. set X `ls -t $srcdir/configure conftest.file`
  17029. fi
  17030. rm -f conftest.file
  17031. if test "$*" != "X $srcdir/configure conftest.file" \
  17032. && test "$*" != "X conftest.file $srcdir/configure"; then
  17033. # If neither matched, then we have a broken ls. This can happen
  17034. # if, for instance, CONFIG_SHELL is bash and it inherits a
  17035. # broken ls alias from the environment. This has actually
  17036. # happened. Such a system could not be considered "sane".
  17037. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  17038. alias in your environment" >&5
  17039. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  17040. alias in your environment" >&2;}
  17041. { (exit 1); exit 1; }; }
  17042. fi
  17043. test "$2" = conftest.file
  17044. )
  17045. then
  17046. # Ok.
  17047. :
  17048. else
  17049. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  17050. Check your system clock" >&5
  17051. echo "$as_me: error: newly created file is older than distributed files!
  17052. Check your system clock" >&2;}
  17053. { (exit 1); exit 1; }; }
  17054. fi
  17055. echo "$as_me:$LINENO: result: yes" >&5
  17056. echo "${ECHO_T}yes" >&6
  17057. test "$program_prefix" != NONE &&
  17058. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  17059. # Use a double $ so make ignores it.
  17060. test "$program_suffix" != NONE &&
  17061. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  17062. # Double any \ or $. echo might interpret backslashes.
  17063. # By default was `s,x,x', remove it if useless.
  17064. cat <<\_ACEOF >conftest.sed
  17065. s/[\\$]/&&/g;s/;s,x,x,$//
  17066. _ACEOF
  17067. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  17068. rm conftest.sed
  17069. # expand $ac_aux_dir to an absolute path
  17070. am_aux_dir=`cd $ac_aux_dir && pwd`
  17071. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  17072. # Use eval to expand $SHELL
  17073. if eval "$MISSING --run true"; then
  17074. am_missing_run="$MISSING --run "
  17075. else
  17076. am_missing_run=
  17077. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  17078. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  17079. fi
  17080. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  17081. # We used to keeping the `.' as first argument, in order to
  17082. # allow $(mkdir_p) to be used without argument. As in
  17083. # $(mkdir_p) $(somedir)
  17084. # where $(somedir) is conditionally defined. However this is wrong
  17085. # for two reasons:
  17086. # 1. if the package is installed by a user who cannot write `.'
  17087. # make install will fail,
  17088. # 2. the above comment should most certainly read
  17089. # $(mkdir_p) $(DESTDIR)$(somedir)
  17090. # so it does not work when $(somedir) is undefined and
  17091. # $(DESTDIR) is not.
  17092. # To support the latter case, we have to write
  17093. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  17094. # so the `.' trick is pointless.
  17095. mkdir_p='mkdir -p --'
  17096. else
  17097. # On NextStep and OpenStep, the `mkdir' command does not
  17098. # recognize any option. It will interpret all options as
  17099. # directories to create, and then abort because `.' already
  17100. # exists.
  17101. for d in ./-p ./--version;
  17102. do
  17103. test -d $d && rmdir $d
  17104. done
  17105. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  17106. if test -f "$ac_aux_dir/mkinstalldirs"; then
  17107. mkdir_p='$(mkinstalldirs)'
  17108. else
  17109. mkdir_p='$(install_sh) -d'
  17110. fi
  17111. fi
  17112. for ac_prog in gawk mawk nawk awk
  17113. do
  17114. # Extract the first word of "$ac_prog", so it can be a program name with args.
  17115. set dummy $ac_prog; ac_word=$2
  17116. echo "$as_me:$LINENO: checking for $ac_word" >&5
  17117. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  17118. if test "${ac_cv_prog_AWK+set}" = set; then
  17119. echo $ECHO_N "(cached) $ECHO_C" >&6
  17120. else
  17121. if test -n "$AWK"; then
  17122. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  17123. else
  17124. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17125. for as_dir in $PATH
  17126. do
  17127. IFS=$as_save_IFS
  17128. test -z "$as_dir" && as_dir=.
  17129. for ac_exec_ext in '' $ac_executable_extensions; do
  17130. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17131. ac_cv_prog_AWK="$ac_prog"
  17132. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17133. break 2
  17134. fi
  17135. done
  17136. done
  17137. fi
  17138. fi
  17139. AWK=$ac_cv_prog_AWK
  17140. if test -n "$AWK"; then
  17141. echo "$as_me:$LINENO: result: $AWK" >&5
  17142. echo "${ECHO_T}$AWK" >&6
  17143. else
  17144. echo "$as_me:$LINENO: result: no" >&5
  17145. echo "${ECHO_T}no" >&6
  17146. fi
  17147. test -n "$AWK" && break
  17148. done
  17149. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  17150. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  17151. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  17152. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  17153. echo $ECHO_N "(cached) $ECHO_C" >&6
  17154. else
  17155. cat >conftest.make <<\_ACEOF
  17156. all:
  17157. @echo 'ac_maketemp="$(MAKE)"'
  17158. _ACEOF
  17159. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  17160. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  17161. if test -n "$ac_maketemp"; then
  17162. eval ac_cv_prog_make_${ac_make}_set=yes
  17163. else
  17164. eval ac_cv_prog_make_${ac_make}_set=no
  17165. fi
  17166. rm -f conftest.make
  17167. fi
  17168. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  17169. echo "$as_me:$LINENO: result: yes" >&5
  17170. echo "${ECHO_T}yes" >&6
  17171. SET_MAKE=
  17172. else
  17173. echo "$as_me:$LINENO: result: no" >&5
  17174. echo "${ECHO_T}no" >&6
  17175. SET_MAKE="MAKE=${MAKE-make}"
  17176. fi
  17177. rm -rf .tst 2>/dev/null
  17178. mkdir .tst 2>/dev/null
  17179. if test -d .tst; then
  17180. am__leading_dot=.
  17181. else
  17182. am__leading_dot=_
  17183. fi
  17184. rmdir .tst 2>/dev/null
  17185. DEPDIR="${am__leading_dot}deps"
  17186. ac_config_commands="$ac_config_commands depfiles"
  17187. am_make=${MAKE-make}
  17188. cat > confinc << 'END'
  17189. am__doit:
  17190. @echo done
  17191. .PHONY: am__doit
  17192. END
  17193. # If we don't find an include directive, just comment out the code.
  17194. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  17195. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  17196. am__include="#"
  17197. am__quote=
  17198. _am_result=none
  17199. # First try GNU make style include.
  17200. echo "include confinc" > confmf
  17201. # We grep out `Entering directory' and `Leaving directory'
  17202. # messages which can occur if `w' ends up in MAKEFLAGS.
  17203. # In particular we don't look at `^make:' because GNU make might
  17204. # be invoked under some other name (usually "gmake"), in which
  17205. # case it prints its new name instead of `make'.
  17206. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  17207. am__include=include
  17208. am__quote=
  17209. _am_result=GNU
  17210. fi
  17211. # Now try BSD make style include.
  17212. if test "$am__include" = "#"; then
  17213. echo '.include "confinc"' > confmf
  17214. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  17215. am__include=.include
  17216. am__quote="\""
  17217. _am_result=BSD
  17218. fi
  17219. fi
  17220. echo "$as_me:$LINENO: result: $_am_result" >&5
  17221. echo "${ECHO_T}$_am_result" >&6
  17222. rm -f confinc confmf
  17223. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  17224. if test "${enable_dependency_tracking+set}" = set; then
  17225. enableval="$enable_dependency_tracking"
  17226. fi;
  17227. if test "x$enable_dependency_tracking" != xno; then
  17228. am_depcomp="$ac_aux_dir/depcomp"
  17229. AMDEPBACKSLASH='\'
  17230. fi
  17231. if test "x$enable_dependency_tracking" != xno; then
  17232. AMDEP_TRUE=
  17233. AMDEP_FALSE='#'
  17234. else
  17235. AMDEP_TRUE='#'
  17236. AMDEP_FALSE=
  17237. fi
  17238. # test to see if srcdir already configured
  17239. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  17240. test -f $srcdir/config.status; then
  17241. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  17242. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  17243. { (exit 1); exit 1; }; }
  17244. fi
  17245. # test whether we have cygpath
  17246. if test -z "$CYGPATH_W"; then
  17247. if (cygpath --version) >/dev/null 2>/dev/null; then
  17248. CYGPATH_W='cygpath -w'
  17249. else
  17250. CYGPATH_W=echo
  17251. fi
  17252. fi
  17253. # Define the identity of the package.
  17254. PACKAGE=tcpreplay
  17255. VERSION=$TCPREPLAY_VERSION
  17256. # Some tools Automake needs.
  17257. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  17258. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  17259. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  17260. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  17261. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  17262. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  17263. # Installed binaries are usually stripped using `strip' when the user
  17264. # run `make install-strip'. However `strip' might not be the right
  17265. # tool to use in cross-compilation environments, therefore Automake
  17266. # will honor the `STRIP' environment variable to overrule this program.
  17267. if test "$cross_compiling" != no; then
  17268. if test -n "$ac_tool_prefix"; then
  17269. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  17270. set dummy ${ac_tool_prefix}strip; ac_word=$2
  17271. echo "$as_me:$LINENO: checking for $ac_word" >&5
  17272. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  17273. if test "${ac_cv_prog_STRIP+set}" = set; then
  17274. echo $ECHO_N "(cached) $ECHO_C" >&6
  17275. else
  17276. if test -n "$STRIP"; then
  17277. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  17278. else
  17279. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17280. for as_dir in $PATH
  17281. do
  17282. IFS=$as_save_IFS
  17283. test -z "$as_dir" && as_dir=.
  17284. for ac_exec_ext in '' $ac_executable_extensions; do
  17285. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17286. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  17287. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17288. break 2
  17289. fi
  17290. done
  17291. done
  17292. fi
  17293. fi
  17294. STRIP=$ac_cv_prog_STRIP
  17295. if test -n "$STRIP"; then
  17296. echo "$as_me:$LINENO: result: $STRIP" >&5
  17297. echo "${ECHO_T}$STRIP" >&6
  17298. else
  17299. echo "$as_me:$LINENO: result: no" >&5
  17300. echo "${ECHO_T}no" >&6
  17301. fi
  17302. fi
  17303. if test -z "$ac_cv_prog_STRIP"; then
  17304. ac_ct_STRIP=$STRIP
  17305. # Extract the first word of "strip", so it can be a program name with args.
  17306. set dummy strip; ac_word=$2
  17307. echo "$as_me:$LINENO: checking for $ac_word" >&5
  17308. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  17309. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  17310. echo $ECHO_N "(cached) $ECHO_C" >&6
  17311. else
  17312. if test -n "$ac_ct_STRIP"; then
  17313. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  17314. else
  17315. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17316. for as_dir in $PATH
  17317. do
  17318. IFS=$as_save_IFS
  17319. test -z "$as_dir" && as_dir=.
  17320. for ac_exec_ext in '' $ac_executable_extensions; do
  17321. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17322. ac_cv_prog_ac_ct_STRIP="strip"
  17323. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17324. break 2
  17325. fi
  17326. done
  17327. done
  17328. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  17329. fi
  17330. fi
  17331. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  17332. if test -n "$ac_ct_STRIP"; then
  17333. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  17334. echo "${ECHO_T}$ac_ct_STRIP" >&6
  17335. else
  17336. echo "$as_me:$LINENO: result: no" >&5
  17337. echo "${ECHO_T}no" >&6
  17338. fi
  17339. STRIP=$ac_ct_STRIP
  17340. else
  17341. STRIP="$ac_cv_prog_STRIP"
  17342. fi
  17343. fi
  17344. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  17345. # We need awk for the "check" target. The system "awk" is bad on
  17346. # some platforms.
  17347. # Always define AMTAR for backward compatibility.
  17348. AMTAR=${AMTAR-"${am_missing_run}tar"}
  17349. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  17350. depcc="$CC" am_compiler_list=
  17351. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  17352. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  17353. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  17354. echo $ECHO_N "(cached) $ECHO_C" >&6
  17355. else
  17356. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  17357. # We make a subdir and do the tests there. Otherwise we can end up
  17358. # making bogus files that we don't know about and never remove. For
  17359. # instance it was reported that on HP-UX the gcc test will end up
  17360. # making a dummy file named `D' -- because `-MD' means `put the output
  17361. # in D'.
  17362. mkdir conftest.dir
  17363. # Copy depcomp to subdir because otherwise we won't find it if we're
  17364. # using a relative directory.
  17365. cp "$am_depcomp" conftest.dir
  17366. cd conftest.dir
  17367. # We will build objects and dependencies in a subdirectory because
  17368. # it helps to detect inapplicable dependency modes. For instance
  17369. # both Tru64's cc and ICC support -MD to output dependencies as a
  17370. # side effect of compilation, but ICC will put the dependencies in
  17371. # the current directory while Tru64 will put them in the object
  17372. # directory.
  17373. mkdir sub
  17374. am_cv_CC_dependencies_compiler_type=none
  17375. if test "$am_compiler_list" = ""; then
  17376. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  17377. fi
  17378. for depmode in $am_compiler_list; do
  17379. # Setup a source with many dependencies, because some compilers
  17380. # like to wrap large dependency lists on column 80 (with \), and
  17381. # we should not choose a depcomp mode which is confused by this.
  17382. #
  17383. # We need to recreate these files for each test, as the compiler may
  17384. # overwrite some of them when testing with obscure command lines.
  17385. # This happens at least with the AIX C compiler.
  17386. : > sub/conftest.c
  17387. for i in 1 2 3 4 5 6; do
  17388. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  17389. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  17390. # Solaris 8's {/usr,}/bin/sh.
  17391. touch sub/conftst$i.h
  17392. done
  17393. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  17394. case $depmode in
  17395. nosideeffect)
  17396. # after this tag, mechanisms are not by side-effect, so they'll
  17397. # only be used when explicitly requested
  17398. if test "x$enable_dependency_tracking" = xyes; then
  17399. continue
  17400. else
  17401. break
  17402. fi
  17403. ;;
  17404. none) break ;;
  17405. esac
  17406. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  17407. # mode. It turns out that the SunPro C++ compiler does not properly
  17408. # handle `-M -o', and we need to detect this.
  17409. if depmode=$depmode \
  17410. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  17411. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  17412. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  17413. >/dev/null 2>conftest.err &&
  17414. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  17415. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  17416. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  17417. # icc doesn't choke on unknown options, it will just issue warnings
  17418. # or remarks (even with -Werror). So we grep stderr for any message
  17419. # that says an option was ignored or not supported.
  17420. # When given -MP, icc 7.0 and 7.1 complain thusly:
  17421. # icc: Command line warning: ignoring option '-M'; no argument required
  17422. # The diagnosis changed in icc 8.0:
  17423. # icc: Command line remark: option '-MP' not supported
  17424. if (grep 'ignoring option' conftest.err ||
  17425. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  17426. am_cv_CC_dependencies_compiler_type=$depmode
  17427. break
  17428. fi
  17429. fi
  17430. done
  17431. cd ..
  17432. rm -rf conftest.dir
  17433. else
  17434. am_cv_CC_dependencies_compiler_type=none
  17435. fi
  17436. fi
  17437. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  17438. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  17439. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  17440. if
  17441. test "x$enable_dependency_tracking" != xno \
  17442. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  17443. am__fastdepCC_TRUE=
  17444. am__fastdepCC_FALSE='#'
  17445. else
  17446. am__fastdepCC_TRUE='#'
  17447. am__fastdepCC_FALSE=
  17448. fi
  17449. depcc="$CXX" am_compiler_list=
  17450. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  17451. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  17452. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  17453. echo $ECHO_N "(cached) $ECHO_C" >&6
  17454. else
  17455. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  17456. # We make a subdir and do the tests there. Otherwise we can end up
  17457. # making bogus files that we don't know about and never remove. For
  17458. # instance it was reported that on HP-UX the gcc test will end up
  17459. # making a dummy file named `D' -- because `-MD' means `put the output
  17460. # in D'.
  17461. mkdir conftest.dir
  17462. # Copy depcomp to subdir because otherwise we won't find it if we're
  17463. # using a relative directory.
  17464. cp "$am_depcomp" conftest.dir
  17465. cd conftest.dir
  17466. # We will build objects and dependencies in a subdirectory because
  17467. # it helps to detect inapplicable dependency modes. For instance
  17468. # both Tru64's cc and ICC support -MD to output dependencies as a
  17469. # side effect of compilation, but ICC will put the dependencies in
  17470. # the current directory while Tru64 will put them in the object
  17471. # directory.
  17472. mkdir sub
  17473. am_cv_CXX_dependencies_compiler_type=none
  17474. if test "$am_compiler_list" = ""; then
  17475. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  17476. fi
  17477. for depmode in $am_compiler_list; do
  17478. # Setup a source with many dependencies, because some compilers
  17479. # like to wrap large dependency lists on column 80 (with \), and
  17480. # we should not choose a depcomp mode which is confused by this.
  17481. #
  17482. # We need to recreate these files for each test, as the compiler may
  17483. # overwrite some of them when testing with obscure command lines.
  17484. # This happens at least with the AIX C compiler.
  17485. : > sub/conftest.c
  17486. for i in 1 2 3 4 5 6; do
  17487. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  17488. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  17489. # Solaris 8's {/usr,}/bin/sh.
  17490. touch sub/conftst$i.h
  17491. done
  17492. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  17493. case $depmode in
  17494. nosideeffect)
  17495. # after this tag, mechanisms are not by side-effect, so they'll
  17496. # only be used when explicitly requested
  17497. if test "x$enable_dependency_tracking" = xyes; then
  17498. continue
  17499. else
  17500. break
  17501. fi
  17502. ;;
  17503. none) break ;;
  17504. esac
  17505. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  17506. # mode. It turns out that the SunPro C++ compiler does not properly
  17507. # handle `-M -o', and we need to detect this.
  17508. if depmode=$depmode \
  17509. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  17510. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  17511. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  17512. >/dev/null 2>conftest.err &&
  17513. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  17514. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  17515. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  17516. # icc doesn't choke on unknown options, it will just issue warnings
  17517. # or remarks (even with -Werror). So we grep stderr for any message
  17518. # that says an option was ignored or not supported.
  17519. # When given -MP, icc 7.0 and 7.1 complain thusly:
  17520. # icc: Command line warning: ignoring option '-M'; no argument required
  17521. # The diagnosis changed in icc 8.0:
  17522. # icc: Command line remark: option '-MP' not supported
  17523. if (grep 'ignoring option' conftest.err ||
  17524. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  17525. am_cv_CXX_dependencies_compiler_type=$depmode
  17526. break
  17527. fi
  17528. fi
  17529. done
  17530. cd ..
  17531. rm -rf conftest.dir
  17532. else
  17533. am_cv_CXX_dependencies_compiler_type=none
  17534. fi
  17535. fi
  17536. echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  17537. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
  17538. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  17539. if
  17540. test "x$enable_dependency_tracking" != xno \
  17541. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  17542. am__fastdepCXX_TRUE=
  17543. am__fastdepCXX_FALSE='#'
  17544. else
  17545. am__fastdepCXX_TRUE='#'
  17546. am__fastdepCXX_FALSE=
  17547. fi
  17548. # Find a good install program. We prefer a C program (faster),
  17549. # so one script is as good as another. But avoid the broken or
  17550. # incompatible versions:
  17551. # SysV /etc/install, /usr/sbin/install
  17552. # SunOS /usr/etc/install
  17553. # IRIX /sbin/install
  17554. # AIX /bin/install
  17555. # AmigaOS /C/install, which installs bootblocks on floppy discs
  17556. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  17557. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  17558. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  17559. # OS/2's system install, which has a completely different semantic
  17560. # ./install, which can be erroneously created by make from ./install.sh.
  17561. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  17562. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  17563. if test -z "$INSTALL"; then
  17564. if test "${ac_cv_path_install+set}" = set; then
  17565. echo $ECHO_N "(cached) $ECHO_C" >&6
  17566. else
  17567. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17568. for as_dir in $PATH
  17569. do
  17570. IFS=$as_save_IFS
  17571. test -z "$as_dir" && as_dir=.
  17572. # Account for people who put trailing slashes in PATH elements.
  17573. case $as_dir/ in
  17574. ./ | .// | /cC/* | \
  17575. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  17576. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  17577. /usr/ucb/* ) ;;
  17578. *)
  17579. # OSF1 and SCO ODT 3.0 have their own names for install.
  17580. # Don't use installbsd from OSF since it installs stuff as root
  17581. # by default.
  17582. for ac_prog in ginstall scoinst install; do
  17583. for ac_exec_ext in '' $ac_executable_extensions; do
  17584. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  17585. if test $ac_prog = install &&
  17586. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  17587. # AIX install. It has an incompatible calling convention.
  17588. :
  17589. elif test $ac_prog = install &&
  17590. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  17591. # program-specific install script used by HP pwplus--don't use.
  17592. :
  17593. else
  17594. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  17595. break 3
  17596. fi
  17597. fi
  17598. done
  17599. done
  17600. ;;
  17601. esac
  17602. done
  17603. fi
  17604. if test "${ac_cv_path_install+set}" = set; then
  17605. INSTALL=$ac_cv_path_install
  17606. else
  17607. # As a last resort, use the slow shell script. We don't cache a
  17608. # path for INSTALL within a source directory, because that will
  17609. # break other packages using the cache if that directory is
  17610. # removed, or if the path is relative.
  17611. INSTALL=$ac_install_sh
  17612. fi
  17613. fi
  17614. echo "$as_me:$LINENO: result: $INSTALL" >&5
  17615. echo "${ECHO_T}$INSTALL" >&6
  17616. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  17617. # It thinks the first close brace ends the variable substitution.
  17618. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  17619. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  17620. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  17621. ac_ext=c
  17622. ac_cpp='$CPP $CPPFLAGS'
  17623. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17624. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17625. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17626. if test -n "$ac_tool_prefix"; then
  17627. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  17628. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  17629. echo "$as_me:$LINENO: checking for $ac_word" >&5
  17630. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  17631. if test "${ac_cv_prog_CC+set}" = set; then
  17632. echo $ECHO_N "(cached) $ECHO_C" >&6
  17633. else
  17634. if test -n "$CC"; then
  17635. ac_cv_prog_CC="$CC" # Let the user override the test.
  17636. else
  17637. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17638. for as_dir in $PATH
  17639. do
  17640. IFS=$as_save_IFS
  17641. test -z "$as_dir" && as_dir=.
  17642. for ac_exec_ext in '' $ac_executable_extensions; do
  17643. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17644. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  17645. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17646. break 2
  17647. fi
  17648. done
  17649. done
  17650. fi
  17651. fi
  17652. CC=$ac_cv_prog_CC
  17653. if test -n "$CC"; then
  17654. echo "$as_me:$LINENO: result: $CC" >&5
  17655. echo "${ECHO_T}$CC" >&6
  17656. else
  17657. echo "$as_me:$LINENO: result: no" >&5
  17658. echo "${ECHO_T}no" >&6
  17659. fi
  17660. fi
  17661. if test -z "$ac_cv_prog_CC"; then
  17662. ac_ct_CC=$CC
  17663. # Extract the first word of "gcc", so it can be a program name with args.
  17664. set dummy gcc; ac_word=$2
  17665. echo "$as_me:$LINENO: checking for $ac_word" >&5
  17666. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  17667. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  17668. echo $ECHO_N "(cached) $ECHO_C" >&6
  17669. else
  17670. if test -n "$ac_ct_CC"; then
  17671. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  17672. else
  17673. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17674. for as_dir in $PATH
  17675. do
  17676. IFS=$as_save_IFS
  17677. test -z "$as_dir" && as_dir=.
  17678. for ac_exec_ext in '' $ac_executable_extensions; do
  17679. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17680. ac_cv_prog_ac_ct_CC="gcc"
  17681. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17682. break 2
  17683. fi
  17684. done
  17685. done
  17686. fi
  17687. fi
  17688. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  17689. if test -n "$ac_ct_CC"; then
  17690. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  17691. echo "${ECHO_T}$ac_ct_CC" >&6
  17692. else
  17693. echo "$as_me:$LINENO: result: no" >&5
  17694. echo "${ECHO_T}no" >&6
  17695. fi
  17696. CC=$ac_ct_CC
  17697. else
  17698. CC="$ac_cv_prog_CC"
  17699. fi
  17700. if test -z "$CC"; then
  17701. if test -n "$ac_tool_prefix"; then
  17702. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  17703. set dummy ${ac_tool_prefix}cc; ac_word=$2
  17704. echo "$as_me:$LINENO: checking for $ac_word" >&5
  17705. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  17706. if test "${ac_cv_prog_CC+set}" = set; then
  17707. echo $ECHO_N "(cached) $ECHO_C" >&6
  17708. else
  17709. if test -n "$CC"; then
  17710. ac_cv_prog_CC="$CC" # Let the user override the test.
  17711. else
  17712. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17713. for as_dir in $PATH
  17714. do
  17715. IFS=$as_save_IFS
  17716. test -z "$as_dir" && as_dir=.
  17717. for ac_exec_ext in '' $ac_executable_extensions; do
  17718. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17719. ac_cv_prog_CC="${ac_tool_prefix}cc"
  17720. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17721. break 2
  17722. fi
  17723. done
  17724. done
  17725. fi
  17726. fi
  17727. CC=$ac_cv_prog_CC
  17728. if test -n "$CC"; then
  17729. echo "$as_me:$LINENO: result: $CC" >&5
  17730. echo "${ECHO_T}$CC" >&6
  17731. else
  17732. echo "$as_me:$LINENO: result: no" >&5
  17733. echo "${ECHO_T}no" >&6
  17734. fi
  17735. fi
  17736. if test -z "$ac_cv_prog_CC"; then
  17737. ac_ct_CC=$CC
  17738. # Extract the first word of "cc", so it can be a program name with args.
  17739. set dummy cc; ac_word=$2
  17740. echo "$as_me:$LINENO: checking for $ac_word" >&5
  17741. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  17742. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  17743. echo $ECHO_N "(cached) $ECHO_C" >&6
  17744. else
  17745. if test -n "$ac_ct_CC"; then
  17746. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  17747. else
  17748. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17749. for as_dir in $PATH
  17750. do
  17751. IFS=$as_save_IFS
  17752. test -z "$as_dir" && as_dir=.
  17753. for ac_exec_ext in '' $ac_executable_extensions; do
  17754. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17755. ac_cv_prog_ac_ct_CC="cc"
  17756. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17757. break 2
  17758. fi
  17759. done
  17760. done
  17761. fi
  17762. fi
  17763. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  17764. if test -n "$ac_ct_CC"; then
  17765. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  17766. echo "${ECHO_T}$ac_ct_CC" >&6
  17767. else
  17768. echo "$as_me:$LINENO: result: no" >&5
  17769. echo "${ECHO_T}no" >&6
  17770. fi
  17771. CC=$ac_ct_CC
  17772. else
  17773. CC="$ac_cv_prog_CC"
  17774. fi
  17775. fi
  17776. if test -z "$CC"; then
  17777. # Extract the first word of "cc", so it can be a program name with args.
  17778. set dummy cc; ac_word=$2
  17779. echo "$as_me:$LINENO: checking for $ac_word" >&5
  17780. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  17781. if test "${ac_cv_prog_CC+set}" = set; then
  17782. echo $ECHO_N "(cached) $ECHO_C" >&6
  17783. else
  17784. if test -n "$CC"; then
  17785. ac_cv_prog_CC="$CC" # Let the user override the test.
  17786. else
  17787. ac_prog_rejected=no
  17788. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17789. for as_dir in $PATH
  17790. do
  17791. IFS=$as_save_IFS
  17792. test -z "$as_dir" && as_dir=.
  17793. for ac_exec_ext in '' $ac_executable_extensions; do
  17794. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17795. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  17796. ac_prog_rejected=yes
  17797. continue
  17798. fi
  17799. ac_cv_prog_CC="cc"
  17800. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17801. break 2
  17802. fi
  17803. done
  17804. done
  17805. if test $ac_prog_rejected = yes; then
  17806. # We found a bogon in the path, so make sure we never use it.
  17807. set dummy $ac_cv_prog_CC
  17808. shift
  17809. if test $# != 0; then
  17810. # We chose a different compiler from the bogus one.
  17811. # However, it has the same basename, so the bogon will be chosen
  17812. # first if we set CC to just the basename; use the full file name.
  17813. shift
  17814. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  17815. fi
  17816. fi
  17817. fi
  17818. fi
  17819. CC=$ac_cv_prog_CC
  17820. if test -n "$CC"; then
  17821. echo "$as_me:$LINENO: result: $CC" >&5
  17822. echo "${ECHO_T}$CC" >&6
  17823. else
  17824. echo "$as_me:$LINENO: result: no" >&5
  17825. echo "${ECHO_T}no" >&6
  17826. fi
  17827. fi
  17828. if test -z "$CC"; then
  17829. if test -n "$ac_tool_prefix"; then
  17830. for ac_prog in cl
  17831. do
  17832. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  17833. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  17834. echo "$as_me:$LINENO: checking for $ac_word" >&5
  17835. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  17836. if test "${ac_cv_prog_CC+set}" = set; then
  17837. echo $ECHO_N "(cached) $ECHO_C" >&6
  17838. else
  17839. if test -n "$CC"; then
  17840. ac_cv_prog_CC="$CC" # Let the user override the test.
  17841. else
  17842. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17843. for as_dir in $PATH
  17844. do
  17845. IFS=$as_save_IFS
  17846. test -z "$as_dir" && as_dir=.
  17847. for ac_exec_ext in '' $ac_executable_extensions; do
  17848. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17849. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  17850. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17851. break 2
  17852. fi
  17853. done
  17854. done
  17855. fi
  17856. fi
  17857. CC=$ac_cv_prog_CC
  17858. if test -n "$CC"; then
  17859. echo "$as_me:$LINENO: result: $CC" >&5
  17860. echo "${ECHO_T}$CC" >&6
  17861. else
  17862. echo "$as_me:$LINENO: result: no" >&5
  17863. echo "${ECHO_T}no" >&6
  17864. fi
  17865. test -n "$CC" && break
  17866. done
  17867. fi
  17868. if test -z "$CC"; then
  17869. ac_ct_CC=$CC
  17870. for ac_prog in cl
  17871. do
  17872. # Extract the first word of "$ac_prog", so it can be a program name with args.
  17873. set dummy $ac_prog; ac_word=$2
  17874. echo "$as_me:$LINENO: checking for $ac_word" >&5
  17875. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  17876. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  17877. echo $ECHO_N "(cached) $ECHO_C" >&6
  17878. else
  17879. if test -n "$ac_ct_CC"; then
  17880. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  17881. else
  17882. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17883. for as_dir in $PATH
  17884. do
  17885. IFS=$as_save_IFS
  17886. test -z "$as_dir" && as_dir=.
  17887. for ac_exec_ext in '' $ac_executable_extensions; do
  17888. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17889. ac_cv_prog_ac_ct_CC="$ac_prog"
  17890. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17891. break 2
  17892. fi
  17893. done
  17894. done
  17895. fi
  17896. fi
  17897. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  17898. if test -n "$ac_ct_CC"; then
  17899. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  17900. echo "${ECHO_T}$ac_ct_CC" >&6
  17901. else
  17902. echo "$as_me:$LINENO: result: no" >&5
  17903. echo "${ECHO_T}no" >&6
  17904. fi
  17905. test -n "$ac_ct_CC" && break
  17906. done
  17907. CC=$ac_ct_CC
  17908. fi
  17909. fi
  17910. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  17911. See \`config.log' for more details." >&5
  17912. echo "$as_me: error: no acceptable C compiler found in \$PATH
  17913. See \`config.log' for more details." >&2;}
  17914. { (exit 1); exit 1; }; }
  17915. # Provide some information about the compiler.
  17916. echo "$as_me:$LINENO:" \
  17917. "checking for C compiler version" >&5
  17918. ac_compiler=`set X $ac_compile; echo $2`
  17919. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  17920. (eval $ac_compiler --version </dev/null >&5) 2>&5
  17921. ac_status=$?
  17922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17923. (exit $ac_status); }
  17924. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  17925. (eval $ac_compiler -v </dev/null >&5) 2>&5
  17926. ac_status=$?
  17927. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17928. (exit $ac_status); }
  17929. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  17930. (eval $ac_compiler -V </dev/null >&5) 2>&5
  17931. ac_status=$?
  17932. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17933. (exit $ac_status); }
  17934. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  17935. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  17936. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  17937. echo $ECHO_N "(cached) $ECHO_C" >&6
  17938. else
  17939. cat >conftest.$ac_ext <<_ACEOF
  17940. /* confdefs.h. */
  17941. _ACEOF
  17942. cat confdefs.h >>conftest.$ac_ext
  17943. cat >>conftest.$ac_ext <<_ACEOF
  17944. /* end confdefs.h. */
  17945. int
  17946. main ()
  17947. {
  17948. #ifndef __GNUC__
  17949. choke me
  17950. #endif
  17951. ;
  17952. return 0;
  17953. }
  17954. _ACEOF
  17955. rm -f conftest.$ac_objext
  17956. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17957. (eval $ac_compile) 2>conftest.er1
  17958. ac_status=$?
  17959. grep -v '^ *+' conftest.er1 >conftest.err
  17960. rm -f conftest.er1
  17961. cat conftest.err >&5
  17962. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17963. (exit $ac_status); } &&
  17964. { ac_try='test -z "$ac_c_werror_flag"
  17965. || test ! -s conftest.err'
  17966. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17967. (eval $ac_try) 2>&5
  17968. ac_status=$?
  17969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17970. (exit $ac_status); }; } &&
  17971. { ac_try='test -s conftest.$ac_objext'
  17972. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17973. (eval $ac_try) 2>&5
  17974. ac_status=$?
  17975. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17976. (exit $ac_status); }; }; then
  17977. ac_compiler_gnu=yes
  17978. else
  17979. echo "$as_me: failed program was:" >&5
  17980. sed 's/^/| /' conftest.$ac_ext >&5
  17981. ac_compiler_gnu=no
  17982. fi
  17983. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17984. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  17985. fi
  17986. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  17987. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  17988. GCC=`test $ac_compiler_gnu = yes && echo yes`
  17989. ac_test_CFLAGS=${CFLAGS+set}
  17990. ac_save_CFLAGS=$CFLAGS
  17991. CFLAGS="-g"
  17992. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  17993. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  17994. if test "${ac_cv_prog_cc_g+set}" = set; then
  17995. echo $ECHO_N "(cached) $ECHO_C" >&6
  17996. else
  17997. cat >conftest.$ac_ext <<_ACEOF
  17998. /* confdefs.h. */
  17999. _ACEOF
  18000. cat confdefs.h >>conftest.$ac_ext
  18001. cat >>conftest.$ac_ext <<_ACEOF
  18002. /* end confdefs.h. */
  18003. int
  18004. main ()
  18005. {
  18006. ;
  18007. return 0;
  18008. }
  18009. _ACEOF
  18010. rm -f conftest.$ac_objext
  18011. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18012. (eval $ac_compile) 2>conftest.er1
  18013. ac_status=$?
  18014. grep -v '^ *+' conftest.er1 >conftest.err
  18015. rm -f conftest.er1
  18016. cat conftest.err >&5
  18017. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18018. (exit $ac_status); } &&
  18019. { ac_try='test -z "$ac_c_werror_flag"
  18020. || test ! -s conftest.err'
  18021. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18022. (eval $ac_try) 2>&5
  18023. ac_status=$?
  18024. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18025. (exit $ac_status); }; } &&
  18026. { ac_try='test -s conftest.$ac_objext'
  18027. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18028. (eval $ac_try) 2>&5
  18029. ac_status=$?
  18030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18031. (exit $ac_status); }; }; then
  18032. ac_cv_prog_cc_g=yes
  18033. else
  18034. echo "$as_me: failed program was:" >&5
  18035. sed 's/^/| /' conftest.$ac_ext >&5
  18036. ac_cv_prog_cc_g=no
  18037. fi
  18038. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18039. fi
  18040. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  18041. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  18042. if test "$ac_test_CFLAGS" = set; then
  18043. CFLAGS=$ac_save_CFLAGS
  18044. elif test $ac_cv_prog_cc_g = yes; then
  18045. if test "$GCC" = yes; then
  18046. CFLAGS="-g -O2"
  18047. else
  18048. CFLAGS="-g"
  18049. fi
  18050. else
  18051. if test "$GCC" = yes; then
  18052. CFLAGS="-O2"
  18053. else
  18054. CFLAGS=
  18055. fi
  18056. fi
  18057. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  18058. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  18059. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  18060. echo $ECHO_N "(cached) $ECHO_C" >&6
  18061. else
  18062. ac_cv_prog_cc_stdc=no
  18063. ac_save_CC=$CC
  18064. cat >conftest.$ac_ext <<_ACEOF
  18065. /* confdefs.h. */
  18066. _ACEOF
  18067. cat confdefs.h >>conftest.$ac_ext
  18068. cat >>conftest.$ac_ext <<_ACEOF
  18069. /* end confdefs.h. */
  18070. #include <stdarg.h>
  18071. #include <stdio.h>
  18072. #include <sys/types.h>
  18073. #include <sys/stat.h>
  18074. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  18075. struct buf { int x; };
  18076. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  18077. static char *e (p, i)
  18078. char **p;
  18079. int i;
  18080. {
  18081. return p[i];
  18082. }
  18083. static char *f (char * (*g) (char **, int), char **p, ...)
  18084. {
  18085. char *s;
  18086. va_list v;
  18087. va_start (v,p);
  18088. s = g (p, va_arg (v,int));
  18089. va_end (v);
  18090. return s;
  18091. }
  18092. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  18093. function prototypes and stuff, but not '\xHH' hex character constants.
  18094. These don't provoke an error unfortunately, instead are silently treated
  18095. as 'x'. The following induces an error, until -std1 is added to get
  18096. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  18097. array size at least. It's necessary to write '\x00'==0 to get something
  18098. that's true only with -std1. */
  18099. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  18100. int test (int i, double x);
  18101. struct s1 {int (*f) (int a);};
  18102. struct s2 {int (*f) (double a);};
  18103. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  18104. int argc;
  18105. char **argv;
  18106. int
  18107. main ()
  18108. {
  18109. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  18110. ;
  18111. return 0;
  18112. }
  18113. _ACEOF
  18114. # Don't try gcc -ansi; that turns off useful extensions and
  18115. # breaks some systems' header files.
  18116. # AIX -qlanglvl=ansi
  18117. # Ultrix and OSF/1 -std1
  18118. # HP-UX 10.20 and later -Ae
  18119. # HP-UX older versions -Aa -D_HPUX_SOURCE
  18120. # SVR4 -Xc -D__EXTENSIONS__
  18121. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  18122. do
  18123. CC="$ac_save_CC $ac_arg"
  18124. rm -f conftest.$ac_objext
  18125. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18126. (eval $ac_compile) 2>conftest.er1
  18127. ac_status=$?
  18128. grep -v '^ *+' conftest.er1 >conftest.err
  18129. rm -f conftest.er1
  18130. cat conftest.err >&5
  18131. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18132. (exit $ac_status); } &&
  18133. { ac_try='test -z "$ac_c_werror_flag"
  18134. || test ! -s conftest.err'
  18135. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18136. (eval $ac_try) 2>&5
  18137. ac_status=$?
  18138. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18139. (exit $ac_status); }; } &&
  18140. { ac_try='test -s conftest.$ac_objext'
  18141. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18142. (eval $ac_try) 2>&5
  18143. ac_status=$?
  18144. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18145. (exit $ac_status); }; }; then
  18146. ac_cv_prog_cc_stdc=$ac_arg
  18147. break
  18148. else
  18149. echo "$as_me: failed program was:" >&5
  18150. sed 's/^/| /' conftest.$ac_ext >&5
  18151. fi
  18152. rm -f conftest.err conftest.$ac_objext
  18153. done
  18154. rm -f conftest.$ac_ext conftest.$ac_objext
  18155. CC=$ac_save_CC
  18156. fi
  18157. case "x$ac_cv_prog_cc_stdc" in
  18158. x|xno)
  18159. echo "$as_me:$LINENO: result: none needed" >&5
  18160. echo "${ECHO_T}none needed" >&6 ;;
  18161. *)
  18162. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  18163. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  18164. CC="$CC $ac_cv_prog_cc_stdc" ;;
  18165. esac
  18166. # Some people use a C++ compiler to compile C. Since we use `exit',
  18167. # in C++ we need to declare it. In case someone uses the same compiler
  18168. # for both compiling C and C++ we need to have the C++ compiler decide
  18169. # the declaration of exit, since it's the most demanding environment.
  18170. cat >conftest.$ac_ext <<_ACEOF
  18171. #ifndef __cplusplus
  18172. choke me
  18173. #endif
  18174. _ACEOF
  18175. rm -f conftest.$ac_objext
  18176. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18177. (eval $ac_compile) 2>conftest.er1
  18178. ac_status=$?
  18179. grep -v '^ *+' conftest.er1 >conftest.err
  18180. rm -f conftest.er1
  18181. cat conftest.err >&5
  18182. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18183. (exit $ac_status); } &&
  18184. { ac_try='test -z "$ac_c_werror_flag"
  18185. || test ! -s conftest.err'
  18186. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18187. (eval $ac_try) 2>&5
  18188. ac_status=$?
  18189. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18190. (exit $ac_status); }; } &&
  18191. { ac_try='test -s conftest.$ac_objext'
  18192. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18193. (eval $ac_try) 2>&5
  18194. ac_status=$?
  18195. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18196. (exit $ac_status); }; }; then
  18197. for ac_declaration in \
  18198. '' \
  18199. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  18200. 'extern "C" void std::exit (int); using std::exit;' \
  18201. 'extern "C" void exit (int) throw ();' \
  18202. 'extern "C" void exit (int);' \
  18203. 'void exit (int);'
  18204. do
  18205. cat >conftest.$ac_ext <<_ACEOF
  18206. /* confdefs.h. */
  18207. _ACEOF
  18208. cat confdefs.h >>conftest.$ac_ext
  18209. cat >>conftest.$ac_ext <<_ACEOF
  18210. /* end confdefs.h. */
  18211. $ac_declaration
  18212. #include <stdlib.h>
  18213. int
  18214. main ()
  18215. {
  18216. exit (42);
  18217. ;
  18218. return 0;
  18219. }
  18220. _ACEOF
  18221. rm -f conftest.$ac_objext
  18222. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18223. (eval $ac_compile) 2>conftest.er1
  18224. ac_status=$?
  18225. grep -v '^ *+' conftest.er1 >conftest.err
  18226. rm -f conftest.er1
  18227. cat conftest.err >&5
  18228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18229. (exit $ac_status); } &&
  18230. { ac_try='test -z "$ac_c_werror_flag"
  18231. || test ! -s conftest.err'
  18232. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18233. (eval $ac_try) 2>&5
  18234. ac_status=$?
  18235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18236. (exit $ac_status); }; } &&
  18237. { ac_try='test -s conftest.$ac_objext'
  18238. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18239. (eval $ac_try) 2>&5
  18240. ac_status=$?
  18241. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18242. (exit $ac_status); }; }; then
  18243. :
  18244. else
  18245. echo "$as_me: failed program was:" >&5
  18246. sed 's/^/| /' conftest.$ac_ext >&5
  18247. continue
  18248. fi
  18249. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18250. cat >conftest.$ac_ext <<_ACEOF
  18251. /* confdefs.h. */
  18252. _ACEOF
  18253. cat confdefs.h >>conftest.$ac_ext
  18254. cat >>conftest.$ac_ext <<_ACEOF
  18255. /* end confdefs.h. */
  18256. $ac_declaration
  18257. int
  18258. main ()
  18259. {
  18260. exit (42);
  18261. ;
  18262. return 0;
  18263. }
  18264. _ACEOF
  18265. rm -f conftest.$ac_objext
  18266. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18267. (eval $ac_compile) 2>conftest.er1
  18268. ac_status=$?
  18269. grep -v '^ *+' conftest.er1 >conftest.err
  18270. rm -f conftest.er1
  18271. cat conftest.err >&5
  18272. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18273. (exit $ac_status); } &&
  18274. { ac_try='test -z "$ac_c_werror_flag"
  18275. || test ! -s conftest.err'
  18276. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18277. (eval $ac_try) 2>&5
  18278. ac_status=$?
  18279. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18280. (exit $ac_status); }; } &&
  18281. { ac_try='test -s conftest.$ac_objext'
  18282. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18283. (eval $ac_try) 2>&5
  18284. ac_status=$?
  18285. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18286. (exit $ac_status); }; }; then
  18287. break
  18288. else
  18289. echo "$as_me: failed program was:" >&5
  18290. sed 's/^/| /' conftest.$ac_ext >&5
  18291. fi
  18292. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18293. done
  18294. rm -f conftest*
  18295. if test -n "$ac_declaration"; then
  18296. echo '#ifdef __cplusplus' >>confdefs.h
  18297. echo $ac_declaration >>confdefs.h
  18298. echo '#endif' >>confdefs.h
  18299. fi
  18300. else
  18301. echo "$as_me: failed program was:" >&5
  18302. sed 's/^/| /' conftest.$ac_ext >&5
  18303. fi
  18304. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18305. ac_ext=c
  18306. ac_cpp='$CPP $CPPFLAGS'
  18307. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18308. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18309. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18310. ac_ext=cc
  18311. ac_cpp='$CXXCPP $CPPFLAGS'
  18312. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18313. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18314. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  18315. if test -n "$ac_tool_prefix"; then
  18316. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  18317. do
  18318. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  18319. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  18320. echo "$as_me:$LINENO: checking for $ac_word" >&5
  18321. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  18322. if test "${ac_cv_prog_CXX+set}" = set; then
  18323. echo $ECHO_N "(cached) $ECHO_C" >&6
  18324. else
  18325. if test -n "$CXX"; then
  18326. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  18327. else
  18328. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18329. for as_dir in $PATH
  18330. do
  18331. IFS=$as_save_IFS
  18332. test -z "$as_dir" && as_dir=.
  18333. for ac_exec_ext in '' $ac_executable_extensions; do
  18334. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18335. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  18336. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18337. break 2
  18338. fi
  18339. done
  18340. done
  18341. fi
  18342. fi
  18343. CXX=$ac_cv_prog_CXX
  18344. if test -n "$CXX"; then
  18345. echo "$as_me:$LINENO: result: $CXX" >&5
  18346. echo "${ECHO_T}$CXX" >&6
  18347. else
  18348. echo "$as_me:$LINENO: result: no" >&5
  18349. echo "${ECHO_T}no" >&6
  18350. fi
  18351. test -n "$CXX" && break
  18352. done
  18353. fi
  18354. if test -z "$CXX"; then
  18355. ac_ct_CXX=$CXX
  18356. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  18357. do
  18358. # Extract the first word of "$ac_prog", so it can be a program name with args.
  18359. set dummy $ac_prog; ac_word=$2
  18360. echo "$as_me:$LINENO: checking for $ac_word" >&5
  18361. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  18362. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  18363. echo $ECHO_N "(cached) $ECHO_C" >&6
  18364. else
  18365. if test -n "$ac_ct_CXX"; then
  18366. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  18367. else
  18368. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18369. for as_dir in $PATH
  18370. do
  18371. IFS=$as_save_IFS
  18372. test -z "$as_dir" && as_dir=.
  18373. for ac_exec_ext in '' $ac_executable_extensions; do
  18374. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18375. ac_cv_prog_ac_ct_CXX="$ac_prog"
  18376. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18377. break 2
  18378. fi
  18379. done
  18380. done
  18381. fi
  18382. fi
  18383. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  18384. if test -n "$ac_ct_CXX"; then
  18385. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  18386. echo "${ECHO_T}$ac_ct_CXX" >&6
  18387. else
  18388. echo "$as_me:$LINENO: result: no" >&5
  18389. echo "${ECHO_T}no" >&6
  18390. fi
  18391. test -n "$ac_ct_CXX" && break
  18392. done
  18393. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  18394. CXX=$ac_ct_CXX
  18395. fi
  18396. # Provide some information about the compiler.
  18397. echo "$as_me:$LINENO:" \
  18398. "checking for C++ compiler version" >&5
  18399. ac_compiler=`set X $ac_compile; echo $2`
  18400. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  18401. (eval $ac_compiler --version </dev/null >&5) 2>&5
  18402. ac_status=$?
  18403. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18404. (exit $ac_status); }
  18405. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  18406. (eval $ac_compiler -v </dev/null >&5) 2>&5
  18407. ac_status=$?
  18408. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18409. (exit $ac_status); }
  18410. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  18411. (eval $ac_compiler -V </dev/null >&5) 2>&5
  18412. ac_status=$?
  18413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18414. (exit $ac_status); }
  18415. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  18416. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  18417. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  18418. echo $ECHO_N "(cached) $ECHO_C" >&6
  18419. else
  18420. cat >conftest.$ac_ext <<_ACEOF
  18421. /* confdefs.h. */
  18422. _ACEOF
  18423. cat confdefs.h >>conftest.$ac_ext
  18424. cat >>conftest.$ac_ext <<_ACEOF
  18425. /* end confdefs.h. */
  18426. int
  18427. main ()
  18428. {
  18429. #ifndef __GNUC__
  18430. choke me
  18431. #endif
  18432. ;
  18433. return 0;
  18434. }
  18435. _ACEOF
  18436. rm -f conftest.$ac_objext
  18437. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18438. (eval $ac_compile) 2>conftest.er1
  18439. ac_status=$?
  18440. grep -v '^ *+' conftest.er1 >conftest.err
  18441. rm -f conftest.er1
  18442. cat conftest.err >&5
  18443. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18444. (exit $ac_status); } &&
  18445. { ac_try='test -z "$ac_cxx_werror_flag"
  18446. || test ! -s conftest.err'
  18447. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18448. (eval $ac_try) 2>&5
  18449. ac_status=$?
  18450. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18451. (exit $ac_status); }; } &&
  18452. { ac_try='test -s conftest.$ac_objext'
  18453. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18454. (eval $ac_try) 2>&5
  18455. ac_status=$?
  18456. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18457. (exit $ac_status); }; }; then
  18458. ac_compiler_gnu=yes
  18459. else
  18460. echo "$as_me: failed program was:" >&5
  18461. sed 's/^/| /' conftest.$ac_ext >&5
  18462. ac_compiler_gnu=no
  18463. fi
  18464. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18465. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  18466. fi
  18467. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  18468. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  18469. GXX=`test $ac_compiler_gnu = yes && echo yes`
  18470. ac_test_CXXFLAGS=${CXXFLAGS+set}
  18471. ac_save_CXXFLAGS=$CXXFLAGS
  18472. CXXFLAGS="-g"
  18473. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  18474. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  18475. if test "${ac_cv_prog_cxx_g+set}" = set; then
  18476. echo $ECHO_N "(cached) $ECHO_C" >&6
  18477. else
  18478. cat >conftest.$ac_ext <<_ACEOF
  18479. /* confdefs.h. */
  18480. _ACEOF
  18481. cat confdefs.h >>conftest.$ac_ext
  18482. cat >>conftest.$ac_ext <<_ACEOF
  18483. /* end confdefs.h. */
  18484. int
  18485. main ()
  18486. {
  18487. ;
  18488. return 0;
  18489. }
  18490. _ACEOF
  18491. rm -f conftest.$ac_objext
  18492. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18493. (eval $ac_compile) 2>conftest.er1
  18494. ac_status=$?
  18495. grep -v '^ *+' conftest.er1 >conftest.err
  18496. rm -f conftest.er1
  18497. cat conftest.err >&5
  18498. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18499. (exit $ac_status); } &&
  18500. { ac_try='test -z "$ac_cxx_werror_flag"
  18501. || test ! -s conftest.err'
  18502. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18503. (eval $ac_try) 2>&5
  18504. ac_status=$?
  18505. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18506. (exit $ac_status); }; } &&
  18507. { ac_try='test -s conftest.$ac_objext'
  18508. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18509. (eval $ac_try) 2>&5
  18510. ac_status=$?
  18511. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18512. (exit $ac_status); }; }; then
  18513. ac_cv_prog_cxx_g=yes
  18514. else
  18515. echo "$as_me: failed program was:" >&5
  18516. sed 's/^/| /' conftest.$ac_ext >&5
  18517. ac_cv_prog_cxx_g=no
  18518. fi
  18519. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18520. fi
  18521. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  18522. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  18523. if test "$ac_test_CXXFLAGS" = set; then
  18524. CXXFLAGS=$ac_save_CXXFLAGS
  18525. elif test $ac_cv_prog_cxx_g = yes; then
  18526. if test "$GXX" = yes; then
  18527. CXXFLAGS="-g -O2"
  18528. else
  18529. CXXFLAGS="-g"
  18530. fi
  18531. else
  18532. if test "$GXX" = yes; then
  18533. CXXFLAGS="-O2"
  18534. else
  18535. CXXFLAGS=
  18536. fi
  18537. fi
  18538. for ac_declaration in \
  18539. '' \
  18540. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  18541. 'extern "C" void std::exit (int); using std::exit;' \
  18542. 'extern "C" void exit (int) throw ();' \
  18543. 'extern "C" void exit (int);' \
  18544. 'void exit (int);'
  18545. do
  18546. cat >conftest.$ac_ext <<_ACEOF
  18547. /* confdefs.h. */
  18548. _ACEOF
  18549. cat confdefs.h >>conftest.$ac_ext
  18550. cat >>conftest.$ac_ext <<_ACEOF
  18551. /* end confdefs.h. */
  18552. $ac_declaration
  18553. #include <stdlib.h>
  18554. int
  18555. main ()
  18556. {
  18557. exit (42);
  18558. ;
  18559. return 0;
  18560. }
  18561. _ACEOF
  18562. rm -f conftest.$ac_objext
  18563. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18564. (eval $ac_compile) 2>conftest.er1
  18565. ac_status=$?
  18566. grep -v '^ *+' conftest.er1 >conftest.err
  18567. rm -f conftest.er1
  18568. cat conftest.err >&5
  18569. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18570. (exit $ac_status); } &&
  18571. { ac_try='test -z "$ac_cxx_werror_flag"
  18572. || test ! -s conftest.err'
  18573. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18574. (eval $ac_try) 2>&5
  18575. ac_status=$?
  18576. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18577. (exit $ac_status); }; } &&
  18578. { ac_try='test -s conftest.$ac_objext'
  18579. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18580. (eval $ac_try) 2>&5
  18581. ac_status=$?
  18582. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18583. (exit $ac_status); }; }; then
  18584. :
  18585. else
  18586. echo "$as_me: failed program was:" >&5
  18587. sed 's/^/| /' conftest.$ac_ext >&5
  18588. continue
  18589. fi
  18590. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18591. cat >conftest.$ac_ext <<_ACEOF
  18592. /* confdefs.h. */
  18593. _ACEOF
  18594. cat confdefs.h >>conftest.$ac_ext
  18595. cat >>conftest.$ac_ext <<_ACEOF
  18596. /* end confdefs.h. */
  18597. $ac_declaration
  18598. int
  18599. main ()
  18600. {
  18601. exit (42);
  18602. ;
  18603. return 0;
  18604. }
  18605. _ACEOF
  18606. rm -f conftest.$ac_objext
  18607. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18614. (exit $ac_status); } &&
  18615. { ac_try='test -z "$ac_cxx_werror_flag"
  18616. || test ! -s conftest.err'
  18617. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18618. (eval $ac_try) 2>&5
  18619. ac_status=$?
  18620. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18621. (exit $ac_status); }; } &&
  18622. { ac_try='test -s conftest.$ac_objext'
  18623. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18624. (eval $ac_try) 2>&5
  18625. ac_status=$?
  18626. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18627. (exit $ac_status); }; }; then
  18628. break
  18629. else
  18630. echo "$as_me: failed program was:" >&5
  18631. sed 's/^/| /' conftest.$ac_ext >&5
  18632. fi
  18633. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18634. done
  18635. rm -f conftest*
  18636. if test -n "$ac_declaration"; then
  18637. echo '#ifdef __cplusplus' >>confdefs.h
  18638. echo $ac_declaration >>confdefs.h
  18639. echo '#endif' >>confdefs.h
  18640. fi
  18641. ac_ext=c
  18642. ac_cpp='$CPP $CPPFLAGS'
  18643. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18644. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18645. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18646. ac_ext=c
  18647. ac_cpp='$CPP $CPPFLAGS'
  18648. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18649. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18650. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18651. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  18652. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  18653. # On Suns, sometimes $CPP names a directory.
  18654. if test -n "$CPP" && test -d "$CPP"; then
  18655. CPP=
  18656. fi
  18657. if test -z "$CPP"; then
  18658. if test "${ac_cv_prog_CPP+set}" = set; then
  18659. echo $ECHO_N "(cached) $ECHO_C" >&6
  18660. else
  18661. # Double quotes because CPP needs to be expanded
  18662. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  18663. do
  18664. ac_preproc_ok=false
  18665. for ac_c_preproc_warn_flag in '' yes
  18666. do
  18667. # Use a header file that comes with gcc, so configuring glibc
  18668. # with a fresh cross-compiler works.
  18669. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18670. # <limits.h> exists even on freestanding compilers.
  18671. # On the NeXT, cc -E runs the code through the compiler's parser,
  18672. # not just through cpp. "Syntax error" is here to catch this case.
  18673. cat >conftest.$ac_ext <<_ACEOF
  18674. /* confdefs.h. */
  18675. _ACEOF
  18676. cat confdefs.h >>conftest.$ac_ext
  18677. cat >>conftest.$ac_ext <<_ACEOF
  18678. /* end confdefs.h. */
  18679. #ifdef __STDC__
  18680. # include <limits.h>
  18681. #else
  18682. # include <assert.h>
  18683. #endif
  18684. Syntax error
  18685. _ACEOF
  18686. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  18687. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  18688. ac_status=$?
  18689. grep -v '^ *+' conftest.er1 >conftest.err
  18690. rm -f conftest.er1
  18691. cat conftest.err >&5
  18692. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18693. (exit $ac_status); } >/dev/null; then
  18694. if test -s conftest.err; then
  18695. ac_cpp_err=$ac_c_preproc_warn_flag
  18696. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  18697. else
  18698. ac_cpp_err=
  18699. fi
  18700. else
  18701. ac_cpp_err=yes
  18702. fi
  18703. if test -z "$ac_cpp_err"; then
  18704. :
  18705. else
  18706. echo "$as_me: failed program was:" >&5
  18707. sed 's/^/| /' conftest.$ac_ext >&5
  18708. # Broken: fails on valid input.
  18709. continue
  18710. fi
  18711. rm -f conftest.err conftest.$ac_ext
  18712. # OK, works on sane cases. Now check whether non-existent headers
  18713. # can be detected and how.
  18714. cat >conftest.$ac_ext <<_ACEOF
  18715. /* confdefs.h. */
  18716. _ACEOF
  18717. cat confdefs.h >>conftest.$ac_ext
  18718. cat >>conftest.$ac_ext <<_ACEOF
  18719. /* end confdefs.h. */
  18720. #include <ac_nonexistent.h>
  18721. _ACEOF
  18722. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  18723. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  18724. ac_status=$?
  18725. grep -v '^ *+' conftest.er1 >conftest.err
  18726. rm -f conftest.er1
  18727. cat conftest.err >&5
  18728. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18729. (exit $ac_status); } >/dev/null; then
  18730. if test -s conftest.err; then
  18731. ac_cpp_err=$ac_c_preproc_warn_flag
  18732. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  18733. else
  18734. ac_cpp_err=
  18735. fi
  18736. else
  18737. ac_cpp_err=yes
  18738. fi
  18739. if test -z "$ac_cpp_err"; then
  18740. # Broken: success on invalid input.
  18741. continue
  18742. else
  18743. echo "$as_me: failed program was:" >&5
  18744. sed 's/^/| /' conftest.$ac_ext >&5
  18745. # Passes both tests.
  18746. ac_preproc_ok=:
  18747. break
  18748. fi
  18749. rm -f conftest.err conftest.$ac_ext
  18750. done
  18751. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  18752. rm -f conftest.err conftest.$ac_ext
  18753. if $ac_preproc_ok; then
  18754. break
  18755. fi
  18756. done
  18757. ac_cv_prog_CPP=$CPP
  18758. fi
  18759. CPP=$ac_cv_prog_CPP
  18760. else
  18761. ac_cv_prog_CPP=$CPP
  18762. fi
  18763. echo "$as_me:$LINENO: result: $CPP" >&5
  18764. echo "${ECHO_T}$CPP" >&6
  18765. ac_preproc_ok=false
  18766. for ac_c_preproc_warn_flag in '' yes
  18767. do
  18768. # Use a header file that comes with gcc, so configuring glibc
  18769. # with a fresh cross-compiler works.
  18770. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18771. # <limits.h> exists even on freestanding compilers.
  18772. # On the NeXT, cc -E runs the code through the compiler's parser,
  18773. # not just through cpp. "Syntax error" is here to catch this case.
  18774. cat >conftest.$ac_ext <<_ACEOF
  18775. /* confdefs.h. */
  18776. _ACEOF
  18777. cat confdefs.h >>conftest.$ac_ext
  18778. cat >>conftest.$ac_ext <<_ACEOF
  18779. /* end confdefs.h. */
  18780. #ifdef __STDC__
  18781. # include <limits.h>
  18782. #else
  18783. # include <assert.h>
  18784. #endif
  18785. Syntax error
  18786. _ACEOF
  18787. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  18788. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  18789. ac_status=$?
  18790. grep -v '^ *+' conftest.er1 >conftest.err
  18791. rm -f conftest.er1
  18792. cat conftest.err >&5
  18793. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18794. (exit $ac_status); } >/dev/null; then
  18795. if test -s conftest.err; then
  18796. ac_cpp_err=$ac_c_preproc_warn_flag
  18797. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  18798. else
  18799. ac_cpp_err=
  18800. fi
  18801. else
  18802. ac_cpp_err=yes
  18803. fi
  18804. if test -z "$ac_cpp_err"; then
  18805. :
  18806. else
  18807. echo "$as_me: failed program was:" >&5
  18808. sed 's/^/| /' conftest.$ac_ext >&5
  18809. # Broken: fails on valid input.
  18810. continue
  18811. fi
  18812. rm -f conftest.err conftest.$ac_ext
  18813. # OK, works on sane cases. Now check whether non-existent headers
  18814. # can be detected and how.
  18815. cat >conftest.$ac_ext <<_ACEOF
  18816. /* confdefs.h. */
  18817. _ACEOF
  18818. cat confdefs.h >>conftest.$ac_ext
  18819. cat >>conftest.$ac_ext <<_ACEOF
  18820. /* end confdefs.h. */
  18821. #include <ac_nonexistent.h>
  18822. _ACEOF
  18823. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  18824. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  18825. ac_status=$?
  18826. grep -v '^ *+' conftest.er1 >conftest.err
  18827. rm -f conftest.er1
  18828. cat conftest.err >&5
  18829. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18830. (exit $ac_status); } >/dev/null; then
  18831. if test -s conftest.err; then
  18832. ac_cpp_err=$ac_c_preproc_warn_flag
  18833. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  18834. else
  18835. ac_cpp_err=
  18836. fi
  18837. else
  18838. ac_cpp_err=yes
  18839. fi
  18840. if test -z "$ac_cpp_err"; then
  18841. # Broken: success on invalid input.
  18842. continue
  18843. else
  18844. echo "$as_me: failed program was:" >&5
  18845. sed 's/^/| /' conftest.$ac_ext >&5
  18846. # Passes both tests.
  18847. ac_preproc_ok=:
  18848. break
  18849. fi
  18850. rm -f conftest.err conftest.$ac_ext
  18851. done
  18852. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  18853. rm -f conftest.err conftest.$ac_ext
  18854. if $ac_preproc_ok; then
  18855. :
  18856. else
  18857. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  18858. See \`config.log' for more details." >&5
  18859. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  18860. See \`config.log' for more details." >&2;}
  18861. { (exit 1); exit 1; }; }
  18862. fi
  18863. ac_ext=c
  18864. ac_cpp='$CPP $CPPFLAGS'
  18865. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18866. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18867. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18868. echo "$as_me:$LINENO: checking whether ln -s works" >&5
  18869. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  18870. LN_S=$as_ln_s
  18871. if test "$LN_S" = "ln -s"; then
  18872. echo "$as_me:$LINENO: result: yes" >&5
  18873. echo "${ECHO_T}yes" >&6
  18874. else
  18875. echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  18876. echo "${ECHO_T}no, using $LN_S" >&6
  18877. fi
  18878. if test -n "$ac_tool_prefix"; then
  18879. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  18880. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  18881. echo "$as_me:$LINENO: checking for $ac_word" >&5
  18882. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  18883. if test "${ac_cv_prog_RANLIB+set}" = set; then
  18884. echo $ECHO_N "(cached) $ECHO_C" >&6
  18885. else
  18886. if test -n "$RANLIB"; then
  18887. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  18888. else
  18889. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18890. for as_dir in $PATH
  18891. do
  18892. IFS=$as_save_IFS
  18893. test -z "$as_dir" && as_dir=.
  18894. for ac_exec_ext in '' $ac_executable_extensions; do
  18895. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18896. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  18897. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18898. break 2
  18899. fi
  18900. done
  18901. done
  18902. fi
  18903. fi
  18904. RANLIB=$ac_cv_prog_RANLIB
  18905. if test -n "$RANLIB"; then
  18906. echo "$as_me:$LINENO: result: $RANLIB" >&5
  18907. echo "${ECHO_T}$RANLIB" >&6
  18908. else
  18909. echo "$as_me:$LINENO: result: no" >&5
  18910. echo "${ECHO_T}no" >&6
  18911. fi
  18912. fi
  18913. if test -z "$ac_cv_prog_RANLIB"; then
  18914. ac_ct_RANLIB=$RANLIB
  18915. # Extract the first word of "ranlib", so it can be a program name with args.
  18916. set dummy ranlib; ac_word=$2
  18917. echo "$as_me:$LINENO: checking for $ac_word" >&5
  18918. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  18919. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  18920. echo $ECHO_N "(cached) $ECHO_C" >&6
  18921. else
  18922. if test -n "$ac_ct_RANLIB"; then
  18923. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  18924. else
  18925. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18926. for as_dir in $PATH
  18927. do
  18928. IFS=$as_save_IFS
  18929. test -z "$as_dir" && as_dir=.
  18930. for ac_exec_ext in '' $ac_executable_extensions; do
  18931. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18932. ac_cv_prog_ac_ct_RANLIB="ranlib"
  18933. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18934. break 2
  18935. fi
  18936. done
  18937. done
  18938. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  18939. fi
  18940. fi
  18941. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  18942. if test -n "$ac_ct_RANLIB"; then
  18943. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  18944. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  18945. else
  18946. echo "$as_me:$LINENO: result: no" >&5
  18947. echo "${ECHO_T}no" >&6
  18948. fi
  18949. RANLIB=$ac_ct_RANLIB
  18950. else
  18951. RANLIB="$ac_cv_prog_RANLIB"
  18952. fi
  18953. for ac_prog in gawk mawk nawk awk
  18954. do
  18955. # Extract the first word of "$ac_prog", so it can be a program name with args.
  18956. set dummy $ac_prog; ac_word=$2
  18957. echo "$as_me:$LINENO: checking for $ac_word" >&5
  18958. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  18959. if test "${ac_cv_prog_AWK+set}" = set; then
  18960. echo $ECHO_N "(cached) $ECHO_C" >&6
  18961. else
  18962. if test -n "$AWK"; then
  18963. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  18964. else
  18965. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18966. for as_dir in $PATH
  18967. do
  18968. IFS=$as_save_IFS
  18969. test -z "$as_dir" && as_dir=.
  18970. for ac_exec_ext in '' $ac_executable_extensions; do
  18971. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18972. ac_cv_prog_AWK="$ac_prog"
  18973. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18974. break 2
  18975. fi
  18976. done
  18977. done
  18978. fi
  18979. fi
  18980. AWK=$ac_cv_prog_AWK
  18981. if test -n "$AWK"; then
  18982. echo "$as_me:$LINENO: result: $AWK" >&5
  18983. echo "${ECHO_T}$AWK" >&6
  18984. else
  18985. echo "$as_me:$LINENO: result: no" >&5
  18986. echo "${ECHO_T}no" >&6
  18987. fi
  18988. test -n "$AWK" && break
  18989. done
  18990. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  18991. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  18992. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  18993. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  18994. echo $ECHO_N "(cached) $ECHO_C" >&6
  18995. else
  18996. cat >conftest.make <<\_ACEOF
  18997. all:
  18998. @echo 'ac_maketemp="$(MAKE)"'
  18999. _ACEOF
  19000. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  19001. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  19002. if test -n "$ac_maketemp"; then
  19003. eval ac_cv_prog_make_${ac_make}_set=yes
  19004. else
  19005. eval ac_cv_prog_make_${ac_make}_set=no
  19006. fi
  19007. rm -f conftest.make
  19008. fi
  19009. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  19010. echo "$as_me:$LINENO: result: yes" >&5
  19011. echo "${ECHO_T}yes" >&6
  19012. SET_MAKE=
  19013. else
  19014. echo "$as_me:$LINENO: result: no" >&5
  19015. echo "${ECHO_T}no" >&6
  19016. SET_MAKE="MAKE=${MAKE-make}"
  19017. fi
  19018. # Extract the first word of "printf", so it can be a program name with args.
  19019. set dummy printf; ac_word=$2
  19020. echo "$as_me:$LINENO: checking for $ac_word" >&5
  19021. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  19022. if test "${ac_cv_path_PRINTF+set}" = set; then
  19023. echo $ECHO_N "(cached) $ECHO_C" >&6
  19024. else
  19025. case $PRINTF in
  19026. [\\/]* | ?:[\\/]*)
  19027. ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
  19028. ;;
  19029. *)
  19030. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19031. for as_dir in $PATH
  19032. do
  19033. IFS=$as_save_IFS
  19034. test -z "$as_dir" && as_dir=.
  19035. for ac_exec_ext in '' $ac_executable_extensions; do
  19036. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19037. ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
  19038. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19039. break 2
  19040. fi
  19041. done
  19042. done
  19043. ;;
  19044. esac
  19045. fi
  19046. PRINTF=$ac_cv_path_PRINTF
  19047. if test -n "$PRINTF"; then
  19048. echo "$as_me:$LINENO: result: $PRINTF" >&5
  19049. echo "${ECHO_T}$PRINTF" >&6
  19050. else
  19051. echo "$as_me:$LINENO: result: no" >&5
  19052. echo "${ECHO_T}no" >&6
  19053. fi
  19054. # Extract the first word of "fig2dev", so it can be a program name with args.
  19055. set dummy fig2dev; ac_word=$2
  19056. echo "$as_me:$LINENO: checking for $ac_word" >&5
  19057. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  19058. if test "${ac_cv_path_FIG2DEV+set}" = set; then
  19059. echo $ECHO_N "(cached) $ECHO_C" >&6
  19060. else
  19061. case $FIG2DEV in
  19062. [\\/]* | ?:[\\/]*)
  19063. ac_cv_path_FIG2DEV="$FIG2DEV" # Let the user override the test with a path.
  19064. ;;
  19065. *)
  19066. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19067. for as_dir in $PATH
  19068. do
  19069. IFS=$as_save_IFS
  19070. test -z "$as_dir" && as_dir=.
  19071. for ac_exec_ext in '' $ac_executable_extensions; do
  19072. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19073. ac_cv_path_FIG2DEV="$as_dir/$ac_word$ac_exec_ext"
  19074. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19075. break 2
  19076. fi
  19077. done
  19078. done
  19079. ;;
  19080. esac
  19081. fi
  19082. FIG2DEV=$ac_cv_path_FIG2DEV
  19083. if test -n "$FIG2DEV"; then
  19084. echo "$as_me:$LINENO: result: $FIG2DEV" >&5
  19085. echo "${ECHO_T}$FIG2DEV" >&6
  19086. else
  19087. echo "$as_me:$LINENO: result: no" >&5
  19088. echo "${ECHO_T}no" >&6
  19089. fi
  19090. # Check whether --with-lyx or --without-lyx was given.
  19091. if test "${with_lyx+set}" = set; then
  19092. withval="$with_lyx"
  19093. echo "$as_me:$LINENO: checking for lyx" >&5
  19094. echo $ECHO_N "checking for lyx... $ECHO_C" >&6
  19095. if test -x $withval ; then
  19096. td=$withval
  19097. echo "$as_me:$LINENO: result: $td" >&5
  19098. echo "${ECHO_T}$td" >&6
  19099. else
  19100. echo "$as_me:$LINENO: result: Error: $withval does not exist or is not executable" >&5
  19101. echo "${ECHO_T}Error: $withval does not exist or is not executable" >&6
  19102. fi
  19103. else
  19104. case $host in
  19105. powerpc-apple-darwin*)
  19106. lyx=/Applications/Lyx.app/Contents/MacOS/LyX
  19107. if test -x $lyx ; then
  19108. echo "$as_me:$LINENO: checking for lyx" >&5
  19109. echo $ECHO_N "checking for lyx... $ECHO_C" >&6
  19110. LYX=$lyx
  19111. echo "$as_me:$LINENO: result: $lyx" >&5
  19112. echo "${ECHO_T}$lyx" >&6
  19113. else
  19114. # Extract the first word of "lyx", so it can be a program name with args.
  19115. set dummy lyx; ac_word=$2
  19116. echo "$as_me:$LINENO: checking for $ac_word" >&5
  19117. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  19118. if test "${ac_cv_path_LYX+set}" = set; then
  19119. echo $ECHO_N "(cached) $ECHO_C" >&6
  19120. else
  19121. case $LYX in
  19122. [\\/]* | ?:[\\/]*)
  19123. ac_cv_path_LYX="$LYX" # Let the user override the test with a path.
  19124. ;;
  19125. *)
  19126. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19127. for as_dir in $PATH
  19128. do
  19129. IFS=$as_save_IFS
  19130. test -z "$as_dir" && as_dir=.
  19131. for ac_exec_ext in '' $ac_executable_extensions; do
  19132. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19133. ac_cv_path_LYX="$as_dir/$ac_word$ac_exec_ext"
  19134. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19135. break 2
  19136. fi
  19137. done
  19138. done
  19139. ;;
  19140. esac
  19141. fi
  19142. LYX=$ac_cv_path_LYX
  19143. if test -n "$LYX"; then
  19144. echo "$as_me:$LINENO: result: $LYX" >&5
  19145. echo "${ECHO_T}$LYX" >&6
  19146. else
  19147. echo "$as_me:$LINENO: result: no" >&5
  19148. echo "${ECHO_T}no" >&6
  19149. fi
  19150. fi
  19151. ;;
  19152. *)
  19153. # Extract the first word of "lyx", so it can be a program name with args.
  19154. set dummy lyx; ac_word=$2
  19155. echo "$as_me:$LINENO: checking for $ac_word" >&5
  19156. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  19157. if test "${ac_cv_path_LYX+set}" = set; then
  19158. echo $ECHO_N "(cached) $ECHO_C" >&6
  19159. else
  19160. case $LYX in
  19161. [\\/]* | ?:[\\/]*)
  19162. ac_cv_path_LYX="$LYX" # Let the user override the test with a path.
  19163. ;;
  19164. *)
  19165. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19166. for as_dir in $PATH
  19167. do
  19168. IFS=$as_save_IFS
  19169. test -z "$as_dir" && as_dir=.
  19170. for ac_exec_ext in '' $ac_executable_extensions; do
  19171. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19172. ac_cv_path_LYX="$as_dir/$ac_word$ac_exec_ext"
  19173. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19174. break 2
  19175. fi
  19176. done
  19177. done
  19178. ;;
  19179. esac
  19180. fi
  19181. LYX=$ac_cv_path_LYX
  19182. if test -n "$LYX"; then
  19183. echo "$as_me:$LINENO: result: $LYX" >&5
  19184. echo "${ECHO_T}$LYX" >&6
  19185. else
  19186. echo "$as_me:$LINENO: result: no" >&5
  19187. echo "${ECHO_T}no" >&6
  19188. fi
  19189. ;;
  19190. esac
  19191. fi;
  19192. # Extract the first word of "dvips", so it can be a program name with args.
  19193. set dummy dvips; ac_word=$2
  19194. echo "$as_me:$LINENO: checking for $ac_word" >&5
  19195. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  19196. if test "${ac_cv_path_DVIPS+set}" = set; then
  19197. echo $ECHO_N "(cached) $ECHO_C" >&6
  19198. else
  19199. case $DVIPS in
  19200. [\\/]* | ?:[\\/]*)
  19201. ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path.
  19202. ;;
  19203. *)
  19204. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19205. for as_dir in $PATH
  19206. do
  19207. IFS=$as_save_IFS
  19208. test -z "$as_dir" && as_dir=.
  19209. for ac_exec_ext in '' $ac_executable_extensions; do
  19210. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19211. ac_cv_path_DVIPS="$as_dir/$ac_word$ac_exec_ext"
  19212. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19213. break 2
  19214. fi
  19215. done
  19216. done
  19217. ;;
  19218. esac
  19219. fi
  19220. DVIPS=$ac_cv_path_DVIPS
  19221. if test -n "$DVIPS"; then
  19222. echo "$as_me:$LINENO: result: $DVIPS" >&5
  19223. echo "${ECHO_T}$DVIPS" >&6
  19224. else
  19225. echo "$as_me:$LINENO: result: no" >&5
  19226. echo "${ECHO_T}no" >&6
  19227. fi
  19228. # Extract the first word of "texi2dvi", so it can be a program name with args.
  19229. set dummy texi2dvi; ac_word=$2
  19230. echo "$as_me:$LINENO: checking for $ac_word" >&5
  19231. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  19232. if test "${ac_cv_path_TEXI2DVI+set}" = set; then
  19233. echo $ECHO_N "(cached) $ECHO_C" >&6
  19234. else
  19235. case $TEXI2DVI in
  19236. [\\/]* | ?:[\\/]*)
  19237. ac_cv_path_TEXI2DVI="$TEXI2DVI" # Let the user override the test with a path.
  19238. ;;
  19239. *)
  19240. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19241. for as_dir in $PATH
  19242. do
  19243. IFS=$as_save_IFS
  19244. test -z "$as_dir" && as_dir=.
  19245. for ac_exec_ext in '' $ac_executable_extensions; do
  19246. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19247. ac_cv_path_TEXI2DVI="$as_dir/$ac_word$ac_exec_ext"
  19248. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19249. break 2
  19250. fi
  19251. done
  19252. done
  19253. ;;
  19254. esac
  19255. fi
  19256. TEXI2DVI=$ac_cv_path_TEXI2DVI
  19257. if test -n "$TEXI2DVI"; then
  19258. echo "$as_me:$LINENO: result: $TEXI2DVI" >&5
  19259. echo "${ECHO_T}$TEXI2DVI" >&6
  19260. else
  19261. echo "$as_me:$LINENO: result: no" >&5
  19262. echo "${ECHO_T}no" >&6
  19263. fi
  19264. # Extract the first word of "latex2html", so it can be a program name with args.
  19265. set dummy latex2html; ac_word=$2
  19266. echo "$as_me:$LINENO: checking for $ac_word" >&5
  19267. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  19268. if test "${ac_cv_path_LATEX2HTML+set}" = set; then
  19269. echo $ECHO_N "(cached) $ECHO_C" >&6
  19270. else
  19271. case $LATEX2HTML in
  19272. [\\/]* | ?:[\\/]*)
  19273. ac_cv_path_LATEX2HTML="$LATEX2HTML" # Let the user override the test with a path.
  19274. ;;
  19275. *)
  19276. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19277. for as_dir in $PATH
  19278. do
  19279. IFS=$as_save_IFS
  19280. test -z "$as_dir" && as_dir=.
  19281. for ac_exec_ext in '' $ac_executable_extensions; do
  19282. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19283. ac_cv_path_LATEX2HTML="$as_dir/$ac_word$ac_exec_ext"
  19284. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19285. break 2
  19286. fi
  19287. done
  19288. done
  19289. ;;
  19290. esac
  19291. fi
  19292. LATEX2HTML=$ac_cv_path_LATEX2HTML
  19293. if test -n "$LATEX2HTML"; then
  19294. echo "$as_me:$LINENO: result: $LATEX2HTML" >&5
  19295. echo "${ECHO_T}$LATEX2HTML" >&6
  19296. else
  19297. echo "$as_me:$LINENO: result: no" >&5
  19298. echo "${ECHO_T}no" >&6
  19299. fi
  19300. # Extract the first word of "dvipdfm", so it can be a program name with args.
  19301. set dummy dvipdfm; ac_word=$2
  19302. echo "$as_me:$LINENO: checking for $ac_word" >&5
  19303. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  19304. if test "${ac_cv_path_DVIPDFM+set}" = set; then
  19305. echo $ECHO_N "(cached) $ECHO_C" >&6
  19306. else
  19307. case $DVIPDFM in
  19308. [\\/]* | ?:[\\/]*)
  19309. ac_cv_path_DVIPDFM="$DVIPDFM" # Let the user override the test with a path.
  19310. ;;
  19311. *)
  19312. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19313. for as_dir in $PATH
  19314. do
  19315. IFS=$as_save_IFS
  19316. test -z "$as_dir" && as_dir=.
  19317. for ac_exec_ext in '' $ac_executable_extensions; do
  19318. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19319. ac_cv_path_DVIPDFM="$as_dir/$ac_word$ac_exec_ext"
  19320. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19321. break 2
  19322. fi
  19323. done
  19324. done
  19325. ;;
  19326. esac
  19327. fi
  19328. DVIPDFM=$ac_cv_path_DVIPDFM
  19329. if test -n "$DVIPDFM"; then
  19330. echo "$as_me:$LINENO: result: $DVIPDFM" >&5
  19331. echo "${ECHO_T}$DVIPDFM" >&6
  19332. else
  19333. echo "$as_me:$LINENO: result: no" >&5
  19334. echo "${ECHO_T}no" >&6
  19335. fi
  19336. # Extract the first word of "autogen", so it can be a program name with args.
  19337. set dummy autogen; ac_word=$2
  19338. echo "$as_me:$LINENO: checking for $ac_word" >&5
  19339. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  19340. if test "${ac_cv_path_AUTOGEN+set}" = set; then
  19341. echo $ECHO_N "(cached) $ECHO_C" >&6
  19342. else
  19343. case $AUTOGEN in
  19344. [\\/]* | ?:[\\/]*)
  19345. ac_cv_path_AUTOGEN="$AUTOGEN" # Let the user override the test with a path.
  19346. ;;
  19347. *)
  19348. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19349. for as_dir in $PATH
  19350. do
  19351. IFS=$as_save_IFS
  19352. test -z "$as_dir" && as_dir=.
  19353. for ac_exec_ext in '' $ac_executable_extensions; do
  19354. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19355. ac_cv_path_AUTOGEN="$as_dir/$ac_word$ac_exec_ext"
  19356. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19357. break 2
  19358. fi
  19359. done
  19360. done
  19361. ;;
  19362. esac
  19363. fi
  19364. AUTOGEN=$ac_cv_path_AUTOGEN
  19365. if test -n "$AUTOGEN"; then
  19366. echo "$as_me:$LINENO: result: $AUTOGEN" >&5
  19367. echo "${ECHO_T}$AUTOGEN" >&6
  19368. else
  19369. echo "$as_me:$LINENO: result: no" >&5
  19370. echo "${ECHO_T}no" >&6
  19371. fi
  19372. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  19373. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  19374. if test "${ac_cv_header_stdc+set}" = set; then
  19375. echo $ECHO_N "(cached) $ECHO_C" >&6
  19376. else
  19377. cat >conftest.$ac_ext <<_ACEOF
  19378. /* confdefs.h. */
  19379. _ACEOF
  19380. cat confdefs.h >>conftest.$ac_ext
  19381. cat >>conftest.$ac_ext <<_ACEOF
  19382. /* end confdefs.h. */
  19383. #include <stdlib.h>
  19384. #include <stdarg.h>
  19385. #include <string.h>
  19386. #include <float.h>
  19387. int
  19388. main ()
  19389. {
  19390. ;
  19391. return 0;
  19392. }
  19393. _ACEOF
  19394. rm -f conftest.$ac_objext
  19395. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19396. (eval $ac_compile) 2>conftest.er1
  19397. ac_status=$?
  19398. grep -v '^ *+' conftest.er1 >conftest.err
  19399. rm -f conftest.er1
  19400. cat conftest.err >&5
  19401. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19402. (exit $ac_status); } &&
  19403. { ac_try='test -z "$ac_c_werror_flag"
  19404. || test ! -s conftest.err'
  19405. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19406. (eval $ac_try) 2>&5
  19407. ac_status=$?
  19408. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19409. (exit $ac_status); }; } &&
  19410. { ac_try='test -s conftest.$ac_objext'
  19411. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19412. (eval $ac_try) 2>&5
  19413. ac_status=$?
  19414. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19415. (exit $ac_status); }; }; then
  19416. ac_cv_header_stdc=yes
  19417. else
  19418. echo "$as_me: failed program was:" >&5
  19419. sed 's/^/| /' conftest.$ac_ext >&5
  19420. ac_cv_header_stdc=no
  19421. fi
  19422. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19423. if test $ac_cv_header_stdc = yes; then
  19424. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  19425. cat >conftest.$ac_ext <<_ACEOF
  19426. /* confdefs.h. */
  19427. _ACEOF
  19428. cat confdefs.h >>conftest.$ac_ext
  19429. cat >>conftest.$ac_ext <<_ACEOF
  19430. /* end confdefs.h. */
  19431. #include <string.h>
  19432. _ACEOF
  19433. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19434. $EGREP "memchr" >/dev/null 2>&1; then
  19435. :
  19436. else
  19437. ac_cv_header_stdc=no
  19438. fi
  19439. rm -f conftest*
  19440. fi
  19441. if test $ac_cv_header_stdc = yes; then
  19442. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  19443. cat >conftest.$ac_ext <<_ACEOF
  19444. /* confdefs.h. */
  19445. _ACEOF
  19446. cat confdefs.h >>conftest.$ac_ext
  19447. cat >>conftest.$ac_ext <<_ACEOF
  19448. /* end confdefs.h. */
  19449. #include <stdlib.h>
  19450. _ACEOF
  19451. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19452. $EGREP "free" >/dev/null 2>&1; then
  19453. :
  19454. else
  19455. ac_cv_header_stdc=no
  19456. fi
  19457. rm -f conftest*
  19458. fi
  19459. if test $ac_cv_header_stdc = yes; then
  19460. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  19461. if test "$cross_compiling" = yes; then
  19462. :
  19463. else
  19464. cat >conftest.$ac_ext <<_ACEOF
  19465. /* confdefs.h. */
  19466. _ACEOF
  19467. cat confdefs.h >>conftest.$ac_ext
  19468. cat >>conftest.$ac_ext <<_ACEOF
  19469. /* end confdefs.h. */
  19470. #include <ctype.h>
  19471. #if ((' ' & 0x0FF) == 0x020)
  19472. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  19473. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  19474. #else
  19475. # define ISLOWER(c) \
  19476. (('a' <= (c) && (c) <= 'i') \
  19477. || ('j' <= (c) && (c) <= 'r') \
  19478. || ('s' <= (c) && (c) <= 'z'))
  19479. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  19480. #endif
  19481. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  19482. int
  19483. main ()
  19484. {
  19485. int i;
  19486. for (i = 0; i < 256; i++)
  19487. if (XOR (islower (i), ISLOWER (i))
  19488. || toupper (i) != TOUPPER (i))
  19489. exit(2);
  19490. exit (0);
  19491. }
  19492. _ACEOF
  19493. rm -f conftest$ac_exeext
  19494. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19495. (eval $ac_link) 2>&5
  19496. ac_status=$?
  19497. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19498. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19499. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19500. (eval $ac_try) 2>&5
  19501. ac_status=$?
  19502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19503. (exit $ac_status); }; }; then
  19504. :
  19505. else
  19506. echo "$as_me: program exited with status $ac_status" >&5
  19507. echo "$as_me: failed program was:" >&5
  19508. sed 's/^/| /' conftest.$ac_ext >&5
  19509. ( exit $ac_status )
  19510. ac_cv_header_stdc=no
  19511. fi
  19512. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19513. fi
  19514. fi
  19515. fi
  19516. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  19517. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  19518. if test $ac_cv_header_stdc = yes; then
  19519. cat >>confdefs.h <<\_ACEOF
  19520. #define STDC_HEADERS 1
  19521. _ACEOF
  19522. fi
  19523. echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
  19524. echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
  19525. if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
  19526. echo $ECHO_N "(cached) $ECHO_C" >&6
  19527. else
  19528. cat >conftest.$ac_ext <<_ACEOF
  19529. /* confdefs.h. */
  19530. _ACEOF
  19531. cat confdefs.h >>conftest.$ac_ext
  19532. cat >>conftest.$ac_ext <<_ACEOF
  19533. /* end confdefs.h. */
  19534. #include <sys/types.h>
  19535. int
  19536. main ()
  19537. {
  19538. return makedev(0, 0);
  19539. ;
  19540. return 0;
  19541. }
  19542. _ACEOF
  19543. rm -f conftest.$ac_objext conftest$ac_exeext
  19544. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19545. (eval $ac_link) 2>conftest.er1
  19546. ac_status=$?
  19547. grep -v '^ *+' conftest.er1 >conftest.err
  19548. rm -f conftest.er1
  19549. cat conftest.err >&5
  19550. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19551. (exit $ac_status); } &&
  19552. { ac_try='test -z "$ac_c_werror_flag"
  19553. || test ! -s conftest.err'
  19554. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19555. (eval $ac_try) 2>&5
  19556. ac_status=$?
  19557. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19558. (exit $ac_status); }; } &&
  19559. { ac_try='test -s conftest$ac_exeext'
  19560. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19561. (eval $ac_try) 2>&5
  19562. ac_status=$?
  19563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19564. (exit $ac_status); }; }; then
  19565. ac_cv_header_sys_types_h_makedev=yes
  19566. else
  19567. echo "$as_me: failed program was:" >&5
  19568. sed 's/^/| /' conftest.$ac_ext >&5
  19569. ac_cv_header_sys_types_h_makedev=no
  19570. fi
  19571. rm -f conftest.err conftest.$ac_objext \
  19572. conftest$ac_exeext conftest.$ac_ext
  19573. fi
  19574. echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
  19575. echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
  19576. if test $ac_cv_header_sys_types_h_makedev = no; then
  19577. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  19578. echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
  19579. echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
  19580. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  19581. echo $ECHO_N "(cached) $ECHO_C" >&6
  19582. fi
  19583. echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
  19584. echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
  19585. else
  19586. # Is the header compilable?
  19587. echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
  19588. echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
  19589. cat >conftest.$ac_ext <<_ACEOF
  19590. /* confdefs.h. */
  19591. _ACEOF
  19592. cat confdefs.h >>conftest.$ac_ext
  19593. cat >>conftest.$ac_ext <<_ACEOF
  19594. /* end confdefs.h. */
  19595. $ac_includes_default
  19596. #include <sys/mkdev.h>
  19597. _ACEOF
  19598. rm -f conftest.$ac_objext
  19599. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19600. (eval $ac_compile) 2>conftest.er1
  19601. ac_status=$?
  19602. grep -v '^ *+' conftest.er1 >conftest.err
  19603. rm -f conftest.er1
  19604. cat conftest.err >&5
  19605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19606. (exit $ac_status); } &&
  19607. { ac_try='test -z "$ac_c_werror_flag"
  19608. || test ! -s conftest.err'
  19609. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19610. (eval $ac_try) 2>&5
  19611. ac_status=$?
  19612. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19613. (exit $ac_status); }; } &&
  19614. { ac_try='test -s conftest.$ac_objext'
  19615. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19616. (eval $ac_try) 2>&5
  19617. ac_status=$?
  19618. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19619. (exit $ac_status); }; }; then
  19620. ac_header_compiler=yes
  19621. else
  19622. echo "$as_me: failed program was:" >&5
  19623. sed 's/^/| /' conftest.$ac_ext >&5
  19624. ac_header_compiler=no
  19625. fi
  19626. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19627. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19628. echo "${ECHO_T}$ac_header_compiler" >&6
  19629. # Is the header present?
  19630. echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
  19631. echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
  19632. cat >conftest.$ac_ext <<_ACEOF
  19633. /* confdefs.h. */
  19634. _ACEOF
  19635. cat confdefs.h >>conftest.$ac_ext
  19636. cat >>conftest.$ac_ext <<_ACEOF
  19637. /* end confdefs.h. */
  19638. #include <sys/mkdev.h>
  19639. _ACEOF
  19640. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  19641. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  19642. ac_status=$?
  19643. grep -v '^ *+' conftest.er1 >conftest.err
  19644. rm -f conftest.er1
  19645. cat conftest.err >&5
  19646. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19647. (exit $ac_status); } >/dev/null; then
  19648. if test -s conftest.err; then
  19649. ac_cpp_err=$ac_c_preproc_warn_flag
  19650. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  19651. else
  19652. ac_cpp_err=
  19653. fi
  19654. else
  19655. ac_cpp_err=yes
  19656. fi
  19657. if test -z "$ac_cpp_err"; then
  19658. ac_header_preproc=yes
  19659. else
  19660. echo "$as_me: failed program was:" >&5
  19661. sed 's/^/| /' conftest.$ac_ext >&5
  19662. ac_header_preproc=no
  19663. fi
  19664. rm -f conftest.err conftest.$ac_ext
  19665. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19666. echo "${ECHO_T}$ac_header_preproc" >&6
  19667. # So? What about this header?
  19668. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19669. yes:no: )
  19670. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
  19671. echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19672. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
  19673. echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
  19674. ac_header_preproc=yes
  19675. ;;
  19676. no:yes:* )
  19677. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
  19678. echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
  19679. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
  19680. echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
  19681. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
  19682. echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
  19683. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
  19684. echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
  19685. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
  19686. echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
  19687. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
  19688. echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
  19689. (
  19690. cat <<\_ASBOX
  19691. ## ------------------------------------------ ##
  19692. ## Report this to the AC_PACKAGE_NAME lists. ##
  19693. ## ------------------------------------------ ##
  19694. _ASBOX
  19695. ) |
  19696. sed "s/^/$as_me: WARNING: /" >&2
  19697. ;;
  19698. esac
  19699. echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
  19700. echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
  19701. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  19702. echo $ECHO_N "(cached) $ECHO_C" >&6
  19703. else
  19704. ac_cv_header_sys_mkdev_h=$ac_header_preproc
  19705. fi
  19706. echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
  19707. echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
  19708. fi
  19709. if test $ac_cv_header_sys_mkdev_h = yes; then
  19710. cat >>confdefs.h <<\_ACEOF
  19711. #define MAJOR_IN_MKDEV 1
  19712. _ACEOF
  19713. fi
  19714. if test $ac_cv_header_sys_mkdev_h = no; then
  19715. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  19716. echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
  19717. echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
  19718. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  19719. echo $ECHO_N "(cached) $ECHO_C" >&6
  19720. fi
  19721. echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
  19722. echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
  19723. else
  19724. # Is the header compilable?
  19725. echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
  19726. echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
  19727. cat >conftest.$ac_ext <<_ACEOF
  19728. /* confdefs.h. */
  19729. _ACEOF
  19730. cat confdefs.h >>conftest.$ac_ext
  19731. cat >>conftest.$ac_ext <<_ACEOF
  19732. /* end confdefs.h. */
  19733. $ac_includes_default
  19734. #include <sys/sysmacros.h>
  19735. _ACEOF
  19736. rm -f conftest.$ac_objext
  19737. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19738. (eval $ac_compile) 2>conftest.er1
  19739. ac_status=$?
  19740. grep -v '^ *+' conftest.er1 >conftest.err
  19741. rm -f conftest.er1
  19742. cat conftest.err >&5
  19743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19744. (exit $ac_status); } &&
  19745. { ac_try='test -z "$ac_c_werror_flag"
  19746. || test ! -s conftest.err'
  19747. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19748. (eval $ac_try) 2>&5
  19749. ac_status=$?
  19750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19751. (exit $ac_status); }; } &&
  19752. { ac_try='test -s conftest.$ac_objext'
  19753. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19754. (eval $ac_try) 2>&5
  19755. ac_status=$?
  19756. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19757. (exit $ac_status); }; }; then
  19758. ac_header_compiler=yes
  19759. else
  19760. echo "$as_me: failed program was:" >&5
  19761. sed 's/^/| /' conftest.$ac_ext >&5
  19762. ac_header_compiler=no
  19763. fi
  19764. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19765. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19766. echo "${ECHO_T}$ac_header_compiler" >&6
  19767. # Is the header present?
  19768. echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
  19769. echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
  19770. cat >conftest.$ac_ext <<_ACEOF
  19771. /* confdefs.h. */
  19772. _ACEOF
  19773. cat confdefs.h >>conftest.$ac_ext
  19774. cat >>conftest.$ac_ext <<_ACEOF
  19775. /* end confdefs.h. */
  19776. #include <sys/sysmacros.h>
  19777. _ACEOF
  19778. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  19779. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  19780. ac_status=$?
  19781. grep -v '^ *+' conftest.er1 >conftest.err
  19782. rm -f conftest.er1
  19783. cat conftest.err >&5
  19784. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19785. (exit $ac_status); } >/dev/null; then
  19786. if test -s conftest.err; then
  19787. ac_cpp_err=$ac_c_preproc_warn_flag
  19788. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  19789. else
  19790. ac_cpp_err=
  19791. fi
  19792. else
  19793. ac_cpp_err=yes
  19794. fi
  19795. if test -z "$ac_cpp_err"; then
  19796. ac_header_preproc=yes
  19797. else
  19798. echo "$as_me: failed program was:" >&5
  19799. sed 's/^/| /' conftest.$ac_ext >&5
  19800. ac_header_preproc=no
  19801. fi
  19802. rm -f conftest.err conftest.$ac_ext
  19803. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19804. echo "${ECHO_T}$ac_header_preproc" >&6
  19805. # So? What about this header?
  19806. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19807. yes:no: )
  19808. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
  19809. echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19810. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
  19811. echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
  19812. ac_header_preproc=yes
  19813. ;;
  19814. no:yes:* )
  19815. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
  19816. echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
  19817. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
  19818. echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
  19819. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
  19820. echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
  19821. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
  19822. echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
  19823. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
  19824. echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
  19825. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
  19826. echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
  19827. (
  19828. cat <<\_ASBOX
  19829. ## ------------------------------------------ ##
  19830. ## Report this to the AC_PACKAGE_NAME lists. ##
  19831. ## ------------------------------------------ ##
  19832. _ASBOX
  19833. ) |
  19834. sed "s/^/$as_me: WARNING: /" >&2
  19835. ;;
  19836. esac
  19837. echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
  19838. echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
  19839. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  19840. echo $ECHO_N "(cached) $ECHO_C" >&6
  19841. else
  19842. ac_cv_header_sys_sysmacros_h=$ac_header_preproc
  19843. fi
  19844. echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
  19845. echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
  19846. fi
  19847. if test $ac_cv_header_sys_sysmacros_h = yes; then
  19848. cat >>confdefs.h <<\_ACEOF
  19849. #define MAJOR_IN_SYSMACROS 1
  19850. _ACEOF
  19851. fi
  19852. fi
  19853. fi
  19854. echo "$as_me:$LINENO: checking for size_t" >&5
  19855. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  19856. if test "${ac_cv_type_size_t+set}" = set; then
  19857. echo $ECHO_N "(cached) $ECHO_C" >&6
  19858. else
  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. $ac_includes_default
  19866. int
  19867. main ()
  19868. {
  19869. if ((size_t *) 0)
  19870. return 0;
  19871. if (sizeof (size_t))
  19872. return 0;
  19873. ;
  19874. return 0;
  19875. }
  19876. _ACEOF
  19877. rm -f conftest.$ac_objext
  19878. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19879. (eval $ac_compile) 2>conftest.er1
  19880. ac_status=$?
  19881. grep -v '^ *+' conftest.er1 >conftest.err
  19882. rm -f conftest.er1
  19883. cat conftest.err >&5
  19884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19885. (exit $ac_status); } &&
  19886. { ac_try='test -z "$ac_c_werror_flag"
  19887. || test ! -s conftest.err'
  19888. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19889. (eval $ac_try) 2>&5
  19890. ac_status=$?
  19891. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19892. (exit $ac_status); }; } &&
  19893. { ac_try='test -s conftest.$ac_objext'
  19894. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19895. (eval $ac_try) 2>&5
  19896. ac_status=$?
  19897. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19898. (exit $ac_status); }; }; then
  19899. ac_cv_type_size_t=yes
  19900. else
  19901. echo "$as_me: failed program was:" >&5
  19902. sed 's/^/| /' conftest.$ac_ext >&5
  19903. ac_cv_type_size_t=no
  19904. fi
  19905. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19906. fi
  19907. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  19908. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  19909. if test $ac_cv_type_size_t = yes; then
  19910. :
  19911. else
  19912. cat >>confdefs.h <<_ACEOF
  19913. #define size_t unsigned
  19914. _ACEOF
  19915. fi
  19916. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  19917. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  19918. if test "${ac_cv_header_time+set}" = set; then
  19919. echo $ECHO_N "(cached) $ECHO_C" >&6
  19920. else
  19921. cat >conftest.$ac_ext <<_ACEOF
  19922. /* confdefs.h. */
  19923. _ACEOF
  19924. cat confdefs.h >>conftest.$ac_ext
  19925. cat >>conftest.$ac_ext <<_ACEOF
  19926. /* end confdefs.h. */
  19927. #include <sys/types.h>
  19928. #include <sys/time.h>
  19929. #include <time.h>
  19930. int
  19931. main ()
  19932. {
  19933. if ((struct tm *) 0)
  19934. return 0;
  19935. ;
  19936. return 0;
  19937. }
  19938. _ACEOF
  19939. rm -f conftest.$ac_objext
  19940. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19941. (eval $ac_compile) 2>conftest.er1
  19942. ac_status=$?
  19943. grep -v '^ *+' conftest.er1 >conftest.err
  19944. rm -f conftest.er1
  19945. cat conftest.err >&5
  19946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19947. (exit $ac_status); } &&
  19948. { ac_try='test -z "$ac_c_werror_flag"
  19949. || test ! -s conftest.err'
  19950. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19951. (eval $ac_try) 2>&5
  19952. ac_status=$?
  19953. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19954. (exit $ac_status); }; } &&
  19955. { ac_try='test -s conftest.$ac_objext'
  19956. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19957. (eval $ac_try) 2>&5
  19958. ac_status=$?
  19959. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19960. (exit $ac_status); }; }; then
  19961. ac_cv_header_time=yes
  19962. else
  19963. echo "$as_me: failed program was:" >&5
  19964. sed 's/^/| /' conftest.$ac_ext >&5
  19965. ac_cv_header_time=no
  19966. fi
  19967. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19968. fi
  19969. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  19970. echo "${ECHO_T}$ac_cv_header_time" >&6
  19971. if test $ac_cv_header_time = yes; then
  19972. cat >>confdefs.h <<\_ACEOF
  19973. #define TIME_WITH_SYS_TIME 1
  19974. _ACEOF
  19975. fi
  19976. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  19977. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  19978. if test "${ac_cv_c_const+set}" = set; then
  19979. echo $ECHO_N "(cached) $ECHO_C" >&6
  19980. else
  19981. cat >conftest.$ac_ext <<_ACEOF
  19982. /* confdefs.h. */
  19983. _ACEOF
  19984. cat confdefs.h >>conftest.$ac_ext
  19985. cat >>conftest.$ac_ext <<_ACEOF
  19986. /* end confdefs.h. */
  19987. int
  19988. main ()
  19989. {
  19990. /* FIXME: Include the comments suggested by Paul. */
  19991. #ifndef __cplusplus
  19992. /* Ultrix mips cc rejects this. */
  19993. typedef int charset[2];
  19994. const charset x;
  19995. /* SunOS 4.1.1 cc rejects this. */
  19996. char const *const *ccp;
  19997. char **p;
  19998. /* NEC SVR4.0.2 mips cc rejects this. */
  19999. struct point {int x, y;};
  20000. static struct point const zero = {0,0};
  20001. /* AIX XL C 1.02.0.0 rejects this.
  20002. It does not let you subtract one const X* pointer from another in
  20003. an arm of an if-expression whose if-part is not a constant
  20004. expression */
  20005. const char *g = "string";
  20006. ccp = &g + (g ? g-g : 0);
  20007. /* HPUX 7.0 cc rejects these. */
  20008. ++ccp;
  20009. p = (char**) ccp;
  20010. ccp = (char const *const *) p;
  20011. { /* SCO 3.2v4 cc rejects this. */
  20012. char *t;
  20013. char const *s = 0 ? (char *) 0 : (char const *) 0;
  20014. *t++ = 0;
  20015. }
  20016. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  20017. int x[] = {25, 17};
  20018. const int *foo = &x[0];
  20019. ++foo;
  20020. }
  20021. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  20022. typedef const int *iptr;
  20023. iptr p = 0;
  20024. ++p;
  20025. }
  20026. { /* AIX XL C 1.02.0.0 rejects this saying
  20027. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  20028. struct s { int j; const int *ap[3]; };
  20029. struct s *b; b->j = 5;
  20030. }
  20031. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  20032. const int foo = 10;
  20033. }
  20034. #endif
  20035. ;
  20036. return 0;
  20037. }
  20038. _ACEOF
  20039. rm -f conftest.$ac_objext
  20040. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20041. (eval $ac_compile) 2>conftest.er1
  20042. ac_status=$?
  20043. grep -v '^ *+' conftest.er1 >conftest.err
  20044. rm -f conftest.er1
  20045. cat conftest.err >&5
  20046. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20047. (exit $ac_status); } &&
  20048. { ac_try='test -z "$ac_c_werror_flag"
  20049. || test ! -s conftest.err'
  20050. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20051. (eval $ac_try) 2>&5
  20052. ac_status=$?
  20053. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20054. (exit $ac_status); }; } &&
  20055. { ac_try='test -s conftest.$ac_objext'
  20056. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20057. (eval $ac_try) 2>&5
  20058. ac_status=$?
  20059. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20060. (exit $ac_status); }; }; then
  20061. ac_cv_c_const=yes
  20062. else
  20063. echo "$as_me: failed program was:" >&5
  20064. sed 's/^/| /' conftest.$ac_ext >&5
  20065. ac_cv_c_const=no
  20066. fi
  20067. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20068. fi
  20069. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  20070. echo "${ECHO_T}$ac_cv_c_const" >&6
  20071. if test $ac_cv_c_const = no; then
  20072. cat >>confdefs.h <<\_ACEOF
  20073. #define const
  20074. _ACEOF
  20075. fi
  20076. echo "$as_me:$LINENO: checking for inline" >&5
  20077. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  20078. if test "${ac_cv_c_inline+set}" = set; then
  20079. echo $ECHO_N "(cached) $ECHO_C" >&6
  20080. else
  20081. ac_cv_c_inline=no
  20082. for ac_kw in inline __inline__ __inline; do
  20083. cat >conftest.$ac_ext <<_ACEOF
  20084. /* confdefs.h. */
  20085. _ACEOF
  20086. cat confdefs.h >>conftest.$ac_ext
  20087. cat >>conftest.$ac_ext <<_ACEOF
  20088. /* end confdefs.h. */
  20089. #ifndef __cplusplus
  20090. typedef int foo_t;
  20091. static $ac_kw foo_t static_foo () {return 0; }
  20092. $ac_kw foo_t foo () {return 0; }
  20093. #endif
  20094. _ACEOF
  20095. rm -f conftest.$ac_objext
  20096. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20097. (eval $ac_compile) 2>conftest.er1
  20098. ac_status=$?
  20099. grep -v '^ *+' conftest.er1 >conftest.err
  20100. rm -f conftest.er1
  20101. cat conftest.err >&5
  20102. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20103. (exit $ac_status); } &&
  20104. { ac_try='test -z "$ac_c_werror_flag"
  20105. || test ! -s conftest.err'
  20106. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20107. (eval $ac_try) 2>&5
  20108. ac_status=$?
  20109. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20110. (exit $ac_status); }; } &&
  20111. { ac_try='test -s conftest.$ac_objext'
  20112. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20113. (eval $ac_try) 2>&5
  20114. ac_status=$?
  20115. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20116. (exit $ac_status); }; }; then
  20117. ac_cv_c_inline=$ac_kw; break
  20118. else
  20119. echo "$as_me: failed program was:" >&5
  20120. sed 's/^/| /' conftest.$ac_ext >&5
  20121. fi
  20122. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20123. done
  20124. fi
  20125. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  20126. echo "${ECHO_T}$ac_cv_c_inline" >&6
  20127. case $ac_cv_c_inline in
  20128. inline | yes) ;;
  20129. *)
  20130. case $ac_cv_c_inline in
  20131. no) ac_val=;;
  20132. *) ac_val=$ac_cv_c_inline;;
  20133. esac
  20134. cat >>confdefs.h <<_ACEOF
  20135. #ifndef __cplusplus
  20136. #define inline $ac_val
  20137. #endif
  20138. _ACEOF
  20139. ;;
  20140. esac
  20141. # Check whether --enable-largefile or --disable-largefile was given.
  20142. if test "${enable_largefile+set}" = set; then
  20143. enableval="$enable_largefile"
  20144. fi;
  20145. if test "$enable_largefile" != no; then
  20146. echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  20147. echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
  20148. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  20149. echo $ECHO_N "(cached) $ECHO_C" >&6
  20150. else
  20151. ac_cv_sys_largefile_CC=no
  20152. if test "$GCC" != yes; then
  20153. ac_save_CC=$CC
  20154. while :; do
  20155. # IRIX 6.2 and later do not support large files by default,
  20156. # so use the C compiler's -n32 option if that helps.
  20157. cat >conftest.$ac_ext <<_ACEOF
  20158. /* confdefs.h. */
  20159. _ACEOF
  20160. cat confdefs.h >>conftest.$ac_ext
  20161. cat >>conftest.$ac_ext <<_ACEOF
  20162. /* end confdefs.h. */
  20163. #include <sys/types.h>
  20164. /* Check that off_t can represent 2**63 - 1 correctly.
  20165. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20166. since some C++ compilers masquerading as C compilers
  20167. incorrectly reject 9223372036854775807. */
  20168. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20169. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20170. && LARGE_OFF_T % 2147483647 == 1)
  20171. ? 1 : -1];
  20172. int
  20173. main ()
  20174. {
  20175. ;
  20176. return 0;
  20177. }
  20178. _ACEOF
  20179. rm -f conftest.$ac_objext
  20180. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20181. (eval $ac_compile) 2>conftest.er1
  20182. ac_status=$?
  20183. grep -v '^ *+' conftest.er1 >conftest.err
  20184. rm -f conftest.er1
  20185. cat conftest.err >&5
  20186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20187. (exit $ac_status); } &&
  20188. { ac_try='test -z "$ac_c_werror_flag"
  20189. || test ! -s conftest.err'
  20190. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20191. (eval $ac_try) 2>&5
  20192. ac_status=$?
  20193. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20194. (exit $ac_status); }; } &&
  20195. { ac_try='test -s conftest.$ac_objext'
  20196. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20197. (eval $ac_try) 2>&5
  20198. ac_status=$?
  20199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20200. (exit $ac_status); }; }; then
  20201. break
  20202. else
  20203. echo "$as_me: failed program was:" >&5
  20204. sed 's/^/| /' conftest.$ac_ext >&5
  20205. fi
  20206. rm -f conftest.err conftest.$ac_objext
  20207. CC="$CC -n32"
  20208. rm -f conftest.$ac_objext
  20209. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20210. (eval $ac_compile) 2>conftest.er1
  20211. ac_status=$?
  20212. grep -v '^ *+' conftest.er1 >conftest.err
  20213. rm -f conftest.er1
  20214. cat conftest.err >&5
  20215. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20216. (exit $ac_status); } &&
  20217. { ac_try='test -z "$ac_c_werror_flag"
  20218. || test ! -s conftest.err'
  20219. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20220. (eval $ac_try) 2>&5
  20221. ac_status=$?
  20222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20223. (exit $ac_status); }; } &&
  20224. { ac_try='test -s conftest.$ac_objext'
  20225. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20226. (eval $ac_try) 2>&5
  20227. ac_status=$?
  20228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20229. (exit $ac_status); }; }; then
  20230. ac_cv_sys_largefile_CC=' -n32'; break
  20231. else
  20232. echo "$as_me: failed program was:" >&5
  20233. sed 's/^/| /' conftest.$ac_ext >&5
  20234. fi
  20235. rm -f conftest.err conftest.$ac_objext
  20236. break
  20237. done
  20238. CC=$ac_save_CC
  20239. rm -f conftest.$ac_ext
  20240. fi
  20241. fi
  20242. echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  20243. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
  20244. if test "$ac_cv_sys_largefile_CC" != no; then
  20245. CC=$CC$ac_cv_sys_largefile_CC
  20246. fi
  20247. echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  20248. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
  20249. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  20250. echo $ECHO_N "(cached) $ECHO_C" >&6
  20251. else
  20252. while :; do
  20253. ac_cv_sys_file_offset_bits=no
  20254. cat >conftest.$ac_ext <<_ACEOF
  20255. /* confdefs.h. */
  20256. _ACEOF
  20257. cat confdefs.h >>conftest.$ac_ext
  20258. cat >>conftest.$ac_ext <<_ACEOF
  20259. /* end confdefs.h. */
  20260. #include <sys/types.h>
  20261. /* Check that off_t can represent 2**63 - 1 correctly.
  20262. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20263. since some C++ compilers masquerading as C compilers
  20264. incorrectly reject 9223372036854775807. */
  20265. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20266. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20267. && LARGE_OFF_T % 2147483647 == 1)
  20268. ? 1 : -1];
  20269. int
  20270. main ()
  20271. {
  20272. ;
  20273. return 0;
  20274. }
  20275. _ACEOF
  20276. rm -f conftest.$ac_objext
  20277. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20278. (eval $ac_compile) 2>conftest.er1
  20279. ac_status=$?
  20280. grep -v '^ *+' conftest.er1 >conftest.err
  20281. rm -f conftest.er1
  20282. cat conftest.err >&5
  20283. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20284. (exit $ac_status); } &&
  20285. { ac_try='test -z "$ac_c_werror_flag"
  20286. || test ! -s conftest.err'
  20287. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20288. (eval $ac_try) 2>&5
  20289. ac_status=$?
  20290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20291. (exit $ac_status); }; } &&
  20292. { ac_try='test -s conftest.$ac_objext'
  20293. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20294. (eval $ac_try) 2>&5
  20295. ac_status=$?
  20296. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20297. (exit $ac_status); }; }; then
  20298. break
  20299. else
  20300. echo "$as_me: failed program was:" >&5
  20301. sed 's/^/| /' conftest.$ac_ext >&5
  20302. fi
  20303. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20304. cat >conftest.$ac_ext <<_ACEOF
  20305. /* confdefs.h. */
  20306. _ACEOF
  20307. cat confdefs.h >>conftest.$ac_ext
  20308. cat >>conftest.$ac_ext <<_ACEOF
  20309. /* end confdefs.h. */
  20310. #define _FILE_OFFSET_BITS 64
  20311. #include <sys/types.h>
  20312. /* Check that off_t can represent 2**63 - 1 correctly.
  20313. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20314. since some C++ compilers masquerading as C compilers
  20315. incorrectly reject 9223372036854775807. */
  20316. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20317. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20318. && LARGE_OFF_T % 2147483647 == 1)
  20319. ? 1 : -1];
  20320. int
  20321. main ()
  20322. {
  20323. ;
  20324. return 0;
  20325. }
  20326. _ACEOF
  20327. rm -f conftest.$ac_objext
  20328. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20329. (eval $ac_compile) 2>conftest.er1
  20330. ac_status=$?
  20331. grep -v '^ *+' conftest.er1 >conftest.err
  20332. rm -f conftest.er1
  20333. cat conftest.err >&5
  20334. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20335. (exit $ac_status); } &&
  20336. { ac_try='test -z "$ac_c_werror_flag"
  20337. || test ! -s conftest.err'
  20338. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20339. (eval $ac_try) 2>&5
  20340. ac_status=$?
  20341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20342. (exit $ac_status); }; } &&
  20343. { ac_try='test -s conftest.$ac_objext'
  20344. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20345. (eval $ac_try) 2>&5
  20346. ac_status=$?
  20347. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20348. (exit $ac_status); }; }; then
  20349. ac_cv_sys_file_offset_bits=64; break
  20350. else
  20351. echo "$as_me: failed program was:" >&5
  20352. sed 's/^/| /' conftest.$ac_ext >&5
  20353. fi
  20354. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20355. break
  20356. done
  20357. fi
  20358. echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  20359. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
  20360. if test "$ac_cv_sys_file_offset_bits" != no; then
  20361. cat >>confdefs.h <<_ACEOF
  20362. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  20363. _ACEOF
  20364. fi
  20365. rm -f conftest*
  20366. echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  20367. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
  20368. if test "${ac_cv_sys_large_files+set}" = set; then
  20369. echo $ECHO_N "(cached) $ECHO_C" >&6
  20370. else
  20371. while :; do
  20372. ac_cv_sys_large_files=no
  20373. cat >conftest.$ac_ext <<_ACEOF
  20374. /* confdefs.h. */
  20375. _ACEOF
  20376. cat confdefs.h >>conftest.$ac_ext
  20377. cat >>conftest.$ac_ext <<_ACEOF
  20378. /* end confdefs.h. */
  20379. #include <sys/types.h>
  20380. /* Check that off_t can represent 2**63 - 1 correctly.
  20381. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20382. since some C++ compilers masquerading as C compilers
  20383. incorrectly reject 9223372036854775807. */
  20384. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20385. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20386. && LARGE_OFF_T % 2147483647 == 1)
  20387. ? 1 : -1];
  20388. int
  20389. main ()
  20390. {
  20391. ;
  20392. return 0;
  20393. }
  20394. _ACEOF
  20395. rm -f conftest.$ac_objext
  20396. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20397. (eval $ac_compile) 2>conftest.er1
  20398. ac_status=$?
  20399. grep -v '^ *+' conftest.er1 >conftest.err
  20400. rm -f conftest.er1
  20401. cat conftest.err >&5
  20402. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20403. (exit $ac_status); } &&
  20404. { ac_try='test -z "$ac_c_werror_flag"
  20405. || test ! -s conftest.err'
  20406. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20407. (eval $ac_try) 2>&5
  20408. ac_status=$?
  20409. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20410. (exit $ac_status); }; } &&
  20411. { ac_try='test -s conftest.$ac_objext'
  20412. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20413. (eval $ac_try) 2>&5
  20414. ac_status=$?
  20415. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20416. (exit $ac_status); }; }; then
  20417. break
  20418. else
  20419. echo "$as_me: failed program was:" >&5
  20420. sed 's/^/| /' conftest.$ac_ext >&5
  20421. fi
  20422. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20423. cat >conftest.$ac_ext <<_ACEOF
  20424. /* confdefs.h. */
  20425. _ACEOF
  20426. cat confdefs.h >>conftest.$ac_ext
  20427. cat >>conftest.$ac_ext <<_ACEOF
  20428. /* end confdefs.h. */
  20429. #define _LARGE_FILES 1
  20430. #include <sys/types.h>
  20431. /* Check that off_t can represent 2**63 - 1 correctly.
  20432. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20433. since some C++ compilers masquerading as C compilers
  20434. incorrectly reject 9223372036854775807. */
  20435. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20436. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20437. && LARGE_OFF_T % 2147483647 == 1)
  20438. ? 1 : -1];
  20439. int
  20440. main ()
  20441. {
  20442. ;
  20443. return 0;
  20444. }
  20445. _ACEOF
  20446. rm -f conftest.$ac_objext
  20447. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20448. (eval $ac_compile) 2>conftest.er1
  20449. ac_status=$?
  20450. grep -v '^ *+' conftest.er1 >conftest.err
  20451. rm -f conftest.er1
  20452. cat conftest.err >&5
  20453. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20454. (exit $ac_status); } &&
  20455. { ac_try='test -z "$ac_c_werror_flag"
  20456. || test ! -s conftest.err'
  20457. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20458. (eval $ac_try) 2>&5
  20459. ac_status=$?
  20460. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20461. (exit $ac_status); }; } &&
  20462. { ac_try='test -s conftest.$ac_objext'
  20463. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20464. (eval $ac_try) 2>&5
  20465. ac_status=$?
  20466. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20467. (exit $ac_status); }; }; then
  20468. ac_cv_sys_large_files=1; break
  20469. else
  20470. echo "$as_me: failed program was:" >&5
  20471. sed 's/^/| /' conftest.$ac_ext >&5
  20472. fi
  20473. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20474. break
  20475. done
  20476. fi
  20477. echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  20478. echo "${ECHO_T}$ac_cv_sys_large_files" >&6
  20479. if test "$ac_cv_sys_large_files" != no; then
  20480. cat >>confdefs.h <<_ACEOF
  20481. #define _LARGE_FILES $ac_cv_sys_large_files
  20482. _ACEOF
  20483. fi
  20484. rm -f conftest*
  20485. fi
  20486. echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  20487. echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
  20488. if test "${ac_cv_sys_largefile_source+set}" = set; then
  20489. echo $ECHO_N "(cached) $ECHO_C" >&6
  20490. else
  20491. while :; do
  20492. ac_cv_sys_largefile_source=no
  20493. cat >conftest.$ac_ext <<_ACEOF
  20494. /* confdefs.h. */
  20495. _ACEOF
  20496. cat confdefs.h >>conftest.$ac_ext
  20497. cat >>conftest.$ac_ext <<_ACEOF
  20498. /* end confdefs.h. */
  20499. #include <stdio.h>
  20500. int
  20501. main ()
  20502. {
  20503. return !fseeko;
  20504. ;
  20505. return 0;
  20506. }
  20507. _ACEOF
  20508. rm -f conftest.$ac_objext
  20509. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20510. (eval $ac_compile) 2>conftest.er1
  20511. ac_status=$?
  20512. grep -v '^ *+' conftest.er1 >conftest.err
  20513. rm -f conftest.er1
  20514. cat conftest.err >&5
  20515. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20516. (exit $ac_status); } &&
  20517. { ac_try='test -z "$ac_c_werror_flag"
  20518. || test ! -s conftest.err'
  20519. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20520. (eval $ac_try) 2>&5
  20521. ac_status=$?
  20522. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20523. (exit $ac_status); }; } &&
  20524. { ac_try='test -s conftest.$ac_objext'
  20525. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20526. (eval $ac_try) 2>&5
  20527. ac_status=$?
  20528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20529. (exit $ac_status); }; }; then
  20530. break
  20531. else
  20532. echo "$as_me: failed program was:" >&5
  20533. sed 's/^/| /' conftest.$ac_ext >&5
  20534. fi
  20535. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20536. cat >conftest.$ac_ext <<_ACEOF
  20537. /* confdefs.h. */
  20538. _ACEOF
  20539. cat confdefs.h >>conftest.$ac_ext
  20540. cat >>conftest.$ac_ext <<_ACEOF
  20541. /* end confdefs.h. */
  20542. #define _LARGEFILE_SOURCE 1
  20543. #include <stdio.h>
  20544. int
  20545. main ()
  20546. {
  20547. return !fseeko;
  20548. ;
  20549. return 0;
  20550. }
  20551. _ACEOF
  20552. rm -f conftest.$ac_objext
  20553. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20554. (eval $ac_compile) 2>conftest.er1
  20555. ac_status=$?
  20556. grep -v '^ *+' conftest.er1 >conftest.err
  20557. rm -f conftest.er1
  20558. cat conftest.err >&5
  20559. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20560. (exit $ac_status); } &&
  20561. { ac_try='test -z "$ac_c_werror_flag"
  20562. || test ! -s conftest.err'
  20563. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20564. (eval $ac_try) 2>&5
  20565. ac_status=$?
  20566. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20567. (exit $ac_status); }; } &&
  20568. { ac_try='test -s conftest.$ac_objext'
  20569. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20570. (eval $ac_try) 2>&5
  20571. ac_status=$?
  20572. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20573. (exit $ac_status); }; }; then
  20574. ac_cv_sys_largefile_source=1; break
  20575. else
  20576. echo "$as_me: failed program was:" >&5
  20577. sed 's/^/| /' conftest.$ac_ext >&5
  20578. fi
  20579. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20580. break
  20581. done
  20582. fi
  20583. echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
  20584. echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
  20585. if test "$ac_cv_sys_largefile_source" != no; then
  20586. cat >>confdefs.h <<_ACEOF
  20587. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  20588. _ACEOF
  20589. fi
  20590. rm -f conftest*
  20591. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  20592. # in glibc 2.1.3, but that breaks too many other things.
  20593. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  20594. echo "$as_me:$LINENO: checking for fseeko" >&5
  20595. echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
  20596. if test "${ac_cv_func_fseeko+set}" = set; then
  20597. echo $ECHO_N "(cached) $ECHO_C" >&6
  20598. else
  20599. cat >conftest.$ac_ext <<_ACEOF
  20600. /* confdefs.h. */
  20601. _ACEOF
  20602. cat confdefs.h >>conftest.$ac_ext
  20603. cat >>conftest.$ac_ext <<_ACEOF
  20604. /* end confdefs.h. */
  20605. #include <stdio.h>
  20606. int
  20607. main ()
  20608. {
  20609. return fseeko && fseeko (stdin, 0, 0);
  20610. ;
  20611. return 0;
  20612. }
  20613. _ACEOF
  20614. rm -f conftest.$ac_objext conftest$ac_exeext
  20615. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20616. (eval $ac_link) 2>conftest.er1
  20617. ac_status=$?
  20618. grep -v '^ *+' conftest.er1 >conftest.err
  20619. rm -f conftest.er1
  20620. cat conftest.err >&5
  20621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20622. (exit $ac_status); } &&
  20623. { ac_try='test -z "$ac_c_werror_flag"
  20624. || test ! -s conftest.err'
  20625. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20626. (eval $ac_try) 2>&5
  20627. ac_status=$?
  20628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20629. (exit $ac_status); }; } &&
  20630. { ac_try='test -s conftest$ac_exeext'
  20631. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20632. (eval $ac_try) 2>&5
  20633. ac_status=$?
  20634. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20635. (exit $ac_status); }; }; then
  20636. ac_cv_func_fseeko=yes
  20637. else
  20638. echo "$as_me: failed program was:" >&5
  20639. sed 's/^/| /' conftest.$ac_ext >&5
  20640. ac_cv_func_fseeko=no
  20641. fi
  20642. rm -f conftest.err conftest.$ac_objext \
  20643. conftest$ac_exeext conftest.$ac_ext
  20644. fi
  20645. echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
  20646. echo "${ECHO_T}$ac_cv_func_fseeko" >&6
  20647. if test $ac_cv_func_fseeko = yes; then
  20648. cat >>confdefs.h <<\_ACEOF
  20649. #define HAVE_FSEEKO 1
  20650. _ACEOF
  20651. fi
  20652. echo "$as_me:$LINENO: checking for u_int8_t" >&5
  20653. echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
  20654. if test "${ac_cv_type_u_int8_t+set}" = set; then
  20655. echo $ECHO_N "(cached) $ECHO_C" >&6
  20656. else
  20657. cat >conftest.$ac_ext <<_ACEOF
  20658. /* confdefs.h. */
  20659. _ACEOF
  20660. cat confdefs.h >>conftest.$ac_ext
  20661. cat >>conftest.$ac_ext <<_ACEOF
  20662. /* end confdefs.h. */
  20663. $ac_includes_default
  20664. int
  20665. main ()
  20666. {
  20667. if ((u_int8_t *) 0)
  20668. return 0;
  20669. if (sizeof (u_int8_t))
  20670. return 0;
  20671. ;
  20672. return 0;
  20673. }
  20674. _ACEOF
  20675. rm -f conftest.$ac_objext
  20676. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20677. (eval $ac_compile) 2>conftest.er1
  20678. ac_status=$?
  20679. grep -v '^ *+' conftest.er1 >conftest.err
  20680. rm -f conftest.er1
  20681. cat conftest.err >&5
  20682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20683. (exit $ac_status); } &&
  20684. { ac_try='test -z "$ac_c_werror_flag"
  20685. || test ! -s conftest.err'
  20686. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20687. (eval $ac_try) 2>&5
  20688. ac_status=$?
  20689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20690. (exit $ac_status); }; } &&
  20691. { ac_try='test -s conftest.$ac_objext'
  20692. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20693. (eval $ac_try) 2>&5
  20694. ac_status=$?
  20695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20696. (exit $ac_status); }; }; then
  20697. ac_cv_type_u_int8_t=yes
  20698. else
  20699. echo "$as_me: failed program was:" >&5
  20700. sed 's/^/| /' conftest.$ac_ext >&5
  20701. ac_cv_type_u_int8_t=no
  20702. fi
  20703. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20704. fi
  20705. echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
  20706. echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
  20707. if test $ac_cv_type_u_int8_t = yes; then
  20708. :
  20709. else
  20710. cat >>confdefs.h <<_ACEOF
  20711. #define u_int8_t uint8_t
  20712. _ACEOF
  20713. fi
  20714. echo "$as_me:$LINENO: checking for u_int16_t" >&5
  20715. echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
  20716. if test "${ac_cv_type_u_int16_t+set}" = set; then
  20717. echo $ECHO_N "(cached) $ECHO_C" >&6
  20718. else
  20719. cat >conftest.$ac_ext <<_ACEOF
  20720. /* confdefs.h. */
  20721. _ACEOF
  20722. cat confdefs.h >>conftest.$ac_ext
  20723. cat >>conftest.$ac_ext <<_ACEOF
  20724. /* end confdefs.h. */
  20725. $ac_includes_default
  20726. int
  20727. main ()
  20728. {
  20729. if ((u_int16_t *) 0)
  20730. return 0;
  20731. if (sizeof (u_int16_t))
  20732. return 0;
  20733. ;
  20734. return 0;
  20735. }
  20736. _ACEOF
  20737. rm -f conftest.$ac_objext
  20738. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20739. (eval $ac_compile) 2>conftest.er1
  20740. ac_status=$?
  20741. grep -v '^ *+' conftest.er1 >conftest.err
  20742. rm -f conftest.er1
  20743. cat conftest.err >&5
  20744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20745. (exit $ac_status); } &&
  20746. { ac_try='test -z "$ac_c_werror_flag"
  20747. || test ! -s conftest.err'
  20748. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20749. (eval $ac_try) 2>&5
  20750. ac_status=$?
  20751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20752. (exit $ac_status); }; } &&
  20753. { ac_try='test -s conftest.$ac_objext'
  20754. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20755. (eval $ac_try) 2>&5
  20756. ac_status=$?
  20757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20758. (exit $ac_status); }; }; then
  20759. ac_cv_type_u_int16_t=yes
  20760. else
  20761. echo "$as_me: failed program was:" >&5
  20762. sed 's/^/| /' conftest.$ac_ext >&5
  20763. ac_cv_type_u_int16_t=no
  20764. fi
  20765. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20766. fi
  20767. echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
  20768. echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
  20769. if test $ac_cv_type_u_int16_t = yes; then
  20770. :
  20771. else
  20772. cat >>confdefs.h <<_ACEOF
  20773. #define u_int16_t uint16_t
  20774. _ACEOF
  20775. fi
  20776. echo "$as_me:$LINENO: checking for u_int32_t" >&5
  20777. echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
  20778. if test "${ac_cv_type_u_int32_t+set}" = set; then
  20779. echo $ECHO_N "(cached) $ECHO_C" >&6
  20780. else
  20781. cat >conftest.$ac_ext <<_ACEOF
  20782. /* confdefs.h. */
  20783. _ACEOF
  20784. cat confdefs.h >>conftest.$ac_ext
  20785. cat >>conftest.$ac_ext <<_ACEOF
  20786. /* end confdefs.h. */
  20787. $ac_includes_default
  20788. int
  20789. main ()
  20790. {
  20791. if ((u_int32_t *) 0)
  20792. return 0;
  20793. if (sizeof (u_int32_t))
  20794. return 0;
  20795. ;
  20796. return 0;
  20797. }
  20798. _ACEOF
  20799. rm -f conftest.$ac_objext
  20800. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20801. (eval $ac_compile) 2>conftest.er1
  20802. ac_status=$?
  20803. grep -v '^ *+' conftest.er1 >conftest.err
  20804. rm -f conftest.er1
  20805. cat conftest.err >&5
  20806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20807. (exit $ac_status); } &&
  20808. { ac_try='test -z "$ac_c_werror_flag"
  20809. || test ! -s conftest.err'
  20810. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20811. (eval $ac_try) 2>&5
  20812. ac_status=$?
  20813. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20814. (exit $ac_status); }; } &&
  20815. { ac_try='test -s conftest.$ac_objext'
  20816. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20817. (eval $ac_try) 2>&5
  20818. ac_status=$?
  20819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20820. (exit $ac_status); }; }; then
  20821. ac_cv_type_u_int32_t=yes
  20822. else
  20823. echo "$as_me: failed program was:" >&5
  20824. sed 's/^/| /' conftest.$ac_ext >&5
  20825. ac_cv_type_u_int32_t=no
  20826. fi
  20827. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20828. fi
  20829. echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
  20830. echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
  20831. if test $ac_cv_type_u_int32_t = yes; then
  20832. :
  20833. else
  20834. cat >>confdefs.h <<_ACEOF
  20835. #define u_int32_t uint32_t
  20836. _ACEOF
  20837. fi
  20838. echo "$as_me:$LINENO: checking for u_int64_t" >&5
  20839. echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
  20840. if test "${ac_cv_type_u_int64_t+set}" = set; then
  20841. echo $ECHO_N "(cached) $ECHO_C" >&6
  20842. else
  20843. cat >conftest.$ac_ext <<_ACEOF
  20844. /* confdefs.h. */
  20845. _ACEOF
  20846. cat confdefs.h >>conftest.$ac_ext
  20847. cat >>conftest.$ac_ext <<_ACEOF
  20848. /* end confdefs.h. */
  20849. $ac_includes_default
  20850. int
  20851. main ()
  20852. {
  20853. if ((u_int64_t *) 0)
  20854. return 0;
  20855. if (sizeof (u_int64_t))
  20856. return 0;
  20857. ;
  20858. return 0;
  20859. }
  20860. _ACEOF
  20861. rm -f conftest.$ac_objext
  20862. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20863. (eval $ac_compile) 2>conftest.er1
  20864. ac_status=$?
  20865. grep -v '^ *+' conftest.er1 >conftest.err
  20866. rm -f conftest.er1
  20867. cat conftest.err >&5
  20868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20869. (exit $ac_status); } &&
  20870. { ac_try='test -z "$ac_c_werror_flag"
  20871. || test ! -s conftest.err'
  20872. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20873. (eval $ac_try) 2>&5
  20874. ac_status=$?
  20875. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20876. (exit $ac_status); }; } &&
  20877. { ac_try='test -s conftest.$ac_objext'
  20878. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20879. (eval $ac_try) 2>&5
  20880. ac_status=$?
  20881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20882. (exit $ac_status); }; }; then
  20883. ac_cv_type_u_int64_t=yes
  20884. else
  20885. echo "$as_me: failed program was:" >&5
  20886. sed 's/^/| /' conftest.$ac_ext >&5
  20887. ac_cv_type_u_int64_t=no
  20888. fi
  20889. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20890. fi
  20891. echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
  20892. echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
  20893. if test $ac_cv_type_u_int64_t = yes; then
  20894. :
  20895. else
  20896. cat >>confdefs.h <<_ACEOF
  20897. #define u_int64_t uint64_t
  20898. _ACEOF
  20899. fi
  20900. for ac_header in fcntl.h stddef.h sys/socket.h arpa/inet.h sys/time.h signal.h string.h strings.h sys/types.h sys/select.h netinet/in.h poll.h sys/poll.h unistd.h
  20901. do
  20902. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20903. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  20904. echo "$as_me:$LINENO: checking for $ac_header" >&5
  20905. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  20906. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  20907. echo $ECHO_N "(cached) $ECHO_C" >&6
  20908. fi
  20909. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  20910. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  20911. else
  20912. # Is the header compilable?
  20913. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  20914. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  20915. cat >conftest.$ac_ext <<_ACEOF
  20916. /* confdefs.h. */
  20917. _ACEOF
  20918. cat confdefs.h >>conftest.$ac_ext
  20919. cat >>conftest.$ac_ext <<_ACEOF
  20920. /* end confdefs.h. */
  20921. $ac_includes_default
  20922. #include <$ac_header>
  20923. _ACEOF
  20924. rm -f conftest.$ac_objext
  20925. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20926. (eval $ac_compile) 2>conftest.er1
  20927. ac_status=$?
  20928. grep -v '^ *+' conftest.er1 >conftest.err
  20929. rm -f conftest.er1
  20930. cat conftest.err >&5
  20931. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20932. (exit $ac_status); } &&
  20933. { ac_try='test -z "$ac_c_werror_flag"
  20934. || test ! -s conftest.err'
  20935. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20936. (eval $ac_try) 2>&5
  20937. ac_status=$?
  20938. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20939. (exit $ac_status); }; } &&
  20940. { ac_try='test -s conftest.$ac_objext'
  20941. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20942. (eval $ac_try) 2>&5
  20943. ac_status=$?
  20944. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20945. (exit $ac_status); }; }; then
  20946. ac_header_compiler=yes
  20947. else
  20948. echo "$as_me: failed program was:" >&5
  20949. sed 's/^/| /' conftest.$ac_ext >&5
  20950. ac_header_compiler=no
  20951. fi
  20952. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20953. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  20954. echo "${ECHO_T}$ac_header_compiler" >&6
  20955. # Is the header present?
  20956. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  20957. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  20958. cat >conftest.$ac_ext <<_ACEOF
  20959. /* confdefs.h. */
  20960. _ACEOF
  20961. cat confdefs.h >>conftest.$ac_ext
  20962. cat >>conftest.$ac_ext <<_ACEOF
  20963. /* end confdefs.h. */
  20964. #include <$ac_header>
  20965. _ACEOF
  20966. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  20967. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  20968. ac_status=$?
  20969. grep -v '^ *+' conftest.er1 >conftest.err
  20970. rm -f conftest.er1
  20971. cat conftest.err >&5
  20972. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20973. (exit $ac_status); } >/dev/null; then
  20974. if test -s conftest.err; then
  20975. ac_cpp_err=$ac_c_preproc_warn_flag
  20976. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  20977. else
  20978. ac_cpp_err=
  20979. fi
  20980. else
  20981. ac_cpp_err=yes
  20982. fi
  20983. if test -z "$ac_cpp_err"; then
  20984. ac_header_preproc=yes
  20985. else
  20986. echo "$as_me: failed program was:" >&5
  20987. sed 's/^/| /' conftest.$ac_ext >&5
  20988. ac_header_preproc=no
  20989. fi
  20990. rm -f conftest.err conftest.$ac_ext
  20991. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  20992. echo "${ECHO_T}$ac_header_preproc" >&6
  20993. # So? What about this header?
  20994. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  20995. yes:no: )
  20996. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  20997. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  20998. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  20999. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  21000. ac_header_preproc=yes
  21001. ;;
  21002. no:yes:* )
  21003. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  21004. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  21005. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  21006. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  21007. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  21008. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  21009. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  21010. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  21011. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  21012. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  21013. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  21014. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  21015. (
  21016. cat <<\_ASBOX
  21017. ## ------------------------------------------ ##
  21018. ## Report this to the AC_PACKAGE_NAME lists. ##
  21019. ## ------------------------------------------ ##
  21020. _ASBOX
  21021. ) |
  21022. sed "s/^/$as_me: WARNING: /" >&2
  21023. ;;
  21024. esac
  21025. echo "$as_me:$LINENO: checking for $ac_header" >&5
  21026. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  21027. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  21028. echo $ECHO_N "(cached) $ECHO_C" >&6
  21029. else
  21030. eval "$as_ac_Header=\$ac_header_preproc"
  21031. fi
  21032. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  21033. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  21034. fi
  21035. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  21036. cat >>confdefs.h <<_ACEOF
  21037. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  21038. _ACEOF
  21039. fi
  21040. done
  21041. echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  21042. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
  21043. if test "${ac_cv_lib_socket_socket+set}" = set; then
  21044. echo $ECHO_N "(cached) $ECHO_C" >&6
  21045. else
  21046. ac_check_lib_save_LIBS=$LIBS
  21047. LIBS="-lsocket $LIBS"
  21048. cat >conftest.$ac_ext <<_ACEOF
  21049. /* confdefs.h. */
  21050. _ACEOF
  21051. cat confdefs.h >>conftest.$ac_ext
  21052. cat >>conftest.$ac_ext <<_ACEOF
  21053. /* end confdefs.h. */
  21054. /* Override any gcc2 internal prototype to avoid an error. */
  21055. #ifdef __cplusplus
  21056. extern "C"
  21057. #endif
  21058. /* We use char because int might match the return type of a gcc2
  21059. builtin and then its argument prototype would still apply. */
  21060. char socket ();
  21061. int
  21062. main ()
  21063. {
  21064. socket ();
  21065. ;
  21066. return 0;
  21067. }
  21068. _ACEOF
  21069. rm -f conftest.$ac_objext conftest$ac_exeext
  21070. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21071. (eval $ac_link) 2>conftest.er1
  21072. ac_status=$?
  21073. grep -v '^ *+' conftest.er1 >conftest.err
  21074. rm -f conftest.er1
  21075. cat conftest.err >&5
  21076. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21077. (exit $ac_status); } &&
  21078. { ac_try='test -z "$ac_c_werror_flag"
  21079. || test ! -s conftest.err'
  21080. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21081. (eval $ac_try) 2>&5
  21082. ac_status=$?
  21083. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21084. (exit $ac_status); }; } &&
  21085. { ac_try='test -s conftest$ac_exeext'
  21086. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21087. (eval $ac_try) 2>&5
  21088. ac_status=$?
  21089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21090. (exit $ac_status); }; }; then
  21091. ac_cv_lib_socket_socket=yes
  21092. else
  21093. echo "$as_me: failed program was:" >&5
  21094. sed 's/^/| /' conftest.$ac_ext >&5
  21095. ac_cv_lib_socket_socket=no
  21096. fi
  21097. rm -f conftest.err conftest.$ac_objext \
  21098. conftest$ac_exeext conftest.$ac_ext
  21099. LIBS=$ac_check_lib_save_LIBS
  21100. fi
  21101. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  21102. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
  21103. if test $ac_cv_lib_socket_socket = yes; then
  21104. cat >>confdefs.h <<_ACEOF
  21105. #define HAVE_LIBSOCKET 1
  21106. _ACEOF
  21107. LIBS="-lsocket $LIBS"
  21108. fi
  21109. echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
  21110. echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
  21111. if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  21112. echo $ECHO_N "(cached) $ECHO_C" >&6
  21113. else
  21114. ac_check_lib_save_LIBS=$LIBS
  21115. LIBS="-lnsl $LIBS"
  21116. cat >conftest.$ac_ext <<_ACEOF
  21117. /* confdefs.h. */
  21118. _ACEOF
  21119. cat confdefs.h >>conftest.$ac_ext
  21120. cat >>conftest.$ac_ext <<_ACEOF
  21121. /* end confdefs.h. */
  21122. /* Override any gcc2 internal prototype to avoid an error. */
  21123. #ifdef __cplusplus
  21124. extern "C"
  21125. #endif
  21126. /* We use char because int might match the return type of a gcc2
  21127. builtin and then its argument prototype would still apply. */
  21128. char gethostbyname ();
  21129. int
  21130. main ()
  21131. {
  21132. gethostbyname ();
  21133. ;
  21134. return 0;
  21135. }
  21136. _ACEOF
  21137. rm -f conftest.$ac_objext conftest$ac_exeext
  21138. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21139. (eval $ac_link) 2>conftest.er1
  21140. ac_status=$?
  21141. grep -v '^ *+' conftest.er1 >conftest.err
  21142. rm -f conftest.er1
  21143. cat conftest.err >&5
  21144. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21145. (exit $ac_status); } &&
  21146. { ac_try='test -z "$ac_c_werror_flag"
  21147. || test ! -s conftest.err'
  21148. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21149. (eval $ac_try) 2>&5
  21150. ac_status=$?
  21151. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21152. (exit $ac_status); }; } &&
  21153. { ac_try='test -s conftest$ac_exeext'
  21154. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21155. (eval $ac_try) 2>&5
  21156. ac_status=$?
  21157. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21158. (exit $ac_status); }; }; then
  21159. ac_cv_lib_nsl_gethostbyname=yes
  21160. else
  21161. echo "$as_me: failed program was:" >&5
  21162. sed 's/^/| /' conftest.$ac_ext >&5
  21163. ac_cv_lib_nsl_gethostbyname=no
  21164. fi
  21165. rm -f conftest.err conftest.$ac_objext \
  21166. conftest$ac_exeext conftest.$ac_ext
  21167. LIBS=$ac_check_lib_save_LIBS
  21168. fi
  21169. echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
  21170. echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
  21171. if test $ac_cv_lib_nsl_gethostbyname = yes; then
  21172. cat >>confdefs.h <<_ACEOF
  21173. #define HAVE_LIBNSL 1
  21174. _ACEOF
  21175. LIBS="-lnsl $LIBS"
  21176. fi
  21177. echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
  21178. echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6
  21179. if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
  21180. echo $ECHO_N "(cached) $ECHO_C" >&6
  21181. else
  21182. ac_check_lib_save_LIBS=$LIBS
  21183. LIBS="-lrt $LIBS"
  21184. cat >conftest.$ac_ext <<_ACEOF
  21185. /* confdefs.h. */
  21186. _ACEOF
  21187. cat confdefs.h >>conftest.$ac_ext
  21188. cat >>conftest.$ac_ext <<_ACEOF
  21189. /* end confdefs.h. */
  21190. /* Override any gcc2 internal prototype to avoid an error. */
  21191. #ifdef __cplusplus
  21192. extern "C"
  21193. #endif
  21194. /* We use char because int might match the return type of a gcc2
  21195. builtin and then its argument prototype would still apply. */
  21196. char nanosleep ();
  21197. int
  21198. main ()
  21199. {
  21200. nanosleep ();
  21201. ;
  21202. return 0;
  21203. }
  21204. _ACEOF
  21205. rm -f conftest.$ac_objext conftest$ac_exeext
  21206. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21207. (eval $ac_link) 2>conftest.er1
  21208. ac_status=$?
  21209. grep -v '^ *+' conftest.er1 >conftest.err
  21210. rm -f conftest.er1
  21211. cat conftest.err >&5
  21212. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21213. (exit $ac_status); } &&
  21214. { ac_try='test -z "$ac_c_werror_flag"
  21215. || test ! -s conftest.err'
  21216. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21217. (eval $ac_try) 2>&5
  21218. ac_status=$?
  21219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21220. (exit $ac_status); }; } &&
  21221. { ac_try='test -s conftest$ac_exeext'
  21222. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21223. (eval $ac_try) 2>&5
  21224. ac_status=$?
  21225. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21226. (exit $ac_status); }; }; then
  21227. ac_cv_lib_rt_nanosleep=yes
  21228. else
  21229. echo "$as_me: failed program was:" >&5
  21230. sed 's/^/| /' conftest.$ac_ext >&5
  21231. ac_cv_lib_rt_nanosleep=no
  21232. fi
  21233. rm -f conftest.err conftest.$ac_objext \
  21234. conftest$ac_exeext conftest.$ac_ext
  21235. LIBS=$ac_check_lib_save_LIBS
  21236. fi
  21237. echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
  21238. echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6
  21239. if test $ac_cv_lib_rt_nanosleep = yes; then
  21240. cat >>confdefs.h <<_ACEOF
  21241. #define HAVE_LIBRT 1
  21242. _ACEOF
  21243. LIBS="-lrt $LIBS"
  21244. fi
  21245. for ac_header in stdlib.h
  21246. do
  21247. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  21248. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  21249. echo "$as_me:$LINENO: checking for $ac_header" >&5
  21250. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  21251. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  21252. echo $ECHO_N "(cached) $ECHO_C" >&6
  21253. fi
  21254. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  21255. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  21256. else
  21257. # Is the header compilable?
  21258. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  21259. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  21260. cat >conftest.$ac_ext <<_ACEOF
  21261. /* confdefs.h. */
  21262. _ACEOF
  21263. cat confdefs.h >>conftest.$ac_ext
  21264. cat >>conftest.$ac_ext <<_ACEOF
  21265. /* end confdefs.h. */
  21266. $ac_includes_default
  21267. #include <$ac_header>
  21268. _ACEOF
  21269. rm -f conftest.$ac_objext
  21270. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21271. (eval $ac_compile) 2>conftest.er1
  21272. ac_status=$?
  21273. grep -v '^ *+' conftest.er1 >conftest.err
  21274. rm -f conftest.er1
  21275. cat conftest.err >&5
  21276. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21277. (exit $ac_status); } &&
  21278. { ac_try='test -z "$ac_c_werror_flag"
  21279. || test ! -s conftest.err'
  21280. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21281. (eval $ac_try) 2>&5
  21282. ac_status=$?
  21283. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21284. (exit $ac_status); }; } &&
  21285. { ac_try='test -s conftest.$ac_objext'
  21286. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21287. (eval $ac_try) 2>&5
  21288. ac_status=$?
  21289. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21290. (exit $ac_status); }; }; then
  21291. ac_header_compiler=yes
  21292. else
  21293. echo "$as_me: failed program was:" >&5
  21294. sed 's/^/| /' conftest.$ac_ext >&5
  21295. ac_header_compiler=no
  21296. fi
  21297. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21298. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  21299. echo "${ECHO_T}$ac_header_compiler" >&6
  21300. # Is the header present?
  21301. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  21302. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  21303. cat >conftest.$ac_ext <<_ACEOF
  21304. /* confdefs.h. */
  21305. _ACEOF
  21306. cat confdefs.h >>conftest.$ac_ext
  21307. cat >>conftest.$ac_ext <<_ACEOF
  21308. /* end confdefs.h. */
  21309. #include <$ac_header>
  21310. _ACEOF
  21311. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  21312. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  21313. ac_status=$?
  21314. grep -v '^ *+' conftest.er1 >conftest.err
  21315. rm -f conftest.er1
  21316. cat conftest.err >&5
  21317. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21318. (exit $ac_status); } >/dev/null; then
  21319. if test -s conftest.err; then
  21320. ac_cpp_err=$ac_c_preproc_warn_flag
  21321. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  21322. else
  21323. ac_cpp_err=
  21324. fi
  21325. else
  21326. ac_cpp_err=yes
  21327. fi
  21328. if test -z "$ac_cpp_err"; then
  21329. ac_header_preproc=yes
  21330. else
  21331. echo "$as_me: failed program was:" >&5
  21332. sed 's/^/| /' conftest.$ac_ext >&5
  21333. ac_header_preproc=no
  21334. fi
  21335. rm -f conftest.err conftest.$ac_ext
  21336. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  21337. echo "${ECHO_T}$ac_header_preproc" >&6
  21338. # So? What about this header?
  21339. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  21340. yes:no: )
  21341. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  21342. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  21343. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  21344. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  21345. ac_header_preproc=yes
  21346. ;;
  21347. no:yes:* )
  21348. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  21349. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  21350. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  21351. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  21352. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  21353. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  21354. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  21355. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  21356. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  21357. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  21358. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  21359. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  21360. (
  21361. cat <<\_ASBOX
  21362. ## ------------------------------------------ ##
  21363. ## Report this to the AC_PACKAGE_NAME lists. ##
  21364. ## ------------------------------------------ ##
  21365. _ASBOX
  21366. ) |
  21367. sed "s/^/$as_me: WARNING: /" >&2
  21368. ;;
  21369. esac
  21370. echo "$as_me:$LINENO: checking for $ac_header" >&5
  21371. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  21372. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  21373. echo $ECHO_N "(cached) $ECHO_C" >&6
  21374. else
  21375. eval "$as_ac_Header=\$ac_header_preproc"
  21376. fi
  21377. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  21378. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  21379. fi
  21380. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  21381. cat >>confdefs.h <<_ACEOF
  21382. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  21383. _ACEOF
  21384. fi
  21385. done
  21386. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  21387. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  21388. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  21389. echo $ECHO_N "(cached) $ECHO_C" >&6
  21390. else
  21391. if test "$cross_compiling" = yes; then
  21392. ac_cv_func_malloc_0_nonnull=no
  21393. else
  21394. cat >conftest.$ac_ext <<_ACEOF
  21395. /* confdefs.h. */
  21396. _ACEOF
  21397. cat confdefs.h >>conftest.$ac_ext
  21398. cat >>conftest.$ac_ext <<_ACEOF
  21399. /* end confdefs.h. */
  21400. #if STDC_HEADERS || HAVE_STDLIB_H
  21401. # include <stdlib.h>
  21402. #else
  21403. char *malloc ();
  21404. #endif
  21405. int
  21406. main ()
  21407. {
  21408. exit (malloc (0) ? 0 : 1);
  21409. ;
  21410. return 0;
  21411. }
  21412. _ACEOF
  21413. rm -f conftest$ac_exeext
  21414. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21415. (eval $ac_link) 2>&5
  21416. ac_status=$?
  21417. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21418. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  21419. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21420. (eval $ac_try) 2>&5
  21421. ac_status=$?
  21422. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21423. (exit $ac_status); }; }; then
  21424. ac_cv_func_malloc_0_nonnull=yes
  21425. else
  21426. echo "$as_me: program exited with status $ac_status" >&5
  21427. echo "$as_me: failed program was:" >&5
  21428. sed 's/^/| /' conftest.$ac_ext >&5
  21429. ( exit $ac_status )
  21430. ac_cv_func_malloc_0_nonnull=no
  21431. fi
  21432. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  21433. fi
  21434. fi
  21435. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  21436. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  21437. if test $ac_cv_func_malloc_0_nonnull = yes; then
  21438. cat >>confdefs.h <<\_ACEOF
  21439. #define HAVE_MALLOC 1
  21440. _ACEOF
  21441. else
  21442. cat >>confdefs.h <<\_ACEOF
  21443. #define HAVE_MALLOC 0
  21444. _ACEOF
  21445. case $LIBOBJS in
  21446. "malloc.$ac_objext" | \
  21447. *" malloc.$ac_objext" | \
  21448. "malloc.$ac_objext "* | \
  21449. *" malloc.$ac_objext "* ) ;;
  21450. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  21451. esac
  21452. cat >>confdefs.h <<\_ACEOF
  21453. #define malloc rpl_malloc
  21454. _ACEOF
  21455. fi
  21456. echo "$as_me:$LINENO: checking for working memcmp" >&5
  21457. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
  21458. if test "${ac_cv_func_memcmp_working+set}" = set; then
  21459. echo $ECHO_N "(cached) $ECHO_C" >&6
  21460. else
  21461. if test "$cross_compiling" = yes; then
  21462. ac_cv_func_memcmp_working=no
  21463. else
  21464. cat >conftest.$ac_ext <<_ACEOF
  21465. /* confdefs.h. */
  21466. _ACEOF
  21467. cat confdefs.h >>conftest.$ac_ext
  21468. cat >>conftest.$ac_ext <<_ACEOF
  21469. /* end confdefs.h. */
  21470. $ac_includes_default
  21471. int
  21472. main ()
  21473. {
  21474. /* Some versions of memcmp are not 8-bit clean. */
  21475. char c0 = 0x40, c1 = 0x80, c2 = 0x81;
  21476. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  21477. exit (1);
  21478. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  21479. or more and with at least one buffer not starting on a 4-byte boundary.
  21480. William Lewis provided this test program. */
  21481. {
  21482. char foo[21];
  21483. char bar[21];
  21484. int i;
  21485. for (i = 0; i < 4; i++)
  21486. {
  21487. char *a = foo + i;
  21488. char *b = bar + i;
  21489. strcpy (a, "--------01111111");
  21490. strcpy (b, "--------10000000");
  21491. if (memcmp (a, b, 16) >= 0)
  21492. exit (1);
  21493. }
  21494. exit (0);
  21495. }
  21496. ;
  21497. return 0;
  21498. }
  21499. _ACEOF
  21500. rm -f conftest$ac_exeext
  21501. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21502. (eval $ac_link) 2>&5
  21503. ac_status=$?
  21504. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21505. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  21506. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21507. (eval $ac_try) 2>&5
  21508. ac_status=$?
  21509. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21510. (exit $ac_status); }; }; then
  21511. ac_cv_func_memcmp_working=yes
  21512. else
  21513. echo "$as_me: program exited with status $ac_status" >&5
  21514. echo "$as_me: failed program was:" >&5
  21515. sed 's/^/| /' conftest.$ac_ext >&5
  21516. ( exit $ac_status )
  21517. ac_cv_func_memcmp_working=no
  21518. fi
  21519. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  21520. fi
  21521. fi
  21522. echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  21523. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
  21524. test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
  21525. "memcmp.$ac_objext" | \
  21526. *" memcmp.$ac_objext" | \
  21527. "memcmp.$ac_objext "* | \
  21528. *" memcmp.$ac_objext "* ) ;;
  21529. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
  21530. esac
  21531. echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  21532. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
  21533. if test "${ac_cv_type_signal+set}" = set; then
  21534. echo $ECHO_N "(cached) $ECHO_C" >&6
  21535. else
  21536. cat >conftest.$ac_ext <<_ACEOF
  21537. /* confdefs.h. */
  21538. _ACEOF
  21539. cat confdefs.h >>conftest.$ac_ext
  21540. cat >>conftest.$ac_ext <<_ACEOF
  21541. /* end confdefs.h. */
  21542. #include <sys/types.h>
  21543. #include <signal.h>
  21544. #ifdef signal
  21545. # undef signal
  21546. #endif
  21547. #ifdef __cplusplus
  21548. extern "C" void (*signal (int, void (*)(int)))(int);
  21549. #else
  21550. void (*signal ()) ();
  21551. #endif
  21552. int
  21553. main ()
  21554. {
  21555. int i;
  21556. ;
  21557. return 0;
  21558. }
  21559. _ACEOF
  21560. rm -f conftest.$ac_objext
  21561. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21562. (eval $ac_compile) 2>conftest.er1
  21563. ac_status=$?
  21564. grep -v '^ *+' conftest.er1 >conftest.err
  21565. rm -f conftest.er1
  21566. cat conftest.err >&5
  21567. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21568. (exit $ac_status); } &&
  21569. { ac_try='test -z "$ac_c_werror_flag"
  21570. || test ! -s conftest.err'
  21571. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21572. (eval $ac_try) 2>&5
  21573. ac_status=$?
  21574. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21575. (exit $ac_status); }; } &&
  21576. { ac_try='test -s conftest.$ac_objext'
  21577. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21578. (eval $ac_try) 2>&5
  21579. ac_status=$?
  21580. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21581. (exit $ac_status); }; }; then
  21582. ac_cv_type_signal=void
  21583. else
  21584. echo "$as_me: failed program was:" >&5
  21585. sed 's/^/| /' conftest.$ac_ext >&5
  21586. ac_cv_type_signal=int
  21587. fi
  21588. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21589. fi
  21590. echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  21591. echo "${ECHO_T}$ac_cv_type_signal" >&6
  21592. cat >>confdefs.h <<_ACEOF
  21593. #define RETSIGTYPE $ac_cv_type_signal
  21594. _ACEOF
  21595. for ac_func in vprintf
  21596. do
  21597. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21598. echo "$as_me:$LINENO: checking for $ac_func" >&5
  21599. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  21600. if eval "test \"\${$as_ac_var+set}\" = set"; then
  21601. echo $ECHO_N "(cached) $ECHO_C" >&6
  21602. else
  21603. cat >conftest.$ac_ext <<_ACEOF
  21604. /* confdefs.h. */
  21605. _ACEOF
  21606. cat confdefs.h >>conftest.$ac_ext
  21607. cat >>conftest.$ac_ext <<_ACEOF
  21608. /* end confdefs.h. */
  21609. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  21610. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21611. #define $ac_func innocuous_$ac_func
  21612. /* System header to define __stub macros and hopefully few prototypes,
  21613. which can conflict with char $ac_func (); below.
  21614. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21615. <limits.h> exists even on freestanding compilers. */
  21616. #ifdef __STDC__
  21617. # include <limits.h>
  21618. #else
  21619. # include <assert.h>
  21620. #endif
  21621. #undef $ac_func
  21622. /* Override any gcc2 internal prototype to avoid an error. */
  21623. #ifdef __cplusplus
  21624. extern "C"
  21625. {
  21626. #endif
  21627. /* We use char because int might match the return type of a gcc2
  21628. builtin and then its argument prototype would still apply. */
  21629. char $ac_func ();
  21630. /* The GNU C library defines this for functions which it implements
  21631. to always fail with ENOSYS. Some functions are actually named
  21632. something starting with __ and the normal name is an alias. */
  21633. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  21634. choke me
  21635. #else
  21636. char (*f) () = $ac_func;
  21637. #endif
  21638. #ifdef __cplusplus
  21639. }
  21640. #endif
  21641. int
  21642. main ()
  21643. {
  21644. return f != $ac_func;
  21645. ;
  21646. return 0;
  21647. }
  21648. _ACEOF
  21649. rm -f conftest.$ac_objext conftest$ac_exeext
  21650. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21651. (eval $ac_link) 2>conftest.er1
  21652. ac_status=$?
  21653. grep -v '^ *+' conftest.er1 >conftest.err
  21654. rm -f conftest.er1
  21655. cat conftest.err >&5
  21656. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21657. (exit $ac_status); } &&
  21658. { ac_try='test -z "$ac_c_werror_flag"
  21659. || test ! -s conftest.err'
  21660. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21661. (eval $ac_try) 2>&5
  21662. ac_status=$?
  21663. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21664. (exit $ac_status); }; } &&
  21665. { ac_try='test -s conftest$ac_exeext'
  21666. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21667. (eval $ac_try) 2>&5
  21668. ac_status=$?
  21669. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21670. (exit $ac_status); }; }; then
  21671. eval "$as_ac_var=yes"
  21672. else
  21673. echo "$as_me: failed program was:" >&5
  21674. sed 's/^/| /' conftest.$ac_ext >&5
  21675. eval "$as_ac_var=no"
  21676. fi
  21677. rm -f conftest.err conftest.$ac_objext \
  21678. conftest$ac_exeext conftest.$ac_ext
  21679. fi
  21680. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  21681. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  21682. if test `eval echo '${'$as_ac_var'}'` = yes; then
  21683. cat >>confdefs.h <<_ACEOF
  21684. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21685. _ACEOF
  21686. echo "$as_me:$LINENO: checking for _doprnt" >&5
  21687. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
  21688. if test "${ac_cv_func__doprnt+set}" = set; then
  21689. echo $ECHO_N "(cached) $ECHO_C" >&6
  21690. else
  21691. cat >conftest.$ac_ext <<_ACEOF
  21692. /* confdefs.h. */
  21693. _ACEOF
  21694. cat confdefs.h >>conftest.$ac_ext
  21695. cat >>conftest.$ac_ext <<_ACEOF
  21696. /* end confdefs.h. */
  21697. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  21698. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21699. #define _doprnt innocuous__doprnt
  21700. /* System header to define __stub macros and hopefully few prototypes,
  21701. which can conflict with char _doprnt (); below.
  21702. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21703. <limits.h> exists even on freestanding compilers. */
  21704. #ifdef __STDC__
  21705. # include <limits.h>
  21706. #else
  21707. # include <assert.h>
  21708. #endif
  21709. #undef _doprnt
  21710. /* Override any gcc2 internal prototype to avoid an error. */
  21711. #ifdef __cplusplus
  21712. extern "C"
  21713. {
  21714. #endif
  21715. /* We use char because int might match the return type of a gcc2
  21716. builtin and then its argument prototype would still apply. */
  21717. char _doprnt ();
  21718. /* The GNU C library defines this for functions which it implements
  21719. to always fail with ENOSYS. Some functions are actually named
  21720. something starting with __ and the normal name is an alias. */
  21721. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  21722. choke me
  21723. #else
  21724. char (*f) () = _doprnt;
  21725. #endif
  21726. #ifdef __cplusplus
  21727. }
  21728. #endif
  21729. int
  21730. main ()
  21731. {
  21732. return f != _doprnt;
  21733. ;
  21734. return 0;
  21735. }
  21736. _ACEOF
  21737. rm -f conftest.$ac_objext conftest$ac_exeext
  21738. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21739. (eval $ac_link) 2>conftest.er1
  21740. ac_status=$?
  21741. grep -v '^ *+' conftest.er1 >conftest.err
  21742. rm -f conftest.er1
  21743. cat conftest.err >&5
  21744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21745. (exit $ac_status); } &&
  21746. { ac_try='test -z "$ac_c_werror_flag"
  21747. || test ! -s conftest.err'
  21748. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21749. (eval $ac_try) 2>&5
  21750. ac_status=$?
  21751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21752. (exit $ac_status); }; } &&
  21753. { ac_try='test -s conftest$ac_exeext'
  21754. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21755. (eval $ac_try) 2>&5
  21756. ac_status=$?
  21757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21758. (exit $ac_status); }; }; then
  21759. ac_cv_func__doprnt=yes
  21760. else
  21761. echo "$as_me: failed program was:" >&5
  21762. sed 's/^/| /' conftest.$ac_ext >&5
  21763. ac_cv_func__doprnt=no
  21764. fi
  21765. rm -f conftest.err conftest.$ac_objext \
  21766. conftest$ac_exeext conftest.$ac_ext
  21767. fi
  21768. echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  21769. echo "${ECHO_T}$ac_cv_func__doprnt" >&6
  21770. if test $ac_cv_func__doprnt = yes; then
  21771. cat >>confdefs.h <<\_ACEOF
  21772. #define HAVE_DOPRNT 1
  21773. _ACEOF
  21774. fi
  21775. fi
  21776. done
  21777. for ac_func in gettimeofday ctime memset regcomp strdup strerror strtol strncpy strtoull poll ntohll mmap
  21778. do
  21779. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21780. echo "$as_me:$LINENO: checking for $ac_func" >&5
  21781. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  21782. if eval "test \"\${$as_ac_var+set}\" = set"; then
  21783. echo $ECHO_N "(cached) $ECHO_C" >&6
  21784. else
  21785. cat >conftest.$ac_ext <<_ACEOF
  21786. /* confdefs.h. */
  21787. _ACEOF
  21788. cat confdefs.h >>conftest.$ac_ext
  21789. cat >>conftest.$ac_ext <<_ACEOF
  21790. /* end confdefs.h. */
  21791. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  21792. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21793. #define $ac_func innocuous_$ac_func
  21794. /* System header to define __stub macros and hopefully few prototypes,
  21795. which can conflict with char $ac_func (); below.
  21796. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21797. <limits.h> exists even on freestanding compilers. */
  21798. #ifdef __STDC__
  21799. # include <limits.h>
  21800. #else
  21801. # include <assert.h>
  21802. #endif
  21803. #undef $ac_func
  21804. /* Override any gcc2 internal prototype to avoid an error. */
  21805. #ifdef __cplusplus
  21806. extern "C"
  21807. {
  21808. #endif
  21809. /* We use char because int might match the return type of a gcc2
  21810. builtin and then its argument prototype would still apply. */
  21811. char $ac_func ();
  21812. /* The GNU C library defines this for functions which it implements
  21813. to always fail with ENOSYS. Some functions are actually named
  21814. something starting with __ and the normal name is an alias. */
  21815. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  21816. choke me
  21817. #else
  21818. char (*f) () = $ac_func;
  21819. #endif
  21820. #ifdef __cplusplus
  21821. }
  21822. #endif
  21823. int
  21824. main ()
  21825. {
  21826. return f != $ac_func;
  21827. ;
  21828. return 0;
  21829. }
  21830. _ACEOF
  21831. rm -f conftest.$ac_objext conftest$ac_exeext
  21832. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21833. (eval $ac_link) 2>conftest.er1
  21834. ac_status=$?
  21835. grep -v '^ *+' conftest.er1 >conftest.err
  21836. rm -f conftest.er1
  21837. cat conftest.err >&5
  21838. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21839. (exit $ac_status); } &&
  21840. { ac_try='test -z "$ac_c_werror_flag"
  21841. || test ! -s conftest.err'
  21842. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21843. (eval $ac_try) 2>&5
  21844. ac_status=$?
  21845. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21846. (exit $ac_status); }; } &&
  21847. { ac_try='test -s conftest$ac_exeext'
  21848. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21849. (eval $ac_try) 2>&5
  21850. ac_status=$?
  21851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21852. (exit $ac_status); }; }; then
  21853. eval "$as_ac_var=yes"
  21854. else
  21855. echo "$as_me: failed program was:" >&5
  21856. sed 's/^/| /' conftest.$ac_ext >&5
  21857. eval "$as_ac_var=no"
  21858. fi
  21859. rm -f conftest.err conftest.$ac_objext \
  21860. conftest$ac_exeext conftest.$ac_ext
  21861. fi
  21862. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  21863. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  21864. if test `eval echo '${'$as_ac_var'}'` = yes; then
  21865. cat >>confdefs.h <<_ACEOF
  21866. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21867. _ACEOF
  21868. fi
  21869. done
  21870. for ac_func in strlcpy
  21871. do
  21872. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21873. echo "$as_me:$LINENO: checking for $ac_func" >&5
  21874. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  21875. if eval "test \"\${$as_ac_var+set}\" = set"; then
  21876. echo $ECHO_N "(cached) $ECHO_C" >&6
  21877. else
  21878. cat >conftest.$ac_ext <<_ACEOF
  21879. /* confdefs.h. */
  21880. _ACEOF
  21881. cat confdefs.h >>conftest.$ac_ext
  21882. cat >>conftest.$ac_ext <<_ACEOF
  21883. /* end confdefs.h. */
  21884. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  21885. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21886. #define $ac_func innocuous_$ac_func
  21887. /* System header to define __stub macros and hopefully few prototypes,
  21888. which can conflict with char $ac_func (); below.
  21889. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21890. <limits.h> exists even on freestanding compilers. */
  21891. #ifdef __STDC__
  21892. # include <limits.h>
  21893. #else
  21894. # include <assert.h>
  21895. #endif
  21896. #undef $ac_func
  21897. /* Override any gcc2 internal prototype to avoid an error. */
  21898. #ifdef __cplusplus
  21899. extern "C"
  21900. {
  21901. #endif
  21902. /* We use char because int might match the return type of a gcc2
  21903. builtin and then its argument prototype would still apply. */
  21904. char $ac_func ();
  21905. /* The GNU C library defines this for functions which it implements
  21906. to always fail with ENOSYS. Some functions are actually named
  21907. something starting with __ and the normal name is an alias. */
  21908. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  21909. choke me
  21910. #else
  21911. char (*f) () = $ac_func;
  21912. #endif
  21913. #ifdef __cplusplus
  21914. }
  21915. #endif
  21916. int
  21917. main ()
  21918. {
  21919. return f != $ac_func;
  21920. ;
  21921. return 0;
  21922. }
  21923. _ACEOF
  21924. rm -f conftest.$ac_objext conftest$ac_exeext
  21925. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21926. (eval $ac_link) 2>conftest.er1
  21927. ac_status=$?
  21928. grep -v '^ *+' conftest.er1 >conftest.err
  21929. rm -f conftest.er1
  21930. cat conftest.err >&5
  21931. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21932. (exit $ac_status); } &&
  21933. { ac_try='test -z "$ac_c_werror_flag"
  21934. || test ! -s conftest.err'
  21935. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21936. (eval $ac_try) 2>&5
  21937. ac_status=$?
  21938. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21939. (exit $ac_status); }; } &&
  21940. { ac_try='test -s conftest$ac_exeext'
  21941. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21942. (eval $ac_try) 2>&5
  21943. ac_status=$?
  21944. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21945. (exit $ac_status); }; }; then
  21946. eval "$as_ac_var=yes"
  21947. else
  21948. echo "$as_me: failed program was:" >&5
  21949. sed 's/^/| /' conftest.$ac_ext >&5
  21950. eval "$as_ac_var=no"
  21951. fi
  21952. rm -f conftest.err conftest.$ac_objext \
  21953. conftest$ac_exeext conftest.$ac_ext
  21954. fi
  21955. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  21956. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  21957. if test `eval echo '${'$as_ac_var'}'` = yes; then
  21958. cat >>confdefs.h <<_ACEOF
  21959. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21960. _ACEOF
  21961. have_strlcpy=true
  21962. else
  21963. have_strlcpy=false
  21964. fi
  21965. done
  21966. if test x$have_strlcpy = xtrue; then
  21967. SYSTEM_STRLCPY_TRUE=
  21968. SYSTEM_STRLCPY_FALSE='#'
  21969. else
  21970. SYSTEM_STRLCPY_TRUE='#'
  21971. SYSTEM_STRLCPY_FALSE=
  21972. fi
  21973. echo "$as_me:$LINENO: checking for struct timeval.tv_sec" >&5
  21974. echo $ECHO_N "checking for struct timeval.tv_sec... $ECHO_C" >&6
  21975. if test "${ac_cv_member_struct_timeval_tv_sec+set}" = set; then
  21976. echo $ECHO_N "(cached) $ECHO_C" >&6
  21977. else
  21978. cat >conftest.$ac_ext <<_ACEOF
  21979. /* confdefs.h. */
  21980. _ACEOF
  21981. cat confdefs.h >>conftest.$ac_ext
  21982. cat >>conftest.$ac_ext <<_ACEOF
  21983. /* end confdefs.h. */
  21984. $ac_includes_default
  21985. int
  21986. main ()
  21987. {
  21988. static struct timeval ac_aggr;
  21989. if (ac_aggr.tv_sec)
  21990. return 0;
  21991. ;
  21992. return 0;
  21993. }
  21994. _ACEOF
  21995. rm -f conftest.$ac_objext
  21996. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21997. (eval $ac_compile) 2>conftest.er1
  21998. ac_status=$?
  21999. grep -v '^ *+' conftest.er1 >conftest.err
  22000. rm -f conftest.er1
  22001. cat conftest.err >&5
  22002. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22003. (exit $ac_status); } &&
  22004. { ac_try='test -z "$ac_c_werror_flag"
  22005. || test ! -s conftest.err'
  22006. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22007. (eval $ac_try) 2>&5
  22008. ac_status=$?
  22009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22010. (exit $ac_status); }; } &&
  22011. { ac_try='test -s conftest.$ac_objext'
  22012. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22013. (eval $ac_try) 2>&5
  22014. ac_status=$?
  22015. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22016. (exit $ac_status); }; }; then
  22017. ac_cv_member_struct_timeval_tv_sec=yes
  22018. else
  22019. echo "$as_me: failed program was:" >&5
  22020. sed 's/^/| /' conftest.$ac_ext >&5
  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. $ac_includes_default
  22028. int
  22029. main ()
  22030. {
  22031. static struct timeval ac_aggr;
  22032. if (sizeof ac_aggr.tv_sec)
  22033. return 0;
  22034. ;
  22035. return 0;
  22036. }
  22037. _ACEOF
  22038. rm -f conftest.$ac_objext
  22039. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22040. (eval $ac_compile) 2>conftest.er1
  22041. ac_status=$?
  22042. grep -v '^ *+' conftest.er1 >conftest.err
  22043. rm -f conftest.er1
  22044. cat conftest.err >&5
  22045. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22046. (exit $ac_status); } &&
  22047. { ac_try='test -z "$ac_c_werror_flag"
  22048. || test ! -s conftest.err'
  22049. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22050. (eval $ac_try) 2>&5
  22051. ac_status=$?
  22052. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22053. (exit $ac_status); }; } &&
  22054. { ac_try='test -s conftest.$ac_objext'
  22055. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22056. (eval $ac_try) 2>&5
  22057. ac_status=$?
  22058. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22059. (exit $ac_status); }; }; then
  22060. ac_cv_member_struct_timeval_tv_sec=yes
  22061. else
  22062. echo "$as_me: failed program was:" >&5
  22063. sed 's/^/| /' conftest.$ac_ext >&5
  22064. ac_cv_member_struct_timeval_tv_sec=no
  22065. fi
  22066. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22067. fi
  22068. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22069. fi
  22070. echo "$as_me:$LINENO: result: $ac_cv_member_struct_timeval_tv_sec" >&5
  22071. echo "${ECHO_T}$ac_cv_member_struct_timeval_tv_sec" >&6
  22072. if test $ac_cv_member_struct_timeval_tv_sec = yes; then
  22073. cat >>confdefs.h <<_ACEOF
  22074. #define HAVE_STRUCT_TIMEVAL_TV_SEC 1
  22075. _ACEOF
  22076. fi
  22077. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  22078. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  22079. if test "${ac_cv_c_bigendian+set}" = set; then
  22080. echo $ECHO_N "(cached) $ECHO_C" >&6
  22081. else
  22082. # See if sys/param.h defines the BYTE_ORDER macro.
  22083. cat >conftest.$ac_ext <<_ACEOF
  22084. /* confdefs.h. */
  22085. _ACEOF
  22086. cat confdefs.h >>conftest.$ac_ext
  22087. cat >>conftest.$ac_ext <<_ACEOF
  22088. /* end confdefs.h. */
  22089. #include <sys/types.h>
  22090. #include <sys/param.h>
  22091. int
  22092. main ()
  22093. {
  22094. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  22095. bogus endian macros
  22096. #endif
  22097. ;
  22098. return 0;
  22099. }
  22100. _ACEOF
  22101. rm -f conftest.$ac_objext
  22102. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22103. (eval $ac_compile) 2>conftest.er1
  22104. ac_status=$?
  22105. grep -v '^ *+' conftest.er1 >conftest.err
  22106. rm -f conftest.er1
  22107. cat conftest.err >&5
  22108. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22109. (exit $ac_status); } &&
  22110. { ac_try='test -z "$ac_c_werror_flag"
  22111. || test ! -s conftest.err'
  22112. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22113. (eval $ac_try) 2>&5
  22114. ac_status=$?
  22115. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22116. (exit $ac_status); }; } &&
  22117. { ac_try='test -s conftest.$ac_objext'
  22118. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22119. (eval $ac_try) 2>&5
  22120. ac_status=$?
  22121. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22122. (exit $ac_status); }; }; then
  22123. # It does; now see whether it defined to BIG_ENDIAN or not.
  22124. cat >conftest.$ac_ext <<_ACEOF
  22125. /* confdefs.h. */
  22126. _ACEOF
  22127. cat confdefs.h >>conftest.$ac_ext
  22128. cat >>conftest.$ac_ext <<_ACEOF
  22129. /* end confdefs.h. */
  22130. #include <sys/types.h>
  22131. #include <sys/param.h>
  22132. int
  22133. main ()
  22134. {
  22135. #if BYTE_ORDER != BIG_ENDIAN
  22136. not big endian
  22137. #endif
  22138. ;
  22139. return 0;
  22140. }
  22141. _ACEOF
  22142. rm -f conftest.$ac_objext
  22143. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22144. (eval $ac_compile) 2>conftest.er1
  22145. ac_status=$?
  22146. grep -v '^ *+' conftest.er1 >conftest.err
  22147. rm -f conftest.er1
  22148. cat conftest.err >&5
  22149. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22150. (exit $ac_status); } &&
  22151. { ac_try='test -z "$ac_c_werror_flag"
  22152. || test ! -s conftest.err'
  22153. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22154. (eval $ac_try) 2>&5
  22155. ac_status=$?
  22156. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22157. (exit $ac_status); }; } &&
  22158. { ac_try='test -s conftest.$ac_objext'
  22159. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22160. (eval $ac_try) 2>&5
  22161. ac_status=$?
  22162. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22163. (exit $ac_status); }; }; then
  22164. ac_cv_c_bigendian=yes
  22165. else
  22166. echo "$as_me: failed program was:" >&5
  22167. sed 's/^/| /' conftest.$ac_ext >&5
  22168. ac_cv_c_bigendian=no
  22169. fi
  22170. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22171. else
  22172. echo "$as_me: failed program was:" >&5
  22173. sed 's/^/| /' conftest.$ac_ext >&5
  22174. # It does not; compile a test program.
  22175. if test "$cross_compiling" = yes; then
  22176. # try to guess the endianness by grepping values into an object file
  22177. ac_cv_c_bigendian=unknown
  22178. cat >conftest.$ac_ext <<_ACEOF
  22179. /* confdefs.h. */
  22180. _ACEOF
  22181. cat confdefs.h >>conftest.$ac_ext
  22182. cat >>conftest.$ac_ext <<_ACEOF
  22183. /* end confdefs.h. */
  22184. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  22185. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  22186. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  22187. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  22188. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  22189. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  22190. int
  22191. main ()
  22192. {
  22193. _ascii (); _ebcdic ();
  22194. ;
  22195. return 0;
  22196. }
  22197. _ACEOF
  22198. rm -f conftest.$ac_objext
  22199. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22200. (eval $ac_compile) 2>conftest.er1
  22201. ac_status=$?
  22202. grep -v '^ *+' conftest.er1 >conftest.err
  22203. rm -f conftest.er1
  22204. cat conftest.err >&5
  22205. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22206. (exit $ac_status); } &&
  22207. { ac_try='test -z "$ac_c_werror_flag"
  22208. || test ! -s conftest.err'
  22209. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22210. (eval $ac_try) 2>&5
  22211. ac_status=$?
  22212. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22213. (exit $ac_status); }; } &&
  22214. { ac_try='test -s conftest.$ac_objext'
  22215. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22216. (eval $ac_try) 2>&5
  22217. ac_status=$?
  22218. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22219. (exit $ac_status); }; }; then
  22220. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  22221. ac_cv_c_bigendian=yes
  22222. fi
  22223. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  22224. if test "$ac_cv_c_bigendian" = unknown; then
  22225. ac_cv_c_bigendian=no
  22226. else
  22227. # finding both strings is unlikely to happen, but who knows?
  22228. ac_cv_c_bigendian=unknown
  22229. fi
  22230. fi
  22231. else
  22232. echo "$as_me: failed program was:" >&5
  22233. sed 's/^/| /' conftest.$ac_ext >&5
  22234. fi
  22235. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22236. else
  22237. cat >conftest.$ac_ext <<_ACEOF
  22238. /* confdefs.h. */
  22239. _ACEOF
  22240. cat confdefs.h >>conftest.$ac_ext
  22241. cat >>conftest.$ac_ext <<_ACEOF
  22242. /* end confdefs.h. */
  22243. int
  22244. main ()
  22245. {
  22246. /* Are we little or big endian? From Harbison&Steele. */
  22247. union
  22248. {
  22249. long l;
  22250. char c[sizeof (long)];
  22251. } u;
  22252. u.l = 1;
  22253. exit (u.c[sizeof (long) - 1] == 1);
  22254. }
  22255. _ACEOF
  22256. rm -f conftest$ac_exeext
  22257. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22258. (eval $ac_link) 2>&5
  22259. ac_status=$?
  22260. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22261. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22262. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22263. (eval $ac_try) 2>&5
  22264. ac_status=$?
  22265. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22266. (exit $ac_status); }; }; then
  22267. ac_cv_c_bigendian=no
  22268. else
  22269. echo "$as_me: program exited with status $ac_status" >&5
  22270. echo "$as_me: failed program was:" >&5
  22271. sed 's/^/| /' conftest.$ac_ext >&5
  22272. ( exit $ac_status )
  22273. ac_cv_c_bigendian=yes
  22274. fi
  22275. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22276. fi
  22277. fi
  22278. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22279. fi
  22280. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  22281. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  22282. case $ac_cv_c_bigendian in
  22283. yes)
  22284. cat >>confdefs.h <<\_ACEOF
  22285. #define WORDS_BIGENDIAN 1
  22286. _ACEOF
  22287. ;;
  22288. no)
  22289. ;;
  22290. *)
  22291. { { echo "$as_me:$LINENO: error: unknown endianness
  22292. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  22293. echo "$as_me: error: unknown endianness
  22294. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  22295. { (exit 1); exit 1; }; } ;;
  22296. esac
  22297. doctools=no
  22298. if test -n "$FIG2DEV" -a -n "$LYX" -a -n "$DVIPS" -a -n "$TEXI2DVI" \
  22299. -a -n "$LATEX2HTML" -a -n "$DVIPDFM" ; then
  22300. doctools=yes
  22301. fi
  22302. if test $doctools = yes; then
  22303. HAVE_DOCTOOLS_TRUE=
  22304. HAVE_DOCTOOLS_FALSE='#'
  22305. else
  22306. HAVE_DOCTOOLS_TRUE='#'
  22307. HAVE_DOCTOOLS_FALSE=
  22308. fi
  22309. debug=no
  22310. # Check whether --enable-debug or --disable-debug was given.
  22311. if test "${enable_debug+set}" = set; then
  22312. enableval="$enable_debug"
  22313. if test x$enableval = xyes; then
  22314. debug=yes
  22315. CFLAGS="-ggdb -Wall -pedantic"
  22316. cat >>confdefs.h <<\_ACEOF
  22317. #define DEBUG
  22318. _ACEOF
  22319. fi
  22320. fi;
  22321. # Check whether --enable-efence or --disable-efence was given.
  22322. if test "${enable_efence+set}" = set; then
  22323. enableval="$enable_efence"
  22324. if test x$enableval = xyes; then
  22325. CFLAGS="$CFLAGS -lefence"
  22326. cat >>confdefs.h <<\_ACEOF
  22327. #define EFENCE
  22328. _ACEOF
  22329. fi
  22330. fi;
  22331. # Check whether --enable-gprof or --disable-gprof was given.
  22332. if test "${enable_gprof+set}" = set; then
  22333. enableval="$enable_gprof"
  22334. if test x$enableval = xyes; then
  22335. if test $debug = yes; then
  22336. CFLAGS="$CFLAGS -pg"
  22337. else
  22338. # GPROF requires gdb
  22339. CFLAGS="$CFLAGS -ggdb -pg -fprofile-arcs"
  22340. fi
  22341. cat >>confdefs.h <<\_ACEOF
  22342. #define GPROF
  22343. _ACEOF
  22344. fi
  22345. fi;
  22346. # Check whether --enable-64bits or --disable-64bits was given.
  22347. if test "${enable_64bits+set}" = set; then
  22348. enableval="$enable_64bits"
  22349. if test x$enableval = xyes; then
  22350. cat >>confdefs.h <<\_ACEOF
  22351. #define ENABLE_64BITS
  22352. _ACEOF
  22353. { echo "$as_me:$LINENO: Using u_int64_t for packet counters" >&5
  22354. echo "$as_me: Using u_int64_t for packet counters" >&6;}
  22355. else
  22356. { echo "$as_me:$LINENO: Using u_int32_t for packet counters" >&5
  22357. echo "$as_me: Using u_int32_t for packet counters" >&6;}
  22358. fi
  22359. fi;
  22360. dynamic_link=no
  22361. # Check whether --enable-dynamic-link or --disable-dynamic-link was given.
  22362. if test "${enable_dynamic_link+set}" = set; then
  22363. enableval="$enable_dynamic_link"
  22364. if test x$enableval = xyes; then
  22365. cat >>confdefs.h <<\_ACEOF
  22366. #define ENABLE_DYNAMIC_LINK
  22367. _ACEOF
  22368. dynamic_link=yes
  22369. fi
  22370. fi;
  22371. echo "$as_me:$LINENO: checking for inet_aton" >&5
  22372. echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
  22373. if test "${ac_cv_func_inet_aton+set}" = set; then
  22374. echo $ECHO_N "(cached) $ECHO_C" >&6
  22375. else
  22376. cat >conftest.$ac_ext <<_ACEOF
  22377. /* confdefs.h. */
  22378. _ACEOF
  22379. cat confdefs.h >>conftest.$ac_ext
  22380. cat >>conftest.$ac_ext <<_ACEOF
  22381. /* end confdefs.h. */
  22382. /* Define inet_aton to an innocuous variant, in case <limits.h> declares inet_aton.
  22383. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  22384. #define inet_aton innocuous_inet_aton
  22385. /* System header to define __stub macros and hopefully few prototypes,
  22386. which can conflict with char inet_aton (); below.
  22387. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22388. <limits.h> exists even on freestanding compilers. */
  22389. #ifdef __STDC__
  22390. # include <limits.h>
  22391. #else
  22392. # include <assert.h>
  22393. #endif
  22394. #undef inet_aton
  22395. /* Override any gcc2 internal prototype to avoid an error. */
  22396. #ifdef __cplusplus
  22397. extern "C"
  22398. {
  22399. #endif
  22400. /* We use char because int might match the return type of a gcc2
  22401. builtin and then its argument prototype would still apply. */
  22402. char inet_aton ();
  22403. /* The GNU C library defines this for functions which it implements
  22404. to always fail with ENOSYS. Some functions are actually named
  22405. something starting with __ and the normal name is an alias. */
  22406. #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
  22407. choke me
  22408. #else
  22409. char (*f) () = inet_aton;
  22410. #endif
  22411. #ifdef __cplusplus
  22412. }
  22413. #endif
  22414. int
  22415. main ()
  22416. {
  22417. return f != inet_aton;
  22418. ;
  22419. return 0;
  22420. }
  22421. _ACEOF
  22422. rm -f conftest.$ac_objext conftest$ac_exeext
  22423. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22424. (eval $ac_link) 2>conftest.er1
  22425. ac_status=$?
  22426. grep -v '^ *+' conftest.er1 >conftest.err
  22427. rm -f conftest.er1
  22428. cat conftest.err >&5
  22429. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22430. (exit $ac_status); } &&
  22431. { ac_try='test -z "$ac_c_werror_flag"
  22432. || test ! -s conftest.err'
  22433. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22434. (eval $ac_try) 2>&5
  22435. ac_status=$?
  22436. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22437. (exit $ac_status); }; } &&
  22438. { ac_try='test -s conftest$ac_exeext'
  22439. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22440. (eval $ac_try) 2>&5
  22441. ac_status=$?
  22442. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22443. (exit $ac_status); }; }; then
  22444. ac_cv_func_inet_aton=yes
  22445. else
  22446. echo "$as_me: failed program was:" >&5
  22447. sed 's/^/| /' conftest.$ac_ext >&5
  22448. ac_cv_func_inet_aton=no
  22449. fi
  22450. rm -f conftest.err conftest.$ac_objext \
  22451. conftest$ac_exeext conftest.$ac_ext
  22452. fi
  22453. echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton" >&5
  22454. echo "${ECHO_T}$ac_cv_func_inet_aton" >&6
  22455. if test $ac_cv_func_inet_aton = yes; then
  22456. cat >>confdefs.h <<\_ACEOF
  22457. #define INET_ATON
  22458. _ACEOF
  22459. inet_aton=yes
  22460. else
  22461. inet_aton=no
  22462. fi
  22463. echo "$as_me:$LINENO: checking for inet_addr" >&5
  22464. echo $ECHO_N "checking for inet_addr... $ECHO_C" >&6
  22465. if test "${ac_cv_func_inet_addr+set}" = set; then
  22466. echo $ECHO_N "(cached) $ECHO_C" >&6
  22467. else
  22468. cat >conftest.$ac_ext <<_ACEOF
  22469. /* confdefs.h. */
  22470. _ACEOF
  22471. cat confdefs.h >>conftest.$ac_ext
  22472. cat >>conftest.$ac_ext <<_ACEOF
  22473. /* end confdefs.h. */
  22474. /* Define inet_addr to an innocuous variant, in case <limits.h> declares inet_addr.
  22475. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  22476. #define inet_addr innocuous_inet_addr
  22477. /* System header to define __stub macros and hopefully few prototypes,
  22478. which can conflict with char inet_addr (); below.
  22479. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22480. <limits.h> exists even on freestanding compilers. */
  22481. #ifdef __STDC__
  22482. # include <limits.h>
  22483. #else
  22484. # include <assert.h>
  22485. #endif
  22486. #undef inet_addr
  22487. /* Override any gcc2 internal prototype to avoid an error. */
  22488. #ifdef __cplusplus
  22489. extern "C"
  22490. {
  22491. #endif
  22492. /* We use char because int might match the return type of a gcc2
  22493. builtin and then its argument prototype would still apply. */
  22494. char inet_addr ();
  22495. /* The GNU C library defines this for functions which it implements
  22496. to always fail with ENOSYS. Some functions are actually named
  22497. something starting with __ and the normal name is an alias. */
  22498. #if defined (__stub_inet_addr) || defined (__stub___inet_addr)
  22499. choke me
  22500. #else
  22501. char (*f) () = inet_addr;
  22502. #endif
  22503. #ifdef __cplusplus
  22504. }
  22505. #endif
  22506. int
  22507. main ()
  22508. {
  22509. return f != inet_addr;
  22510. ;
  22511. return 0;
  22512. }
  22513. _ACEOF
  22514. rm -f conftest.$ac_objext conftest$ac_exeext
  22515. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22516. (eval $ac_link) 2>conftest.er1
  22517. ac_status=$?
  22518. grep -v '^ *+' conftest.er1 >conftest.err
  22519. rm -f conftest.er1
  22520. cat conftest.err >&5
  22521. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22522. (exit $ac_status); } &&
  22523. { ac_try='test -z "$ac_c_werror_flag"
  22524. || test ! -s conftest.err'
  22525. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22526. (eval $ac_try) 2>&5
  22527. ac_status=$?
  22528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22529. (exit $ac_status); }; } &&
  22530. { ac_try='test -s conftest$ac_exeext'
  22531. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22532. (eval $ac_try) 2>&5
  22533. ac_status=$?
  22534. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22535. (exit $ac_status); }; }; then
  22536. ac_cv_func_inet_addr=yes
  22537. else
  22538. echo "$as_me: failed program was:" >&5
  22539. sed 's/^/| /' conftest.$ac_ext >&5
  22540. ac_cv_func_inet_addr=no
  22541. fi
  22542. rm -f conftest.err conftest.$ac_objext \
  22543. conftest$ac_exeext conftest.$ac_ext
  22544. fi
  22545. echo "$as_me:$LINENO: result: $ac_cv_func_inet_addr" >&5
  22546. echo "${ECHO_T}$ac_cv_func_inet_addr" >&6
  22547. if test $ac_cv_func_inet_addr = yes; then
  22548. cat >>confdefs.h <<\_ACEOF
  22549. #define INET_ADDR
  22550. _ACEOF
  22551. inet_addr=yes
  22552. else
  22553. inet_addr=no
  22554. fi
  22555. if test $inet_aton = no -a $inet_addr = no ; then
  22556. { { echo "$as_me:$LINENO: error: \"We need either inet_aton or inet_addr\"" >&5
  22557. echo "$as_me: error: \"We need either inet_aton or inet_addr\"" >&2;}
  22558. { (exit 1); exit 1; }; }
  22559. fi
  22560. foundnet=no
  22561. trynetdir=/usr/local
  22562. echo "$as_me:$LINENO: checking for libnet" >&5
  22563. echo $ECHO_N "checking for libnet... $ECHO_C" >&6
  22564. # Check whether --with-libnet or --without-libnet was given.
  22565. if test "${with_libnet+set}" = set; then
  22566. withval="$with_libnet"
  22567. trynetdir=$withval
  22568. fi;
  22569. for testdir in $trynetdir /usr/local /usr ; do
  22570. if test -f "${testdir}/include/libnet.h" -a $foundnet = no ; then
  22571. LNETINC="${testdir}/include/libnet.h"
  22572. LNETINCDIR="$testdir/include"
  22573. if test $dynamic_link = yes; then
  22574. LNETLIB="-L${testdir}/lib -lnet"
  22575. elif test -f "${testdir}/lib64/libnet.a" ; then
  22576. LNETLIB="${testdir}/lib64/libnet.a"
  22577. else
  22578. LNETLIB="${testdir}/lib/libnet.a"
  22579. fi
  22580. foundnet=$testdir
  22581. fi
  22582. done
  22583. if test $foundnet = no ; then
  22584. echo "$as_me:$LINENO: result: no" >&5
  22585. echo "${ECHO_T}no" >&6
  22586. { { echo "$as_me:$LINENO: error: libnet not found" >&5
  22587. echo "$as_me: error: libnet not found" >&2;}
  22588. { (exit 1); exit 1; }; }
  22589. else
  22590. echo "$as_me:$LINENO: result: $foundnet" >&5
  22591. echo "${ECHO_T}$foundnet" >&6
  22592. fi
  22593. OLDLIBS="$LIBS"
  22594. OLDCFLAGS="$CFLAGS"
  22595. LIBS="$LNETLIB"
  22596. CFLAGS="$CFLAGS -I$LNETINCDIR"
  22597. echo "$as_me:$LINENO: checking for libnet version" >&5
  22598. echo $ECHO_N "checking for libnet version... $ECHO_C" >&6
  22599. if test "$cross_compiling" = yes; then
  22600. libnet_ver_10=no
  22601. else
  22602. cat >conftest.$ac_ext <<_ACEOF
  22603. /* confdefs.h. */
  22604. _ACEOF
  22605. cat confdefs.h >>conftest.$ac_ext
  22606. cat >>conftest.$ac_ext <<_ACEOF
  22607. /* end confdefs.h. */
  22608. #include <string.h>
  22609. #define LIBNET_LIL_ENDIAN 1
  22610. #include "$LNETINC"
  22611. #define LIB_TEST "1.0"
  22612. /*
  22613. * simple proggy to test the version of libnet
  22614. * returns zero if it's 1.0.x
  22615. * or one otherwise
  22616. */
  22617. int
  22618. main (int argc, char *argv[])
  22619. {
  22620. if (strncmp(LIB_TEST, LIBNET_VERSION, 3) == 0)
  22621. exit(0);
  22622. exit(1);
  22623. }
  22624. _ACEOF
  22625. rm -f conftest$ac_exeext
  22626. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22627. (eval $ac_link) 2>&5
  22628. ac_status=$?
  22629. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22630. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22631. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22632. (eval $ac_try) 2>&5
  22633. ac_status=$?
  22634. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22635. (exit $ac_status); }; }; then
  22636. libnet_ver_10=yes
  22637. echo "$as_me:$LINENO: result: 1.0.x" >&5
  22638. echo "${ECHO_T}1.0.x" >&6
  22639. else
  22640. echo "$as_me: program exited with status $ac_status" >&5
  22641. echo "$as_me: failed program was:" >&5
  22642. sed 's/^/| /' conftest.$ac_ext >&5
  22643. ( exit $ac_status )
  22644. libnet_ver_10=no
  22645. fi
  22646. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22647. fi
  22648. if test "$cross_compiling" = yes; then
  22649. libnet_ver_11=no
  22650. else
  22651. cat >conftest.$ac_ext <<_ACEOF
  22652. /* confdefs.h. */
  22653. _ACEOF
  22654. cat confdefs.h >>conftest.$ac_ext
  22655. cat >>conftest.$ac_ext <<_ACEOF
  22656. /* end confdefs.h. */
  22657. #include <string.h>
  22658. #include "$LNETINC"
  22659. #define LIB_TEST "1.1"
  22660. /*
  22661. * simple proggy to test the version of libnet
  22662. * returns zero if it's 1.0.x
  22663. * or one otherwise
  22664. */
  22665. int
  22666. main (int argc, char *argv[])
  22667. {
  22668. if (strncmp(LIB_TEST, LIBNET_VERSION, 3) == 0)
  22669. exit(0);
  22670. exit(1);
  22671. }
  22672. _ACEOF
  22673. rm -f conftest$ac_exeext
  22674. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22675. (eval $ac_link) 2>&5
  22676. ac_status=$?
  22677. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22678. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22679. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22680. (eval $ac_try) 2>&5
  22681. ac_status=$?
  22682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22683. (exit $ac_status); }; }; then
  22684. libnet_ver_11=yes
  22685. echo "$as_me:$LINENO: result: 1.1.x" >&5
  22686. echo "${ECHO_T}1.1.x" >&6
  22687. else
  22688. echo "$as_me: program exited with status $ac_status" >&5
  22689. echo "$as_me: failed program was:" >&5
  22690. sed 's/^/| /' conftest.$ac_ext >&5
  22691. ( exit $ac_status )
  22692. libnet_ver_11=no
  22693. fi
  22694. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22695. fi
  22696. if test $libnet_ver_10 = no -a $libnet_ver_11 = no ; then
  22697. echo "$as_me:$LINENO: result: unknown" >&5
  22698. echo "${ECHO_T}unknown" >&6
  22699. { { echo "$as_me:$LINENO: error: Unable to determine version of libnet" >&5
  22700. echo "$as_me: error: Unable to determine version of libnet" >&2;}
  22701. { (exit 1); exit 1; }; }
  22702. fi
  22703. if test $libnet_ver_10 = yes ; then
  22704. { { echo "$as_me:$LINENO: error: Libnet version 1.0.x is no longer supported.
  22705. Please upgrade to 1.1.0 or better" >&5
  22706. echo "$as_me: error: Libnet version 1.0.x is no longer supported.
  22707. Please upgrade to 1.1.0 or better" >&2;}
  22708. { (exit 1); exit 1; }; }
  22709. fi
  22710. echo "$as_me:$LINENO: checking for working libnet_checksum()" >&5
  22711. echo $ECHO_N "checking for working libnet_checksum()... $ECHO_C" >&6
  22712. if test "$cross_compiling" = yes; then
  22713. libnet_ver_113=no
  22714. else
  22715. cat >conftest.$ac_ext <<_ACEOF
  22716. /* confdefs.h. */
  22717. _ACEOF
  22718. cat confdefs.h >>conftest.$ac_ext
  22719. cat >>conftest.$ac_ext <<_ACEOF
  22720. /* end confdefs.h. */
  22721. #include <string.h>
  22722. #include "$LNETINC"
  22723. #define LIB_TEST "1.1.3"
  22724. /*
  22725. * simple proggy to test the version of libnet
  22726. * returns zero if it's < 1.1.3 which has the checksum fix
  22727. * or one otherwise
  22728. */
  22729. int
  22730. main (int argc, char *argv[])
  22731. {
  22732. if (strncmp(LIB_TEST, LIBNET_VERSION, 5) <= 0)
  22733. exit(0);
  22734. exit(1);
  22735. }
  22736. _ACEOF
  22737. rm -f conftest$ac_exeext
  22738. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22739. (eval $ac_link) 2>&5
  22740. ac_status=$?
  22741. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22742. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22743. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22744. (eval $ac_try) 2>&5
  22745. ac_status=$?
  22746. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22747. (exit $ac_status); }; }; then
  22748. libnet_ver_113=yes
  22749. else
  22750. echo "$as_me: program exited with status $ac_status" >&5
  22751. echo "$as_me: failed program was:" >&5
  22752. sed 's/^/| /' conftest.$ac_ext >&5
  22753. ( exit $ac_status )
  22754. libnet_ver_113=no
  22755. fi
  22756. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22757. fi
  22758. if test $libnet_ver_113 = no ; then
  22759. echo "$as_me:$LINENO: result: no" >&5
  22760. echo "${ECHO_T}no" >&6
  22761. { echo "$as_me:$LINENO: WARNING: You should upgrade to libnet 1.1.3 or better if you
  22762. want to modify packets" >&5
  22763. echo "$as_me: WARNING: You should upgrade to libnet 1.1.3 or better if you
  22764. want to modify packets" >&2;}
  22765. else
  22766. echo "$as_me:$LINENO: result: yes" >&5
  22767. echo "${ECHO_T}yes" >&6
  22768. fi
  22769. LIBS="$OLDLIBS"
  22770. CFLAGS="$OLDCFLAGS"
  22771. foundpcap=no
  22772. trypcapdir=/usr/local
  22773. echo "$as_me:$LINENO: checking for libpcap" >&5
  22774. echo $ECHO_N "checking for libpcap... $ECHO_C" >&6
  22775. # Check whether --with-libpcap or --without-libpcap was given.
  22776. if test "${with_libpcap+set}" = set; then
  22777. withval="$with_libpcap"
  22778. trypcapdir=$withval
  22779. fi;
  22780. for testdir in $trypcapdir /usr/local /usr ; do
  22781. if test -f "${testdir}/include/pcap.h" -a $foundpcap = no ; then
  22782. LPCAPINC="${testdir}/include/pcap.h"
  22783. LPCAPINCDIR="${testdir}/include"
  22784. if test $dynamic_link = yes; then
  22785. LPCAPLIB="-L${testdir}/lib -lpcap"
  22786. elif test -f "${testdir}/lib64/libpcap.a" ; then
  22787. LPCAPLIB="${testdir}/lib64/libpcap.a"
  22788. else
  22789. LPCAPLIB="${testdir}/lib/libpcap.a"
  22790. fi
  22791. foundpcap=$testdir
  22792. fi
  22793. done
  22794. if test $foundpcap = no ; then
  22795. echo "$as_me:$LINENO: result: no" >&5
  22796. echo "${ECHO_T}no" >&6
  22797. { { echo "$as_me:$LINENO: error: libpcap not found" >&5
  22798. echo "$as_me: error: libpcap not found" >&2;}
  22799. { (exit 1); exit 1; }; }
  22800. else
  22801. echo "$as_me:$LINENO: result: $foundpcap" >&5
  22802. echo "${ECHO_T}$foundpcap" >&6
  22803. fi
  22804. OLDLIBS="$LIBS"
  22805. OLDCFLAGS="$CFLAGS"
  22806. LIBS="$LPCAPLIB"
  22807. CFLAGS="$CFLAGS -I$LPCAPINCDIR"
  22808. echo "$as_me:$LINENO: checking for libpcap version" >&5
  22809. echo $ECHO_N "checking for libpcap version... $ECHO_C" >&6
  22810. if test "$cross_compiling" = yes; then
  22811. libpcap_ver=no
  22812. else
  22813. cat >conftest.$ac_ext <<_ACEOF
  22814. /* confdefs.h. */
  22815. _ACEOF
  22816. cat confdefs.h >>conftest.$ac_ext
  22817. cat >>conftest.$ac_ext <<_ACEOF
  22818. /* end confdefs.h. */
  22819. #include <string.h>
  22820. #include <stdlib.h>
  22821. #include <stdio.h>
  22822. #include "$LPCAPINC"
  22823. #define PCAP_TEST "0.5"
  22824. /*
  22825. * simple proggy to test the version of libpcap
  22826. * returns zero if version >= 0.5
  22827. * or one otherwise
  22828. */
  22829. extern char pcap_version[];
  22830. int
  22831. main (int argc, char *argv[])
  22832. {
  22833. if (strncmp(pcap_version, PCAP_TEST, 3) >= 0)
  22834. exit(0);
  22835. exit(1);
  22836. }
  22837. _ACEOF
  22838. rm -f conftest$ac_exeext
  22839. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22840. (eval $ac_link) 2>&5
  22841. ac_status=$?
  22842. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22843. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22844. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22845. (eval $ac_try) 2>&5
  22846. ac_status=$?
  22847. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22848. (exit $ac_status); }; }; then
  22849. libpcap_ver=yes
  22850. echo "$as_me:$LINENO: result: >= 0.5" >&5
  22851. echo "${ECHO_T}>= 0.5" >&6
  22852. else
  22853. echo "$as_me: program exited with status $ac_status" >&5
  22854. echo "$as_me: failed program was:" >&5
  22855. sed 's/^/| /' conftest.$ac_ext >&5
  22856. ( exit $ac_status )
  22857. libpcap_ver=no
  22858. echo "$as_me:$LINENO: result: < 0.5" >&5
  22859. echo "${ECHO_T}< 0.5" >&6
  22860. fi
  22861. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22862. fi
  22863. if test $libpcap_ver = no ; then
  22864. { { echo "$as_me:$LINENO: error: Libpcap versions < 0.5 are not supported.
  22865. Please upgrade to version 0.5 or better" >&5
  22866. echo "$as_me: error: Libpcap versions < 0.5 are not supported.
  22867. Please upgrade to version 0.5 or better" >&2;}
  22868. { (exit 1); exit 1; }; }
  22869. fi
  22870. echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
  22871. echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6
  22872. if test "$cross_compiling" = yes; then
  22873. have_dlt_to_desc=no
  22874. else
  22875. cat >conftest.$ac_ext <<_ACEOF
  22876. /* confdefs.h. */
  22877. _ACEOF
  22878. cat confdefs.h >>conftest.$ac_ext
  22879. cat >>conftest.$ac_ext <<_ACEOF
  22880. /* end confdefs.h. */
  22881. #include <stdio.h>
  22882. #include <stdlib.h>
  22883. #include <string.h>
  22884. #include "$LPCAPINC"
  22885. int
  22886. main(int argc, char *argv[]) {
  22887. pcap_datalink_val_to_description(1);
  22888. exit(0);
  22889. }
  22890. _ACEOF
  22891. rm -f conftest$ac_exeext
  22892. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22893. (eval $ac_link) 2>&5
  22894. ac_status=$?
  22895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22896. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22897. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22898. (eval $ac_try) 2>&5
  22899. ac_status=$?
  22900. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22901. (exit $ac_status); }; }; then
  22902. have_dlt_to_desc=yes
  22903. echo "$as_me:$LINENO: result: yes" >&5
  22904. echo "${ECHO_T}yes" >&6
  22905. else
  22906. echo "$as_me: program exited with status $ac_status" >&5
  22907. echo "$as_me: failed program was:" >&5
  22908. sed 's/^/| /' conftest.$ac_ext >&5
  22909. ( exit $ac_status )
  22910. have_dlt_to_desc=no
  22911. echo "$as_me:$LINENO: result: no" >&5
  22912. echo "${ECHO_T}no" >&6
  22913. fi
  22914. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22915. fi
  22916. if test $have_dlt_to_desc = yes ; then
  22917. cat >>confdefs.h <<\_ACEOF
  22918. #define HAVE_DLT_VAL_TO_DESC
  22919. _ACEOF
  22920. fi
  22921. echo "$as_me:$LINENO: checking for DLT_LINUX_SLL in libpcap" >&5
  22922. echo $ECHO_N "checking for DLT_LINUX_SLL in libpcap... $ECHO_C" >&6
  22923. cat >conftest.$ac_ext <<_ACEOF
  22924. /* confdefs.h. */
  22925. _ACEOF
  22926. cat confdefs.h >>conftest.$ac_ext
  22927. cat >>conftest.$ac_ext <<_ACEOF
  22928. /* end confdefs.h. */
  22929. #include "$LPCAPINC"
  22930. int
  22931. main ()
  22932. {
  22933. int foo;
  22934. foo = DLT_LINUX_SLL
  22935. ;
  22936. return 0;
  22937. }
  22938. _ACEOF
  22939. rm -f conftest.$ac_objext
  22940. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22941. (eval $ac_compile) 2>conftest.er1
  22942. ac_status=$?
  22943. grep -v '^ *+' conftest.er1 >conftest.err
  22944. rm -f conftest.er1
  22945. cat conftest.err >&5
  22946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22947. (exit $ac_status); } &&
  22948. { ac_try='test -z "$ac_c_werror_flag"
  22949. || test ! -s conftest.err'
  22950. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22951. (eval $ac_try) 2>&5
  22952. ac_status=$?
  22953. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22954. (exit $ac_status); }; } &&
  22955. { ac_try='test -s conftest.$ac_objext'
  22956. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22957. (eval $ac_try) 2>&5
  22958. ac_status=$?
  22959. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22960. (exit $ac_status); }; }; then
  22961. cat >>confdefs.h <<\_ACEOF
  22962. #define HAVE_DLT_LINUX_SLL
  22963. _ACEOF
  22964. echo "$as_me:$LINENO: result: yes" >&5
  22965. echo "${ECHO_T}yes" >&6
  22966. else
  22967. echo "$as_me: failed program was:" >&5
  22968. sed 's/^/| /' conftest.$ac_ext >&5
  22969. echo "$as_me:$LINENO: result: no" >&5
  22970. echo "${ECHO_T}no" >&6
  22971. fi
  22972. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22973. echo "$as_me:$LINENO: checking for DLT_C_HDLC in libpcap" >&5
  22974. echo $ECHO_N "checking for DLT_C_HDLC in libpcap... $ECHO_C" >&6
  22975. cat >conftest.$ac_ext <<_ACEOF
  22976. /* confdefs.h. */
  22977. _ACEOF
  22978. cat confdefs.h >>conftest.$ac_ext
  22979. cat >>conftest.$ac_ext <<_ACEOF
  22980. /* end confdefs.h. */
  22981. #include "$LPCAPINC"
  22982. int
  22983. main ()
  22984. {
  22985. int foo;
  22986. foo = DLT_C_HDLC
  22987. ;
  22988. return 0;
  22989. }
  22990. _ACEOF
  22991. rm -f conftest.$ac_objext
  22992. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22993. (eval $ac_compile) 2>conftest.er1
  22994. ac_status=$?
  22995. grep -v '^ *+' conftest.er1 >conftest.err
  22996. rm -f conftest.er1
  22997. cat conftest.err >&5
  22998. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22999. (exit $ac_status); } &&
  23000. { ac_try='test -z "$ac_c_werror_flag"
  23001. || test ! -s conftest.err'
  23002. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23003. (eval $ac_try) 2>&5
  23004. ac_status=$?
  23005. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23006. (exit $ac_status); }; } &&
  23007. { ac_try='test -s conftest.$ac_objext'
  23008. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23009. (eval $ac_try) 2>&5
  23010. ac_status=$?
  23011. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23012. (exit $ac_status); }; }; then
  23013. cat >>confdefs.h <<\_ACEOF
  23014. #define HAVE_DLT_C_HDLC
  23015. _ACEOF
  23016. echo "$as_me:$LINENO: result: yes" >&5
  23017. echo "${ECHO_T}yes" >&6
  23018. else
  23019. echo "$as_me: failed program was:" >&5
  23020. sed 's/^/| /' conftest.$ac_ext >&5
  23021. echo "$as_me:$LINENO: result: no" >&5
  23022. echo "${ECHO_T}no" >&6
  23023. fi
  23024. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  23025. PCAP_BPF_H_FILE="$LPCAPINCDIR/pcap-bpf.h"
  23026. echo "$as_me:$LINENO: checking for $PCAP_BPF_H_FILE" >&5
  23027. echo $ECHO_N "checking for $PCAP_BPF_H_FILE... $ECHO_C" >&6
  23028. cat >conftest.$ac_ext <<_ACEOF
  23029. /* confdefs.h. */
  23030. _ACEOF
  23031. cat confdefs.h >>conftest.$ac_ext
  23032. cat >>conftest.$ac_ext <<_ACEOF
  23033. /* end confdefs.h. */
  23034. #include <sys/types.h>
  23035. #include <sys/time.h>
  23036. #include "$PCAP_BPF_H_FILE"
  23037. int
  23038. main ()
  23039. {
  23040. int foo;
  23041. foo = BPF_MAJOR_VERSION;
  23042. ;
  23043. return 0;
  23044. }
  23045. _ACEOF
  23046. rm -f conftest.$ac_objext
  23047. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23048. (eval $ac_compile) 2>conftest.er1
  23049. ac_status=$?
  23050. grep -v '^ *+' conftest.er1 >conftest.err
  23051. rm -f conftest.er1
  23052. cat conftest.err >&5
  23053. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23054. (exit $ac_status); } &&
  23055. { ac_try='test -z "$ac_c_werror_flag"
  23056. || test ! -s conftest.err'
  23057. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23058. (eval $ac_try) 2>&5
  23059. ac_status=$?
  23060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23061. (exit $ac_status); }; } &&
  23062. { ac_try='test -s conftest.$ac_objext'
  23063. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23064. (eval $ac_try) 2>&5
  23065. ac_status=$?
  23066. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23067. (exit $ac_status); }; }; then
  23068. cat >>confdefs.h <<\_ACEOF
  23069. #define INCLUDE_PCAP_BPF_HEADER
  23070. _ACEOF
  23071. echo "$as_me:$LINENO: result: yes" >&5
  23072. echo "${ECHO_T}yes" >&6
  23073. else
  23074. echo "$as_me: failed program was:" >&5
  23075. sed 's/^/| /' conftest.$ac_ext >&5
  23076. echo "$as_me:$LINENO: result: no" >&5
  23077. echo "${ECHO_T}no" >&6
  23078. fi
  23079. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  23080. LIBS="$OLDLIBS"
  23081. CFLAGS="$OLDCFLAGS"
  23082. pcapnav_ver=no
  23083. pcncfg=no
  23084. # Check whether --with-pcapnav-config or --without-pcapnav-config was given.
  23085. if test "${with_pcapnav_config+set}" = set; then
  23086. withval="$with_pcapnav_config"
  23087. echo "$as_me:$LINENO: checking for pcapnav-config" >&5
  23088. echo $ECHO_N "checking for pcapnav-config... $ECHO_C" >&6
  23089. if test -x $withval ; then
  23090. pcncfg=$withval
  23091. echo "$as_me:$LINENO: result: $pcncfg" >&5
  23092. echo "${ECHO_T}$pcncfg" >&6
  23093. else
  23094. echo "$as_me:$LINENO: result: Can't find pcapnav-config: disabling offset jump feature" >&5
  23095. echo "${ECHO_T}Can't find pcapnav-config: disabling offset jump feature" >&6
  23096. fi
  23097. else
  23098. # Extract the first word of "pcapnav-config", so it can be a program name with args.
  23099. set dummy pcapnav-config; ac_word=$2
  23100. echo "$as_me:$LINENO: checking for $ac_word" >&5
  23101. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  23102. if test "${ac_cv_path_pcncfg+set}" = set; then
  23103. echo $ECHO_N "(cached) $ECHO_C" >&6
  23104. else
  23105. case $pcncfg in
  23106. [\\/]* | ?:[\\/]*)
  23107. ac_cv_path_pcncfg="$pcncfg" # Let the user override the test with a path.
  23108. ;;
  23109. *)
  23110. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23111. for as_dir in $PATH
  23112. do
  23113. IFS=$as_save_IFS
  23114. test -z "$as_dir" && as_dir=.
  23115. for ac_exec_ext in '' $ac_executable_extensions; do
  23116. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  23117. ac_cv_path_pcncfg="$as_dir/$ac_word$ac_exec_ext"
  23118. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23119. break 2
  23120. fi
  23121. done
  23122. done
  23123. test -z "$ac_cv_path_pcncfg" && ac_cv_path_pcncfg="no "
  23124. ;;
  23125. esac
  23126. fi
  23127. pcncfg=$ac_cv_path_pcncfg
  23128. if test -n "$pcncfg"; then
  23129. echo "$as_me:$LINENO: result: $pcncfg" >&5
  23130. echo "${ECHO_T}$pcncfg" >&6
  23131. else
  23132. echo "$as_me:$LINENO: result: no" >&5
  23133. echo "${ECHO_T}no" >&6
  23134. fi
  23135. fi;
  23136. if test $pcncfg != no ; then
  23137. LNAVLIB=`$pcncfg --libs`
  23138. LNAV_CFLAGS=`$pcncfg --cflags`
  23139. PCAPNAV_VERSION=`$pcncfg --version`
  23140. cat >>confdefs.h <<_ACEOF
  23141. #define PCAPNAV_VERSION "$PCAPNAV_VERSION"
  23142. _ACEOF
  23143. echo "$as_me:$LINENO: checking for libpcapnav version" >&5
  23144. echo $ECHO_N "checking for libpcapnav version... $ECHO_C" >&6
  23145. if test "$cross_compiling" = yes; then
  23146. libpcapnav_ver=no
  23147. else
  23148. cat >conftest.$ac_ext <<_ACEOF
  23149. /* confdefs.h. */
  23150. _ACEOF
  23151. cat confdefs.h >>conftest.$ac_ext
  23152. cat >>conftest.$ac_ext <<_ACEOF
  23153. /* end confdefs.h. */
  23154. #include <string.h>
  23155. #define PCAPNAV_TEST "0.4"
  23156. /*
  23157. * simple proggy to test the version of libpcapnav
  23158. * returns zero if version >= 0.4
  23159. * or one otherwise
  23160. */
  23161. int
  23162. main (int argc, char *argv[])
  23163. {
  23164. if (strncmp(PCAPNAV_VERSION, PCAPNAV_TEST, 3) >= 0)
  23165. exit(0);
  23166. exit(1);
  23167. }
  23168. _ACEOF
  23169. rm -f conftest$ac_exeext
  23170. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23171. (eval $ac_link) 2>&5
  23172. ac_status=$?
  23173. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23174. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23175. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23176. (eval $ac_try) 2>&5
  23177. ac_status=$?
  23178. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23179. (exit $ac_status); }; }; then
  23180. libpcapnav_ver=yes
  23181. echo "$as_me:$LINENO: result: >= 0.4" >&5
  23182. echo "${ECHO_T}>= 0.4" >&6
  23183. else
  23184. echo "$as_me: program exited with status $ac_status" >&5
  23185. echo "$as_me: failed program was:" >&5
  23186. sed 's/^/| /' conftest.$ac_ext >&5
  23187. ( exit $ac_status )
  23188. libpcapnav_ver=no
  23189. echo "$as_me:$LINENO: result: < 0.4" >&5
  23190. echo "${ECHO_T}< 0.4" >&6
  23191. fi
  23192. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23193. fi
  23194. if test x$libpcapnav_ver = xno ; then
  23195. { echo "$as_me:$LINENO: WARNING: Libpcapnav versions < 0.4 are not supported.
  23196. Please upgrade to version 0.4 or better.
  23197. Disabling offset jump feature." >&5
  23198. echo "$as_me: WARNING: Libpcapnav versions < 0.4 are not supported.
  23199. Please upgrade to version 0.4 or better.
  23200. Disabling offset jump feature." >&2;}
  23201. else
  23202. cat >>confdefs.h <<\_ACEOF
  23203. #define HAVE_PCAPNAV
  23204. _ACEOF
  23205. fi
  23206. fi # checking pcapnav version
  23207. foundnids=no
  23208. trynidsdir=/usr/local
  23209. echo "$as_me:$LINENO: checking for libnids" >&5
  23210. echo $ECHO_N "checking for libnids... $ECHO_C" >&6
  23211. # Check whether --with-libnids or --without-libnids was given.
  23212. if test "${with_libnids+set}" = set; then
  23213. withval="$with_libnids"
  23214. trynidsdir=$withval
  23215. fi;
  23216. for testdir in $trynidsdir /usr/local /usr ; do
  23217. if test -f "${testdir}/include/nids.h" -a $foundnids = no ; then
  23218. LNIDSINC="${testdir}/include/nids.h"
  23219. LNIDSINCDIR="${testdir}/include"
  23220. LNIDSLIB="${testdir}/lib/libnids.a"
  23221. foundnids=$testdir
  23222. fi
  23223. done
  23224. if test $foundnids = no ; then
  23225. echo "$as_me:$LINENO: result: no" >&5
  23226. echo "${ECHO_T}no" >&6
  23227. { echo "$as_me:$LINENO: WARNING: libnids not found. We won't build flowreplay." >&5
  23228. echo "$as_me: WARNING: libnids not found. We won't build flowreplay." >&2;}
  23229. else
  23230. echo "$as_me:$LINENO: result: $foundnids" >&5
  23231. echo "${ECHO_T}$foundnids" >&6
  23232. cat >>confdefs.h <<\_ACEOF
  23233. #define HAVE_LIBNIDS
  23234. _ACEOF
  23235. fi
  23236. if test ${foundnids} != no ; then
  23237. HAVE_LIBNIDS_TRUE=
  23238. HAVE_LIBNIDS_FALSE='#'
  23239. else
  23240. HAVE_LIBNIDS_TRUE='#'
  23241. HAVE_LIBNIDS_FALSE=
  23242. fi
  23243. echo "$as_me:$LINENO: checking for requires strict byte alignment" >&5
  23244. echo $ECHO_N "checking for requires strict byte alignment... $ECHO_C" >&6
  23245. if test "${unaligned_fail+set}" = set; then
  23246. echo $ECHO_N "(cached) $ECHO_C" >&6
  23247. else
  23248. case "$host_cpu" in
  23249. # XXX: should also check that they don't do weird things (like on arm)
  23250. alpha*|arm*|hp*|mips*|sparc*|ia64)
  23251. unaligned_fail=yes
  23252. ;;
  23253. *)
  23254. cat >conftest.c <<EOF
  23255. #include <sys/types.h>
  23256. #include <sys/wait.h>
  23257. #include <stdio.h>
  23258. unsigned char a[5] = { 1, 2, 3, 4, 5 };
  23259. main() {
  23260. unsigned int i;
  23261. pid_t pid;
  23262. int status;
  23263. /* avoid "core dumped" message */
  23264. pid = fork();
  23265. if (pid < 0)
  23266. exit(2);
  23267. if (pid > 0) {
  23268. /* parent */
  23269. pid = waitpid(pid, &status, 0);
  23270. if (pid < 0)
  23271. exit(3);
  23272. exit(!WIFEXITED(status));
  23273. }
  23274. /* child */
  23275. i = *(unsigned int *)&a[1];
  23276. printf("%d\n", i);
  23277. exit(0);
  23278. }
  23279. EOF
  23280. ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
  23281. conftest.c $LIBS >/dev/null 2>&1
  23282. if test ! -x conftest ; then
  23283. unaligned_fail=yes
  23284. else
  23285. ./conftest >conftest.out
  23286. if test ! -s conftest.out ; then
  23287. unaligned_fail=yes
  23288. else
  23289. unaligned_fail=no
  23290. fi
  23291. fi
  23292. rm -f conftest* core core.conftest
  23293. ;;
  23294. esac
  23295. fi
  23296. echo "$as_me:$LINENO: result: $unaligned_fail" >&5
  23297. echo "${ECHO_T}$unaligned_fail" >&6
  23298. if test $unaligned_fail = yes ; then
  23299. cat >>confdefs.h <<\_ACEOF
  23300. #define FORCE_ALIGN 1
  23301. _ACEOF
  23302. fi
  23303. td=no
  23304. # Check whether --with-tcpdump or --without-tcpdump was given.
  23305. if test "${with_tcpdump+set}" = set; then
  23306. withval="$with_tcpdump"
  23307. if test -x $withval ; then
  23308. td=$withval
  23309. echo "$as_me:$LINENO: result: Using tcpdump in $td" >&5
  23310. echo "${ECHO_T}Using tcpdump in $td" >&6
  23311. else
  23312. echo "$as_me:$LINENO: result: Error: $withval does not exist or is not executable" >&5
  23313. echo "${ECHO_T}Error: $withval does not exist or is not executable" >&6
  23314. fi
  23315. else
  23316. # Extract the first word of "tcpdump", so it can be a program name with args.
  23317. set dummy tcpdump; ac_word=$2
  23318. echo "$as_me:$LINENO: checking for $ac_word" >&5
  23319. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  23320. if test "${ac_cv_path_td+set}" = set; then
  23321. echo $ECHO_N "(cached) $ECHO_C" >&6
  23322. else
  23323. case $td in
  23324. [\\/]* | ?:[\\/]*)
  23325. ac_cv_path_td="$td" # Let the user override the test with a path.
  23326. ;;
  23327. *)
  23328. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23329. as_dummy="$PATH:/usr/sbin:/sbin:/usr/local/sbin"
  23330. for as_dir in $as_dummy
  23331. do
  23332. IFS=$as_save_IFS
  23333. test -z "$as_dir" && as_dir=.
  23334. for ac_exec_ext in '' $ac_executable_extensions; do
  23335. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  23336. ac_cv_path_td="$as_dir/$ac_word$ac_exec_ext"
  23337. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23338. break 2
  23339. fi
  23340. done
  23341. done
  23342. test -z "$ac_cv_path_td" && ac_cv_path_td=""no""
  23343. ;;
  23344. esac
  23345. fi
  23346. td=$ac_cv_path_td
  23347. if test -n "$td"; then
  23348. echo "$as_me:$LINENO: result: $td" >&5
  23349. echo "${ECHO_T}$td" >&6
  23350. else
  23351. echo "$as_me:$LINENO: result: no" >&5
  23352. echo "${ECHO_T}no" >&6
  23353. fi
  23354. fi;
  23355. if test "$td" = "no"; then
  23356. { echo "$as_me:$LINENO: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.
  23357. Disabling verbose reporting." >&5
  23358. echo "$as_me: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.
  23359. Disabling verbose reporting." >&2;}
  23360. else
  23361. cat >>confdefs.h <<\_ACEOF
  23362. #define HAVE_TCPDUMP
  23363. _ACEOF
  23364. cat >>confdefs.h <<_ACEOF
  23365. #define TCPDUMP_BINARY "$td"
  23366. _ACEOF
  23367. fi
  23368. echo "$as_me:$LINENO: checking for 'make test' profile" >&5
  23369. echo $ECHO_N "checking for 'make test' profile... $ECHO_C" >&6
  23370. if test "$host" != "$build" ; then
  23371. { echo "$as_me:$LINENO: WARNING: Unable to do tests when cross-compiling" >&5
  23372. echo "$as_me: WARNING: Unable to do tests when cross-compiling" >&2;}
  23373. fi
  23374. # Check whether --with-testnic or --without-testnic was given.
  23375. if test "${with_testnic+set}" = set; then
  23376. withval="$with_testnic"
  23377. nic1=$withval
  23378. nic2=$withval
  23379. echo "$as_me:$LINENO: result: Using --with-testnic=$withval" >&5
  23380. echo "${ECHO_T}Using --with-testnic=$withval" >&6
  23381. else
  23382. case $host in
  23383. *-*-linux*)
  23384. nic1=eth0
  23385. nic2=eth0
  23386. echo "$as_me:$LINENO: result: Linux" >&5
  23387. echo "${ECHO_T}Linux" >&6
  23388. ;;
  23389. *-*-solaris*)
  23390. nic1=hme0
  23391. nic2=hme0
  23392. echo "$as_me:$LINENO: result: Solaris" >&5
  23393. echo "${ECHO_T}Solaris" >&6
  23394. ;;
  23395. *-*-sunos*)
  23396. nic1=hme0
  23397. nic2=hme0
  23398. echo "$as_me:$LINENO: result: SunOS" >&5
  23399. echo "${ECHO_T}SunOS" >&6
  23400. ;;
  23401. powerpc-apple-darwin*)
  23402. nic1=en0
  23403. nic2=en0
  23404. echo "$as_me:$LINENO: result: Apple OS X" >&5
  23405. echo "${ECHO_T}Apple OS X" >&6
  23406. ;;
  23407. *-*-openbsd*)
  23408. nic1=xl0
  23409. nic2=xl0
  23410. echo "$as_me:$LINENO: result: OpenBSD" >&5
  23411. echo "${ECHO_T}OpenBSD" >&6
  23412. ;;
  23413. *)
  23414. echo "$as_me:$LINENO: result: $host is unknown!
  23415. Please use --with-nictest to select an interface for 'make test'" >&5
  23416. echo "${ECHO_T}$host is unknown!
  23417. Please use --with-nictest to select an interface for 'make test'" >&6
  23418. ;;
  23419. esac
  23420. fi;
  23421. # Check whether --with-testnic2 or --without-testnic2 was given.
  23422. if test "${with_testnic2+set}" = set; then
  23423. withval="$with_testnic2"
  23424. nic2=$withval
  23425. fi;
  23426. { echo "$as_me:$LINENO: Using $nic1 for 1st test network interface card" >&5
  23427. echo "$as_me: Using $nic1 for 1st test network interface card" >&6;}
  23428. { echo "$as_me:$LINENO: Using $nic2 for 2nd test network interface card" >&5
  23429. echo "$as_me: Using $nic2 for 2nd test network interface card" >&6;}
  23430. # Check whether --enable-local-libopts or --disable-local-libopts was given.
  23431. if test "${enable_local_libopts+set}" = set; then
  23432. enableval="$enable_local_libopts"
  23433. if test x$enableval = xyes ; then
  23434. { echo "$as_me:$LINENO: Using supplied libopts tearoff" >&5
  23435. echo "$as_me: Using supplied libopts tearoff" >&6;}
  23436. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  23437. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  23438. # Check to see if a reg expr header is specified.
  23439. # Check whether --with-regex-header or --without-regex-header was given.
  23440. if test "${with_regex_header+set}" = set; then
  23441. withval="$with_regex_header"
  23442. libopts_cv_with_regex_header=${with_regex_header}
  23443. else
  23444. echo "$as_me:$LINENO: checking whether a reg expr header is specified" >&5
  23445. echo $ECHO_N "checking whether a reg expr header is specified... $ECHO_C" >&6
  23446. if test "${libopts_cv_with_regex_header+set}" = set; then
  23447. echo $ECHO_N "(cached) $ECHO_C" >&6
  23448. else
  23449. libopts_cv_with_regex_header=no
  23450. fi
  23451. echo "$as_me:$LINENO: result: $libopts_cv_with_regex_header" >&5
  23452. echo "${ECHO_T}$libopts_cv_with_regex_header" >&6
  23453. fi; # end of AC_ARG_WITH
  23454. if test "X${libopts_cv_with_regex_header}" != Xno
  23455. then
  23456. cat >>confdefs.h <<_ACEOF
  23457. #define REGEX_HEADER <${libopts_cv_with_regex_header}>
  23458. _ACEOF
  23459. else
  23460. cat >>confdefs.h <<\_ACEOF
  23461. #define REGEX_HEADER <regex.h>
  23462. _ACEOF
  23463. fi
  23464. # Check to see if a working libregex can be found.
  23465. # Check whether --with-libregex or --without-libregex was given.
  23466. if test "${with_libregex+set}" = set; then
  23467. withval="$with_libregex"
  23468. libopts_cv_with_libregex_root=${with_libregex}
  23469. else
  23470. echo "$as_me:$LINENO: checking whether with-libregex was specified" >&5
  23471. echo $ECHO_N "checking whether with-libregex was specified... $ECHO_C" >&6
  23472. if test "${libopts_cv_with_libregex_root+set}" = set; then
  23473. echo $ECHO_N "(cached) $ECHO_C" >&6
  23474. else
  23475. libopts_cv_with_libregex_root=no
  23476. fi
  23477. echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_root" >&5
  23478. echo "${ECHO_T}$libopts_cv_with_libregex_root" >&6
  23479. fi; # end of AC_ARG_WITH libregex
  23480. if test "${with_libguile+set}" = set && \
  23481. test "${withval}" = no
  23482. then ## disabled by request
  23483. libopts_cv_with_libregex_root=no
  23484. libopts_cv_with_libregex_cflags=no
  23485. libopts_cv_with_libregex_libs=no
  23486. else
  23487. # Check whether --with-libregex-cflags or --without-libregex-cflags was given.
  23488. if test "${with_libregex_cflags+set}" = set; then
  23489. withval="$with_libregex_cflags"
  23490. libopts_cv_with_libregex_cflags=${with_regex_cflags}
  23491. else
  23492. echo "$as_me:$LINENO: checking whether with-libregex-cflags was specified" >&5
  23493. echo $ECHO_N "checking whether with-libregex-cflags was specified... $ECHO_C" >&6
  23494. if test "${libopts_cv_with_libregex_cflags+set}" = set; then
  23495. echo $ECHO_N "(cached) $ECHO_C" >&6
  23496. else
  23497. libopts_cv_with_libregex_cflags=no
  23498. fi
  23499. echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_cflags" >&5
  23500. echo "${ECHO_T}$libopts_cv_with_libregex_cflags" >&6
  23501. fi; # end of AC_ARG_WITH libregex-cflags
  23502. # Check whether --with-libregex-libs or --without-libregex-libs was given.
  23503. if test "${with_libregex_libs+set}" = set; then
  23504. withval="$with_libregex_libs"
  23505. libopts_cv_with_libregex_libs=${with_regex_libs}
  23506. else
  23507. echo "$as_me:$LINENO: checking whether with-libregex-libs was specified" >&5
  23508. echo $ECHO_N "checking whether with-libregex-libs was specified... $ECHO_C" >&6
  23509. if test "${libopts_cv_with_libregex_libs+set}" = set; then
  23510. echo $ECHO_N "(cached) $ECHO_C" >&6
  23511. else
  23512. libopts_cv_with_libregex_libs=no
  23513. fi
  23514. echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_libs" >&5
  23515. echo "${ECHO_T}$libopts_cv_with_libregex_libs" >&6
  23516. fi; # end of AC_ARG_WITH libregex-libs
  23517. case "X${libopts_cv_with_libregex_cflags}" in
  23518. Xyes|Xno|X )
  23519. case "X${libopts_cv_with_libregex_root}" in
  23520. Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
  23521. * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
  23522. esac
  23523. esac
  23524. case "X${libopts_cv_with_libregex_libs}" in
  23525. Xyes|Xno|X )
  23526. case "X${libopts_cv_with_libregex_root}" in
  23527. Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
  23528. * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex";;
  23529. esac
  23530. esac
  23531. libopts_save_CPPFLAGS="${CPPFLAGS}"
  23532. libopts_save_LIBS="${LIBS}"
  23533. fi ## disabled by request
  23534. case "X${libopts_cv_with_libregex_cflags}" in
  23535. Xyes|Xno|X )
  23536. libopts_cv_with_libregex_cflags="" ;;
  23537. * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
  23538. esac
  23539. case "X${libopts_cv_with_libregex_libs}" in
  23540. Xyes|Xno|X )
  23541. libopts_cv_with_libregex_libs="" ;;
  23542. * )
  23543. LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
  23544. esac
  23545. LIBREGEX_CFLAGS=""
  23546. LIBREGEX_LIBS=""
  23547. echo "$as_me:$LINENO: checking whether libregex functions properly" >&5
  23548. echo $ECHO_N "checking whether libregex functions properly... $ECHO_C" >&6
  23549. if test "${libopts_cv_with_libregex+set}" = set; then
  23550. echo $ECHO_N "(cached) $ECHO_C" >&6
  23551. else
  23552. if test "$cross_compiling" = yes; then
  23553. libopts_cv_with_libregex=no
  23554. else
  23555. cat >conftest.$ac_ext <<_ACEOF
  23556. /* confdefs.h. */
  23557. _ACEOF
  23558. cat confdefs.h >>conftest.$ac_ext
  23559. cat >>conftest.$ac_ext <<_ACEOF
  23560. /* end confdefs.h. */
  23561. #include <stdio.h>
  23562. #include <stdlib.h>
  23563. #include <sys/types.h>
  23564. #include REGEX_HEADER
  23565. static regex_t re;
  23566. void comp_re( const char* pzPat ) {
  23567. int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
  23568. if (res == 0) return;
  23569. exit( res ); }
  23570. int main() {
  23571. regmatch_t m[2];
  23572. comp_re( "^.*\$" );
  23573. comp_re( "()|no.*" );
  23574. comp_re( "." );
  23575. if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
  23576. if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
  23577. fputs( "error: regex -->.<-- did not match\n", stderr );
  23578. return 1;
  23579. }
  23580. return 0; }
  23581. _ACEOF
  23582. rm -f conftest$ac_exeext
  23583. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23584. (eval $ac_link) 2>&5
  23585. ac_status=$?
  23586. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23587. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23588. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23589. (eval $ac_try) 2>&5
  23590. ac_status=$?
  23591. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23592. (exit $ac_status); }; }; then
  23593. libopts_cv_with_libregex=yes
  23594. else
  23595. echo "$as_me: program exited with status $ac_status" >&5
  23596. echo "$as_me: failed program was:" >&5
  23597. sed 's/^/| /' conftest.$ac_ext >&5
  23598. ( exit $ac_status )
  23599. libopts_cv_with_libregex=no
  23600. fi
  23601. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23602. fi # end of AC_TRY_RUN
  23603. fi
  23604. # end of AC_CACHE_VAL for libopts_cv_with_libregex
  23605. echo "$as_me:$LINENO: result: ${libopts_cv_with_libregex}" >&5
  23606. echo "${ECHO_T}${libopts_cv_with_libregex}" >&6
  23607. if test "X${libopts_cv_with_libregex}" = Xno
  23608. then
  23609. CPPFLAGS="${libopts_save_CPPFLAGS}"
  23610. LIBS="${libopts_save_LIBS}"
  23611. cat >&2 <<'_EOF_'
  23612. I cannot detect POSIX compliant regcomp/regexec routines.
  23613. These are required for AutoGen to work correctly. If you have
  23614. such a library present on your system, you must specify it by
  23615. setting the LIBS environment variable, e.g., "LIBS='-lregex'".
  23616. If you do not have such a library on your system, then you should
  23617. download and install, for example, the one from:
  23618. ftp://ftp.gnu.org/gnu/rx/
  23619. _EOF_
  23620. { { echo "$as_me:$LINENO: error: Cannot find working POSIX regex library" >&5
  23621. echo "$as_me: error: Cannot find working POSIX regex library" >&2;}
  23622. { (exit 1); exit 1; }; }
  23623. fi
  23624. # Check to see if pathfind(3) works.
  23625. echo "$as_me:$LINENO: checking whether pathfind(3) works" >&5
  23626. echo $ECHO_N "checking whether pathfind(3) works... $ECHO_C" >&6
  23627. if test "${libopts_cv_run_pathfind+set}" = set; then
  23628. echo $ECHO_N "(cached) $ECHO_C" >&6
  23629. else
  23630. if test "$cross_compiling" = yes; then
  23631. libopts_cv_run_pathfind=no
  23632. else
  23633. cat >conftest.$ac_ext <<_ACEOF
  23634. /* confdefs.h. */
  23635. _ACEOF
  23636. cat confdefs.h >>conftest.$ac_ext
  23637. cat >>conftest.$ac_ext <<_ACEOF
  23638. /* end confdefs.h. */
  23639. #include <string.h>
  23640. #include <stdlib.h>
  23641. int main (int argc, char** argv) {
  23642. char* pz = pathfind( getenv( "PATH" ), "sh", "x" );
  23643. return (pz == 0) ? 1 : 0;
  23644. }
  23645. _ACEOF
  23646. rm -f conftest$ac_exeext
  23647. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23648. (eval $ac_link) 2>&5
  23649. ac_status=$?
  23650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23651. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23652. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23653. (eval $ac_try) 2>&5
  23654. ac_status=$?
  23655. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23656. (exit $ac_status); }; }; then
  23657. libopts_cv_run_pathfind=yes
  23658. else
  23659. echo "$as_me: program exited with status $ac_status" >&5
  23660. echo "$as_me: failed program was:" >&5
  23661. sed 's/^/| /' conftest.$ac_ext >&5
  23662. ( exit $ac_status )
  23663. libopts_cv_run_pathfind=no
  23664. fi
  23665. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23666. fi # end of TRY_RUN
  23667. fi
  23668. # end of AC_CACHE_VAL for libopts_cv_run_pathfind
  23669. echo "$as_me:$LINENO: result: ${libopts_cv_run_pathfind}" >&5
  23670. echo "${ECHO_T}${libopts_cv_run_pathfind}" >&6
  23671. if test "X${libopts_cv_run_pathfind}" != Xno
  23672. then
  23673. cat >>confdefs.h <<\_ACEOF
  23674. #define HAVE_PATHFIND 1
  23675. _ACEOF
  23676. fi
  23677. # Check to see if strftime() works.
  23678. echo "$as_me:$LINENO: checking whether strftime() works" >&5
  23679. echo $ECHO_N "checking whether strftime() works... $ECHO_C" >&6
  23680. if test "${libopts_cv_run_strftime+set}" = set; then
  23681. echo $ECHO_N "(cached) $ECHO_C" >&6
  23682. else
  23683. if test "$cross_compiling" = yes; then
  23684. libopts_cv_run_strftime=no
  23685. else
  23686. cat >conftest.$ac_ext <<_ACEOF
  23687. /* confdefs.h. */
  23688. _ACEOF
  23689. cat confdefs.h >>conftest.$ac_ext
  23690. cat >>conftest.$ac_ext <<_ACEOF
  23691. /* end confdefs.h. */
  23692. #include <time.h>
  23693. #include <string.h>
  23694. char t_buf[ 64 ];
  23695. int main() {
  23696. static const char z[] = "Thursday Aug 28 240";
  23697. struct tm tm;
  23698. tm.tm_sec = 36; /* seconds after the minute [0, 61] */
  23699. tm.tm_min = 44; /* minutes after the hour [0, 59] */
  23700. tm.tm_hour = 12; /* hour since midnight [0, 23] */
  23701. tm.tm_mday = 28; /* day of the month [1, 31] */
  23702. tm.tm_mon = 7; /* months since January [0, 11] */
  23703. tm.tm_year = 86; /* years since 1900 */
  23704. tm.tm_wday = 4; /* days since Sunday [0, 6] */
  23705. tm.tm_yday = 239; /* days since January 1 [0, 365] */
  23706. tm.tm_isdst = 1; /* flag for daylight savings time */
  23707. strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
  23708. return (strcmp( t_buf, z ) != 0); }
  23709. _ACEOF
  23710. rm -f conftest$ac_exeext
  23711. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23712. (eval $ac_link) 2>&5
  23713. ac_status=$?
  23714. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23715. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23716. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23717. (eval $ac_try) 2>&5
  23718. ac_status=$?
  23719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23720. (exit $ac_status); }; }; then
  23721. libopts_cv_run_strftime=yes
  23722. else
  23723. echo "$as_me: program exited with status $ac_status" >&5
  23724. echo "$as_me: failed program was:" >&5
  23725. sed 's/^/| /' conftest.$ac_ext >&5
  23726. ( exit $ac_status )
  23727. libopts_cv_run_strftime=no
  23728. fi
  23729. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23730. fi # end of TRY_RUN
  23731. fi
  23732. # end of AC_CACHE_VAL for libopts_cv_run_strftime
  23733. echo "$as_me:$LINENO: result: ${libopts_cv_run_strftime}" >&5
  23734. echo "${ECHO_T}${libopts_cv_run_strftime}" >&6
  23735. if test "X${libopts_cv_run_strftime}" != Xno
  23736. then
  23737. cat >>confdefs.h <<\_ACEOF
  23738. #define HAVE_STRFTIME 1
  23739. _ACEOF
  23740. fi
  23741. # Check to see if fopen accepts "b" mode.
  23742. echo "$as_me:$LINENO: checking whether fopen accepts \"b\" mode" >&5
  23743. echo $ECHO_N "checking whether fopen accepts \"b\" mode... $ECHO_C" >&6
  23744. if test "${libopts_cv_run_fopen_binary+set}" = set; then
  23745. echo $ECHO_N "(cached) $ECHO_C" >&6
  23746. else
  23747. if test "$cross_compiling" = yes; then
  23748. libopts_cv_run_fopen_binary=no
  23749. else
  23750. cat >conftest.$ac_ext <<_ACEOF
  23751. /* confdefs.h. */
  23752. _ACEOF
  23753. cat confdefs.h >>conftest.$ac_ext
  23754. cat >>conftest.$ac_ext <<_ACEOF
  23755. /* end confdefs.h. */
  23756. #include <stdio.h>
  23757. int main (int argc, char** argv) {
  23758. FILE* fp = fopen("conftest.$ac_ext", "rb");
  23759. return (fp == NULL) ? 1 : fclose(fp); }
  23760. _ACEOF
  23761. rm -f conftest$ac_exeext
  23762. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23763. (eval $ac_link) 2>&5
  23764. ac_status=$?
  23765. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23766. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23767. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23768. (eval $ac_try) 2>&5
  23769. ac_status=$?
  23770. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23771. (exit $ac_status); }; }; then
  23772. libopts_cv_run_fopen_binary=yes
  23773. else
  23774. echo "$as_me: program exited with status $ac_status" >&5
  23775. echo "$as_me: failed program was:" >&5
  23776. sed 's/^/| /' conftest.$ac_ext >&5
  23777. ( exit $ac_status )
  23778. libopts_cv_run_fopen_binary=no
  23779. fi
  23780. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23781. fi # end of TRY_RUN
  23782. fi
  23783. # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
  23784. echo "$as_me:$LINENO: result: ${libopts_cv_run_fopen_binary}" >&5
  23785. echo "${ECHO_T}${libopts_cv_run_fopen_binary}" >&6
  23786. if test "X${libopts_cv_run_fopen_binary}" != Xno
  23787. then
  23788. cat >>confdefs.h <<\_ACEOF
  23789. #define FOPEN_BINARY_FLAG "b"
  23790. _ACEOF
  23791. else
  23792. cat >>confdefs.h <<\_ACEOF
  23793. #define FOPEN_BINARY_FLAG ""
  23794. _ACEOF
  23795. fi
  23796. # Check to see if fopen accepts "t" mode.
  23797. echo "$as_me:$LINENO: checking whether fopen accepts \"t\" mode" >&5
  23798. echo $ECHO_N "checking whether fopen accepts \"t\" mode... $ECHO_C" >&6
  23799. if test "${libopts_cv_run_fopen_text+set}" = set; then
  23800. echo $ECHO_N "(cached) $ECHO_C" >&6
  23801. else
  23802. if test "$cross_compiling" = yes; then
  23803. libopts_cv_run_fopen_text=no
  23804. else
  23805. cat >conftest.$ac_ext <<_ACEOF
  23806. /* confdefs.h. */
  23807. _ACEOF
  23808. cat confdefs.h >>conftest.$ac_ext
  23809. cat >>conftest.$ac_ext <<_ACEOF
  23810. /* end confdefs.h. */
  23811. #include <stdio.h>
  23812. int main (int argc, char** argv) {
  23813. FILE* fp = fopen("conftest.$ac_ext", "rt");
  23814. return (fp == NULL) ? 1 : fclose(fp); }
  23815. _ACEOF
  23816. rm -f conftest$ac_exeext
  23817. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23818. (eval $ac_link) 2>&5
  23819. ac_status=$?
  23820. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23821. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23822. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23823. (eval $ac_try) 2>&5
  23824. ac_status=$?
  23825. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23826. (exit $ac_status); }; }; then
  23827. libopts_cv_run_fopen_text=yes
  23828. else
  23829. echo "$as_me: program exited with status $ac_status" >&5
  23830. echo "$as_me: failed program was:" >&5
  23831. sed 's/^/| /' conftest.$ac_ext >&5
  23832. ( exit $ac_status )
  23833. libopts_cv_run_fopen_text=no
  23834. fi
  23835. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23836. fi # end of TRY_RUN
  23837. fi
  23838. # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
  23839. echo "$as_me:$LINENO: result: ${libopts_cv_run_fopen_text}" >&5
  23840. echo "${ECHO_T}${libopts_cv_run_fopen_text}" >&6
  23841. if test "X${libopts_cv_run_fopen_text}" != Xno
  23842. then
  23843. cat >>confdefs.h <<\_ACEOF
  23844. #define FOPEN_TEXT_FLAG "t"
  23845. _ACEOF
  23846. else
  23847. cat >>confdefs.h <<\_ACEOF
  23848. #define FOPEN_TEXT_FLAG ""
  23849. _ACEOF
  23850. fi
  23851. # ----------------------------------------------------------------------
  23852. # Check for standard headers.
  23853. # ----------------------------------------------------------------------
  23854. # =================
  23855. # AC_HEADER_STDC
  23856. # =================
  23857. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  23858. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  23859. if test "${ac_cv_header_stdc+set}" = set; then
  23860. echo $ECHO_N "(cached) $ECHO_C" >&6
  23861. else
  23862. cat >conftest.$ac_ext <<_ACEOF
  23863. /* confdefs.h. */
  23864. _ACEOF
  23865. cat confdefs.h >>conftest.$ac_ext
  23866. cat >>conftest.$ac_ext <<_ACEOF
  23867. /* end confdefs.h. */
  23868. #include <stdlib.h>
  23869. #include <stdarg.h>
  23870. #include <string.h>
  23871. #include <float.h>
  23872. int
  23873. main ()
  23874. {
  23875. ;
  23876. return 0;
  23877. }
  23878. _ACEOF
  23879. rm -f conftest.$ac_objext
  23880. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23881. (eval $ac_compile) 2>conftest.er1
  23882. ac_status=$?
  23883. grep -v '^ *+' conftest.er1 >conftest.err
  23884. rm -f conftest.er1
  23885. cat conftest.err >&5
  23886. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23887. (exit $ac_status); } &&
  23888. { ac_try='test -z "$ac_c_werror_flag"
  23889. || test ! -s conftest.err'
  23890. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23891. (eval $ac_try) 2>&5
  23892. ac_status=$?
  23893. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23894. (exit $ac_status); }; } &&
  23895. { ac_try='test -s conftest.$ac_objext'
  23896. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23897. (eval $ac_try) 2>&5
  23898. ac_status=$?
  23899. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23900. (exit $ac_status); }; }; then
  23901. ac_cv_header_stdc=yes
  23902. else
  23903. echo "$as_me: failed program was:" >&5
  23904. sed 's/^/| /' conftest.$ac_ext >&5
  23905. ac_cv_header_stdc=no
  23906. fi
  23907. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  23908. if test $ac_cv_header_stdc = yes; then
  23909. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  23910. cat >conftest.$ac_ext <<_ACEOF
  23911. /* confdefs.h. */
  23912. _ACEOF
  23913. cat confdefs.h >>conftest.$ac_ext
  23914. cat >>conftest.$ac_ext <<_ACEOF
  23915. /* end confdefs.h. */
  23916. #include <string.h>
  23917. _ACEOF
  23918. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  23919. $EGREP "memchr" >/dev/null 2>&1; then
  23920. :
  23921. else
  23922. ac_cv_header_stdc=no
  23923. fi
  23924. rm -f conftest*
  23925. fi
  23926. if test $ac_cv_header_stdc = yes; then
  23927. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  23928. cat >conftest.$ac_ext <<_ACEOF
  23929. /* confdefs.h. */
  23930. _ACEOF
  23931. cat confdefs.h >>conftest.$ac_ext
  23932. cat >>conftest.$ac_ext <<_ACEOF
  23933. /* end confdefs.h. */
  23934. #include <stdlib.h>
  23935. _ACEOF
  23936. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  23937. $EGREP "free" >/dev/null 2>&1; then
  23938. :
  23939. else
  23940. ac_cv_header_stdc=no
  23941. fi
  23942. rm -f conftest*
  23943. fi
  23944. if test $ac_cv_header_stdc = yes; then
  23945. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  23946. if test "$cross_compiling" = yes; then
  23947. :
  23948. else
  23949. cat >conftest.$ac_ext <<_ACEOF
  23950. /* confdefs.h. */
  23951. _ACEOF
  23952. cat confdefs.h >>conftest.$ac_ext
  23953. cat >>conftest.$ac_ext <<_ACEOF
  23954. /* end confdefs.h. */
  23955. #include <ctype.h>
  23956. #if ((' ' & 0x0FF) == 0x020)
  23957. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  23958. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  23959. #else
  23960. # define ISLOWER(c) \
  23961. (('a' <= (c) && (c) <= 'i') \
  23962. || ('j' <= (c) && (c) <= 'r') \
  23963. || ('s' <= (c) && (c) <= 'z'))
  23964. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  23965. #endif
  23966. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  23967. int
  23968. main ()
  23969. {
  23970. int i;
  23971. for (i = 0; i < 256; i++)
  23972. if (XOR (islower (i), ISLOWER (i))
  23973. || toupper (i) != TOUPPER (i))
  23974. exit(2);
  23975. exit (0);
  23976. }
  23977. _ACEOF
  23978. rm -f conftest$ac_exeext
  23979. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23980. (eval $ac_link) 2>&5
  23981. ac_status=$?
  23982. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23983. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23984. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23985. (eval $ac_try) 2>&5
  23986. ac_status=$?
  23987. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23988. (exit $ac_status); }; }; then
  23989. :
  23990. else
  23991. echo "$as_me: program exited with status $ac_status" >&5
  23992. echo "$as_me: failed program was:" >&5
  23993. sed 's/^/| /' conftest.$ac_ext >&5
  23994. ( exit $ac_status )
  23995. ac_cv_header_stdc=no
  23996. fi
  23997. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23998. fi
  23999. fi
  24000. fi
  24001. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  24002. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  24003. if test $ac_cv_header_stdc = yes; then
  24004. cat >>confdefs.h <<\_ACEOF
  24005. #define STDC_HEADERS 1
  24006. _ACEOF
  24007. fi
  24008. # =================
  24009. # AC_HEADER_DIRENT
  24010. # =================
  24011. ac_header_dirent=no
  24012. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  24013. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  24014. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  24015. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  24016. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  24017. echo $ECHO_N "(cached) $ECHO_C" >&6
  24018. else
  24019. cat >conftest.$ac_ext <<_ACEOF
  24020. /* confdefs.h. */
  24021. _ACEOF
  24022. cat confdefs.h >>conftest.$ac_ext
  24023. cat >>conftest.$ac_ext <<_ACEOF
  24024. /* end confdefs.h. */
  24025. #include <sys/types.h>
  24026. #include <$ac_hdr>
  24027. int
  24028. main ()
  24029. {
  24030. if ((DIR *) 0)
  24031. return 0;
  24032. ;
  24033. return 0;
  24034. }
  24035. _ACEOF
  24036. rm -f conftest.$ac_objext
  24037. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24038. (eval $ac_compile) 2>conftest.er1
  24039. ac_status=$?
  24040. grep -v '^ *+' conftest.er1 >conftest.err
  24041. rm -f conftest.er1
  24042. cat conftest.err >&5
  24043. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24044. (exit $ac_status); } &&
  24045. { ac_try='test -z "$ac_c_werror_flag"
  24046. || test ! -s conftest.err'
  24047. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24048. (eval $ac_try) 2>&5
  24049. ac_status=$?
  24050. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24051. (exit $ac_status); }; } &&
  24052. { ac_try='test -s conftest.$ac_objext'
  24053. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24054. (eval $ac_try) 2>&5
  24055. ac_status=$?
  24056. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24057. (exit $ac_status); }; }; then
  24058. eval "$as_ac_Header=yes"
  24059. else
  24060. echo "$as_me: failed program was:" >&5
  24061. sed 's/^/| /' conftest.$ac_ext >&5
  24062. eval "$as_ac_Header=no"
  24063. fi
  24064. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24065. fi
  24066. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  24067. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  24068. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  24069. cat >>confdefs.h <<_ACEOF
  24070. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  24071. _ACEOF
  24072. ac_header_dirent=$ac_hdr; break
  24073. fi
  24074. done
  24075. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  24076. if test $ac_header_dirent = dirent.h; then
  24077. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  24078. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  24079. if test "${ac_cv_search_opendir+set}" = set; then
  24080. echo $ECHO_N "(cached) $ECHO_C" >&6
  24081. else
  24082. ac_func_search_save_LIBS=$LIBS
  24083. ac_cv_search_opendir=no
  24084. cat >conftest.$ac_ext <<_ACEOF
  24085. /* confdefs.h. */
  24086. _ACEOF
  24087. cat confdefs.h >>conftest.$ac_ext
  24088. cat >>conftest.$ac_ext <<_ACEOF
  24089. /* end confdefs.h. */
  24090. /* Override any gcc2 internal prototype to avoid an error. */
  24091. #ifdef __cplusplus
  24092. extern "C"
  24093. #endif
  24094. /* We use char because int might match the return type of a gcc2
  24095. builtin and then its argument prototype would still apply. */
  24096. char opendir ();
  24097. int
  24098. main ()
  24099. {
  24100. opendir ();
  24101. ;
  24102. return 0;
  24103. }
  24104. _ACEOF
  24105. rm -f conftest.$ac_objext conftest$ac_exeext
  24106. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  24107. (eval $ac_link) 2>conftest.er1
  24108. ac_status=$?
  24109. grep -v '^ *+' conftest.er1 >conftest.err
  24110. rm -f conftest.er1
  24111. cat conftest.err >&5
  24112. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24113. (exit $ac_status); } &&
  24114. { ac_try='test -z "$ac_c_werror_flag"
  24115. || test ! -s conftest.err'
  24116. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24117. (eval $ac_try) 2>&5
  24118. ac_status=$?
  24119. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24120. (exit $ac_status); }; } &&
  24121. { ac_try='test -s conftest$ac_exeext'
  24122. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24123. (eval $ac_try) 2>&5
  24124. ac_status=$?
  24125. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24126. (exit $ac_status); }; }; then
  24127. ac_cv_search_opendir="none required"
  24128. else
  24129. echo "$as_me: failed program was:" >&5
  24130. sed 's/^/| /' conftest.$ac_ext >&5
  24131. fi
  24132. rm -f conftest.err conftest.$ac_objext \
  24133. conftest$ac_exeext conftest.$ac_ext
  24134. if test "$ac_cv_search_opendir" = no; then
  24135. for ac_lib in dir; do
  24136. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  24137. cat >conftest.$ac_ext <<_ACEOF
  24138. /* confdefs.h. */
  24139. _ACEOF
  24140. cat confdefs.h >>conftest.$ac_ext
  24141. cat >>conftest.$ac_ext <<_ACEOF
  24142. /* end confdefs.h. */
  24143. /* Override any gcc2 internal prototype to avoid an error. */
  24144. #ifdef __cplusplus
  24145. extern "C"
  24146. #endif
  24147. /* We use char because int might match the return type of a gcc2
  24148. builtin and then its argument prototype would still apply. */
  24149. char opendir ();
  24150. int
  24151. main ()
  24152. {
  24153. opendir ();
  24154. ;
  24155. return 0;
  24156. }
  24157. _ACEOF
  24158. rm -f conftest.$ac_objext conftest$ac_exeext
  24159. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  24160. (eval $ac_link) 2>conftest.er1
  24161. ac_status=$?
  24162. grep -v '^ *+' conftest.er1 >conftest.err
  24163. rm -f conftest.er1
  24164. cat conftest.err >&5
  24165. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24166. (exit $ac_status); } &&
  24167. { ac_try='test -z "$ac_c_werror_flag"
  24168. || test ! -s conftest.err'
  24169. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24170. (eval $ac_try) 2>&5
  24171. ac_status=$?
  24172. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24173. (exit $ac_status); }; } &&
  24174. { ac_try='test -s conftest$ac_exeext'
  24175. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24176. (eval $ac_try) 2>&5
  24177. ac_status=$?
  24178. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24179. (exit $ac_status); }; }; then
  24180. ac_cv_search_opendir="-l$ac_lib"
  24181. break
  24182. else
  24183. echo "$as_me: failed program was:" >&5
  24184. sed 's/^/| /' conftest.$ac_ext >&5
  24185. fi
  24186. rm -f conftest.err conftest.$ac_objext \
  24187. conftest$ac_exeext conftest.$ac_ext
  24188. done
  24189. fi
  24190. LIBS=$ac_func_search_save_LIBS
  24191. fi
  24192. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  24193. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  24194. if test "$ac_cv_search_opendir" != no; then
  24195. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  24196. fi
  24197. else
  24198. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  24199. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  24200. if test "${ac_cv_search_opendir+set}" = set; then
  24201. echo $ECHO_N "(cached) $ECHO_C" >&6
  24202. else
  24203. ac_func_search_save_LIBS=$LIBS
  24204. ac_cv_search_opendir=no
  24205. cat >conftest.$ac_ext <<_ACEOF
  24206. /* confdefs.h. */
  24207. _ACEOF
  24208. cat confdefs.h >>conftest.$ac_ext
  24209. cat >>conftest.$ac_ext <<_ACEOF
  24210. /* end confdefs.h. */
  24211. /* Override any gcc2 internal prototype to avoid an error. */
  24212. #ifdef __cplusplus
  24213. extern "C"
  24214. #endif
  24215. /* We use char because int might match the return type of a gcc2
  24216. builtin and then its argument prototype would still apply. */
  24217. char opendir ();
  24218. int
  24219. main ()
  24220. {
  24221. opendir ();
  24222. ;
  24223. return 0;
  24224. }
  24225. _ACEOF
  24226. rm -f conftest.$ac_objext conftest$ac_exeext
  24227. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  24228. (eval $ac_link) 2>conftest.er1
  24229. ac_status=$?
  24230. grep -v '^ *+' conftest.er1 >conftest.err
  24231. rm -f conftest.er1
  24232. cat conftest.err >&5
  24233. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24234. (exit $ac_status); } &&
  24235. { ac_try='test -z "$ac_c_werror_flag"
  24236. || test ! -s conftest.err'
  24237. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24238. (eval $ac_try) 2>&5
  24239. ac_status=$?
  24240. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24241. (exit $ac_status); }; } &&
  24242. { ac_try='test -s conftest$ac_exeext'
  24243. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24244. (eval $ac_try) 2>&5
  24245. ac_status=$?
  24246. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24247. (exit $ac_status); }; }; then
  24248. ac_cv_search_opendir="none required"
  24249. else
  24250. echo "$as_me: failed program was:" >&5
  24251. sed 's/^/| /' conftest.$ac_ext >&5
  24252. fi
  24253. rm -f conftest.err conftest.$ac_objext \
  24254. conftest$ac_exeext conftest.$ac_ext
  24255. if test "$ac_cv_search_opendir" = no; then
  24256. for ac_lib in x; do
  24257. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  24258. cat >conftest.$ac_ext <<_ACEOF
  24259. /* confdefs.h. */
  24260. _ACEOF
  24261. cat confdefs.h >>conftest.$ac_ext
  24262. cat >>conftest.$ac_ext <<_ACEOF
  24263. /* end confdefs.h. */
  24264. /* Override any gcc2 internal prototype to avoid an error. */
  24265. #ifdef __cplusplus
  24266. extern "C"
  24267. #endif
  24268. /* We use char because int might match the return type of a gcc2
  24269. builtin and then its argument prototype would still apply. */
  24270. char opendir ();
  24271. int
  24272. main ()
  24273. {
  24274. opendir ();
  24275. ;
  24276. return 0;
  24277. }
  24278. _ACEOF
  24279. rm -f conftest.$ac_objext conftest$ac_exeext
  24280. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  24281. (eval $ac_link) 2>conftest.er1
  24282. ac_status=$?
  24283. grep -v '^ *+' conftest.er1 >conftest.err
  24284. rm -f conftest.er1
  24285. cat conftest.err >&5
  24286. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24287. (exit $ac_status); } &&
  24288. { ac_try='test -z "$ac_c_werror_flag"
  24289. || test ! -s conftest.err'
  24290. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24291. (eval $ac_try) 2>&5
  24292. ac_status=$?
  24293. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24294. (exit $ac_status); }; } &&
  24295. { ac_try='test -s conftest$ac_exeext'
  24296. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24297. (eval $ac_try) 2>&5
  24298. ac_status=$?
  24299. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24300. (exit $ac_status); }; }; then
  24301. ac_cv_search_opendir="-l$ac_lib"
  24302. break
  24303. else
  24304. echo "$as_me: failed program was:" >&5
  24305. sed 's/^/| /' conftest.$ac_ext >&5
  24306. fi
  24307. rm -f conftest.err conftest.$ac_objext \
  24308. conftest$ac_exeext conftest.$ac_ext
  24309. done
  24310. fi
  24311. LIBS=$ac_func_search_save_LIBS
  24312. fi
  24313. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  24314. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  24315. if test "$ac_cv_search_opendir" != no; then
  24316. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  24317. fi
  24318. fi
  24319. # ----------------------------------------------------------------------
  24320. # AC_CHECK_HEADERS Check for list of headers.
  24321. # ----------------------------------------------------------------------
  24322. for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
  24323. setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
  24324. sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h
  24325. do
  24326. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  24327. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  24328. echo "$as_me:$LINENO: checking for $ac_header" >&5
  24329. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  24330. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  24331. echo $ECHO_N "(cached) $ECHO_C" >&6
  24332. fi
  24333. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  24334. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  24335. else
  24336. # Is the header compilable?
  24337. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  24338. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  24339. cat >conftest.$ac_ext <<_ACEOF
  24340. /* confdefs.h. */
  24341. _ACEOF
  24342. cat confdefs.h >>conftest.$ac_ext
  24343. cat >>conftest.$ac_ext <<_ACEOF
  24344. /* end confdefs.h. */
  24345. $ac_includes_default
  24346. #include <$ac_header>
  24347. _ACEOF
  24348. rm -f conftest.$ac_objext
  24349. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24350. (eval $ac_compile) 2>conftest.er1
  24351. ac_status=$?
  24352. grep -v '^ *+' conftest.er1 >conftest.err
  24353. rm -f conftest.er1
  24354. cat conftest.err >&5
  24355. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24356. (exit $ac_status); } &&
  24357. { ac_try='test -z "$ac_c_werror_flag"
  24358. || test ! -s conftest.err'
  24359. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24360. (eval $ac_try) 2>&5
  24361. ac_status=$?
  24362. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24363. (exit $ac_status); }; } &&
  24364. { ac_try='test -s conftest.$ac_objext'
  24365. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24366. (eval $ac_try) 2>&5
  24367. ac_status=$?
  24368. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24369. (exit $ac_status); }; }; then
  24370. ac_header_compiler=yes
  24371. else
  24372. echo "$as_me: failed program was:" >&5
  24373. sed 's/^/| /' conftest.$ac_ext >&5
  24374. ac_header_compiler=no
  24375. fi
  24376. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24377. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  24378. echo "${ECHO_T}$ac_header_compiler" >&6
  24379. # Is the header present?
  24380. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  24381. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  24382. cat >conftest.$ac_ext <<_ACEOF
  24383. /* confdefs.h. */
  24384. _ACEOF
  24385. cat confdefs.h >>conftest.$ac_ext
  24386. cat >>conftest.$ac_ext <<_ACEOF
  24387. /* end confdefs.h. */
  24388. #include <$ac_header>
  24389. _ACEOF
  24390. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  24391. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  24392. ac_status=$?
  24393. grep -v '^ *+' conftest.er1 >conftest.err
  24394. rm -f conftest.er1
  24395. cat conftest.err >&5
  24396. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24397. (exit $ac_status); } >/dev/null; then
  24398. if test -s conftest.err; then
  24399. ac_cpp_err=$ac_c_preproc_warn_flag
  24400. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  24401. else
  24402. ac_cpp_err=
  24403. fi
  24404. else
  24405. ac_cpp_err=yes
  24406. fi
  24407. if test -z "$ac_cpp_err"; then
  24408. ac_header_preproc=yes
  24409. else
  24410. echo "$as_me: failed program was:" >&5
  24411. sed 's/^/| /' conftest.$ac_ext >&5
  24412. ac_header_preproc=no
  24413. fi
  24414. rm -f conftest.err conftest.$ac_ext
  24415. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  24416. echo "${ECHO_T}$ac_header_preproc" >&6
  24417. # So? What about this header?
  24418. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  24419. yes:no: )
  24420. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  24421. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  24422. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  24423. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  24424. ac_header_preproc=yes
  24425. ;;
  24426. no:yes:* )
  24427. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  24428. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  24429. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  24430. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  24431. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  24432. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  24433. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  24434. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  24435. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  24436. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  24437. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  24438. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  24439. (
  24440. cat <<\_ASBOX
  24441. ## ------------------------------------------ ##
  24442. ## Report this to the AC_PACKAGE_NAME lists. ##
  24443. ## ------------------------------------------ ##
  24444. _ASBOX
  24445. ) |
  24446. sed "s/^/$as_me: WARNING: /" >&2
  24447. ;;
  24448. esac
  24449. echo "$as_me:$LINENO: checking for $ac_header" >&5
  24450. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  24451. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  24452. echo $ECHO_N "(cached) $ECHO_C" >&6
  24453. else
  24454. eval "$as_ac_Header=\$ac_header_preproc"
  24455. fi
  24456. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  24457. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  24458. fi
  24459. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  24460. cat >>confdefs.h <<_ACEOF
  24461. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  24462. _ACEOF
  24463. fi
  24464. done
  24465. # --------------------------------------------
  24466. # Verify certain entries from AC_CHECK_HEADERS
  24467. # --------------------------------------------
  24468. for f in sys_types sys_mman sys_param sys_stat sys_wait \
  24469. string errno stdlib memory setjmp
  24470. do eval as_ac_var=\${ac_cv_header_${f}_h+set}
  24471. test "${as_ac_var}" = set || \
  24472. { { echo "$as_me:$LINENO: error: You must have ${f}.h on your system" >&5
  24473. echo "$as_me: error: You must have ${f}.h on your system" >&2;}
  24474. { (exit 1); exit 1; }; }
  24475. done
  24476. # =================
  24477. # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
  24478. # if varargs.h is present define HAVE_VARARGS_H.
  24479. # =================
  24480. for ac_header in stdarg.h varargs.h
  24481. do
  24482. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  24483. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  24484. echo "$as_me:$LINENO: checking for $ac_header" >&5
  24485. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  24486. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  24487. echo $ECHO_N "(cached) $ECHO_C" >&6
  24488. fi
  24489. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  24490. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  24491. else
  24492. # Is the header compilable?
  24493. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  24494. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  24495. cat >conftest.$ac_ext <<_ACEOF
  24496. /* confdefs.h. */
  24497. _ACEOF
  24498. cat confdefs.h >>conftest.$ac_ext
  24499. cat >>conftest.$ac_ext <<_ACEOF
  24500. /* end confdefs.h. */
  24501. $ac_includes_default
  24502. #include <$ac_header>
  24503. _ACEOF
  24504. rm -f conftest.$ac_objext
  24505. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24506. (eval $ac_compile) 2>conftest.er1
  24507. ac_status=$?
  24508. grep -v '^ *+' conftest.er1 >conftest.err
  24509. rm -f conftest.er1
  24510. cat conftest.err >&5
  24511. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24512. (exit $ac_status); } &&
  24513. { ac_try='test -z "$ac_c_werror_flag"
  24514. || test ! -s conftest.err'
  24515. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24516. (eval $ac_try) 2>&5
  24517. ac_status=$?
  24518. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24519. (exit $ac_status); }; } &&
  24520. { ac_try='test -s conftest.$ac_objext'
  24521. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24522. (eval $ac_try) 2>&5
  24523. ac_status=$?
  24524. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24525. (exit $ac_status); }; }; then
  24526. ac_header_compiler=yes
  24527. else
  24528. echo "$as_me: failed program was:" >&5
  24529. sed 's/^/| /' conftest.$ac_ext >&5
  24530. ac_header_compiler=no
  24531. fi
  24532. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24533. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  24534. echo "${ECHO_T}$ac_header_compiler" >&6
  24535. # Is the header present?
  24536. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  24537. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  24538. cat >conftest.$ac_ext <<_ACEOF
  24539. /* confdefs.h. */
  24540. _ACEOF
  24541. cat confdefs.h >>conftest.$ac_ext
  24542. cat >>conftest.$ac_ext <<_ACEOF
  24543. /* end confdefs.h. */
  24544. #include <$ac_header>
  24545. _ACEOF
  24546. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  24547. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  24548. ac_status=$?
  24549. grep -v '^ *+' conftest.er1 >conftest.err
  24550. rm -f conftest.er1
  24551. cat conftest.err >&5
  24552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24553. (exit $ac_status); } >/dev/null; then
  24554. if test -s conftest.err; then
  24555. ac_cpp_err=$ac_c_preproc_warn_flag
  24556. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  24557. else
  24558. ac_cpp_err=
  24559. fi
  24560. else
  24561. ac_cpp_err=yes
  24562. fi
  24563. if test -z "$ac_cpp_err"; then
  24564. ac_header_preproc=yes
  24565. else
  24566. echo "$as_me: failed program was:" >&5
  24567. sed 's/^/| /' conftest.$ac_ext >&5
  24568. ac_header_preproc=no
  24569. fi
  24570. rm -f conftest.err conftest.$ac_ext
  24571. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  24572. echo "${ECHO_T}$ac_header_preproc" >&6
  24573. # So? What about this header?
  24574. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  24575. yes:no: )
  24576. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  24577. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  24578. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  24579. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  24580. ac_header_preproc=yes
  24581. ;;
  24582. no:yes:* )
  24583. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  24584. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  24585. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  24586. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  24587. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  24588. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  24589. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  24590. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  24591. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  24592. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  24593. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  24594. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  24595. (
  24596. cat <<\_ASBOX
  24597. ## ------------------------------------------ ##
  24598. ## Report this to the AC_PACKAGE_NAME lists. ##
  24599. ## ------------------------------------------ ##
  24600. _ASBOX
  24601. ) |
  24602. sed "s/^/$as_me: WARNING: /" >&2
  24603. ;;
  24604. esac
  24605. echo "$as_me:$LINENO: checking for $ac_header" >&5
  24606. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  24607. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  24608. echo $ECHO_N "(cached) $ECHO_C" >&6
  24609. else
  24610. eval "$as_ac_Header=\$ac_header_preproc"
  24611. fi
  24612. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  24613. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  24614. fi
  24615. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  24616. cat >>confdefs.h <<_ACEOF
  24617. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  24618. _ACEOF
  24619. break
  24620. fi
  24621. done
  24622. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  24623. { { echo "$as_me:$LINENO: error: You must have stdarg.h or varargs.h on your system" >&5
  24624. echo "$as_me: error: You must have stdarg.h or varargs.h on your system" >&2;}
  24625. { (exit 1); exit 1; }; }
  24626. fi
  24627. # =================
  24628. # Similarly for the string.h and strings.h headers
  24629. # =================
  24630. for ac_header in string.h strings.h
  24631. do
  24632. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  24633. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  24634. echo "$as_me:$LINENO: checking for $ac_header" >&5
  24635. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  24636. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  24637. echo $ECHO_N "(cached) $ECHO_C" >&6
  24638. fi
  24639. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  24640. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  24641. else
  24642. # Is the header compilable?
  24643. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  24644. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  24645. cat >conftest.$ac_ext <<_ACEOF
  24646. /* confdefs.h. */
  24647. _ACEOF
  24648. cat confdefs.h >>conftest.$ac_ext
  24649. cat >>conftest.$ac_ext <<_ACEOF
  24650. /* end confdefs.h. */
  24651. $ac_includes_default
  24652. #include <$ac_header>
  24653. _ACEOF
  24654. rm -f conftest.$ac_objext
  24655. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24656. (eval $ac_compile) 2>conftest.er1
  24657. ac_status=$?
  24658. grep -v '^ *+' conftest.er1 >conftest.err
  24659. rm -f conftest.er1
  24660. cat conftest.err >&5
  24661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24662. (exit $ac_status); } &&
  24663. { ac_try='test -z "$ac_c_werror_flag"
  24664. || test ! -s conftest.err'
  24665. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24666. (eval $ac_try) 2>&5
  24667. ac_status=$?
  24668. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24669. (exit $ac_status); }; } &&
  24670. { ac_try='test -s conftest.$ac_objext'
  24671. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24672. (eval $ac_try) 2>&5
  24673. ac_status=$?
  24674. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24675. (exit $ac_status); }; }; then
  24676. ac_header_compiler=yes
  24677. else
  24678. echo "$as_me: failed program was:" >&5
  24679. sed 's/^/| /' conftest.$ac_ext >&5
  24680. ac_header_compiler=no
  24681. fi
  24682. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24683. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  24684. echo "${ECHO_T}$ac_header_compiler" >&6
  24685. # Is the header present?
  24686. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  24687. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  24688. cat >conftest.$ac_ext <<_ACEOF
  24689. /* confdefs.h. */
  24690. _ACEOF
  24691. cat confdefs.h >>conftest.$ac_ext
  24692. cat >>conftest.$ac_ext <<_ACEOF
  24693. /* end confdefs.h. */
  24694. #include <$ac_header>
  24695. _ACEOF
  24696. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  24697. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  24698. ac_status=$?
  24699. grep -v '^ *+' conftest.er1 >conftest.err
  24700. rm -f conftest.er1
  24701. cat conftest.err >&5
  24702. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24703. (exit $ac_status); } >/dev/null; then
  24704. if test -s conftest.err; then
  24705. ac_cpp_err=$ac_c_preproc_warn_flag
  24706. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  24707. else
  24708. ac_cpp_err=
  24709. fi
  24710. else
  24711. ac_cpp_err=yes
  24712. fi
  24713. if test -z "$ac_cpp_err"; then
  24714. ac_header_preproc=yes
  24715. else
  24716. echo "$as_me: failed program was:" >&5
  24717. sed 's/^/| /' conftest.$ac_ext >&5
  24718. ac_header_preproc=no
  24719. fi
  24720. rm -f conftest.err conftest.$ac_ext
  24721. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  24722. echo "${ECHO_T}$ac_header_preproc" >&6
  24723. # So? What about this header?
  24724. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  24725. yes:no: )
  24726. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  24727. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  24728. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  24729. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  24730. ac_header_preproc=yes
  24731. ;;
  24732. no:yes:* )
  24733. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  24734. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  24735. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  24736. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  24737. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  24738. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  24739. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  24740. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  24741. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  24742. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  24743. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  24744. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  24745. (
  24746. cat <<\_ASBOX
  24747. ## ------------------------------------------ ##
  24748. ## Report this to the AC_PACKAGE_NAME lists. ##
  24749. ## ------------------------------------------ ##
  24750. _ASBOX
  24751. ) |
  24752. sed "s/^/$as_me: WARNING: /" >&2
  24753. ;;
  24754. esac
  24755. echo "$as_me:$LINENO: checking for $ac_header" >&5
  24756. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  24757. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  24758. echo $ECHO_N "(cached) $ECHO_C" >&6
  24759. else
  24760. eval "$as_ac_Header=\$ac_header_preproc"
  24761. fi
  24762. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  24763. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  24764. fi
  24765. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  24766. cat >>confdefs.h <<_ACEOF
  24767. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  24768. _ACEOF
  24769. break
  24770. fi
  24771. done
  24772. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  24773. { { echo "$as_me:$LINENO: error: You must have string.h or strings.h on your system" >&5
  24774. echo "$as_me: error: You must have string.h or strings.h on your system" >&2;}
  24775. { (exit 1); exit 1; }; }
  24776. fi
  24777. # =================
  24778. # ...and limits headers
  24779. # =================
  24780. for ac_header in limits.h sys/limits.h values.h
  24781. do
  24782. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  24783. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  24784. echo "$as_me:$LINENO: checking for $ac_header" >&5
  24785. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  24786. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  24787. echo $ECHO_N "(cached) $ECHO_C" >&6
  24788. fi
  24789. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  24790. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  24791. else
  24792. # Is the header compilable?
  24793. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  24794. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  24795. cat >conftest.$ac_ext <<_ACEOF
  24796. /* confdefs.h. */
  24797. _ACEOF
  24798. cat confdefs.h >>conftest.$ac_ext
  24799. cat >>conftest.$ac_ext <<_ACEOF
  24800. /* end confdefs.h. */
  24801. $ac_includes_default
  24802. #include <$ac_header>
  24803. _ACEOF
  24804. rm -f conftest.$ac_objext
  24805. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24806. (eval $ac_compile) 2>conftest.er1
  24807. ac_status=$?
  24808. grep -v '^ *+' conftest.er1 >conftest.err
  24809. rm -f conftest.er1
  24810. cat conftest.err >&5
  24811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24812. (exit $ac_status); } &&
  24813. { ac_try='test -z "$ac_c_werror_flag"
  24814. || test ! -s conftest.err'
  24815. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24816. (eval $ac_try) 2>&5
  24817. ac_status=$?
  24818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24819. (exit $ac_status); }; } &&
  24820. { ac_try='test -s conftest.$ac_objext'
  24821. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24822. (eval $ac_try) 2>&5
  24823. ac_status=$?
  24824. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24825. (exit $ac_status); }; }; then
  24826. ac_header_compiler=yes
  24827. else
  24828. echo "$as_me: failed program was:" >&5
  24829. sed 's/^/| /' conftest.$ac_ext >&5
  24830. ac_header_compiler=no
  24831. fi
  24832. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24833. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  24834. echo "${ECHO_T}$ac_header_compiler" >&6
  24835. # Is the header present?
  24836. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  24837. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  24838. cat >conftest.$ac_ext <<_ACEOF
  24839. /* confdefs.h. */
  24840. _ACEOF
  24841. cat confdefs.h >>conftest.$ac_ext
  24842. cat >>conftest.$ac_ext <<_ACEOF
  24843. /* end confdefs.h. */
  24844. #include <$ac_header>
  24845. _ACEOF
  24846. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  24847. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  24848. ac_status=$?
  24849. grep -v '^ *+' conftest.er1 >conftest.err
  24850. rm -f conftest.er1
  24851. cat conftest.err >&5
  24852. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24853. (exit $ac_status); } >/dev/null; then
  24854. if test -s conftest.err; then
  24855. ac_cpp_err=$ac_c_preproc_warn_flag
  24856. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  24857. else
  24858. ac_cpp_err=
  24859. fi
  24860. else
  24861. ac_cpp_err=yes
  24862. fi
  24863. if test -z "$ac_cpp_err"; then
  24864. ac_header_preproc=yes
  24865. else
  24866. echo "$as_me: failed program was:" >&5
  24867. sed 's/^/| /' conftest.$ac_ext >&5
  24868. ac_header_preproc=no
  24869. fi
  24870. rm -f conftest.err conftest.$ac_ext
  24871. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  24872. echo "${ECHO_T}$ac_header_preproc" >&6
  24873. # So? What about this header?
  24874. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  24875. yes:no: )
  24876. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  24877. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  24878. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  24879. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  24880. ac_header_preproc=yes
  24881. ;;
  24882. no:yes:* )
  24883. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  24884. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  24885. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  24886. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  24887. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  24888. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  24889. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  24890. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  24891. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  24892. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  24893. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  24894. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  24895. (
  24896. cat <<\_ASBOX
  24897. ## ------------------------------------------ ##
  24898. ## Report this to the AC_PACKAGE_NAME lists. ##
  24899. ## ------------------------------------------ ##
  24900. _ASBOX
  24901. ) |
  24902. sed "s/^/$as_me: WARNING: /" >&2
  24903. ;;
  24904. esac
  24905. echo "$as_me:$LINENO: checking for $ac_header" >&5
  24906. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  24907. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  24908. echo $ECHO_N "(cached) $ECHO_C" >&6
  24909. else
  24910. eval "$as_ac_Header=\$ac_header_preproc"
  24911. fi
  24912. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  24913. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  24914. fi
  24915. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  24916. cat >>confdefs.h <<_ACEOF
  24917. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  24918. _ACEOF
  24919. break
  24920. fi
  24921. done
  24922. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  24923. { { echo "$as_me:$LINENO: error: You must have one of limits.h, sys/limits.h or values.h" >&5
  24924. echo "$as_me: error: You must have one of limits.h, sys/limits.h or values.h" >&2;}
  24925. { (exit 1); exit 1; }; }
  24926. fi
  24927. # =================
  24928. # ...and int types headers
  24929. # =================
  24930. for ac_header in stdint.h inttypes.h
  24931. do
  24932. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  24933. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  24934. echo "$as_me:$LINENO: checking for $ac_header" >&5
  24935. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  24936. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  24937. echo $ECHO_N "(cached) $ECHO_C" >&6
  24938. fi
  24939. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  24940. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  24941. else
  24942. # Is the header compilable?
  24943. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  24944. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  24945. cat >conftest.$ac_ext <<_ACEOF
  24946. /* confdefs.h. */
  24947. _ACEOF
  24948. cat confdefs.h >>conftest.$ac_ext
  24949. cat >>conftest.$ac_ext <<_ACEOF
  24950. /* end confdefs.h. */
  24951. $ac_includes_default
  24952. #include <$ac_header>
  24953. _ACEOF
  24954. rm -f conftest.$ac_objext
  24955. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24956. (eval $ac_compile) 2>conftest.er1
  24957. ac_status=$?
  24958. grep -v '^ *+' conftest.er1 >conftest.err
  24959. rm -f conftest.er1
  24960. cat conftest.err >&5
  24961. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24962. (exit $ac_status); } &&
  24963. { ac_try='test -z "$ac_c_werror_flag"
  24964. || test ! -s conftest.err'
  24965. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24966. (eval $ac_try) 2>&5
  24967. ac_status=$?
  24968. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24969. (exit $ac_status); }; } &&
  24970. { ac_try='test -s conftest.$ac_objext'
  24971. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24972. (eval $ac_try) 2>&5
  24973. ac_status=$?
  24974. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24975. (exit $ac_status); }; }; then
  24976. ac_header_compiler=yes
  24977. else
  24978. echo "$as_me: failed program was:" >&5
  24979. sed 's/^/| /' conftest.$ac_ext >&5
  24980. ac_header_compiler=no
  24981. fi
  24982. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24983. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  24984. echo "${ECHO_T}$ac_header_compiler" >&6
  24985. # Is the header present?
  24986. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  24987. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  24988. cat >conftest.$ac_ext <<_ACEOF
  24989. /* confdefs.h. */
  24990. _ACEOF
  24991. cat confdefs.h >>conftest.$ac_ext
  24992. cat >>conftest.$ac_ext <<_ACEOF
  24993. /* end confdefs.h. */
  24994. #include <$ac_header>
  24995. _ACEOF
  24996. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  24997. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  24998. ac_status=$?
  24999. grep -v '^ *+' conftest.er1 >conftest.err
  25000. rm -f conftest.er1
  25001. cat conftest.err >&5
  25002. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25003. (exit $ac_status); } >/dev/null; then
  25004. if test -s conftest.err; then
  25005. ac_cpp_err=$ac_c_preproc_warn_flag
  25006. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  25007. else
  25008. ac_cpp_err=
  25009. fi
  25010. else
  25011. ac_cpp_err=yes
  25012. fi
  25013. if test -z "$ac_cpp_err"; then
  25014. ac_header_preproc=yes
  25015. else
  25016. echo "$as_me: failed program was:" >&5
  25017. sed 's/^/| /' conftest.$ac_ext >&5
  25018. ac_header_preproc=no
  25019. fi
  25020. rm -f conftest.err conftest.$ac_ext
  25021. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  25022. echo "${ECHO_T}$ac_header_preproc" >&6
  25023. # So? What about this header?
  25024. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  25025. yes:no: )
  25026. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  25027. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  25028. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  25029. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  25030. ac_header_preproc=yes
  25031. ;;
  25032. no:yes:* )
  25033. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  25034. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  25035. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  25036. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  25037. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  25038. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  25039. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  25040. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  25041. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  25042. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  25043. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  25044. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  25045. (
  25046. cat <<\_ASBOX
  25047. ## ------------------------------------------ ##
  25048. ## Report this to the AC_PACKAGE_NAME lists. ##
  25049. ## ------------------------------------------ ##
  25050. _ASBOX
  25051. ) |
  25052. sed "s/^/$as_me: WARNING: /" >&2
  25053. ;;
  25054. esac
  25055. echo "$as_me:$LINENO: checking for $ac_header" >&5
  25056. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  25057. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  25058. echo $ECHO_N "(cached) $ECHO_C" >&6
  25059. else
  25060. eval "$as_ac_Header=\$ac_header_preproc"
  25061. fi
  25062. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  25063. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  25064. fi
  25065. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  25066. cat >>confdefs.h <<_ACEOF
  25067. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  25068. _ACEOF
  25069. break
  25070. fi
  25071. done
  25072. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  25073. { { echo "$as_me:$LINENO: error: You must have stdint.h or inttypes.h on your system" >&5
  25074. echo "$as_me: error: You must have stdint.h or inttypes.h on your system" >&2;}
  25075. { (exit 1); exit 1; }; }
  25076. fi
  25077. # =================
  25078. # ...and directory read headers
  25079. # =================
  25080. for ac_header in dirent.h ndir.h sys/ndir.h
  25081. do
  25082. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  25083. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  25084. echo "$as_me:$LINENO: checking for $ac_header" >&5
  25085. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  25086. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  25087. echo $ECHO_N "(cached) $ECHO_C" >&6
  25088. fi
  25089. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  25090. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  25091. else
  25092. # Is the header compilable?
  25093. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  25094. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  25095. cat >conftest.$ac_ext <<_ACEOF
  25096. /* confdefs.h. */
  25097. _ACEOF
  25098. cat confdefs.h >>conftest.$ac_ext
  25099. cat >>conftest.$ac_ext <<_ACEOF
  25100. /* end confdefs.h. */
  25101. $ac_includes_default
  25102. #include <$ac_header>
  25103. _ACEOF
  25104. rm -f conftest.$ac_objext
  25105. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25106. (eval $ac_compile) 2>conftest.er1
  25107. ac_status=$?
  25108. grep -v '^ *+' conftest.er1 >conftest.err
  25109. rm -f conftest.er1
  25110. cat conftest.err >&5
  25111. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25112. (exit $ac_status); } &&
  25113. { ac_try='test -z "$ac_c_werror_flag"
  25114. || test ! -s conftest.err'
  25115. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25116. (eval $ac_try) 2>&5
  25117. ac_status=$?
  25118. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25119. (exit $ac_status); }; } &&
  25120. { ac_try='test -s conftest.$ac_objext'
  25121. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25122. (eval $ac_try) 2>&5
  25123. ac_status=$?
  25124. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25125. (exit $ac_status); }; }; then
  25126. ac_header_compiler=yes
  25127. else
  25128. echo "$as_me: failed program was:" >&5
  25129. sed 's/^/| /' conftest.$ac_ext >&5
  25130. ac_header_compiler=no
  25131. fi
  25132. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  25133. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  25134. echo "${ECHO_T}$ac_header_compiler" >&6
  25135. # Is the header present?
  25136. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  25137. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  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 <$ac_header>
  25145. _ACEOF
  25146. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  25147. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  25148. ac_status=$?
  25149. grep -v '^ *+' conftest.er1 >conftest.err
  25150. rm -f conftest.er1
  25151. cat conftest.err >&5
  25152. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25153. (exit $ac_status); } >/dev/null; then
  25154. if test -s conftest.err; then
  25155. ac_cpp_err=$ac_c_preproc_warn_flag
  25156. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  25157. else
  25158. ac_cpp_err=
  25159. fi
  25160. else
  25161. ac_cpp_err=yes
  25162. fi
  25163. if test -z "$ac_cpp_err"; then
  25164. ac_header_preproc=yes
  25165. else
  25166. echo "$as_me: failed program was:" >&5
  25167. sed 's/^/| /' conftest.$ac_ext >&5
  25168. ac_header_preproc=no
  25169. fi
  25170. rm -f conftest.err conftest.$ac_ext
  25171. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  25172. echo "${ECHO_T}$ac_header_preproc" >&6
  25173. # So? What about this header?
  25174. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  25175. yes:no: )
  25176. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  25177. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  25178. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  25179. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  25180. ac_header_preproc=yes
  25181. ;;
  25182. no:yes:* )
  25183. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  25184. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  25185. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  25186. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  25187. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  25188. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  25189. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  25190. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  25191. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  25192. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  25193. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  25194. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  25195. (
  25196. cat <<\_ASBOX
  25197. ## ------------------------------------------ ##
  25198. ## Report this to the AC_PACKAGE_NAME lists. ##
  25199. ## ------------------------------------------ ##
  25200. _ASBOX
  25201. ) |
  25202. sed "s/^/$as_me: WARNING: /" >&2
  25203. ;;
  25204. esac
  25205. echo "$as_me:$LINENO: checking for $ac_header" >&5
  25206. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  25207. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  25208. echo $ECHO_N "(cached) $ECHO_C" >&6
  25209. else
  25210. eval "$as_ac_Header=\$ac_header_preproc"
  25211. fi
  25212. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  25213. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  25214. fi
  25215. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  25216. cat >>confdefs.h <<_ACEOF
  25217. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  25218. _ACEOF
  25219. break
  25220. fi
  25221. done
  25222. # ----------------------------------------------------------------------
  25223. # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
  25224. # ----------------------------------------------------------------------
  25225. echo "$as_me:$LINENO: checking for pathfind in -lgen" >&5
  25226. echo $ECHO_N "checking for pathfind in -lgen... $ECHO_C" >&6
  25227. if test "${ac_cv_lib_gen_pathfind+set}" = set; then
  25228. echo $ECHO_N "(cached) $ECHO_C" >&6
  25229. else
  25230. ac_check_lib_save_LIBS=$LIBS
  25231. LIBS="-lgen $LIBS"
  25232. cat >conftest.$ac_ext <<_ACEOF
  25233. /* confdefs.h. */
  25234. _ACEOF
  25235. cat confdefs.h >>conftest.$ac_ext
  25236. cat >>conftest.$ac_ext <<_ACEOF
  25237. /* end confdefs.h. */
  25238. /* Override any gcc2 internal prototype to avoid an error. */
  25239. #ifdef __cplusplus
  25240. extern "C"
  25241. #endif
  25242. /* We use char because int might match the return type of a gcc2
  25243. builtin and then its argument prototype would still apply. */
  25244. char pathfind ();
  25245. int
  25246. main ()
  25247. {
  25248. pathfind ();
  25249. ;
  25250. return 0;
  25251. }
  25252. _ACEOF
  25253. rm -f conftest.$ac_objext conftest$ac_exeext
  25254. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25255. (eval $ac_link) 2>conftest.er1
  25256. ac_status=$?
  25257. grep -v '^ *+' conftest.er1 >conftest.err
  25258. rm -f conftest.er1
  25259. cat conftest.err >&5
  25260. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25261. (exit $ac_status); } &&
  25262. { ac_try='test -z "$ac_c_werror_flag"
  25263. || test ! -s conftest.err'
  25264. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25265. (eval $ac_try) 2>&5
  25266. ac_status=$?
  25267. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25268. (exit $ac_status); }; } &&
  25269. { ac_try='test -s conftest$ac_exeext'
  25270. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25271. (eval $ac_try) 2>&5
  25272. ac_status=$?
  25273. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25274. (exit $ac_status); }; }; then
  25275. ac_cv_lib_gen_pathfind=yes
  25276. else
  25277. echo "$as_me: failed program was:" >&5
  25278. sed 's/^/| /' conftest.$ac_ext >&5
  25279. ac_cv_lib_gen_pathfind=no
  25280. fi
  25281. rm -f conftest.err conftest.$ac_objext \
  25282. conftest$ac_exeext conftest.$ac_ext
  25283. LIBS=$ac_check_lib_save_LIBS
  25284. fi
  25285. echo "$as_me:$LINENO: result: $ac_cv_lib_gen_pathfind" >&5
  25286. echo "${ECHO_T}$ac_cv_lib_gen_pathfind" >&6
  25287. if test $ac_cv_lib_gen_pathfind = yes; then
  25288. cat >>confdefs.h <<_ACEOF
  25289. #define HAVE_LIBGEN 1
  25290. _ACEOF
  25291. LIBS="-lgen $LIBS"
  25292. fi
  25293. for ac_func in mmap
  25294. do
  25295. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  25296. echo "$as_me:$LINENO: checking for $ac_func" >&5
  25297. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  25298. if eval "test \"\${$as_ac_var+set}\" = set"; then
  25299. echo $ECHO_N "(cached) $ECHO_C" >&6
  25300. else
  25301. cat >conftest.$ac_ext <<_ACEOF
  25302. /* confdefs.h. */
  25303. _ACEOF
  25304. cat confdefs.h >>conftest.$ac_ext
  25305. cat >>conftest.$ac_ext <<_ACEOF
  25306. /* end confdefs.h. */
  25307. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  25308. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  25309. #define $ac_func innocuous_$ac_func
  25310. /* System header to define __stub macros and hopefully few prototypes,
  25311. which can conflict with char $ac_func (); below.
  25312. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  25313. <limits.h> exists even on freestanding compilers. */
  25314. #ifdef __STDC__
  25315. # include <limits.h>
  25316. #else
  25317. # include <assert.h>
  25318. #endif
  25319. #undef $ac_func
  25320. /* Override any gcc2 internal prototype to avoid an error. */
  25321. #ifdef __cplusplus
  25322. extern "C"
  25323. {
  25324. #endif
  25325. /* We use char because int might match the return type of a gcc2
  25326. builtin and then its argument prototype would still apply. */
  25327. char $ac_func ();
  25328. /* The GNU C library defines this for functions which it implements
  25329. to always fail with ENOSYS. Some functions are actually named
  25330. something starting with __ and the normal name is an alias. */
  25331. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  25332. choke me
  25333. #else
  25334. char (*f) () = $ac_func;
  25335. #endif
  25336. #ifdef __cplusplus
  25337. }
  25338. #endif
  25339. int
  25340. main ()
  25341. {
  25342. return f != $ac_func;
  25343. ;
  25344. return 0;
  25345. }
  25346. _ACEOF
  25347. rm -f conftest.$ac_objext conftest$ac_exeext
  25348. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25349. (eval $ac_link) 2>conftest.er1
  25350. ac_status=$?
  25351. grep -v '^ *+' conftest.er1 >conftest.err
  25352. rm -f conftest.er1
  25353. cat conftest.err >&5
  25354. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25355. (exit $ac_status); } &&
  25356. { ac_try='test -z "$ac_c_werror_flag"
  25357. || test ! -s conftest.err'
  25358. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25359. (eval $ac_try) 2>&5
  25360. ac_status=$?
  25361. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25362. (exit $ac_status); }; } &&
  25363. { ac_try='test -s conftest$ac_exeext'
  25364. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25365. (eval $ac_try) 2>&5
  25366. ac_status=$?
  25367. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25368. (exit $ac_status); }; }; then
  25369. eval "$as_ac_var=yes"
  25370. else
  25371. echo "$as_me: failed program was:" >&5
  25372. sed 's/^/| /' conftest.$ac_ext >&5
  25373. eval "$as_ac_var=no"
  25374. fi
  25375. rm -f conftest.err conftest.$ac_objext \
  25376. conftest$ac_exeext conftest.$ac_ext
  25377. fi
  25378. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  25379. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  25380. if test `eval echo '${'$as_ac_var'}'` = yes; then
  25381. cat >>confdefs.h <<_ACEOF
  25382. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  25383. _ACEOF
  25384. fi
  25385. done
  25386. NEED_LIBOPTS_DIR=true
  25387. fi
  25388. fi;
  25389. if test -z "${NEED_LIBOPTS_DIR}" ; then
  25390. echo "$as_me:$LINENO: checking whether autoopts-config can be found" >&5
  25391. echo $ECHO_N "checking whether autoopts-config can be found... $ECHO_C" >&6
  25392. # Check whether --with-autoopts-config or --without-autoopts-config was given.
  25393. if test "${with_autoopts_config+set}" = set; then
  25394. withval="$with_autoopts_config"
  25395. lo_cv_with_autoopts_config=${with_autoopts_config}
  25396. else
  25397. echo "$as_me:$LINENO: checking whether autoopts-config is specified" >&5
  25398. echo $ECHO_N "checking whether autoopts-config is specified... $ECHO_C" >&6
  25399. if test "${lo_cv_with_autoopts_config+set}" = set; then
  25400. echo $ECHO_N "(cached) $ECHO_C" >&6
  25401. else
  25402. lo_cv_with_autoopts_config=autoopts-config
  25403. fi
  25404. echo "$as_me:$LINENO: result: $lo_cv_with_autoopts_config" >&5
  25405. echo "${ECHO_T}$lo_cv_with_autoopts_config" >&6
  25406. fi; # end of AC_ARG_WITH
  25407. if test "${lo_cv_test_autoopts+set}" = set; then
  25408. echo $ECHO_N "(cached) $ECHO_C" >&6
  25409. else
  25410. aoconfig=${lo_cv_with_autoopts_config}
  25411. lo_cv_test_autoopts=`${aoconfig} --libs` 2> /dev/null
  25412. if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
  25413. then lo_cv_test_autoopts=no ; fi
  25414. fi
  25415. # end of CACHE_VAL
  25416. echo "$as_me:$LINENO: result: ${lo_cv_test_autoopts}" >&5
  25417. echo "${ECHO_T}${lo_cv_test_autoopts}" >&6
  25418. if test "X${lo_cv_test_autoopts}" != Xno
  25419. then
  25420. LIBOPTS_LDADD="${lo_cv_test_autoopts}"
  25421. LIBOPTS_CFLAGS="`${aoconfig} --cflags`"
  25422. else
  25423. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  25424. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  25425. # Check to see if a reg expr header is specified.
  25426. # Check whether --with-regex-header or --without-regex-header was given.
  25427. if test "${with_regex_header+set}" = set; then
  25428. withval="$with_regex_header"
  25429. libopts_cv_with_regex_header=${with_regex_header}
  25430. else
  25431. echo "$as_me:$LINENO: checking whether a reg expr header is specified" >&5
  25432. echo $ECHO_N "checking whether a reg expr header is specified... $ECHO_C" >&6
  25433. if test "${libopts_cv_with_regex_header+set}" = set; then
  25434. echo $ECHO_N "(cached) $ECHO_C" >&6
  25435. else
  25436. libopts_cv_with_regex_header=no
  25437. fi
  25438. echo "$as_me:$LINENO: result: $libopts_cv_with_regex_header" >&5
  25439. echo "${ECHO_T}$libopts_cv_with_regex_header" >&6
  25440. fi; # end of AC_ARG_WITH
  25441. if test "X${libopts_cv_with_regex_header}" != Xno
  25442. then
  25443. cat >>confdefs.h <<_ACEOF
  25444. #define REGEX_HEADER <${libopts_cv_with_regex_header}>
  25445. _ACEOF
  25446. else
  25447. cat >>confdefs.h <<\_ACEOF
  25448. #define REGEX_HEADER <regex.h>
  25449. _ACEOF
  25450. fi
  25451. # Check to see if a working libregex can be found.
  25452. # Check whether --with-libregex or --without-libregex was given.
  25453. if test "${with_libregex+set}" = set; then
  25454. withval="$with_libregex"
  25455. libopts_cv_with_libregex_root=${with_libregex}
  25456. else
  25457. echo "$as_me:$LINENO: checking whether with-libregex was specified" >&5
  25458. echo $ECHO_N "checking whether with-libregex was specified... $ECHO_C" >&6
  25459. if test "${libopts_cv_with_libregex_root+set}" = set; then
  25460. echo $ECHO_N "(cached) $ECHO_C" >&6
  25461. else
  25462. libopts_cv_with_libregex_root=no
  25463. fi
  25464. echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_root" >&5
  25465. echo "${ECHO_T}$libopts_cv_with_libregex_root" >&6
  25466. fi; # end of AC_ARG_WITH libregex
  25467. if test "${with_libguile+set}" = set && \
  25468. test "${withval}" = no
  25469. then ## disabled by request
  25470. libopts_cv_with_libregex_root=no
  25471. libopts_cv_with_libregex_cflags=no
  25472. libopts_cv_with_libregex_libs=no
  25473. else
  25474. # Check whether --with-libregex-cflags or --without-libregex-cflags was given.
  25475. if test "${with_libregex_cflags+set}" = set; then
  25476. withval="$with_libregex_cflags"
  25477. libopts_cv_with_libregex_cflags=${with_regex_cflags}
  25478. else
  25479. echo "$as_me:$LINENO: checking whether with-libregex-cflags was specified" >&5
  25480. echo $ECHO_N "checking whether with-libregex-cflags was specified... $ECHO_C" >&6
  25481. if test "${libopts_cv_with_libregex_cflags+set}" = set; then
  25482. echo $ECHO_N "(cached) $ECHO_C" >&6
  25483. else
  25484. libopts_cv_with_libregex_cflags=no
  25485. fi
  25486. echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_cflags" >&5
  25487. echo "${ECHO_T}$libopts_cv_with_libregex_cflags" >&6
  25488. fi; # end of AC_ARG_WITH libregex-cflags
  25489. # Check whether --with-libregex-libs or --without-libregex-libs was given.
  25490. if test "${with_libregex_libs+set}" = set; then
  25491. withval="$with_libregex_libs"
  25492. libopts_cv_with_libregex_libs=${with_regex_libs}
  25493. else
  25494. echo "$as_me:$LINENO: checking whether with-libregex-libs was specified" >&5
  25495. echo $ECHO_N "checking whether with-libregex-libs was specified... $ECHO_C" >&6
  25496. if test "${libopts_cv_with_libregex_libs+set}" = set; then
  25497. echo $ECHO_N "(cached) $ECHO_C" >&6
  25498. else
  25499. libopts_cv_with_libregex_libs=no
  25500. fi
  25501. echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_libs" >&5
  25502. echo "${ECHO_T}$libopts_cv_with_libregex_libs" >&6
  25503. fi; # end of AC_ARG_WITH libregex-libs
  25504. case "X${libopts_cv_with_libregex_cflags}" in
  25505. Xyes|Xno|X )
  25506. case "X${libopts_cv_with_libregex_root}" in
  25507. Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
  25508. * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
  25509. esac
  25510. esac
  25511. case "X${libopts_cv_with_libregex_libs}" in
  25512. Xyes|Xno|X )
  25513. case "X${libopts_cv_with_libregex_root}" in
  25514. Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
  25515. * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex";;
  25516. esac
  25517. esac
  25518. libopts_save_CPPFLAGS="${CPPFLAGS}"
  25519. libopts_save_LIBS="${LIBS}"
  25520. fi ## disabled by request
  25521. case "X${libopts_cv_with_libregex_cflags}" in
  25522. Xyes|Xno|X )
  25523. libopts_cv_with_libregex_cflags="" ;;
  25524. * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
  25525. esac
  25526. case "X${libopts_cv_with_libregex_libs}" in
  25527. Xyes|Xno|X )
  25528. libopts_cv_with_libregex_libs="" ;;
  25529. * )
  25530. LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
  25531. esac
  25532. LIBREGEX_CFLAGS=""
  25533. LIBREGEX_LIBS=""
  25534. echo "$as_me:$LINENO: checking whether libregex functions properly" >&5
  25535. echo $ECHO_N "checking whether libregex functions properly... $ECHO_C" >&6
  25536. if test "${libopts_cv_with_libregex+set}" = set; then
  25537. echo $ECHO_N "(cached) $ECHO_C" >&6
  25538. else
  25539. if test "$cross_compiling" = yes; then
  25540. libopts_cv_with_libregex=no
  25541. else
  25542. cat >conftest.$ac_ext <<_ACEOF
  25543. /* confdefs.h. */
  25544. _ACEOF
  25545. cat confdefs.h >>conftest.$ac_ext
  25546. cat >>conftest.$ac_ext <<_ACEOF
  25547. /* end confdefs.h. */
  25548. #include <stdio.h>
  25549. #include <stdlib.h>
  25550. #include <sys/types.h>
  25551. #include REGEX_HEADER
  25552. static regex_t re;
  25553. void comp_re( const char* pzPat ) {
  25554. int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
  25555. if (res == 0) return;
  25556. exit( res ); }
  25557. int main() {
  25558. regmatch_t m[2];
  25559. comp_re( "^.*\$" );
  25560. comp_re( "()|no.*" );
  25561. comp_re( "." );
  25562. if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
  25563. if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
  25564. fputs( "error: regex -->.<-- did not match\n", stderr );
  25565. return 1;
  25566. }
  25567. return 0; }
  25568. _ACEOF
  25569. rm -f conftest$ac_exeext
  25570. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25571. (eval $ac_link) 2>&5
  25572. ac_status=$?
  25573. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25574. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  25575. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25576. (eval $ac_try) 2>&5
  25577. ac_status=$?
  25578. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25579. (exit $ac_status); }; }; then
  25580. libopts_cv_with_libregex=yes
  25581. else
  25582. echo "$as_me: program exited with status $ac_status" >&5
  25583. echo "$as_me: failed program was:" >&5
  25584. sed 's/^/| /' conftest.$ac_ext >&5
  25585. ( exit $ac_status )
  25586. libopts_cv_with_libregex=no
  25587. fi
  25588. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  25589. fi # end of AC_TRY_RUN
  25590. fi
  25591. # end of AC_CACHE_VAL for libopts_cv_with_libregex
  25592. echo "$as_me:$LINENO: result: ${libopts_cv_with_libregex}" >&5
  25593. echo "${ECHO_T}${libopts_cv_with_libregex}" >&6
  25594. if test "X${libopts_cv_with_libregex}" = Xno
  25595. then
  25596. CPPFLAGS="${libopts_save_CPPFLAGS}"
  25597. LIBS="${libopts_save_LIBS}"
  25598. cat >&2 <<'_EOF_'
  25599. I cannot detect POSIX compliant regcomp/regexec routines.
  25600. These are required for AutoGen to work correctly. If you have
  25601. such a library present on your system, you must specify it by
  25602. setting the LIBS environment variable, e.g., "LIBS='-lregex'".
  25603. If you do not have such a library on your system, then you should
  25604. download and install, for example, the one from:
  25605. ftp://ftp.gnu.org/gnu/rx/
  25606. _EOF_
  25607. { { echo "$as_me:$LINENO: error: Cannot find working POSIX regex library" >&5
  25608. echo "$as_me: error: Cannot find working POSIX regex library" >&2;}
  25609. { (exit 1); exit 1; }; }
  25610. fi
  25611. # Check to see if pathfind(3) works.
  25612. echo "$as_me:$LINENO: checking whether pathfind(3) works" >&5
  25613. echo $ECHO_N "checking whether pathfind(3) works... $ECHO_C" >&6
  25614. if test "${libopts_cv_run_pathfind+set}" = set; then
  25615. echo $ECHO_N "(cached) $ECHO_C" >&6
  25616. else
  25617. if test "$cross_compiling" = yes; then
  25618. libopts_cv_run_pathfind=no
  25619. else
  25620. cat >conftest.$ac_ext <<_ACEOF
  25621. /* confdefs.h. */
  25622. _ACEOF
  25623. cat confdefs.h >>conftest.$ac_ext
  25624. cat >>conftest.$ac_ext <<_ACEOF
  25625. /* end confdefs.h. */
  25626. #include <string.h>
  25627. #include <stdlib.h>
  25628. int main (int argc, char** argv) {
  25629. char* pz = pathfind( getenv( "PATH" ), "sh", "x" );
  25630. return (pz == 0) ? 1 : 0;
  25631. }
  25632. _ACEOF
  25633. rm -f conftest$ac_exeext
  25634. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25635. (eval $ac_link) 2>&5
  25636. ac_status=$?
  25637. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25638. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  25639. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25640. (eval $ac_try) 2>&5
  25641. ac_status=$?
  25642. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25643. (exit $ac_status); }; }; then
  25644. libopts_cv_run_pathfind=yes
  25645. else
  25646. echo "$as_me: program exited with status $ac_status" >&5
  25647. echo "$as_me: failed program was:" >&5
  25648. sed 's/^/| /' conftest.$ac_ext >&5
  25649. ( exit $ac_status )
  25650. libopts_cv_run_pathfind=no
  25651. fi
  25652. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  25653. fi # end of TRY_RUN
  25654. fi
  25655. # end of AC_CACHE_VAL for libopts_cv_run_pathfind
  25656. echo "$as_me:$LINENO: result: ${libopts_cv_run_pathfind}" >&5
  25657. echo "${ECHO_T}${libopts_cv_run_pathfind}" >&6
  25658. if test "X${libopts_cv_run_pathfind}" != Xno
  25659. then
  25660. cat >>confdefs.h <<\_ACEOF
  25661. #define HAVE_PATHFIND 1
  25662. _ACEOF
  25663. fi
  25664. # Check to see if strftime() works.
  25665. echo "$as_me:$LINENO: checking whether strftime() works" >&5
  25666. echo $ECHO_N "checking whether strftime() works... $ECHO_C" >&6
  25667. if test "${libopts_cv_run_strftime+set}" = set; then
  25668. echo $ECHO_N "(cached) $ECHO_C" >&6
  25669. else
  25670. if test "$cross_compiling" = yes; then
  25671. libopts_cv_run_strftime=no
  25672. else
  25673. cat >conftest.$ac_ext <<_ACEOF
  25674. /* confdefs.h. */
  25675. _ACEOF
  25676. cat confdefs.h >>conftest.$ac_ext
  25677. cat >>conftest.$ac_ext <<_ACEOF
  25678. /* end confdefs.h. */
  25679. #include <time.h>
  25680. #include <string.h>
  25681. char t_buf[ 64 ];
  25682. int main() {
  25683. static const char z[] = "Thursday Aug 28 240";
  25684. struct tm tm;
  25685. tm.tm_sec = 36; /* seconds after the minute [0, 61] */
  25686. tm.tm_min = 44; /* minutes after the hour [0, 59] */
  25687. tm.tm_hour = 12; /* hour since midnight [0, 23] */
  25688. tm.tm_mday = 28; /* day of the month [1, 31] */
  25689. tm.tm_mon = 7; /* months since January [0, 11] */
  25690. tm.tm_year = 86; /* years since 1900 */
  25691. tm.tm_wday = 4; /* days since Sunday [0, 6] */
  25692. tm.tm_yday = 239; /* days since January 1 [0, 365] */
  25693. tm.tm_isdst = 1; /* flag for daylight savings time */
  25694. strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
  25695. return (strcmp( t_buf, z ) != 0); }
  25696. _ACEOF
  25697. rm -f conftest$ac_exeext
  25698. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25699. (eval $ac_link) 2>&5
  25700. ac_status=$?
  25701. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25702. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  25703. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25704. (eval $ac_try) 2>&5
  25705. ac_status=$?
  25706. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25707. (exit $ac_status); }; }; then
  25708. libopts_cv_run_strftime=yes
  25709. else
  25710. echo "$as_me: program exited with status $ac_status" >&5
  25711. echo "$as_me: failed program was:" >&5
  25712. sed 's/^/| /' conftest.$ac_ext >&5
  25713. ( exit $ac_status )
  25714. libopts_cv_run_strftime=no
  25715. fi
  25716. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  25717. fi # end of TRY_RUN
  25718. fi
  25719. # end of AC_CACHE_VAL for libopts_cv_run_strftime
  25720. echo "$as_me:$LINENO: result: ${libopts_cv_run_strftime}" >&5
  25721. echo "${ECHO_T}${libopts_cv_run_strftime}" >&6
  25722. if test "X${libopts_cv_run_strftime}" != Xno
  25723. then
  25724. cat >>confdefs.h <<\_ACEOF
  25725. #define HAVE_STRFTIME 1
  25726. _ACEOF
  25727. fi
  25728. # Check to see if fopen accepts "b" mode.
  25729. echo "$as_me:$LINENO: checking whether fopen accepts \"b\" mode" >&5
  25730. echo $ECHO_N "checking whether fopen accepts \"b\" mode... $ECHO_C" >&6
  25731. if test "${libopts_cv_run_fopen_binary+set}" = set; then
  25732. echo $ECHO_N "(cached) $ECHO_C" >&6
  25733. else
  25734. if test "$cross_compiling" = yes; then
  25735. libopts_cv_run_fopen_binary=no
  25736. else
  25737. cat >conftest.$ac_ext <<_ACEOF
  25738. /* confdefs.h. */
  25739. _ACEOF
  25740. cat confdefs.h >>conftest.$ac_ext
  25741. cat >>conftest.$ac_ext <<_ACEOF
  25742. /* end confdefs.h. */
  25743. #include <stdio.h>
  25744. int main (int argc, char** argv) {
  25745. FILE* fp = fopen("conftest.$ac_ext", "rb");
  25746. return (fp == NULL) ? 1 : fclose(fp); }
  25747. _ACEOF
  25748. rm -f conftest$ac_exeext
  25749. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25750. (eval $ac_link) 2>&5
  25751. ac_status=$?
  25752. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25753. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  25754. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25755. (eval $ac_try) 2>&5
  25756. ac_status=$?
  25757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25758. (exit $ac_status); }; }; then
  25759. libopts_cv_run_fopen_binary=yes
  25760. else
  25761. echo "$as_me: program exited with status $ac_status" >&5
  25762. echo "$as_me: failed program was:" >&5
  25763. sed 's/^/| /' conftest.$ac_ext >&5
  25764. ( exit $ac_status )
  25765. libopts_cv_run_fopen_binary=no
  25766. fi
  25767. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  25768. fi # end of TRY_RUN
  25769. fi
  25770. # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
  25771. echo "$as_me:$LINENO: result: ${libopts_cv_run_fopen_binary}" >&5
  25772. echo "${ECHO_T}${libopts_cv_run_fopen_binary}" >&6
  25773. if test "X${libopts_cv_run_fopen_binary}" != Xno
  25774. then
  25775. cat >>confdefs.h <<\_ACEOF
  25776. #define FOPEN_BINARY_FLAG "b"
  25777. _ACEOF
  25778. else
  25779. cat >>confdefs.h <<\_ACEOF
  25780. #define FOPEN_BINARY_FLAG ""
  25781. _ACEOF
  25782. fi
  25783. # Check to see if fopen accepts "t" mode.
  25784. echo "$as_me:$LINENO: checking whether fopen accepts \"t\" mode" >&5
  25785. echo $ECHO_N "checking whether fopen accepts \"t\" mode... $ECHO_C" >&6
  25786. if test "${libopts_cv_run_fopen_text+set}" = set; then
  25787. echo $ECHO_N "(cached) $ECHO_C" >&6
  25788. else
  25789. if test "$cross_compiling" = yes; then
  25790. libopts_cv_run_fopen_text=no
  25791. else
  25792. cat >conftest.$ac_ext <<_ACEOF
  25793. /* confdefs.h. */
  25794. _ACEOF
  25795. cat confdefs.h >>conftest.$ac_ext
  25796. cat >>conftest.$ac_ext <<_ACEOF
  25797. /* end confdefs.h. */
  25798. #include <stdio.h>
  25799. int main (int argc, char** argv) {
  25800. FILE* fp = fopen("conftest.$ac_ext", "rt");
  25801. return (fp == NULL) ? 1 : fclose(fp); }
  25802. _ACEOF
  25803. rm -f conftest$ac_exeext
  25804. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25805. (eval $ac_link) 2>&5
  25806. ac_status=$?
  25807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25808. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  25809. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25810. (eval $ac_try) 2>&5
  25811. ac_status=$?
  25812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25813. (exit $ac_status); }; }; then
  25814. libopts_cv_run_fopen_text=yes
  25815. else
  25816. echo "$as_me: program exited with status $ac_status" >&5
  25817. echo "$as_me: failed program was:" >&5
  25818. sed 's/^/| /' conftest.$ac_ext >&5
  25819. ( exit $ac_status )
  25820. libopts_cv_run_fopen_text=no
  25821. fi
  25822. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  25823. fi # end of TRY_RUN
  25824. fi
  25825. # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
  25826. echo "$as_me:$LINENO: result: ${libopts_cv_run_fopen_text}" >&5
  25827. echo "${ECHO_T}${libopts_cv_run_fopen_text}" >&6
  25828. if test "X${libopts_cv_run_fopen_text}" != Xno
  25829. then
  25830. cat >>confdefs.h <<\_ACEOF
  25831. #define FOPEN_TEXT_FLAG "t"
  25832. _ACEOF
  25833. else
  25834. cat >>confdefs.h <<\_ACEOF
  25835. #define FOPEN_TEXT_FLAG ""
  25836. _ACEOF
  25837. fi
  25838. # ----------------------------------------------------------------------
  25839. # Check for standard headers.
  25840. # ----------------------------------------------------------------------
  25841. # =================
  25842. # AC_HEADER_STDC
  25843. # =================
  25844. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  25845. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  25846. if test "${ac_cv_header_stdc+set}" = set; then
  25847. echo $ECHO_N "(cached) $ECHO_C" >&6
  25848. else
  25849. cat >conftest.$ac_ext <<_ACEOF
  25850. /* confdefs.h. */
  25851. _ACEOF
  25852. cat confdefs.h >>conftest.$ac_ext
  25853. cat >>conftest.$ac_ext <<_ACEOF
  25854. /* end confdefs.h. */
  25855. #include <stdlib.h>
  25856. #include <stdarg.h>
  25857. #include <string.h>
  25858. #include <float.h>
  25859. int
  25860. main ()
  25861. {
  25862. ;
  25863. return 0;
  25864. }
  25865. _ACEOF
  25866. rm -f conftest.$ac_objext
  25867. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25868. (eval $ac_compile) 2>conftest.er1
  25869. ac_status=$?
  25870. grep -v '^ *+' conftest.er1 >conftest.err
  25871. rm -f conftest.er1
  25872. cat conftest.err >&5
  25873. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25874. (exit $ac_status); } &&
  25875. { ac_try='test -z "$ac_c_werror_flag"
  25876. || test ! -s conftest.err'
  25877. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25878. (eval $ac_try) 2>&5
  25879. ac_status=$?
  25880. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25881. (exit $ac_status); }; } &&
  25882. { ac_try='test -s conftest.$ac_objext'
  25883. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25884. (eval $ac_try) 2>&5
  25885. ac_status=$?
  25886. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25887. (exit $ac_status); }; }; then
  25888. ac_cv_header_stdc=yes
  25889. else
  25890. echo "$as_me: failed program was:" >&5
  25891. sed 's/^/| /' conftest.$ac_ext >&5
  25892. ac_cv_header_stdc=no
  25893. fi
  25894. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  25895. if test $ac_cv_header_stdc = yes; then
  25896. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  25897. cat >conftest.$ac_ext <<_ACEOF
  25898. /* confdefs.h. */
  25899. _ACEOF
  25900. cat confdefs.h >>conftest.$ac_ext
  25901. cat >>conftest.$ac_ext <<_ACEOF
  25902. /* end confdefs.h. */
  25903. #include <string.h>
  25904. _ACEOF
  25905. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  25906. $EGREP "memchr" >/dev/null 2>&1; then
  25907. :
  25908. else
  25909. ac_cv_header_stdc=no
  25910. fi
  25911. rm -f conftest*
  25912. fi
  25913. if test $ac_cv_header_stdc = yes; then
  25914. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  25915. cat >conftest.$ac_ext <<_ACEOF
  25916. /* confdefs.h. */
  25917. _ACEOF
  25918. cat confdefs.h >>conftest.$ac_ext
  25919. cat >>conftest.$ac_ext <<_ACEOF
  25920. /* end confdefs.h. */
  25921. #include <stdlib.h>
  25922. _ACEOF
  25923. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  25924. $EGREP "free" >/dev/null 2>&1; then
  25925. :
  25926. else
  25927. ac_cv_header_stdc=no
  25928. fi
  25929. rm -f conftest*
  25930. fi
  25931. if test $ac_cv_header_stdc = yes; then
  25932. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  25933. if test "$cross_compiling" = yes; then
  25934. :
  25935. else
  25936. cat >conftest.$ac_ext <<_ACEOF
  25937. /* confdefs.h. */
  25938. _ACEOF
  25939. cat confdefs.h >>conftest.$ac_ext
  25940. cat >>conftest.$ac_ext <<_ACEOF
  25941. /* end confdefs.h. */
  25942. #include <ctype.h>
  25943. #if ((' ' & 0x0FF) == 0x020)
  25944. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  25945. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  25946. #else
  25947. # define ISLOWER(c) \
  25948. (('a' <= (c) && (c) <= 'i') \
  25949. || ('j' <= (c) && (c) <= 'r') \
  25950. || ('s' <= (c) && (c) <= 'z'))
  25951. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  25952. #endif
  25953. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  25954. int
  25955. main ()
  25956. {
  25957. int i;
  25958. for (i = 0; i < 256; i++)
  25959. if (XOR (islower (i), ISLOWER (i))
  25960. || toupper (i) != TOUPPER (i))
  25961. exit(2);
  25962. exit (0);
  25963. }
  25964. _ACEOF
  25965. rm -f conftest$ac_exeext
  25966. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25967. (eval $ac_link) 2>&5
  25968. ac_status=$?
  25969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25970. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  25971. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25972. (eval $ac_try) 2>&5
  25973. ac_status=$?
  25974. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25975. (exit $ac_status); }; }; then
  25976. :
  25977. else
  25978. echo "$as_me: program exited with status $ac_status" >&5
  25979. echo "$as_me: failed program was:" >&5
  25980. sed 's/^/| /' conftest.$ac_ext >&5
  25981. ( exit $ac_status )
  25982. ac_cv_header_stdc=no
  25983. fi
  25984. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  25985. fi
  25986. fi
  25987. fi
  25988. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  25989. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  25990. if test $ac_cv_header_stdc = yes; then
  25991. cat >>confdefs.h <<\_ACEOF
  25992. #define STDC_HEADERS 1
  25993. _ACEOF
  25994. fi
  25995. # =================
  25996. # AC_HEADER_DIRENT
  25997. # =================
  25998. ac_header_dirent=no
  25999. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  26000. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  26001. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  26002. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  26003. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  26004. echo $ECHO_N "(cached) $ECHO_C" >&6
  26005. else
  26006. cat >conftest.$ac_ext <<_ACEOF
  26007. /* confdefs.h. */
  26008. _ACEOF
  26009. cat confdefs.h >>conftest.$ac_ext
  26010. cat >>conftest.$ac_ext <<_ACEOF
  26011. /* end confdefs.h. */
  26012. #include <sys/types.h>
  26013. #include <$ac_hdr>
  26014. int
  26015. main ()
  26016. {
  26017. if ((DIR *) 0)
  26018. return 0;
  26019. ;
  26020. return 0;
  26021. }
  26022. _ACEOF
  26023. rm -f conftest.$ac_objext
  26024. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  26025. (eval $ac_compile) 2>conftest.er1
  26026. ac_status=$?
  26027. grep -v '^ *+' conftest.er1 >conftest.err
  26028. rm -f conftest.er1
  26029. cat conftest.err >&5
  26030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26031. (exit $ac_status); } &&
  26032. { ac_try='test -z "$ac_c_werror_flag"
  26033. || test ! -s conftest.err'
  26034. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26035. (eval $ac_try) 2>&5
  26036. ac_status=$?
  26037. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26038. (exit $ac_status); }; } &&
  26039. { ac_try='test -s conftest.$ac_objext'
  26040. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26041. (eval $ac_try) 2>&5
  26042. ac_status=$?
  26043. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26044. (exit $ac_status); }; }; then
  26045. eval "$as_ac_Header=yes"
  26046. else
  26047. echo "$as_me: failed program was:" >&5
  26048. sed 's/^/| /' conftest.$ac_ext >&5
  26049. eval "$as_ac_Header=no"
  26050. fi
  26051. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  26052. fi
  26053. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  26054. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  26055. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  26056. cat >>confdefs.h <<_ACEOF
  26057. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  26058. _ACEOF
  26059. ac_header_dirent=$ac_hdr; break
  26060. fi
  26061. done
  26062. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  26063. if test $ac_header_dirent = dirent.h; then
  26064. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  26065. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  26066. if test "${ac_cv_search_opendir+set}" = set; then
  26067. echo $ECHO_N "(cached) $ECHO_C" >&6
  26068. else
  26069. ac_func_search_save_LIBS=$LIBS
  26070. ac_cv_search_opendir=no
  26071. cat >conftest.$ac_ext <<_ACEOF
  26072. /* confdefs.h. */
  26073. _ACEOF
  26074. cat confdefs.h >>conftest.$ac_ext
  26075. cat >>conftest.$ac_ext <<_ACEOF
  26076. /* end confdefs.h. */
  26077. /* Override any gcc2 internal prototype to avoid an error. */
  26078. #ifdef __cplusplus
  26079. extern "C"
  26080. #endif
  26081. /* We use char because int might match the return type of a gcc2
  26082. builtin and then its argument prototype would still apply. */
  26083. char opendir ();
  26084. int
  26085. main ()
  26086. {
  26087. opendir ();
  26088. ;
  26089. return 0;
  26090. }
  26091. _ACEOF
  26092. rm -f conftest.$ac_objext conftest$ac_exeext
  26093. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  26094. (eval $ac_link) 2>conftest.er1
  26095. ac_status=$?
  26096. grep -v '^ *+' conftest.er1 >conftest.err
  26097. rm -f conftest.er1
  26098. cat conftest.err >&5
  26099. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26100. (exit $ac_status); } &&
  26101. { ac_try='test -z "$ac_c_werror_flag"
  26102. || test ! -s conftest.err'
  26103. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26104. (eval $ac_try) 2>&5
  26105. ac_status=$?
  26106. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26107. (exit $ac_status); }; } &&
  26108. { ac_try='test -s conftest$ac_exeext'
  26109. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26110. (eval $ac_try) 2>&5
  26111. ac_status=$?
  26112. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26113. (exit $ac_status); }; }; then
  26114. ac_cv_search_opendir="none required"
  26115. else
  26116. echo "$as_me: failed program was:" >&5
  26117. sed 's/^/| /' conftest.$ac_ext >&5
  26118. fi
  26119. rm -f conftest.err conftest.$ac_objext \
  26120. conftest$ac_exeext conftest.$ac_ext
  26121. if test "$ac_cv_search_opendir" = no; then
  26122. for ac_lib in dir; do
  26123. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  26124. cat >conftest.$ac_ext <<_ACEOF
  26125. /* confdefs.h. */
  26126. _ACEOF
  26127. cat confdefs.h >>conftest.$ac_ext
  26128. cat >>conftest.$ac_ext <<_ACEOF
  26129. /* end confdefs.h. */
  26130. /* Override any gcc2 internal prototype to avoid an error. */
  26131. #ifdef __cplusplus
  26132. extern "C"
  26133. #endif
  26134. /* We use char because int might match the return type of a gcc2
  26135. builtin and then its argument prototype would still apply. */
  26136. char opendir ();
  26137. int
  26138. main ()
  26139. {
  26140. opendir ();
  26141. ;
  26142. return 0;
  26143. }
  26144. _ACEOF
  26145. rm -f conftest.$ac_objext conftest$ac_exeext
  26146. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  26147. (eval $ac_link) 2>conftest.er1
  26148. ac_status=$?
  26149. grep -v '^ *+' conftest.er1 >conftest.err
  26150. rm -f conftest.er1
  26151. cat conftest.err >&5
  26152. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26153. (exit $ac_status); } &&
  26154. { ac_try='test -z "$ac_c_werror_flag"
  26155. || test ! -s conftest.err'
  26156. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26157. (eval $ac_try) 2>&5
  26158. ac_status=$?
  26159. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26160. (exit $ac_status); }; } &&
  26161. { ac_try='test -s conftest$ac_exeext'
  26162. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26163. (eval $ac_try) 2>&5
  26164. ac_status=$?
  26165. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26166. (exit $ac_status); }; }; then
  26167. ac_cv_search_opendir="-l$ac_lib"
  26168. break
  26169. else
  26170. echo "$as_me: failed program was:" >&5
  26171. sed 's/^/| /' conftest.$ac_ext >&5
  26172. fi
  26173. rm -f conftest.err conftest.$ac_objext \
  26174. conftest$ac_exeext conftest.$ac_ext
  26175. done
  26176. fi
  26177. LIBS=$ac_func_search_save_LIBS
  26178. fi
  26179. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  26180. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  26181. if test "$ac_cv_search_opendir" != no; then
  26182. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  26183. fi
  26184. else
  26185. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  26186. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  26187. if test "${ac_cv_search_opendir+set}" = set; then
  26188. echo $ECHO_N "(cached) $ECHO_C" >&6
  26189. else
  26190. ac_func_search_save_LIBS=$LIBS
  26191. ac_cv_search_opendir=no
  26192. cat >conftest.$ac_ext <<_ACEOF
  26193. /* confdefs.h. */
  26194. _ACEOF
  26195. cat confdefs.h >>conftest.$ac_ext
  26196. cat >>conftest.$ac_ext <<_ACEOF
  26197. /* end confdefs.h. */
  26198. /* Override any gcc2 internal prototype to avoid an error. */
  26199. #ifdef __cplusplus
  26200. extern "C"
  26201. #endif
  26202. /* We use char because int might match the return type of a gcc2
  26203. builtin and then its argument prototype would still apply. */
  26204. char opendir ();
  26205. int
  26206. main ()
  26207. {
  26208. opendir ();
  26209. ;
  26210. return 0;
  26211. }
  26212. _ACEOF
  26213. rm -f conftest.$ac_objext conftest$ac_exeext
  26214. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  26215. (eval $ac_link) 2>conftest.er1
  26216. ac_status=$?
  26217. grep -v '^ *+' conftest.er1 >conftest.err
  26218. rm -f conftest.er1
  26219. cat conftest.err >&5
  26220. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26221. (exit $ac_status); } &&
  26222. { ac_try='test -z "$ac_c_werror_flag"
  26223. || test ! -s conftest.err'
  26224. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26225. (eval $ac_try) 2>&5
  26226. ac_status=$?
  26227. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26228. (exit $ac_status); }; } &&
  26229. { ac_try='test -s conftest$ac_exeext'
  26230. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26231. (eval $ac_try) 2>&5
  26232. ac_status=$?
  26233. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26234. (exit $ac_status); }; }; then
  26235. ac_cv_search_opendir="none required"
  26236. else
  26237. echo "$as_me: failed program was:" >&5
  26238. sed 's/^/| /' conftest.$ac_ext >&5
  26239. fi
  26240. rm -f conftest.err conftest.$ac_objext \
  26241. conftest$ac_exeext conftest.$ac_ext
  26242. if test "$ac_cv_search_opendir" = no; then
  26243. for ac_lib in x; do
  26244. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  26245. cat >conftest.$ac_ext <<_ACEOF
  26246. /* confdefs.h. */
  26247. _ACEOF
  26248. cat confdefs.h >>conftest.$ac_ext
  26249. cat >>conftest.$ac_ext <<_ACEOF
  26250. /* end confdefs.h. */
  26251. /* Override any gcc2 internal prototype to avoid an error. */
  26252. #ifdef __cplusplus
  26253. extern "C"
  26254. #endif
  26255. /* We use char because int might match the return type of a gcc2
  26256. builtin and then its argument prototype would still apply. */
  26257. char opendir ();
  26258. int
  26259. main ()
  26260. {
  26261. opendir ();
  26262. ;
  26263. return 0;
  26264. }
  26265. _ACEOF
  26266. rm -f conftest.$ac_objext conftest$ac_exeext
  26267. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  26268. (eval $ac_link) 2>conftest.er1
  26269. ac_status=$?
  26270. grep -v '^ *+' conftest.er1 >conftest.err
  26271. rm -f conftest.er1
  26272. cat conftest.err >&5
  26273. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26274. (exit $ac_status); } &&
  26275. { ac_try='test -z "$ac_c_werror_flag"
  26276. || test ! -s conftest.err'
  26277. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26278. (eval $ac_try) 2>&5
  26279. ac_status=$?
  26280. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26281. (exit $ac_status); }; } &&
  26282. { ac_try='test -s conftest$ac_exeext'
  26283. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26284. (eval $ac_try) 2>&5
  26285. ac_status=$?
  26286. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26287. (exit $ac_status); }; }; then
  26288. ac_cv_search_opendir="-l$ac_lib"
  26289. break
  26290. else
  26291. echo "$as_me: failed program was:" >&5
  26292. sed 's/^/| /' conftest.$ac_ext >&5
  26293. fi
  26294. rm -f conftest.err conftest.$ac_objext \
  26295. conftest$ac_exeext conftest.$ac_ext
  26296. done
  26297. fi
  26298. LIBS=$ac_func_search_save_LIBS
  26299. fi
  26300. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  26301. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  26302. if test "$ac_cv_search_opendir" != no; then
  26303. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  26304. fi
  26305. fi
  26306. # ----------------------------------------------------------------------
  26307. # AC_CHECK_HEADERS Check for list of headers.
  26308. # ----------------------------------------------------------------------
  26309. for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
  26310. setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
  26311. sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h
  26312. do
  26313. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  26314. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  26315. echo "$as_me:$LINENO: checking for $ac_header" >&5
  26316. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  26317. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  26318. echo $ECHO_N "(cached) $ECHO_C" >&6
  26319. fi
  26320. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  26321. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  26322. else
  26323. # Is the header compilable?
  26324. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  26325. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  26326. cat >conftest.$ac_ext <<_ACEOF
  26327. /* confdefs.h. */
  26328. _ACEOF
  26329. cat confdefs.h >>conftest.$ac_ext
  26330. cat >>conftest.$ac_ext <<_ACEOF
  26331. /* end confdefs.h. */
  26332. $ac_includes_default
  26333. #include <$ac_header>
  26334. _ACEOF
  26335. rm -f conftest.$ac_objext
  26336. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  26337. (eval $ac_compile) 2>conftest.er1
  26338. ac_status=$?
  26339. grep -v '^ *+' conftest.er1 >conftest.err
  26340. rm -f conftest.er1
  26341. cat conftest.err >&5
  26342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26343. (exit $ac_status); } &&
  26344. { ac_try='test -z "$ac_c_werror_flag"
  26345. || test ! -s conftest.err'
  26346. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26347. (eval $ac_try) 2>&5
  26348. ac_status=$?
  26349. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26350. (exit $ac_status); }; } &&
  26351. { ac_try='test -s conftest.$ac_objext'
  26352. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26353. (eval $ac_try) 2>&5
  26354. ac_status=$?
  26355. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26356. (exit $ac_status); }; }; then
  26357. ac_header_compiler=yes
  26358. else
  26359. echo "$as_me: failed program was:" >&5
  26360. sed 's/^/| /' conftest.$ac_ext >&5
  26361. ac_header_compiler=no
  26362. fi
  26363. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  26364. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  26365. echo "${ECHO_T}$ac_header_compiler" >&6
  26366. # Is the header present?
  26367. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  26368. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  26369. cat >conftest.$ac_ext <<_ACEOF
  26370. /* confdefs.h. */
  26371. _ACEOF
  26372. cat confdefs.h >>conftest.$ac_ext
  26373. cat >>conftest.$ac_ext <<_ACEOF
  26374. /* end confdefs.h. */
  26375. #include <$ac_header>
  26376. _ACEOF
  26377. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  26378. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  26379. ac_status=$?
  26380. grep -v '^ *+' conftest.er1 >conftest.err
  26381. rm -f conftest.er1
  26382. cat conftest.err >&5
  26383. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26384. (exit $ac_status); } >/dev/null; then
  26385. if test -s conftest.err; then
  26386. ac_cpp_err=$ac_c_preproc_warn_flag
  26387. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  26388. else
  26389. ac_cpp_err=
  26390. fi
  26391. else
  26392. ac_cpp_err=yes
  26393. fi
  26394. if test -z "$ac_cpp_err"; then
  26395. ac_header_preproc=yes
  26396. else
  26397. echo "$as_me: failed program was:" >&5
  26398. sed 's/^/| /' conftest.$ac_ext >&5
  26399. ac_header_preproc=no
  26400. fi
  26401. rm -f conftest.err conftest.$ac_ext
  26402. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  26403. echo "${ECHO_T}$ac_header_preproc" >&6
  26404. # So? What about this header?
  26405. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  26406. yes:no: )
  26407. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  26408. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  26409. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  26410. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  26411. ac_header_preproc=yes
  26412. ;;
  26413. no:yes:* )
  26414. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  26415. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  26416. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  26417. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  26418. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  26419. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  26420. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  26421. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  26422. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  26423. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  26424. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  26425. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  26426. (
  26427. cat <<\_ASBOX
  26428. ## ------------------------------------------ ##
  26429. ## Report this to the AC_PACKAGE_NAME lists. ##
  26430. ## ------------------------------------------ ##
  26431. _ASBOX
  26432. ) |
  26433. sed "s/^/$as_me: WARNING: /" >&2
  26434. ;;
  26435. esac
  26436. echo "$as_me:$LINENO: checking for $ac_header" >&5
  26437. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  26438. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  26439. echo $ECHO_N "(cached) $ECHO_C" >&6
  26440. else
  26441. eval "$as_ac_Header=\$ac_header_preproc"
  26442. fi
  26443. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  26444. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  26445. fi
  26446. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  26447. cat >>confdefs.h <<_ACEOF
  26448. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  26449. _ACEOF
  26450. fi
  26451. done
  26452. # --------------------------------------------
  26453. # Verify certain entries from AC_CHECK_HEADERS
  26454. # --------------------------------------------
  26455. for f in sys_types sys_mman sys_param sys_stat sys_wait \
  26456. string errno stdlib memory setjmp
  26457. do eval as_ac_var=\${ac_cv_header_${f}_h+set}
  26458. test "${as_ac_var}" = set || \
  26459. { { echo "$as_me:$LINENO: error: You must have ${f}.h on your system" >&5
  26460. echo "$as_me: error: You must have ${f}.h on your system" >&2;}
  26461. { (exit 1); exit 1; }; }
  26462. done
  26463. # =================
  26464. # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
  26465. # if varargs.h is present define HAVE_VARARGS_H.
  26466. # =================
  26467. for ac_header in stdarg.h varargs.h
  26468. do
  26469. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  26470. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  26471. echo "$as_me:$LINENO: checking for $ac_header" >&5
  26472. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  26473. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  26474. echo $ECHO_N "(cached) $ECHO_C" >&6
  26475. fi
  26476. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  26477. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  26478. else
  26479. # Is the header compilable?
  26480. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  26481. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  26482. cat >conftest.$ac_ext <<_ACEOF
  26483. /* confdefs.h. */
  26484. _ACEOF
  26485. cat confdefs.h >>conftest.$ac_ext
  26486. cat >>conftest.$ac_ext <<_ACEOF
  26487. /* end confdefs.h. */
  26488. $ac_includes_default
  26489. #include <$ac_header>
  26490. _ACEOF
  26491. rm -f conftest.$ac_objext
  26492. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  26493. (eval $ac_compile) 2>conftest.er1
  26494. ac_status=$?
  26495. grep -v '^ *+' conftest.er1 >conftest.err
  26496. rm -f conftest.er1
  26497. cat conftest.err >&5
  26498. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26499. (exit $ac_status); } &&
  26500. { ac_try='test -z "$ac_c_werror_flag"
  26501. || test ! -s conftest.err'
  26502. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26503. (eval $ac_try) 2>&5
  26504. ac_status=$?
  26505. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26506. (exit $ac_status); }; } &&
  26507. { ac_try='test -s conftest.$ac_objext'
  26508. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26509. (eval $ac_try) 2>&5
  26510. ac_status=$?
  26511. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26512. (exit $ac_status); }; }; then
  26513. ac_header_compiler=yes
  26514. else
  26515. echo "$as_me: failed program was:" >&5
  26516. sed 's/^/| /' conftest.$ac_ext >&5
  26517. ac_header_compiler=no
  26518. fi
  26519. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  26520. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  26521. echo "${ECHO_T}$ac_header_compiler" >&6
  26522. # Is the header present?
  26523. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  26524. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  26525. cat >conftest.$ac_ext <<_ACEOF
  26526. /* confdefs.h. */
  26527. _ACEOF
  26528. cat confdefs.h >>conftest.$ac_ext
  26529. cat >>conftest.$ac_ext <<_ACEOF
  26530. /* end confdefs.h. */
  26531. #include <$ac_header>
  26532. _ACEOF
  26533. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  26534. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  26535. ac_status=$?
  26536. grep -v '^ *+' conftest.er1 >conftest.err
  26537. rm -f conftest.er1
  26538. cat conftest.err >&5
  26539. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26540. (exit $ac_status); } >/dev/null; then
  26541. if test -s conftest.err; then
  26542. ac_cpp_err=$ac_c_preproc_warn_flag
  26543. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  26544. else
  26545. ac_cpp_err=
  26546. fi
  26547. else
  26548. ac_cpp_err=yes
  26549. fi
  26550. if test -z "$ac_cpp_err"; then
  26551. ac_header_preproc=yes
  26552. else
  26553. echo "$as_me: failed program was:" >&5
  26554. sed 's/^/| /' conftest.$ac_ext >&5
  26555. ac_header_preproc=no
  26556. fi
  26557. rm -f conftest.err conftest.$ac_ext
  26558. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  26559. echo "${ECHO_T}$ac_header_preproc" >&6
  26560. # So? What about this header?
  26561. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  26562. yes:no: )
  26563. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  26564. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  26565. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  26566. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  26567. ac_header_preproc=yes
  26568. ;;
  26569. no:yes:* )
  26570. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  26571. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  26572. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  26573. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  26574. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  26575. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  26576. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  26577. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  26578. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  26579. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  26580. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  26581. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  26582. (
  26583. cat <<\_ASBOX
  26584. ## ------------------------------------------ ##
  26585. ## Report this to the AC_PACKAGE_NAME lists. ##
  26586. ## ------------------------------------------ ##
  26587. _ASBOX
  26588. ) |
  26589. sed "s/^/$as_me: WARNING: /" >&2
  26590. ;;
  26591. esac
  26592. echo "$as_me:$LINENO: checking for $ac_header" >&5
  26593. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  26594. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  26595. echo $ECHO_N "(cached) $ECHO_C" >&6
  26596. else
  26597. eval "$as_ac_Header=\$ac_header_preproc"
  26598. fi
  26599. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  26600. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  26601. fi
  26602. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  26603. cat >>confdefs.h <<_ACEOF
  26604. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  26605. _ACEOF
  26606. break
  26607. fi
  26608. done
  26609. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  26610. { { echo "$as_me:$LINENO: error: You must have stdarg.h or varargs.h on your system" >&5
  26611. echo "$as_me: error: You must have stdarg.h or varargs.h on your system" >&2;}
  26612. { (exit 1); exit 1; }; }
  26613. fi
  26614. # =================
  26615. # Similarly for the string.h and strings.h headers
  26616. # =================
  26617. for ac_header in string.h strings.h
  26618. do
  26619. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  26620. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  26621. echo "$as_me:$LINENO: checking for $ac_header" >&5
  26622. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  26623. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  26624. echo $ECHO_N "(cached) $ECHO_C" >&6
  26625. fi
  26626. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  26627. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  26628. else
  26629. # Is the header compilable?
  26630. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  26631. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  26632. cat >conftest.$ac_ext <<_ACEOF
  26633. /* confdefs.h. */
  26634. _ACEOF
  26635. cat confdefs.h >>conftest.$ac_ext
  26636. cat >>conftest.$ac_ext <<_ACEOF
  26637. /* end confdefs.h. */
  26638. $ac_includes_default
  26639. #include <$ac_header>
  26640. _ACEOF
  26641. rm -f conftest.$ac_objext
  26642. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  26643. (eval $ac_compile) 2>conftest.er1
  26644. ac_status=$?
  26645. grep -v '^ *+' conftest.er1 >conftest.err
  26646. rm -f conftest.er1
  26647. cat conftest.err >&5
  26648. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26649. (exit $ac_status); } &&
  26650. { ac_try='test -z "$ac_c_werror_flag"
  26651. || test ! -s conftest.err'
  26652. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26653. (eval $ac_try) 2>&5
  26654. ac_status=$?
  26655. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26656. (exit $ac_status); }; } &&
  26657. { ac_try='test -s conftest.$ac_objext'
  26658. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26659. (eval $ac_try) 2>&5
  26660. ac_status=$?
  26661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26662. (exit $ac_status); }; }; then
  26663. ac_header_compiler=yes
  26664. else
  26665. echo "$as_me: failed program was:" >&5
  26666. sed 's/^/| /' conftest.$ac_ext >&5
  26667. ac_header_compiler=no
  26668. fi
  26669. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  26670. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  26671. echo "${ECHO_T}$ac_header_compiler" >&6
  26672. # Is the header present?
  26673. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  26674. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  26675. cat >conftest.$ac_ext <<_ACEOF
  26676. /* confdefs.h. */
  26677. _ACEOF
  26678. cat confdefs.h >>conftest.$ac_ext
  26679. cat >>conftest.$ac_ext <<_ACEOF
  26680. /* end confdefs.h. */
  26681. #include <$ac_header>
  26682. _ACEOF
  26683. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  26684. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  26685. ac_status=$?
  26686. grep -v '^ *+' conftest.er1 >conftest.err
  26687. rm -f conftest.er1
  26688. cat conftest.err >&5
  26689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26690. (exit $ac_status); } >/dev/null; then
  26691. if test -s conftest.err; then
  26692. ac_cpp_err=$ac_c_preproc_warn_flag
  26693. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  26694. else
  26695. ac_cpp_err=
  26696. fi
  26697. else
  26698. ac_cpp_err=yes
  26699. fi
  26700. if test -z "$ac_cpp_err"; then
  26701. ac_header_preproc=yes
  26702. else
  26703. echo "$as_me: failed program was:" >&5
  26704. sed 's/^/| /' conftest.$ac_ext >&5
  26705. ac_header_preproc=no
  26706. fi
  26707. rm -f conftest.err conftest.$ac_ext
  26708. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  26709. echo "${ECHO_T}$ac_header_preproc" >&6
  26710. # So? What about this header?
  26711. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  26712. yes:no: )
  26713. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  26714. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  26715. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  26716. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  26717. ac_header_preproc=yes
  26718. ;;
  26719. no:yes:* )
  26720. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  26721. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  26722. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  26723. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  26724. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  26725. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  26726. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  26727. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  26728. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  26729. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  26730. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  26731. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  26732. (
  26733. cat <<\_ASBOX
  26734. ## ------------------------------------------ ##
  26735. ## Report this to the AC_PACKAGE_NAME lists. ##
  26736. ## ------------------------------------------ ##
  26737. _ASBOX
  26738. ) |
  26739. sed "s/^/$as_me: WARNING: /" >&2
  26740. ;;
  26741. esac
  26742. echo "$as_me:$LINENO: checking for $ac_header" >&5
  26743. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  26744. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  26745. echo $ECHO_N "(cached) $ECHO_C" >&6
  26746. else
  26747. eval "$as_ac_Header=\$ac_header_preproc"
  26748. fi
  26749. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  26750. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  26751. fi
  26752. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  26753. cat >>confdefs.h <<_ACEOF
  26754. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  26755. _ACEOF
  26756. break
  26757. fi
  26758. done
  26759. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  26760. { { echo "$as_me:$LINENO: error: You must have string.h or strings.h on your system" >&5
  26761. echo "$as_me: error: You must have string.h or strings.h on your system" >&2;}
  26762. { (exit 1); exit 1; }; }
  26763. fi
  26764. # =================
  26765. # ...and limits headers
  26766. # =================
  26767. for ac_header in limits.h sys/limits.h values.h
  26768. do
  26769. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  26770. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  26771. echo "$as_me:$LINENO: checking for $ac_header" >&5
  26772. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  26773. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  26774. echo $ECHO_N "(cached) $ECHO_C" >&6
  26775. fi
  26776. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  26777. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  26778. else
  26779. # Is the header compilable?
  26780. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  26781. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  26782. cat >conftest.$ac_ext <<_ACEOF
  26783. /* confdefs.h. */
  26784. _ACEOF
  26785. cat confdefs.h >>conftest.$ac_ext
  26786. cat >>conftest.$ac_ext <<_ACEOF
  26787. /* end confdefs.h. */
  26788. $ac_includes_default
  26789. #include <$ac_header>
  26790. _ACEOF
  26791. rm -f conftest.$ac_objext
  26792. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  26793. (eval $ac_compile) 2>conftest.er1
  26794. ac_status=$?
  26795. grep -v '^ *+' conftest.er1 >conftest.err
  26796. rm -f conftest.er1
  26797. cat conftest.err >&5
  26798. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26799. (exit $ac_status); } &&
  26800. { ac_try='test -z "$ac_c_werror_flag"
  26801. || test ! -s conftest.err'
  26802. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26803. (eval $ac_try) 2>&5
  26804. ac_status=$?
  26805. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26806. (exit $ac_status); }; } &&
  26807. { ac_try='test -s conftest.$ac_objext'
  26808. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26809. (eval $ac_try) 2>&5
  26810. ac_status=$?
  26811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26812. (exit $ac_status); }; }; then
  26813. ac_header_compiler=yes
  26814. else
  26815. echo "$as_me: failed program was:" >&5
  26816. sed 's/^/| /' conftest.$ac_ext >&5
  26817. ac_header_compiler=no
  26818. fi
  26819. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  26820. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  26821. echo "${ECHO_T}$ac_header_compiler" >&6
  26822. # Is the header present?
  26823. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  26824. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  26825. cat >conftest.$ac_ext <<_ACEOF
  26826. /* confdefs.h. */
  26827. _ACEOF
  26828. cat confdefs.h >>conftest.$ac_ext
  26829. cat >>conftest.$ac_ext <<_ACEOF
  26830. /* end confdefs.h. */
  26831. #include <$ac_header>
  26832. _ACEOF
  26833. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  26834. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  26835. ac_status=$?
  26836. grep -v '^ *+' conftest.er1 >conftest.err
  26837. rm -f conftest.er1
  26838. cat conftest.err >&5
  26839. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26840. (exit $ac_status); } >/dev/null; then
  26841. if test -s conftest.err; then
  26842. ac_cpp_err=$ac_c_preproc_warn_flag
  26843. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  26844. else
  26845. ac_cpp_err=
  26846. fi
  26847. else
  26848. ac_cpp_err=yes
  26849. fi
  26850. if test -z "$ac_cpp_err"; then
  26851. ac_header_preproc=yes
  26852. else
  26853. echo "$as_me: failed program was:" >&5
  26854. sed 's/^/| /' conftest.$ac_ext >&5
  26855. ac_header_preproc=no
  26856. fi
  26857. rm -f conftest.err conftest.$ac_ext
  26858. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  26859. echo "${ECHO_T}$ac_header_preproc" >&6
  26860. # So? What about this header?
  26861. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  26862. yes:no: )
  26863. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  26864. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  26865. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  26866. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  26867. ac_header_preproc=yes
  26868. ;;
  26869. no:yes:* )
  26870. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  26871. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  26872. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  26873. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  26874. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  26875. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  26876. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  26877. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  26878. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  26879. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  26880. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  26881. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  26882. (
  26883. cat <<\_ASBOX
  26884. ## ------------------------------------------ ##
  26885. ## Report this to the AC_PACKAGE_NAME lists. ##
  26886. ## ------------------------------------------ ##
  26887. _ASBOX
  26888. ) |
  26889. sed "s/^/$as_me: WARNING: /" >&2
  26890. ;;
  26891. esac
  26892. echo "$as_me:$LINENO: checking for $ac_header" >&5
  26893. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  26894. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  26895. echo $ECHO_N "(cached) $ECHO_C" >&6
  26896. else
  26897. eval "$as_ac_Header=\$ac_header_preproc"
  26898. fi
  26899. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  26900. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  26901. fi
  26902. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  26903. cat >>confdefs.h <<_ACEOF
  26904. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  26905. _ACEOF
  26906. break
  26907. fi
  26908. done
  26909. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  26910. { { echo "$as_me:$LINENO: error: You must have one of limits.h, sys/limits.h or values.h" >&5
  26911. echo "$as_me: error: You must have one of limits.h, sys/limits.h or values.h" >&2;}
  26912. { (exit 1); exit 1; }; }
  26913. fi
  26914. # =================
  26915. # ...and int types headers
  26916. # =================
  26917. for ac_header in stdint.h inttypes.h
  26918. do
  26919. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  26920. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  26921. echo "$as_me:$LINENO: checking for $ac_header" >&5
  26922. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  26923. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  26924. echo $ECHO_N "(cached) $ECHO_C" >&6
  26925. fi
  26926. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  26927. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  26928. else
  26929. # Is the header compilable?
  26930. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  26931. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  26932. cat >conftest.$ac_ext <<_ACEOF
  26933. /* confdefs.h. */
  26934. _ACEOF
  26935. cat confdefs.h >>conftest.$ac_ext
  26936. cat >>conftest.$ac_ext <<_ACEOF
  26937. /* end confdefs.h. */
  26938. $ac_includes_default
  26939. #include <$ac_header>
  26940. _ACEOF
  26941. rm -f conftest.$ac_objext
  26942. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  26943. (eval $ac_compile) 2>conftest.er1
  26944. ac_status=$?
  26945. grep -v '^ *+' conftest.er1 >conftest.err
  26946. rm -f conftest.er1
  26947. cat conftest.err >&5
  26948. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26949. (exit $ac_status); } &&
  26950. { ac_try='test -z "$ac_c_werror_flag"
  26951. || test ! -s conftest.err'
  26952. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26953. (eval $ac_try) 2>&5
  26954. ac_status=$?
  26955. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26956. (exit $ac_status); }; } &&
  26957. { ac_try='test -s conftest.$ac_objext'
  26958. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26959. (eval $ac_try) 2>&5
  26960. ac_status=$?
  26961. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26962. (exit $ac_status); }; }; then
  26963. ac_header_compiler=yes
  26964. else
  26965. echo "$as_me: failed program was:" >&5
  26966. sed 's/^/| /' conftest.$ac_ext >&5
  26967. ac_header_compiler=no
  26968. fi
  26969. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  26970. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  26971. echo "${ECHO_T}$ac_header_compiler" >&6
  26972. # Is the header present?
  26973. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  26974. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  26975. cat >conftest.$ac_ext <<_ACEOF
  26976. /* confdefs.h. */
  26977. _ACEOF
  26978. cat confdefs.h >>conftest.$ac_ext
  26979. cat >>conftest.$ac_ext <<_ACEOF
  26980. /* end confdefs.h. */
  26981. #include <$ac_header>
  26982. _ACEOF
  26983. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  26984. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  26985. ac_status=$?
  26986. grep -v '^ *+' conftest.er1 >conftest.err
  26987. rm -f conftest.er1
  26988. cat conftest.err >&5
  26989. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26990. (exit $ac_status); } >/dev/null; then
  26991. if test -s conftest.err; then
  26992. ac_cpp_err=$ac_c_preproc_warn_flag
  26993. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  26994. else
  26995. ac_cpp_err=
  26996. fi
  26997. else
  26998. ac_cpp_err=yes
  26999. fi
  27000. if test -z "$ac_cpp_err"; then
  27001. ac_header_preproc=yes
  27002. else
  27003. echo "$as_me: failed program was:" >&5
  27004. sed 's/^/| /' conftest.$ac_ext >&5
  27005. ac_header_preproc=no
  27006. fi
  27007. rm -f conftest.err conftest.$ac_ext
  27008. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  27009. echo "${ECHO_T}$ac_header_preproc" >&6
  27010. # So? What about this header?
  27011. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  27012. yes:no: )
  27013. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  27014. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  27015. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  27016. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  27017. ac_header_preproc=yes
  27018. ;;
  27019. no:yes:* )
  27020. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  27021. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  27022. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  27023. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  27024. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  27025. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  27026. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  27027. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  27028. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  27029. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  27030. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  27031. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  27032. (
  27033. cat <<\_ASBOX
  27034. ## ------------------------------------------ ##
  27035. ## Report this to the AC_PACKAGE_NAME lists. ##
  27036. ## ------------------------------------------ ##
  27037. _ASBOX
  27038. ) |
  27039. sed "s/^/$as_me: WARNING: /" >&2
  27040. ;;
  27041. esac
  27042. echo "$as_me:$LINENO: checking for $ac_header" >&5
  27043. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  27044. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  27045. echo $ECHO_N "(cached) $ECHO_C" >&6
  27046. else
  27047. eval "$as_ac_Header=\$ac_header_preproc"
  27048. fi
  27049. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  27050. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  27051. fi
  27052. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  27053. cat >>confdefs.h <<_ACEOF
  27054. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  27055. _ACEOF
  27056. break
  27057. fi
  27058. done
  27059. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  27060. { { echo "$as_me:$LINENO: error: You must have stdint.h or inttypes.h on your system" >&5
  27061. echo "$as_me: error: You must have stdint.h or inttypes.h on your system" >&2;}
  27062. { (exit 1); exit 1; }; }
  27063. fi
  27064. # =================
  27065. # ...and directory read headers
  27066. # =================
  27067. for ac_header in dirent.h ndir.h sys/ndir.h
  27068. do
  27069. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  27070. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  27071. echo "$as_me:$LINENO: checking for $ac_header" >&5
  27072. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  27073. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  27074. echo $ECHO_N "(cached) $ECHO_C" >&6
  27075. fi
  27076. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  27077. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  27078. else
  27079. # Is the header compilable?
  27080. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  27081. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  27082. cat >conftest.$ac_ext <<_ACEOF
  27083. /* confdefs.h. */
  27084. _ACEOF
  27085. cat confdefs.h >>conftest.$ac_ext
  27086. cat >>conftest.$ac_ext <<_ACEOF
  27087. /* end confdefs.h. */
  27088. $ac_includes_default
  27089. #include <$ac_header>
  27090. _ACEOF
  27091. rm -f conftest.$ac_objext
  27092. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  27093. (eval $ac_compile) 2>conftest.er1
  27094. ac_status=$?
  27095. grep -v '^ *+' conftest.er1 >conftest.err
  27096. rm -f conftest.er1
  27097. cat conftest.err >&5
  27098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27099. (exit $ac_status); } &&
  27100. { ac_try='test -z "$ac_c_werror_flag"
  27101. || test ! -s conftest.err'
  27102. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27103. (eval $ac_try) 2>&5
  27104. ac_status=$?
  27105. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27106. (exit $ac_status); }; } &&
  27107. { ac_try='test -s conftest.$ac_objext'
  27108. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27109. (eval $ac_try) 2>&5
  27110. ac_status=$?
  27111. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27112. (exit $ac_status); }; }; then
  27113. ac_header_compiler=yes
  27114. else
  27115. echo "$as_me: failed program was:" >&5
  27116. sed 's/^/| /' conftest.$ac_ext >&5
  27117. ac_header_compiler=no
  27118. fi
  27119. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  27120. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  27121. echo "${ECHO_T}$ac_header_compiler" >&6
  27122. # Is the header present?
  27123. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  27124. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  27125. cat >conftest.$ac_ext <<_ACEOF
  27126. /* confdefs.h. */
  27127. _ACEOF
  27128. cat confdefs.h >>conftest.$ac_ext
  27129. cat >>conftest.$ac_ext <<_ACEOF
  27130. /* end confdefs.h. */
  27131. #include <$ac_header>
  27132. _ACEOF
  27133. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  27134. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  27135. ac_status=$?
  27136. grep -v '^ *+' conftest.er1 >conftest.err
  27137. rm -f conftest.er1
  27138. cat conftest.err >&5
  27139. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27140. (exit $ac_status); } >/dev/null; then
  27141. if test -s conftest.err; then
  27142. ac_cpp_err=$ac_c_preproc_warn_flag
  27143. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  27144. else
  27145. ac_cpp_err=
  27146. fi
  27147. else
  27148. ac_cpp_err=yes
  27149. fi
  27150. if test -z "$ac_cpp_err"; then
  27151. ac_header_preproc=yes
  27152. else
  27153. echo "$as_me: failed program was:" >&5
  27154. sed 's/^/| /' conftest.$ac_ext >&5
  27155. ac_header_preproc=no
  27156. fi
  27157. rm -f conftest.err conftest.$ac_ext
  27158. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  27159. echo "${ECHO_T}$ac_header_preproc" >&6
  27160. # So? What about this header?
  27161. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  27162. yes:no: )
  27163. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  27164. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  27165. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  27166. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  27167. ac_header_preproc=yes
  27168. ;;
  27169. no:yes:* )
  27170. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  27171. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  27172. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  27173. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  27174. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  27175. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  27176. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  27177. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  27178. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  27179. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  27180. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  27181. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  27182. (
  27183. cat <<\_ASBOX
  27184. ## ------------------------------------------ ##
  27185. ## Report this to the AC_PACKAGE_NAME lists. ##
  27186. ## ------------------------------------------ ##
  27187. _ASBOX
  27188. ) |
  27189. sed "s/^/$as_me: WARNING: /" >&2
  27190. ;;
  27191. esac
  27192. echo "$as_me:$LINENO: checking for $ac_header" >&5
  27193. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  27194. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  27195. echo $ECHO_N "(cached) $ECHO_C" >&6
  27196. else
  27197. eval "$as_ac_Header=\$ac_header_preproc"
  27198. fi
  27199. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  27200. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  27201. fi
  27202. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  27203. cat >>confdefs.h <<_ACEOF
  27204. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  27205. _ACEOF
  27206. break
  27207. fi
  27208. done
  27209. # ----------------------------------------------------------------------
  27210. # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
  27211. # ----------------------------------------------------------------------
  27212. echo "$as_me:$LINENO: checking for pathfind in -lgen" >&5
  27213. echo $ECHO_N "checking for pathfind in -lgen... $ECHO_C" >&6
  27214. if test "${ac_cv_lib_gen_pathfind+set}" = set; then
  27215. echo $ECHO_N "(cached) $ECHO_C" >&6
  27216. else
  27217. ac_check_lib_save_LIBS=$LIBS
  27218. LIBS="-lgen $LIBS"
  27219. cat >conftest.$ac_ext <<_ACEOF
  27220. /* confdefs.h. */
  27221. _ACEOF
  27222. cat confdefs.h >>conftest.$ac_ext
  27223. cat >>conftest.$ac_ext <<_ACEOF
  27224. /* end confdefs.h. */
  27225. /* Override any gcc2 internal prototype to avoid an error. */
  27226. #ifdef __cplusplus
  27227. extern "C"
  27228. #endif
  27229. /* We use char because int might match the return type of a gcc2
  27230. builtin and then its argument prototype would still apply. */
  27231. char pathfind ();
  27232. int
  27233. main ()
  27234. {
  27235. pathfind ();
  27236. ;
  27237. return 0;
  27238. }
  27239. _ACEOF
  27240. rm -f conftest.$ac_objext conftest$ac_exeext
  27241. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  27242. (eval $ac_link) 2>conftest.er1
  27243. ac_status=$?
  27244. grep -v '^ *+' conftest.er1 >conftest.err
  27245. rm -f conftest.er1
  27246. cat conftest.err >&5
  27247. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27248. (exit $ac_status); } &&
  27249. { ac_try='test -z "$ac_c_werror_flag"
  27250. || test ! -s conftest.err'
  27251. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27252. (eval $ac_try) 2>&5
  27253. ac_status=$?
  27254. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27255. (exit $ac_status); }; } &&
  27256. { ac_try='test -s conftest$ac_exeext'
  27257. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27258. (eval $ac_try) 2>&5
  27259. ac_status=$?
  27260. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27261. (exit $ac_status); }; }; then
  27262. ac_cv_lib_gen_pathfind=yes
  27263. else
  27264. echo "$as_me: failed program was:" >&5
  27265. sed 's/^/| /' conftest.$ac_ext >&5
  27266. ac_cv_lib_gen_pathfind=no
  27267. fi
  27268. rm -f conftest.err conftest.$ac_objext \
  27269. conftest$ac_exeext conftest.$ac_ext
  27270. LIBS=$ac_check_lib_save_LIBS
  27271. fi
  27272. echo "$as_me:$LINENO: result: $ac_cv_lib_gen_pathfind" >&5
  27273. echo "${ECHO_T}$ac_cv_lib_gen_pathfind" >&6
  27274. if test $ac_cv_lib_gen_pathfind = yes; then
  27275. cat >>confdefs.h <<_ACEOF
  27276. #define HAVE_LIBGEN 1
  27277. _ACEOF
  27278. LIBS="-lgen $LIBS"
  27279. fi
  27280. for ac_func in mmap
  27281. do
  27282. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  27283. echo "$as_me:$LINENO: checking for $ac_func" >&5
  27284. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  27285. if eval "test \"\${$as_ac_var+set}\" = set"; then
  27286. echo $ECHO_N "(cached) $ECHO_C" >&6
  27287. else
  27288. cat >conftest.$ac_ext <<_ACEOF
  27289. /* confdefs.h. */
  27290. _ACEOF
  27291. cat confdefs.h >>conftest.$ac_ext
  27292. cat >>conftest.$ac_ext <<_ACEOF
  27293. /* end confdefs.h. */
  27294. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  27295. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  27296. #define $ac_func innocuous_$ac_func
  27297. /* System header to define __stub macros and hopefully few prototypes,
  27298. which can conflict with char $ac_func (); below.
  27299. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  27300. <limits.h> exists even on freestanding compilers. */
  27301. #ifdef __STDC__
  27302. # include <limits.h>
  27303. #else
  27304. # include <assert.h>
  27305. #endif
  27306. #undef $ac_func
  27307. /* Override any gcc2 internal prototype to avoid an error. */
  27308. #ifdef __cplusplus
  27309. extern "C"
  27310. {
  27311. #endif
  27312. /* We use char because int might match the return type of a gcc2
  27313. builtin and then its argument prototype would still apply. */
  27314. char $ac_func ();
  27315. /* The GNU C library defines this for functions which it implements
  27316. to always fail with ENOSYS. Some functions are actually named
  27317. something starting with __ and the normal name is an alias. */
  27318. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  27319. choke me
  27320. #else
  27321. char (*f) () = $ac_func;
  27322. #endif
  27323. #ifdef __cplusplus
  27324. }
  27325. #endif
  27326. int
  27327. main ()
  27328. {
  27329. return f != $ac_func;
  27330. ;
  27331. return 0;
  27332. }
  27333. _ACEOF
  27334. rm -f conftest.$ac_objext conftest$ac_exeext
  27335. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  27336. (eval $ac_link) 2>conftest.er1
  27337. ac_status=$?
  27338. grep -v '^ *+' conftest.er1 >conftest.err
  27339. rm -f conftest.er1
  27340. cat conftest.err >&5
  27341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27342. (exit $ac_status); } &&
  27343. { ac_try='test -z "$ac_c_werror_flag"
  27344. || test ! -s conftest.err'
  27345. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27346. (eval $ac_try) 2>&5
  27347. ac_status=$?
  27348. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27349. (exit $ac_status); }; } &&
  27350. { ac_try='test -s conftest$ac_exeext'
  27351. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27352. (eval $ac_try) 2>&5
  27353. ac_status=$?
  27354. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27355. (exit $ac_status); }; }; then
  27356. eval "$as_ac_var=yes"
  27357. else
  27358. echo "$as_me: failed program was:" >&5
  27359. sed 's/^/| /' conftest.$ac_ext >&5
  27360. eval "$as_ac_var=no"
  27361. fi
  27362. rm -f conftest.err conftest.$ac_objext \
  27363. conftest$ac_exeext conftest.$ac_ext
  27364. fi
  27365. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  27366. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  27367. if test `eval echo '${'$as_ac_var'}'` = yes; then
  27368. cat >>confdefs.h <<_ACEOF
  27369. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  27370. _ACEOF
  27371. fi
  27372. done
  27373. NEED_LIBOPTS_DIR=true
  27374. fi
  27375. fi # end of if test -z "${NEED_LIBOPTS_DIR}"
  27376. if test -n "${NEED_LIBOPTS_DIR}"; then
  27377. NEED_LIBOPTS_TRUE=
  27378. NEED_LIBOPTS_FALSE='#'
  27379. else
  27380. NEED_LIBOPTS_TRUE='#'
  27381. NEED_LIBOPTS_FALSE=
  27382. fi
  27383. ac_config_files="$ac_config_files libopts/Makefile"
  27384. ac_config_files="$ac_config_files Makefile lib/Makefile docs/Makefile src/Makefile src/common/Makefile src/defines.h test/Makefile test/config scripts/Makefile tcpreplay.spec"
  27385. cat >confcache <<\_ACEOF
  27386. # This file is a shell script that caches the results of configure
  27387. # tests run on this system so they can be shared between configure
  27388. # scripts and configure runs, see configure's option --config-cache.
  27389. # It is not useful on other systems. If it contains results you don't
  27390. # want to keep, you may remove or edit it.
  27391. #
  27392. # config.status only pays attention to the cache file if you give it
  27393. # the --recheck option to rerun configure.
  27394. #
  27395. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  27396. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  27397. # following values.
  27398. _ACEOF
  27399. # The following way of writing the cache mishandles newlines in values,
  27400. # but we know of no workaround that is simple, portable, and efficient.
  27401. # So, don't put newlines in cache variables' values.
  27402. # Ultrix sh set writes to stderr and can't be redirected directly,
  27403. # and sets the high bit in the cache file unless we assign to the vars.
  27404. {
  27405. (set) 2>&1 |
  27406. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  27407. *ac_space=\ *)
  27408. # `set' does not quote correctly, so add quotes (double-quote
  27409. # substitution turns \\\\ into \\, and sed turns \\ into \).
  27410. sed -n \
  27411. "s/'/'\\\\''/g;
  27412. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  27413. ;;
  27414. *)
  27415. # `set' quotes correctly as required by POSIX, so do not add quotes.
  27416. sed -n \
  27417. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  27418. ;;
  27419. esac;
  27420. } |
  27421. sed '
  27422. t clear
  27423. : clear
  27424. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  27425. t end
  27426. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  27427. : end' >>confcache
  27428. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  27429. if test -w $cache_file; then
  27430. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  27431. cat confcache >$cache_file
  27432. else
  27433. echo "not updating unwritable cache $cache_file"
  27434. fi
  27435. fi
  27436. rm -f confcache
  27437. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  27438. # Let make expand exec_prefix.
  27439. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  27440. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  27441. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  27442. # trailing colons and then remove the whole line if VPATH becomes empty
  27443. # (actually we leave an empty line to preserve line numbers).
  27444. if test "x$srcdir" = x.; then
  27445. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  27446. s/:*\$(srcdir):*/:/;
  27447. s/:*\${srcdir}:*/:/;
  27448. s/:*@srcdir@:*/:/;
  27449. s/^\([^=]*=[ ]*\):*/\1/;
  27450. s/:*$//;
  27451. s/^[^=]*=[ ]*$//;
  27452. }'
  27453. fi
  27454. DEFS=-DHAVE_CONFIG_H
  27455. ac_libobjs=
  27456. ac_ltlibobjs=
  27457. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  27458. # 1. Remove the extension, and $U if already installed.
  27459. ac_i=`echo "$ac_i" |
  27460. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  27461. # 2. Add them.
  27462. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  27463. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  27464. done
  27465. LIBOBJS=$ac_libobjs
  27466. LTLIBOBJS=$ac_ltlibobjs
  27467. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  27468. { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  27469. Usually this means the macro was only invoked conditionally." >&5
  27470. echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  27471. Usually this means the macro was only invoked conditionally." >&2;}
  27472. { (exit 1); exit 1; }; }
  27473. fi
  27474. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  27475. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  27476. Usually this means the macro was only invoked conditionally." >&5
  27477. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  27478. Usually this means the macro was only invoked conditionally." >&2;}
  27479. { (exit 1); exit 1; }; }
  27480. fi
  27481. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  27482. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  27483. Usually this means the macro was only invoked conditionally." >&5
  27484. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  27485. Usually this means the macro was only invoked conditionally." >&2;}
  27486. { (exit 1); exit 1; }; }
  27487. fi
  27488. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  27489. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  27490. Usually this means the macro was only invoked conditionally." >&5
  27491. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  27492. Usually this means the macro was only invoked conditionally." >&2;}
  27493. { (exit 1); exit 1; }; }
  27494. fi
  27495. if test -z "${SYSTEM_STRLCPY_TRUE}" && test -z "${SYSTEM_STRLCPY_FALSE}"; then
  27496. { { echo "$as_me:$LINENO: error: conditional \"SYSTEM_STRLCPY\" was never defined.
  27497. Usually this means the macro was only invoked conditionally." >&5
  27498. echo "$as_me: error: conditional \"SYSTEM_STRLCPY\" was never defined.
  27499. Usually this means the macro was only invoked conditionally." >&2;}
  27500. { (exit 1); exit 1; }; }
  27501. fi
  27502. if test -z "${HAVE_DOCTOOLS_TRUE}" && test -z "${HAVE_DOCTOOLS_FALSE}"; then
  27503. { { echo "$as_me:$LINENO: error: conditional \"HAVE_DOCTOOLS\" was never defined.
  27504. Usually this means the macro was only invoked conditionally." >&5
  27505. echo "$as_me: error: conditional \"HAVE_DOCTOOLS\" was never defined.
  27506. Usually this means the macro was only invoked conditionally." >&2;}
  27507. { (exit 1); exit 1; }; }
  27508. fi
  27509. if test -z "${HAVE_LIBNIDS_TRUE}" && test -z "${HAVE_LIBNIDS_FALSE}"; then
  27510. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBNIDS\" was never defined.
  27511. Usually this means the macro was only invoked conditionally." >&5
  27512. echo "$as_me: error: conditional \"HAVE_LIBNIDS\" was never defined.
  27513. Usually this means the macro was only invoked conditionally." >&2;}
  27514. { (exit 1); exit 1; }; }
  27515. fi
  27516. if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
  27517. { { echo "$as_me:$LINENO: error: conditional \"NEED_LIBOPTS\" was never defined.
  27518. Usually this means the macro was only invoked conditionally." >&5
  27519. echo "$as_me: error: conditional \"NEED_LIBOPTS\" was never defined.
  27520. Usually this means the macro was only invoked conditionally." >&2;}
  27521. { (exit 1); exit 1; }; }
  27522. fi
  27523. : ${CONFIG_STATUS=./config.status}
  27524. ac_clean_files_save=$ac_clean_files
  27525. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  27526. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  27527. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  27528. cat >$CONFIG_STATUS <<_ACEOF
  27529. #! $SHELL
  27530. # Generated by $as_me.
  27531. # Run this file to recreate the current configuration.
  27532. # Compiler output produced by configure, useful for debugging
  27533. # configure, is in config.log if it exists.
  27534. debug=false
  27535. ac_cs_recheck=false
  27536. ac_cs_silent=false
  27537. SHELL=\${CONFIG_SHELL-$SHELL}
  27538. _ACEOF
  27539. cat >>$CONFIG_STATUS <<\_ACEOF
  27540. ## --------------------- ##
  27541. ## M4sh Initialization. ##
  27542. ## --------------------- ##
  27543. # Be Bourne compatible
  27544. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  27545. emulate sh
  27546. NULLCMD=:
  27547. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  27548. # is contrary to our usage. Disable this feature.
  27549. alias -g '${1+"$@"}'='"$@"'
  27550. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  27551. set -o posix
  27552. fi
  27553. DUALCASE=1; export DUALCASE # for MKS sh
  27554. # Support unset when possible.
  27555. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  27556. as_unset=unset
  27557. else
  27558. as_unset=false
  27559. fi
  27560. # Work around bugs in pre-3.0 UWIN ksh.
  27561. $as_unset ENV MAIL MAILPATH
  27562. PS1='$ '
  27563. PS2='> '
  27564. PS4='+ '
  27565. # NLS nuisances.
  27566. for as_var in \
  27567. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  27568. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  27569. LC_TELEPHONE LC_TIME
  27570. do
  27571. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  27572. eval $as_var=C; export $as_var
  27573. else
  27574. $as_unset $as_var
  27575. fi
  27576. done
  27577. # Required to use basename.
  27578. if expr a : '\(a\)' >/dev/null 2>&1; then
  27579. as_expr=expr
  27580. else
  27581. as_expr=false
  27582. fi
  27583. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  27584. as_basename=basename
  27585. else
  27586. as_basename=false
  27587. fi
  27588. # Name of the executable.
  27589. as_me=`$as_basename "$0" ||
  27590. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  27591. X"$0" : 'X\(//\)$' \| \
  27592. X"$0" : 'X\(/\)$' \| \
  27593. . : '\(.\)' 2>/dev/null ||
  27594. echo X/"$0" |
  27595. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  27596. /^X\/\(\/\/\)$/{ s//\1/; q; }
  27597. /^X\/\(\/\).*/{ s//\1/; q; }
  27598. s/.*/./; q'`
  27599. # PATH needs CR, and LINENO needs CR and PATH.
  27600. # Avoid depending upon Character Ranges.
  27601. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  27602. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  27603. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  27604. as_cr_digits='0123456789'
  27605. as_cr_alnum=$as_cr_Letters$as_cr_digits
  27606. # The user is always right.
  27607. if test "${PATH_SEPARATOR+set}" != set; then
  27608. echo "#! /bin/sh" >conf$$.sh
  27609. echo "exit 0" >>conf$$.sh
  27610. chmod +x conf$$.sh
  27611. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  27612. PATH_SEPARATOR=';'
  27613. else
  27614. PATH_SEPARATOR=:
  27615. fi
  27616. rm -f conf$$.sh
  27617. fi
  27618. as_lineno_1=$LINENO
  27619. as_lineno_2=$LINENO
  27620. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  27621. test "x$as_lineno_1" != "x$as_lineno_2" &&
  27622. test "x$as_lineno_3" = "x$as_lineno_2" || {
  27623. # Find who we are. Look in the path if we contain no path at all
  27624. # relative or not.
  27625. case $0 in
  27626. *[\\/]* ) as_myself=$0 ;;
  27627. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  27628. for as_dir in $PATH
  27629. do
  27630. IFS=$as_save_IFS
  27631. test -z "$as_dir" && as_dir=.
  27632. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  27633. done
  27634. ;;
  27635. esac
  27636. # We did not find ourselves, most probably we were run as `sh COMMAND'
  27637. # in which case we are not to be found in the path.
  27638. if test "x$as_myself" = x; then
  27639. as_myself=$0
  27640. fi
  27641. if test ! -f "$as_myself"; then
  27642. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  27643. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  27644. { (exit 1); exit 1; }; }
  27645. fi
  27646. case $CONFIG_SHELL in
  27647. '')
  27648. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  27649. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  27650. do
  27651. IFS=$as_save_IFS
  27652. test -z "$as_dir" && as_dir=.
  27653. for as_base in sh bash ksh sh5; do
  27654. case $as_dir in
  27655. /*)
  27656. if ("$as_dir/$as_base" -c '
  27657. as_lineno_1=$LINENO
  27658. as_lineno_2=$LINENO
  27659. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  27660. test "x$as_lineno_1" != "x$as_lineno_2" &&
  27661. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  27662. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  27663. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  27664. CONFIG_SHELL=$as_dir/$as_base
  27665. export CONFIG_SHELL
  27666. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  27667. fi;;
  27668. esac
  27669. done
  27670. done
  27671. ;;
  27672. esac
  27673. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  27674. # uniformly replaced by the line number. The first 'sed' inserts a
  27675. # line-number line before each line; the second 'sed' does the real
  27676. # work. The second script uses 'N' to pair each line-number line
  27677. # with the numbered line, and appends trailing '-' during
  27678. # substitution so that $LINENO is not a special case at line end.
  27679. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  27680. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  27681. sed '=' <$as_myself |
  27682. sed '
  27683. N
  27684. s,$,-,
  27685. : loop
  27686. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  27687. t loop
  27688. s,-$,,
  27689. s,^['$as_cr_digits']*\n,,
  27690. ' >$as_me.lineno &&
  27691. chmod +x $as_me.lineno ||
  27692. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  27693. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  27694. { (exit 1); exit 1; }; }
  27695. # Don't try to exec as it changes $[0], causing all sort of problems
  27696. # (the dirname of $[0] is not the place where we might find the
  27697. # original and so on. Autoconf is especially sensible to this).
  27698. . ./$as_me.lineno
  27699. # Exit status is that of the last command.
  27700. exit
  27701. }
  27702. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  27703. *c*,-n*) ECHO_N= ECHO_C='
  27704. ' ECHO_T=' ' ;;
  27705. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  27706. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  27707. esac
  27708. if expr a : '\(a\)' >/dev/null 2>&1; then
  27709. as_expr=expr
  27710. else
  27711. as_expr=false
  27712. fi
  27713. rm -f conf$$ conf$$.exe conf$$.file
  27714. echo >conf$$.file
  27715. if ln -s conf$$.file conf$$ 2>/dev/null; then
  27716. # We could just check for DJGPP; but this test a) works b) is more generic
  27717. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  27718. if test -f conf$$.exe; then
  27719. # Don't use ln at all; we don't have any links
  27720. as_ln_s='cp -p'
  27721. else
  27722. as_ln_s='ln -s'
  27723. fi
  27724. elif ln conf$$.file conf$$ 2>/dev/null; then
  27725. as_ln_s=ln
  27726. else
  27727. as_ln_s='cp -p'
  27728. fi
  27729. rm -f conf$$ conf$$.exe conf$$.file
  27730. if mkdir -p . 2>/dev/null; then
  27731. as_mkdir_p=:
  27732. else
  27733. test -d ./-p && rmdir ./-p
  27734. as_mkdir_p=false
  27735. fi
  27736. as_executable_p="test -f"
  27737. # Sed expression to map a string onto a valid CPP name.
  27738. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  27739. # Sed expression to map a string onto a valid variable name.
  27740. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  27741. # IFS
  27742. # We need space, tab and new line, in precisely that order.
  27743. as_nl='
  27744. '
  27745. IFS=" $as_nl"
  27746. # CDPATH.
  27747. $as_unset CDPATH
  27748. exec 6>&1
  27749. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  27750. # report actual input values of CONFIG_FILES etc. instead of their
  27751. # values after options handling. Logging --version etc. is OK.
  27752. exec 5>>config.log
  27753. {
  27754. echo
  27755. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  27756. ## Running $as_me. ##
  27757. _ASBOX
  27758. } >&5
  27759. cat >&5 <<_CSEOF
  27760. This file was extended by $as_me, which was
  27761. generated by GNU Autoconf 2.59. Invocation command line was
  27762. CONFIG_FILES = $CONFIG_FILES
  27763. CONFIG_HEADERS = $CONFIG_HEADERS
  27764. CONFIG_LINKS = $CONFIG_LINKS
  27765. CONFIG_COMMANDS = $CONFIG_COMMANDS
  27766. $ $0 $@
  27767. _CSEOF
  27768. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  27769. echo >&5
  27770. _ACEOF
  27771. # Files that config.status was made for.
  27772. if test -n "$ac_config_files"; then
  27773. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  27774. fi
  27775. if test -n "$ac_config_headers"; then
  27776. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  27777. fi
  27778. if test -n "$ac_config_links"; then
  27779. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  27780. fi
  27781. if test -n "$ac_config_commands"; then
  27782. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  27783. fi
  27784. cat >>$CONFIG_STATUS <<\_ACEOF
  27785. ac_cs_usage="\
  27786. \`$as_me' instantiates files from templates according to the
  27787. current configuration.
  27788. Usage: $0 [OPTIONS] [FILE]...
  27789. -h, --help print this help, then exit
  27790. -V, --version print version number, then exit
  27791. -q, --quiet do not print progress messages
  27792. -d, --debug don't remove temporary files
  27793. --recheck update $as_me by reconfiguring in the same conditions
  27794. --file=FILE[:TEMPLATE]
  27795. instantiate the configuration file FILE
  27796. --header=FILE[:TEMPLATE]
  27797. instantiate the configuration header FILE
  27798. Configuration files:
  27799. $config_files
  27800. Configuration headers:
  27801. $config_headers
  27802. Configuration commands:
  27803. $config_commands
  27804. Report bugs to <bug-autoconf@gnu.org>."
  27805. _ACEOF
  27806. cat >>$CONFIG_STATUS <<_ACEOF
  27807. ac_cs_version="\\
  27808. config.status
  27809. configured by $0, generated by GNU Autoconf 2.59,
  27810. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  27811. Copyright (C) 2003 Free Software Foundation, Inc.
  27812. This config.status script is free software; the Free Software Foundation
  27813. gives unlimited permission to copy, distribute and modify it."
  27814. srcdir=$srcdir
  27815. INSTALL="$INSTALL"
  27816. _ACEOF
  27817. cat >>$CONFIG_STATUS <<\_ACEOF
  27818. # If no file are specified by the user, then we need to provide default
  27819. # value. By we need to know if files were specified by the user.
  27820. ac_need_defaults=:
  27821. while test $# != 0
  27822. do
  27823. case $1 in
  27824. --*=*)
  27825. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  27826. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  27827. ac_shift=:
  27828. ;;
  27829. -*)
  27830. ac_option=$1
  27831. ac_optarg=$2
  27832. ac_shift=shift
  27833. ;;
  27834. *) # This is not an option, so the user has probably given explicit
  27835. # arguments.
  27836. ac_option=$1
  27837. ac_need_defaults=false;;
  27838. esac
  27839. case $ac_option in
  27840. # Handling of the options.
  27841. _ACEOF
  27842. cat >>$CONFIG_STATUS <<\_ACEOF
  27843. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  27844. ac_cs_recheck=: ;;
  27845. --version | --vers* | -V )
  27846. echo "$ac_cs_version"; exit 0 ;;
  27847. --he | --h)
  27848. # Conflict between --help and --header
  27849. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  27850. Try \`$0 --help' for more information." >&5
  27851. echo "$as_me: error: ambiguous option: $1
  27852. Try \`$0 --help' for more information." >&2;}
  27853. { (exit 1); exit 1; }; };;
  27854. --help | --hel | -h )
  27855. echo "$ac_cs_usage"; exit 0 ;;
  27856. --debug | --d* | -d )
  27857. debug=: ;;
  27858. --file | --fil | --fi | --f )
  27859. $ac_shift
  27860. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  27861. ac_need_defaults=false;;
  27862. --header | --heade | --head | --hea )
  27863. $ac_shift
  27864. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  27865. ac_need_defaults=false;;
  27866. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  27867. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  27868. ac_cs_silent=: ;;
  27869. # This is an error.
  27870. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  27871. Try \`$0 --help' for more information." >&5
  27872. echo "$as_me: error: unrecognized option: $1
  27873. Try \`$0 --help' for more information." >&2;}
  27874. { (exit 1); exit 1; }; } ;;
  27875. *) ac_config_targets="$ac_config_targets $1" ;;
  27876. esac
  27877. shift
  27878. done
  27879. ac_configure_extra_args=
  27880. if $ac_cs_silent; then
  27881. exec 6>/dev/null
  27882. ac_configure_extra_args="$ac_configure_extra_args --silent"
  27883. fi
  27884. _ACEOF
  27885. cat >>$CONFIG_STATUS <<_ACEOF
  27886. if \$ac_cs_recheck; then
  27887. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  27888. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  27889. fi
  27890. _ACEOF
  27891. cat >>$CONFIG_STATUS <<_ACEOF
  27892. #
  27893. # INIT-COMMANDS section.
  27894. #
  27895. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  27896. _ACEOF
  27897. cat >>$CONFIG_STATUS <<\_ACEOF
  27898. for ac_config_target in $ac_config_targets
  27899. do
  27900. case "$ac_config_target" in
  27901. # Handling of arguments.
  27902. "libopts/Makefile" ) CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;;
  27903. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  27904. "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  27905. "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
  27906. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  27907. "src/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;;
  27908. "src/defines.h" ) CONFIG_FILES="$CONFIG_FILES src/defines.h" ;;
  27909. "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  27910. "test/config" ) CONFIG_FILES="$CONFIG_FILES test/config" ;;
  27911. "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
  27912. "tcpreplay.spec" ) CONFIG_FILES="$CONFIG_FILES tcpreplay.spec" ;;
  27913. "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  27914. "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  27915. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  27916. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  27917. { (exit 1); exit 1; }; };;
  27918. esac
  27919. done
  27920. # If the user did not use the arguments to specify the items to instantiate,
  27921. # then the envvar interface is used. Set only those that are not.
  27922. # We use the long form for the default assignment because of an extremely
  27923. # bizarre bug on SunOS 4.1.3.
  27924. if $ac_need_defaults; then
  27925. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  27926. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  27927. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  27928. fi
  27929. # Have a temporary directory for convenience. Make it in the build tree
  27930. # simply because there is no reason to put it here, and in addition,
  27931. # creating and moving files from /tmp can sometimes cause problems.
  27932. # Create a temporary directory, and hook for its removal unless debugging.
  27933. $debug ||
  27934. {
  27935. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  27936. trap '{ (exit 1); exit 1; }' 1 2 13 15
  27937. }
  27938. # Create a (secure) tmp directory for tmp files.
  27939. {
  27940. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  27941. test -n "$tmp" && test -d "$tmp"
  27942. } ||
  27943. {
  27944. tmp=./confstat$$-$RANDOM
  27945. (umask 077 && mkdir $tmp)
  27946. } ||
  27947. {
  27948. echo "$me: cannot create a temporary directory in ." >&2
  27949. { (exit 1); exit 1; }
  27950. }
  27951. _ACEOF
  27952. cat >>$CONFIG_STATUS <<_ACEOF
  27953. #
  27954. # CONFIG_FILES section.
  27955. #
  27956. # No need to generate the scripts if there are no CONFIG_FILES.
  27957. # This happens for instance when ./config.status config.h
  27958. if test -n "\$CONFIG_FILES"; then
  27959. # Protect against being on the right side of a sed subst in config.status.
  27960. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  27961. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  27962. s,@SHELL@,$SHELL,;t t
  27963. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  27964. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  27965. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  27966. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  27967. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  27968. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  27969. s,@exec_prefix@,$exec_prefix,;t t
  27970. s,@prefix@,$prefix,;t t
  27971. s,@program_transform_name@,$program_transform_name,;t t
  27972. s,@bindir@,$bindir,;t t
  27973. s,@sbindir@,$sbindir,;t t
  27974. s,@libexecdir@,$libexecdir,;t t
  27975. s,@datadir@,$datadir,;t t
  27976. s,@sysconfdir@,$sysconfdir,;t t
  27977. s,@sharedstatedir@,$sharedstatedir,;t t
  27978. s,@localstatedir@,$localstatedir,;t t
  27979. s,@libdir@,$libdir,;t t
  27980. s,@includedir@,$includedir,;t t
  27981. s,@oldincludedir@,$oldincludedir,;t t
  27982. s,@infodir@,$infodir,;t t
  27983. s,@mandir@,$mandir,;t t
  27984. s,@build_alias@,$build_alias,;t t
  27985. s,@host_alias@,$host_alias,;t t
  27986. s,@target_alias@,$target_alias,;t t
  27987. s,@DEFS@,$DEFS,;t t
  27988. s,@ECHO_C@,$ECHO_C,;t t
  27989. s,@ECHO_N@,$ECHO_N,;t t
  27990. s,@ECHO_T@,$ECHO_T,;t t
  27991. s,@LIBS@,$LIBS,;t t
  27992. s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
  27993. s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
  27994. s,@MAINT@,$MAINT,;t t
  27995. s,@build@,$build,;t t
  27996. s,@build_cpu@,$build_cpu,;t t
  27997. s,@build_vendor@,$build_vendor,;t t
  27998. s,@build_os@,$build_os,;t t
  27999. s,@host@,$host,;t t
  28000. s,@host_cpu@,$host_cpu,;t t
  28001. s,@host_vendor@,$host_vendor,;t t
  28002. s,@host_os@,$host_os,;t t
  28003. s,@CC@,$CC,;t t
  28004. s,@CFLAGS@,$CFLAGS,;t t
  28005. s,@LDFLAGS@,$LDFLAGS,;t t
  28006. s,@CPPFLAGS@,$CPPFLAGS,;t t
  28007. s,@ac_ct_CC@,$ac_ct_CC,;t t
  28008. s,@EXEEXT@,$EXEEXT,;t t
  28009. s,@OBJEXT@,$OBJEXT,;t t
  28010. s,@EGREP@,$EGREP,;t t
  28011. s,@LN_S@,$LN_S,;t t
  28012. s,@ECHO@,$ECHO,;t t
  28013. s,@AR@,$AR,;t t
  28014. s,@ac_ct_AR@,$ac_ct_AR,;t t
  28015. s,@RANLIB@,$RANLIB,;t t
  28016. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  28017. s,@STRIP@,$STRIP,;t t
  28018. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  28019. s,@CPP@,$CPP,;t t
  28020. s,@CXX@,$CXX,;t t
  28021. s,@CXXFLAGS@,$CXXFLAGS,;t t
  28022. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  28023. s,@CXXCPP@,$CXXCPP,;t t
  28024. s,@F77@,$F77,;t t
  28025. s,@FFLAGS@,$FFLAGS,;t t
  28026. s,@ac_ct_F77@,$ac_ct_F77,;t t
  28027. s,@LIBTOOL@,$LIBTOOL,;t t
  28028. s,@TCPREPLAY_VERSION@,$TCPREPLAY_VERSION,;t t
  28029. s,@TCPREPLAY_RELEASE@,$TCPREPLAY_RELEASE,;t t
  28030. s,@target@,$target,;t t
  28031. s,@target_cpu@,$target_cpu,;t t
  28032. s,@target_vendor@,$target_vendor,;t t
  28033. s,@target_os@,$target_os,;t t
  28034. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  28035. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  28036. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  28037. s,@CYGPATH_W@,$CYGPATH_W,;t t
  28038. s,@PACKAGE@,$PACKAGE,;t t
  28039. s,@VERSION@,$VERSION,;t t
  28040. s,@ACLOCAL@,$ACLOCAL,;t t
  28041. s,@AUTOCONF@,$AUTOCONF,;t t
  28042. s,@AUTOMAKE@,$AUTOMAKE,;t t
  28043. s,@AUTOHEADER@,$AUTOHEADER,;t t
  28044. s,@MAKEINFO@,$MAKEINFO,;t t
  28045. s,@install_sh@,$install_sh,;t t
  28046. s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  28047. s,@mkdir_p@,$mkdir_p,;t t
  28048. s,@AWK@,$AWK,;t t
  28049. s,@SET_MAKE@,$SET_MAKE,;t t
  28050. s,@am__leading_dot@,$am__leading_dot,;t t
  28051. s,@AMTAR@,$AMTAR,;t t
  28052. s,@am__tar@,$am__tar,;t t
  28053. s,@am__untar@,$am__untar,;t t
  28054. s,@DEPDIR@,$DEPDIR,;t t
  28055. s,@am__include@,$am__include,;t t
  28056. s,@am__quote@,$am__quote,;t t
  28057. s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  28058. s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  28059. s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  28060. s,@CCDEPMODE@,$CCDEPMODE,;t t
  28061. s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  28062. s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  28063. s,@CXXDEPMODE@,$CXXDEPMODE,;t t
  28064. s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
  28065. s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
  28066. s,@PRINTF@,$PRINTF,;t t
  28067. s,@FIG2DEV@,$FIG2DEV,;t t
  28068. s,@LYX@,$LYX,;t t
  28069. s,@DVIPS@,$DVIPS,;t t
  28070. s,@TEXI2DVI@,$TEXI2DVI,;t t
  28071. s,@LATEX2HTML@,$LATEX2HTML,;t t
  28072. s,@DVIPDFM@,$DVIPDFM,;t t
  28073. s,@AUTOGEN@,$AUTOGEN,;t t
  28074. s,@LIBOBJS@,$LIBOBJS,;t t
  28075. s,@SYSTEM_STRLCPY_TRUE@,$SYSTEM_STRLCPY_TRUE,;t t
  28076. s,@SYSTEM_STRLCPY_FALSE@,$SYSTEM_STRLCPY_FALSE,;t t
  28077. s,@HAVE_DOCTOOLS_TRUE@,$HAVE_DOCTOOLS_TRUE,;t t
  28078. s,@HAVE_DOCTOOLS_FALSE@,$HAVE_DOCTOOLS_FALSE,;t t
  28079. s,@debug_flag@,$debug_flag,;t t
  28080. s,@LNETINC@,$LNETINC,;t t
  28081. s,@LNETLIB@,$LNETLIB,;t t
  28082. s,@LPCAPINC@,$LPCAPINC,;t t
  28083. s,@LPCAPLIB@,$LPCAPLIB,;t t
  28084. s,@PCAP_BPF_H_FILE@,$PCAP_BPF_H_FILE,;t t
  28085. s,@pcncfg@,$pcncfg,;t t
  28086. s,@LNAVLIB@,$LNAVLIB,;t t
  28087. s,@LNAV_CFLAGS@,$LNAV_CFLAGS,;t t
  28088. s,@LNIDSINC@,$LNIDSINC,;t t
  28089. s,@LNIDSLIB@,$LNIDSLIB,;t t
  28090. s,@HAVE_LIBNIDS_TRUE@,$HAVE_LIBNIDS_TRUE,;t t
  28091. s,@HAVE_LIBNIDS_FALSE@,$HAVE_LIBNIDS_FALSE,;t t
  28092. s,@td@,$td,;t t
  28093. s,@nic1@,$nic1,;t t
  28094. s,@nic2@,$nic2,;t t
  28095. s,@NEED_LIBOPTS_TRUE@,$NEED_LIBOPTS_TRUE,;t t
  28096. s,@NEED_LIBOPTS_FALSE@,$NEED_LIBOPTS_FALSE,;t t
  28097. s,@LIBOPTS_LDADD@,$LIBOPTS_LDADD,;t t
  28098. s,@LIBOPTS_CFLAGS@,$LIBOPTS_CFLAGS,;t t
  28099. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  28100. CEOF
  28101. _ACEOF
  28102. cat >>$CONFIG_STATUS <<\_ACEOF
  28103. # Split the substitutions into bite-sized pieces for seds with
  28104. # small command number limits, like on Digital OSF/1 and HP-UX.
  28105. ac_max_sed_lines=48
  28106. ac_sed_frag=1 # Number of current file.
  28107. ac_beg=1 # First line for current file.
  28108. ac_end=$ac_max_sed_lines # Line after last line for current file.
  28109. ac_more_lines=:
  28110. ac_sed_cmds=
  28111. while $ac_more_lines; do
  28112. if test $ac_beg -gt 1; then
  28113. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  28114. else
  28115. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  28116. fi
  28117. if test ! -s $tmp/subs.frag; then
  28118. ac_more_lines=false
  28119. else
  28120. # The purpose of the label and of the branching condition is to
  28121. # speed up the sed processing (if there are no `@' at all, there
  28122. # is no need to browse any of the substitutions).
  28123. # These are the two extra sed commands mentioned above.
  28124. (echo ':t
  28125. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  28126. if test -z "$ac_sed_cmds"; then
  28127. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  28128. else
  28129. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  28130. fi
  28131. ac_sed_frag=`expr $ac_sed_frag + 1`
  28132. ac_beg=$ac_end
  28133. ac_end=`expr $ac_end + $ac_max_sed_lines`
  28134. fi
  28135. done
  28136. if test -z "$ac_sed_cmds"; then
  28137. ac_sed_cmds=cat
  28138. fi
  28139. fi # test -n "$CONFIG_FILES"
  28140. _ACEOF
  28141. cat >>$CONFIG_STATUS <<\_ACEOF
  28142. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  28143. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  28144. case $ac_file in
  28145. - | *:- | *:-:* ) # input from stdin
  28146. cat >$tmp/stdin
  28147. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  28148. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  28149. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  28150. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  28151. * ) ac_file_in=$ac_file.in ;;
  28152. esac
  28153. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  28154. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  28155. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  28156. X"$ac_file" : 'X\(//\)[^/]' \| \
  28157. X"$ac_file" : 'X\(//\)$' \| \
  28158. X"$ac_file" : 'X\(/\)' \| \
  28159. . : '\(.\)' 2>/dev/null ||
  28160. echo X"$ac_file" |
  28161. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  28162. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  28163. /^X\(\/\/\)$/{ s//\1/; q; }
  28164. /^X\(\/\).*/{ s//\1/; q; }
  28165. s/.*/./; q'`
  28166. { if $as_mkdir_p; then
  28167. mkdir -p "$ac_dir"
  28168. else
  28169. as_dir="$ac_dir"
  28170. as_dirs=
  28171. while test ! -d "$as_dir"; do
  28172. as_dirs="$as_dir $as_dirs"
  28173. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  28174. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  28175. X"$as_dir" : 'X\(//\)[^/]' \| \
  28176. X"$as_dir" : 'X\(//\)$' \| \
  28177. X"$as_dir" : 'X\(/\)' \| \
  28178. . : '\(.\)' 2>/dev/null ||
  28179. echo X"$as_dir" |
  28180. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  28181. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  28182. /^X\(\/\/\)$/{ s//\1/; q; }
  28183. /^X\(\/\).*/{ s//\1/; q; }
  28184. s/.*/./; q'`
  28185. done
  28186. test ! -n "$as_dirs" || mkdir $as_dirs
  28187. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  28188. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  28189. { (exit 1); exit 1; }; }; }
  28190. ac_builddir=.
  28191. if test "$ac_dir" != .; then
  28192. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  28193. # A "../" for each directory in $ac_dir_suffix.
  28194. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  28195. else
  28196. ac_dir_suffix= ac_top_builddir=
  28197. fi
  28198. case $srcdir in
  28199. .) # No --srcdir option. We are building in place.
  28200. ac_srcdir=.
  28201. if test -z "$ac_top_builddir"; then
  28202. ac_top_srcdir=.
  28203. else
  28204. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  28205. fi ;;
  28206. [\\/]* | ?:[\\/]* ) # Absolute path.
  28207. ac_srcdir=$srcdir$ac_dir_suffix;
  28208. ac_top_srcdir=$srcdir ;;
  28209. *) # Relative path.
  28210. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  28211. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  28212. esac
  28213. # Do not use `cd foo && pwd` to compute absolute paths, because
  28214. # the directories may not exist.
  28215. case `pwd` in
  28216. .) ac_abs_builddir="$ac_dir";;
  28217. *)
  28218. case "$ac_dir" in
  28219. .) ac_abs_builddir=`pwd`;;
  28220. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  28221. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  28222. esac;;
  28223. esac
  28224. case $ac_abs_builddir in
  28225. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  28226. *)
  28227. case ${ac_top_builddir}. in
  28228. .) ac_abs_top_builddir=$ac_abs_builddir;;
  28229. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  28230. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  28231. esac;;
  28232. esac
  28233. case $ac_abs_builddir in
  28234. .) ac_abs_srcdir=$ac_srcdir;;
  28235. *)
  28236. case $ac_srcdir in
  28237. .) ac_abs_srcdir=$ac_abs_builddir;;
  28238. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  28239. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  28240. esac;;
  28241. esac
  28242. case $ac_abs_builddir in
  28243. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  28244. *)
  28245. case $ac_top_srcdir in
  28246. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  28247. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  28248. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  28249. esac;;
  28250. esac
  28251. case $INSTALL in
  28252. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  28253. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  28254. esac
  28255. if test x"$ac_file" != x-; then
  28256. { echo "$as_me:$LINENO: creating $ac_file" >&5
  28257. echo "$as_me: creating $ac_file" >&6;}
  28258. rm -f "$ac_file"
  28259. fi
  28260. # Let's still pretend it is `configure' which instantiates (i.e., don't
  28261. # use $as_me), people would be surprised to read:
  28262. # /* config.h. Generated by config.status. */
  28263. if test x"$ac_file" = x-; then
  28264. configure_input=
  28265. else
  28266. configure_input="$ac_file. "
  28267. fi
  28268. configure_input=$configure_input"Generated from `echo $ac_file_in |
  28269. sed 's,.*/,,'` by configure."
  28270. # First look for the input files in the build tree, otherwise in the
  28271. # src tree.
  28272. ac_file_inputs=`IFS=:
  28273. for f in $ac_file_in; do
  28274. case $f in
  28275. -) echo $tmp/stdin ;;
  28276. [\\/$]*)
  28277. # Absolute (can't be DOS-style, as IFS=:)
  28278. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  28279. echo "$as_me: error: cannot find input file: $f" >&2;}
  28280. { (exit 1); exit 1; }; }
  28281. echo "$f";;
  28282. *) # Relative
  28283. if test -f "$f"; then
  28284. # Build tree
  28285. echo "$f"
  28286. elif test -f "$srcdir/$f"; then
  28287. # Source tree
  28288. echo "$srcdir/$f"
  28289. else
  28290. # /dev/null tree
  28291. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  28292. echo "$as_me: error: cannot find input file: $f" >&2;}
  28293. { (exit 1); exit 1; }; }
  28294. fi;;
  28295. esac
  28296. done` || { (exit 1); exit 1; }
  28297. _ACEOF
  28298. cat >>$CONFIG_STATUS <<_ACEOF
  28299. sed "$ac_vpsub
  28300. $extrasub
  28301. _ACEOF
  28302. cat >>$CONFIG_STATUS <<\_ACEOF
  28303. :t
  28304. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  28305. s,@configure_input@,$configure_input,;t t
  28306. s,@srcdir@,$ac_srcdir,;t t
  28307. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  28308. s,@top_srcdir@,$ac_top_srcdir,;t t
  28309. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  28310. s,@builddir@,$ac_builddir,;t t
  28311. s,@abs_builddir@,$ac_abs_builddir,;t t
  28312. s,@top_builddir@,$ac_top_builddir,;t t
  28313. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  28314. s,@INSTALL@,$ac_INSTALL,;t t
  28315. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  28316. rm -f $tmp/stdin
  28317. if test x"$ac_file" != x-; then
  28318. mv $tmp/out $ac_file
  28319. else
  28320. cat $tmp/out
  28321. rm -f $tmp/out
  28322. fi
  28323. done
  28324. _ACEOF
  28325. cat >>$CONFIG_STATUS <<\_ACEOF
  28326. #
  28327. # CONFIG_HEADER section.
  28328. #
  28329. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  28330. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  28331. #
  28332. # ac_d sets the value in "#define NAME VALUE" lines.
  28333. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  28334. ac_dB='[ ].*$,\1#\2'
  28335. ac_dC=' '
  28336. ac_dD=',;t'
  28337. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  28338. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  28339. ac_uB='$,\1#\2define\3'
  28340. ac_uC=' '
  28341. ac_uD=',;t'
  28342. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  28343. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  28344. case $ac_file in
  28345. - | *:- | *:-:* ) # input from stdin
  28346. cat >$tmp/stdin
  28347. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  28348. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  28349. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  28350. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  28351. * ) ac_file_in=$ac_file.in ;;
  28352. esac
  28353. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  28354. echo "$as_me: creating $ac_file" >&6;}
  28355. # First look for the input files in the build tree, otherwise in the
  28356. # src tree.
  28357. ac_file_inputs=`IFS=:
  28358. for f in $ac_file_in; do
  28359. case $f in
  28360. -) echo $tmp/stdin ;;
  28361. [\\/$]*)
  28362. # Absolute (can't be DOS-style, as IFS=:)
  28363. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  28364. echo "$as_me: error: cannot find input file: $f" >&2;}
  28365. { (exit 1); exit 1; }; }
  28366. # Do quote $f, to prevent DOS paths from being IFS'd.
  28367. echo "$f";;
  28368. *) # Relative
  28369. if test -f "$f"; then
  28370. # Build tree
  28371. echo "$f"
  28372. elif test -f "$srcdir/$f"; then
  28373. # Source tree
  28374. echo "$srcdir/$f"
  28375. else
  28376. # /dev/null tree
  28377. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  28378. echo "$as_me: error: cannot find input file: $f" >&2;}
  28379. { (exit 1); exit 1; }; }
  28380. fi;;
  28381. esac
  28382. done` || { (exit 1); exit 1; }
  28383. # Remove the trailing spaces.
  28384. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  28385. _ACEOF
  28386. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  28387. # `conftest.undefs', that substitutes the proper values into
  28388. # config.h.in to produce config.h. The first handles `#define'
  28389. # templates, and the second `#undef' templates.
  28390. # And first: Protect against being on the right side of a sed subst in
  28391. # config.status. Protect against being in an unquoted here document
  28392. # in config.status.
  28393. rm -f conftest.defines conftest.undefs
  28394. # Using a here document instead of a string reduces the quoting nightmare.
  28395. # Putting comments in sed scripts is not portable.
  28396. #
  28397. # `end' is used to avoid that the second main sed command (meant for
  28398. # 0-ary CPP macros) applies to n-ary macro definitions.
  28399. # See the Autoconf documentation for `clear'.
  28400. cat >confdef2sed.sed <<\_ACEOF
  28401. s/[\\&,]/\\&/g
  28402. s,[\\$`],\\&,g
  28403. t clear
  28404. : clear
  28405. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  28406. t end
  28407. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  28408. : end
  28409. _ACEOF
  28410. # If some macros were called several times there might be several times
  28411. # the same #defines, which is useless. Nevertheless, we may not want to
  28412. # sort them, since we want the *last* AC-DEFINE to be honored.
  28413. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  28414. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  28415. rm -f confdef2sed.sed
  28416. # This sed command replaces #undef with comments. This is necessary, for
  28417. # example, in the case of _POSIX_SOURCE, which is predefined and required
  28418. # on some systems where configure will not decide to define it.
  28419. cat >>conftest.undefs <<\_ACEOF
  28420. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  28421. _ACEOF
  28422. # Break up conftest.defines because some shells have a limit on the size
  28423. # of here documents, and old seds have small limits too (100 cmds).
  28424. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  28425. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  28426. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  28427. echo ' :' >>$CONFIG_STATUS
  28428. rm -f conftest.tail
  28429. while grep . conftest.defines >/dev/null
  28430. do
  28431. # Write a limited-size here document to $tmp/defines.sed.
  28432. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  28433. # Speed up: don't consider the non `#define' lines.
  28434. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  28435. # Work around the forget-to-reset-the-flag bug.
  28436. echo 't clr' >>$CONFIG_STATUS
  28437. echo ': clr' >>$CONFIG_STATUS
  28438. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  28439. echo 'CEOF
  28440. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  28441. rm -f $tmp/in
  28442. mv $tmp/out $tmp/in
  28443. ' >>$CONFIG_STATUS
  28444. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  28445. rm -f conftest.defines
  28446. mv conftest.tail conftest.defines
  28447. done
  28448. rm -f conftest.defines
  28449. echo ' fi # grep' >>$CONFIG_STATUS
  28450. echo >>$CONFIG_STATUS
  28451. # Break up conftest.undefs because some shells have a limit on the size
  28452. # of here documents, and old seds have small limits too (100 cmds).
  28453. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  28454. rm -f conftest.tail
  28455. while grep . conftest.undefs >/dev/null
  28456. do
  28457. # Write a limited-size here document to $tmp/undefs.sed.
  28458. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  28459. # Speed up: don't consider the non `#undef'
  28460. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  28461. # Work around the forget-to-reset-the-flag bug.
  28462. echo 't clr' >>$CONFIG_STATUS
  28463. echo ': clr' >>$CONFIG_STATUS
  28464. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  28465. echo 'CEOF
  28466. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  28467. rm -f $tmp/in
  28468. mv $tmp/out $tmp/in
  28469. ' >>$CONFIG_STATUS
  28470. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  28471. rm -f conftest.undefs
  28472. mv conftest.tail conftest.undefs
  28473. done
  28474. rm -f conftest.undefs
  28475. cat >>$CONFIG_STATUS <<\_ACEOF
  28476. # Let's still pretend it is `configure' which instantiates (i.e., don't
  28477. # use $as_me), people would be surprised to read:
  28478. # /* config.h. Generated by config.status. */
  28479. if test x"$ac_file" = x-; then
  28480. echo "/* Generated by configure. */" >$tmp/config.h
  28481. else
  28482. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  28483. fi
  28484. cat $tmp/in >>$tmp/config.h
  28485. rm -f $tmp/in
  28486. if test x"$ac_file" != x-; then
  28487. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  28488. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  28489. echo "$as_me: $ac_file is unchanged" >&6;}
  28490. else
  28491. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  28492. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  28493. X"$ac_file" : 'X\(//\)[^/]' \| \
  28494. X"$ac_file" : 'X\(//\)$' \| \
  28495. X"$ac_file" : 'X\(/\)' \| \
  28496. . : '\(.\)' 2>/dev/null ||
  28497. echo X"$ac_file" |
  28498. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  28499. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  28500. /^X\(\/\/\)$/{ s//\1/; q; }
  28501. /^X\(\/\).*/{ s//\1/; q; }
  28502. s/.*/./; q'`
  28503. { if $as_mkdir_p; then
  28504. mkdir -p "$ac_dir"
  28505. else
  28506. as_dir="$ac_dir"
  28507. as_dirs=
  28508. while test ! -d "$as_dir"; do
  28509. as_dirs="$as_dir $as_dirs"
  28510. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  28511. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  28512. X"$as_dir" : 'X\(//\)[^/]' \| \
  28513. X"$as_dir" : 'X\(//\)$' \| \
  28514. X"$as_dir" : 'X\(/\)' \| \
  28515. . : '\(.\)' 2>/dev/null ||
  28516. echo X"$as_dir" |
  28517. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  28518. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  28519. /^X\(\/\/\)$/{ s//\1/; q; }
  28520. /^X\(\/\).*/{ s//\1/; q; }
  28521. s/.*/./; q'`
  28522. done
  28523. test ! -n "$as_dirs" || mkdir $as_dirs
  28524. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  28525. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  28526. { (exit 1); exit 1; }; }; }
  28527. rm -f $ac_file
  28528. mv $tmp/config.h $ac_file
  28529. fi
  28530. else
  28531. cat $tmp/config.h
  28532. rm -f $tmp/config.h
  28533. fi
  28534. # Compute $ac_file's index in $config_headers.
  28535. _am_stamp_count=1
  28536. for _am_header in $config_headers :; do
  28537. case $_am_header in
  28538. $ac_file | $ac_file:* )
  28539. break ;;
  28540. * )
  28541. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  28542. esac
  28543. done
  28544. echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  28545. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  28546. X$ac_file : 'X\(//\)[^/]' \| \
  28547. X$ac_file : 'X\(//\)$' \| \
  28548. X$ac_file : 'X\(/\)' \| \
  28549. . : '\(.\)' 2>/dev/null ||
  28550. echo X$ac_file |
  28551. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  28552. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  28553. /^X\(\/\/\)$/{ s//\1/; q; }
  28554. /^X\(\/\).*/{ s//\1/; q; }
  28555. s/.*/./; q'`/stamp-h$_am_stamp_count
  28556. done
  28557. _ACEOF
  28558. cat >>$CONFIG_STATUS <<\_ACEOF
  28559. #
  28560. # CONFIG_COMMANDS section.
  28561. #
  28562. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  28563. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  28564. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  28565. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  28566. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  28567. X"$ac_dest" : 'X\(//\)[^/]' \| \
  28568. X"$ac_dest" : 'X\(//\)$' \| \
  28569. X"$ac_dest" : 'X\(/\)' \| \
  28570. . : '\(.\)' 2>/dev/null ||
  28571. echo X"$ac_dest" |
  28572. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  28573. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  28574. /^X\(\/\/\)$/{ s//\1/; q; }
  28575. /^X\(\/\).*/{ s//\1/; q; }
  28576. s/.*/./; q'`
  28577. { if $as_mkdir_p; then
  28578. mkdir -p "$ac_dir"
  28579. else
  28580. as_dir="$ac_dir"
  28581. as_dirs=
  28582. while test ! -d "$as_dir"; do
  28583. as_dirs="$as_dir $as_dirs"
  28584. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  28585. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  28586. X"$as_dir" : 'X\(//\)[^/]' \| \
  28587. X"$as_dir" : 'X\(//\)$' \| \
  28588. X"$as_dir" : 'X\(/\)' \| \
  28589. . : '\(.\)' 2>/dev/null ||
  28590. echo X"$as_dir" |
  28591. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  28592. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  28593. /^X\(\/\/\)$/{ s//\1/; q; }
  28594. /^X\(\/\).*/{ s//\1/; q; }
  28595. s/.*/./; q'`
  28596. done
  28597. test ! -n "$as_dirs" || mkdir $as_dirs
  28598. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  28599. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  28600. { (exit 1); exit 1; }; }; }
  28601. ac_builddir=.
  28602. if test "$ac_dir" != .; then
  28603. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  28604. # A "../" for each directory in $ac_dir_suffix.
  28605. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  28606. else
  28607. ac_dir_suffix= ac_top_builddir=
  28608. fi
  28609. case $srcdir in
  28610. .) # No --srcdir option. We are building in place.
  28611. ac_srcdir=.
  28612. if test -z "$ac_top_builddir"; then
  28613. ac_top_srcdir=.
  28614. else
  28615. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  28616. fi ;;
  28617. [\\/]* | ?:[\\/]* ) # Absolute path.
  28618. ac_srcdir=$srcdir$ac_dir_suffix;
  28619. ac_top_srcdir=$srcdir ;;
  28620. *) # Relative path.
  28621. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  28622. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  28623. esac
  28624. # Do not use `cd foo && pwd` to compute absolute paths, because
  28625. # the directories may not exist.
  28626. case `pwd` in
  28627. .) ac_abs_builddir="$ac_dir";;
  28628. *)
  28629. case "$ac_dir" in
  28630. .) ac_abs_builddir=`pwd`;;
  28631. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  28632. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  28633. esac;;
  28634. esac
  28635. case $ac_abs_builddir in
  28636. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  28637. *)
  28638. case ${ac_top_builddir}. in
  28639. .) ac_abs_top_builddir=$ac_abs_builddir;;
  28640. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  28641. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  28642. esac;;
  28643. esac
  28644. case $ac_abs_builddir in
  28645. .) ac_abs_srcdir=$ac_srcdir;;
  28646. *)
  28647. case $ac_srcdir in
  28648. .) ac_abs_srcdir=$ac_abs_builddir;;
  28649. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  28650. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  28651. esac;;
  28652. esac
  28653. case $ac_abs_builddir in
  28654. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  28655. *)
  28656. case $ac_top_srcdir in
  28657. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  28658. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  28659. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  28660. esac;;
  28661. esac
  28662. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  28663. echo "$as_me: executing $ac_dest commands" >&6;}
  28664. case $ac_dest in
  28665. depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  28666. # Strip MF so we end up with the name of the file.
  28667. mf=`echo "$mf" | sed -e 's/:.*$//'`
  28668. # Check whether this is an Automake generated Makefile or not.
  28669. # We used to match only the files named `Makefile.in', but
  28670. # some people rename them; so instead we look at the file content.
  28671. # Grep'ing the first line is not enough: some people post-process
  28672. # each Makefile.in and add a new line on top of each file to say so.
  28673. # So let's grep whole file.
  28674. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  28675. dirpart=`(dirname "$mf") 2>/dev/null ||
  28676. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  28677. X"$mf" : 'X\(//\)[^/]' \| \
  28678. X"$mf" : 'X\(//\)$' \| \
  28679. X"$mf" : 'X\(/\)' \| \
  28680. . : '\(.\)' 2>/dev/null ||
  28681. echo X"$mf" |
  28682. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  28683. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  28684. /^X\(\/\/\)$/{ s//\1/; q; }
  28685. /^X\(\/\).*/{ s//\1/; q; }
  28686. s/.*/./; q'`
  28687. else
  28688. continue
  28689. fi
  28690. # Extract the definition of DEPDIR, am__include, and am__quote
  28691. # from the Makefile without running `make'.
  28692. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  28693. test -z "$DEPDIR" && continue
  28694. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  28695. test -z "am__include" && continue
  28696. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  28697. # When using ansi2knr, U may be empty or an underscore; expand it
  28698. U=`sed -n 's/^U = //p' < "$mf"`
  28699. # Find all dependency output files, they are included files with
  28700. # $(DEPDIR) in their names. We invoke sed twice because it is the
  28701. # simplest approach to changing $(DEPDIR) to its actual value in the
  28702. # expansion.
  28703. for file in `sed -n "
  28704. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  28705. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  28706. # Make sure the directory exists.
  28707. test -f "$dirpart/$file" && continue
  28708. fdir=`(dirname "$file") 2>/dev/null ||
  28709. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  28710. X"$file" : 'X\(//\)[^/]' \| \
  28711. X"$file" : 'X\(//\)$' \| \
  28712. X"$file" : 'X\(/\)' \| \
  28713. . : '\(.\)' 2>/dev/null ||
  28714. echo X"$file" |
  28715. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  28716. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  28717. /^X\(\/\/\)$/{ s//\1/; q; }
  28718. /^X\(\/\).*/{ s//\1/; q; }
  28719. s/.*/./; q'`
  28720. { if $as_mkdir_p; then
  28721. mkdir -p $dirpart/$fdir
  28722. else
  28723. as_dir=$dirpart/$fdir
  28724. as_dirs=
  28725. while test ! -d "$as_dir"; do
  28726. as_dirs="$as_dir $as_dirs"
  28727. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  28728. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  28729. X"$as_dir" : 'X\(//\)[^/]' \| \
  28730. X"$as_dir" : 'X\(//\)$' \| \
  28731. X"$as_dir" : 'X\(/\)' \| \
  28732. . : '\(.\)' 2>/dev/null ||
  28733. echo X"$as_dir" |
  28734. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  28735. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  28736. /^X\(\/\/\)$/{ s//\1/; q; }
  28737. /^X\(\/\).*/{ s//\1/; q; }
  28738. s/.*/./; q'`
  28739. done
  28740. test ! -n "$as_dirs" || mkdir $as_dirs
  28741. fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  28742. echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  28743. { (exit 1); exit 1; }; }; }
  28744. # echo "creating $dirpart/$file"
  28745. echo '# dummy' > "$dirpart/$file"
  28746. done
  28747. done
  28748. ;;
  28749. esac
  28750. done
  28751. _ACEOF
  28752. cat >>$CONFIG_STATUS <<\_ACEOF
  28753. { (exit 0); exit 0; }
  28754. _ACEOF
  28755. chmod +x $CONFIG_STATUS
  28756. ac_clean_files=$ac_clean_files_save
  28757. # configure is writing to config.log, and then calls config.status.
  28758. # config.status does its own redirection, appending to config.log.
  28759. # Unfortunately, on DOS this fails, as config.log is still kept open
  28760. # by configure, so config.status won't be able to write to it; its
  28761. # output is simply discarded. So we exec the FD to /dev/null,
  28762. # effectively closing config.log, so it can be properly (re)opened and
  28763. # appended to by config.status. When coming back to configure, we
  28764. # need to make the FD available again.
  28765. if test "$no_create" != yes; then
  28766. ac_cs_success=:
  28767. ac_config_status_args=
  28768. test "$silent" = yes &&
  28769. ac_config_status_args="$ac_config_status_args --quiet"
  28770. exec 5>/dev/null
  28771. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  28772. exec 5>>config.log
  28773. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  28774. # would make configure fail if this is the last instruction.
  28775. $ac_cs_success || { (exit 1); exit 1; }
  28776. fi