1
0

configure 793 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.63 for dirsrv 1.0.
  4. #
  5. # Report bugs to <http://bugzilla.redhat.com/>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## --------------------- ##
  12. ## M4sh Initialization. ##
  13. ## --------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in
  25. *posix*) set -o posix ;;
  26. esac
  27. fi
  28. # PATH needs CR
  29. # Avoid depending upon Character Ranges.
  30. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  31. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  32. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  33. as_cr_digits='0123456789'
  34. as_cr_alnum=$as_cr_Letters$as_cr_digits
  35. as_nl='
  36. '
  37. export as_nl
  38. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  39. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  42. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  43. as_echo='printf %s\n'
  44. as_echo_n='printf %s'
  45. else
  46. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  47. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  48. as_echo_n='/usr/ucb/echo -n'
  49. else
  50. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  51. as_echo_n_body='eval
  52. arg=$1;
  53. case $arg in
  54. *"$as_nl"*)
  55. expr "X$arg" : "X\\(.*\\)$as_nl";
  56. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  57. esac;
  58. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  59. '
  60. export as_echo_n_body
  61. as_echo_n='sh -c $as_echo_n_body as_echo'
  62. fi
  63. export as_echo_body
  64. as_echo='sh -c $as_echo_body as_echo'
  65. fi
  66. # The user is always right.
  67. if test "${PATH_SEPARATOR+set}" != set; then
  68. PATH_SEPARATOR=:
  69. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  70. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  71. PATH_SEPARATOR=';'
  72. }
  73. fi
  74. # Support unset when possible.
  75. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  76. as_unset=unset
  77. else
  78. as_unset=false
  79. fi
  80. # IFS
  81. # We need space, tab and new line, in precisely that order. Quoting is
  82. # there to prevent editors from complaining about space-tab.
  83. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  84. # splitting by setting IFS to empty value.)
  85. IFS=" "" $as_nl"
  86. # Find who we are. Look in the path if we contain no directory separator.
  87. case $0 in
  88. *[\\/]* ) as_myself=$0 ;;
  89. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  90. for as_dir in $PATH
  91. do
  92. IFS=$as_save_IFS
  93. test -z "$as_dir" && as_dir=.
  94. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  95. done
  96. IFS=$as_save_IFS
  97. ;;
  98. esac
  99. # We did not find ourselves, most probably we were run as `sh COMMAND'
  100. # in which case we are not to be found in the path.
  101. if test "x$as_myself" = x; then
  102. as_myself=$0
  103. fi
  104. if test ! -f "$as_myself"; then
  105. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  106. { (exit 1); exit 1; }
  107. fi
  108. # Work around bugs in pre-3.0 UWIN ksh.
  109. for as_var in ENV MAIL MAILPATH
  110. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  111. done
  112. PS1='$ '
  113. PS2='> '
  114. PS4='+ '
  115. # NLS nuisances.
  116. LC_ALL=C
  117. export LC_ALL
  118. LANGUAGE=C
  119. export LANGUAGE
  120. # Required to use basename.
  121. if expr a : '\(a\)' >/dev/null 2>&1 &&
  122. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  123. as_expr=expr
  124. else
  125. as_expr=false
  126. fi
  127. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  128. as_basename=basename
  129. else
  130. as_basename=false
  131. fi
  132. # Name of the executable.
  133. as_me=`$as_basename -- "$0" ||
  134. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  135. X"$0" : 'X\(//\)$' \| \
  136. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  137. $as_echo X/"$0" |
  138. sed '/^.*\/\([^/][^/]*\)\/*$/{
  139. s//\1/
  140. q
  141. }
  142. /^X\/\(\/\/\)$/{
  143. s//\1/
  144. q
  145. }
  146. /^X\/\(\/\).*/{
  147. s//\1/
  148. q
  149. }
  150. s/.*/./; q'`
  151. # CDPATH.
  152. $as_unset CDPATH
  153. if test "x$CONFIG_SHELL" = x; then
  154. if (eval ":") 2>/dev/null; then
  155. as_have_required=yes
  156. else
  157. as_have_required=no
  158. fi
  159. if test $as_have_required = yes && (eval ":
  160. (as_func_return () {
  161. (exit \$1)
  162. }
  163. as_func_success () {
  164. as_func_return 0
  165. }
  166. as_func_failure () {
  167. as_func_return 1
  168. }
  169. as_func_ret_success () {
  170. return 0
  171. }
  172. as_func_ret_failure () {
  173. return 1
  174. }
  175. exitcode=0
  176. if as_func_success; then
  177. :
  178. else
  179. exitcode=1
  180. echo as_func_success failed.
  181. fi
  182. if as_func_failure; then
  183. exitcode=1
  184. echo as_func_failure succeeded.
  185. fi
  186. if as_func_ret_success; then
  187. :
  188. else
  189. exitcode=1
  190. echo as_func_ret_success failed.
  191. fi
  192. if as_func_ret_failure; then
  193. exitcode=1
  194. echo as_func_ret_failure succeeded.
  195. fi
  196. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  197. :
  198. else
  199. exitcode=1
  200. echo positional parameters were not saved.
  201. fi
  202. test \$exitcode = 0) || { (exit 1); exit 1; }
  203. (
  204. as_lineno_1=\$LINENO
  205. as_lineno_2=\$LINENO
  206. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  207. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  208. ") 2> /dev/null; then
  209. :
  210. else
  211. as_candidate_shells=
  212. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  213. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  214. do
  215. IFS=$as_save_IFS
  216. test -z "$as_dir" && as_dir=.
  217. case $as_dir in
  218. /*)
  219. for as_base in sh bash ksh sh5; do
  220. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  221. done;;
  222. esac
  223. done
  224. IFS=$as_save_IFS
  225. for as_shell in $as_candidate_shells $SHELL; do
  226. # Try only shells that exist, to save several forks.
  227. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  228. { ("$as_shell") 2> /dev/null <<\_ASEOF
  229. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  230. emulate sh
  231. NULLCMD=:
  232. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  233. # is contrary to our usage. Disable this feature.
  234. alias -g '${1+"$@"}'='"$@"'
  235. setopt NO_GLOB_SUBST
  236. else
  237. case `(set -o) 2>/dev/null` in
  238. *posix*) set -o posix ;;
  239. esac
  240. fi
  241. :
  242. _ASEOF
  243. }; then
  244. CONFIG_SHELL=$as_shell
  245. as_have_required=yes
  246. if { "$as_shell" 2> /dev/null <<\_ASEOF
  247. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  248. emulate sh
  249. NULLCMD=:
  250. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  251. # is contrary to our usage. Disable this feature.
  252. alias -g '${1+"$@"}'='"$@"'
  253. setopt NO_GLOB_SUBST
  254. else
  255. case `(set -o) 2>/dev/null` in
  256. *posix*) set -o posix ;;
  257. esac
  258. fi
  259. :
  260. (as_func_return () {
  261. (exit $1)
  262. }
  263. as_func_success () {
  264. as_func_return 0
  265. }
  266. as_func_failure () {
  267. as_func_return 1
  268. }
  269. as_func_ret_success () {
  270. return 0
  271. }
  272. as_func_ret_failure () {
  273. return 1
  274. }
  275. exitcode=0
  276. if as_func_success; then
  277. :
  278. else
  279. exitcode=1
  280. echo as_func_success failed.
  281. fi
  282. if as_func_failure; then
  283. exitcode=1
  284. echo as_func_failure succeeded.
  285. fi
  286. if as_func_ret_success; then
  287. :
  288. else
  289. exitcode=1
  290. echo as_func_ret_success failed.
  291. fi
  292. if as_func_ret_failure; then
  293. exitcode=1
  294. echo as_func_ret_failure succeeded.
  295. fi
  296. if ( set x; as_func_ret_success y && test x = "$1" ); then
  297. :
  298. else
  299. exitcode=1
  300. echo positional parameters were not saved.
  301. fi
  302. test $exitcode = 0) || { (exit 1); exit 1; }
  303. (
  304. as_lineno_1=$LINENO
  305. as_lineno_2=$LINENO
  306. test "x$as_lineno_1" != "x$as_lineno_2" &&
  307. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  308. _ASEOF
  309. }; then
  310. break
  311. fi
  312. fi
  313. done
  314. if test "x$CONFIG_SHELL" != x; then
  315. for as_var in BASH_ENV ENV
  316. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  317. done
  318. export CONFIG_SHELL
  319. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  320. fi
  321. if test $as_have_required = no; then
  322. echo This script requires a shell more modern than all the
  323. echo shells that I found on your system. Please install a
  324. echo modern shell, or manually run the script under such a
  325. echo shell if you do have one.
  326. { (exit 1); exit 1; }
  327. fi
  328. fi
  329. fi
  330. (eval "as_func_return () {
  331. (exit \$1)
  332. }
  333. as_func_success () {
  334. as_func_return 0
  335. }
  336. as_func_failure () {
  337. as_func_return 1
  338. }
  339. as_func_ret_success () {
  340. return 0
  341. }
  342. as_func_ret_failure () {
  343. return 1
  344. }
  345. exitcode=0
  346. if as_func_success; then
  347. :
  348. else
  349. exitcode=1
  350. echo as_func_success failed.
  351. fi
  352. if as_func_failure; then
  353. exitcode=1
  354. echo as_func_failure succeeded.
  355. fi
  356. if as_func_ret_success; then
  357. :
  358. else
  359. exitcode=1
  360. echo as_func_ret_success failed.
  361. fi
  362. if as_func_ret_failure; then
  363. exitcode=1
  364. echo as_func_ret_failure succeeded.
  365. fi
  366. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  367. :
  368. else
  369. exitcode=1
  370. echo positional parameters were not saved.
  371. fi
  372. test \$exitcode = 0") || {
  373. echo No shell found that supports shell functions.
  374. echo Please tell [email protected] about your system,
  375. echo including any error possibly output before this message.
  376. echo This can help us improve future autoconf versions.
  377. echo Configuration will now proceed without shell functions.
  378. }
  379. as_lineno_1=$LINENO
  380. as_lineno_2=$LINENO
  381. test "x$as_lineno_1" != "x$as_lineno_2" &&
  382. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  383. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  384. # uniformly replaced by the line number. The first 'sed' inserts a
  385. # line-number line after each line using $LINENO; the second 'sed'
  386. # does the real work. The second script uses 'N' to pair each
  387. # line-number line with the line containing $LINENO, and appends
  388. # trailing '-' during substitution so that $LINENO is not a special
  389. # case at line end.
  390. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  391. # scripts with optimization help from Paolo Bonzini. Blame Lee
  392. # E. McMahon (1931-1989) for sed's syntax. :-)
  393. sed -n '
  394. p
  395. /[$]LINENO/=
  396. ' <$as_myself |
  397. sed '
  398. s/[$]LINENO.*/&-/
  399. t lineno
  400. b
  401. :lineno
  402. N
  403. :loop
  404. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  405. t loop
  406. s/-\n.*//
  407. ' >$as_me.lineno &&
  408. chmod +x "$as_me.lineno" ||
  409. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  410. { (exit 1); exit 1; }; }
  411. # Don't try to exec as it changes $[0], causing all sort of problems
  412. # (the dirname of $[0] is not the place where we might find the
  413. # original and so on. Autoconf is especially sensitive to this).
  414. . "./$as_me.lineno"
  415. # Exit status is that of the last command.
  416. exit
  417. }
  418. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  419. as_dirname=dirname
  420. else
  421. as_dirname=false
  422. fi
  423. ECHO_C= ECHO_N= ECHO_T=
  424. case `echo -n x` in
  425. -n*)
  426. case `echo 'x\c'` in
  427. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  428. *) ECHO_C='\c';;
  429. esac;;
  430. *)
  431. ECHO_N='-n';;
  432. esac
  433. if expr a : '\(a\)' >/dev/null 2>&1 &&
  434. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  435. as_expr=expr
  436. else
  437. as_expr=false
  438. fi
  439. rm -f conf$$ conf$$.exe conf$$.file
  440. if test -d conf$$.dir; then
  441. rm -f conf$$.dir/conf$$.file
  442. else
  443. rm -f conf$$.dir
  444. mkdir conf$$.dir 2>/dev/null
  445. fi
  446. if (echo >conf$$.file) 2>/dev/null; then
  447. if ln -s conf$$.file conf$$ 2>/dev/null; then
  448. as_ln_s='ln -s'
  449. # ... but there are two gotchas:
  450. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  451. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  452. # In both cases, we have to default to `cp -p'.
  453. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  454. as_ln_s='cp -p'
  455. elif ln conf$$.file conf$$ 2>/dev/null; then
  456. as_ln_s=ln
  457. else
  458. as_ln_s='cp -p'
  459. fi
  460. else
  461. as_ln_s='cp -p'
  462. fi
  463. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  464. rmdir conf$$.dir 2>/dev/null
  465. if mkdir -p . 2>/dev/null; then
  466. as_mkdir_p=:
  467. else
  468. test -d ./-p && rmdir ./-p
  469. as_mkdir_p=false
  470. fi
  471. if test -x / >/dev/null 2>&1; then
  472. as_test_x='test -x'
  473. else
  474. if ls -dL / >/dev/null 2>&1; then
  475. as_ls_L_option=L
  476. else
  477. as_ls_L_option=
  478. fi
  479. as_test_x='
  480. eval sh -c '\''
  481. if test -d "$1"; then
  482. test -d "$1/.";
  483. else
  484. case $1 in
  485. -*)set "./$1";;
  486. esac;
  487. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  488. ???[sx]*):;;*)false;;esac;fi
  489. '\'' sh
  490. '
  491. fi
  492. as_executable_p=$as_test_x
  493. # Sed expression to map a string onto a valid CPP name.
  494. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  495. # Sed expression to map a string onto a valid variable name.
  496. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  497. # Check that we are running under the correct shell.
  498. SHELL=${CONFIG_SHELL-/bin/sh}
  499. case X$lt_ECHO in
  500. X*--fallback-echo)
  501. # Remove one level of quotation (which was required for Make).
  502. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  503. ;;
  504. esac
  505. ECHO=${lt_ECHO-echo}
  506. if test "X$1" = X--no-reexec; then
  507. # Discard the --no-reexec flag, and continue.
  508. shift
  509. elif test "X$1" = X--fallback-echo; then
  510. # Avoid inline document here, it may be left over
  511. :
  512. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  513. # Yippee, $ECHO works!
  514. :
  515. else
  516. # Restart under the correct shell.
  517. exec $SHELL "$0" --no-reexec ${1+"$@"}
  518. fi
  519. if test "X$1" = X--fallback-echo; then
  520. # used as fallback echo
  521. shift
  522. cat <<_LT_EOF
  523. $*
  524. _LT_EOF
  525. exit 0
  526. fi
  527. # The HP-UX ksh and POSIX shell print the target directory to stdout
  528. # if CDPATH is set.
  529. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  530. if test -z "$lt_ECHO"; then
  531. if test "X${echo_test_string+set}" != Xset; then
  532. # find a string as large as possible, as long as the shell can cope with it
  533. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  534. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  535. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  536. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  537. then
  538. break
  539. fi
  540. done
  541. fi
  542. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  543. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  544. test "X$echo_testing_string" = "X$echo_test_string"; then
  545. :
  546. else
  547. # The Solaris, AIX, and Digital Unix default echo programs unquote
  548. # backslashes. This makes it impossible to quote backslashes using
  549. # echo "$something" | sed 's/\\/\\\\/g'
  550. #
  551. # So, first we look for a working echo in the user's PATH.
  552. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  553. for dir in $PATH /usr/ucb; do
  554. IFS="$lt_save_ifs"
  555. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  556. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  557. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  558. test "X$echo_testing_string" = "X$echo_test_string"; then
  559. ECHO="$dir/echo"
  560. break
  561. fi
  562. done
  563. IFS="$lt_save_ifs"
  564. if test "X$ECHO" = Xecho; then
  565. # We didn't find a better echo, so look for alternatives.
  566. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  567. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  568. test "X$echo_testing_string" = "X$echo_test_string"; then
  569. # This shell has a builtin print -r that does the trick.
  570. ECHO='print -r'
  571. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  572. test "X$CONFIG_SHELL" != X/bin/ksh; then
  573. # If we have ksh, try running configure again with it.
  574. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  575. export ORIGINAL_CONFIG_SHELL
  576. CONFIG_SHELL=/bin/ksh
  577. export CONFIG_SHELL
  578. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  579. else
  580. # Try using printf.
  581. ECHO='printf %s\n'
  582. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  583. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  584. test "X$echo_testing_string" = "X$echo_test_string"; then
  585. # Cool, printf works
  586. :
  587. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  588. test "X$echo_testing_string" = 'X\t' &&
  589. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  590. test "X$echo_testing_string" = "X$echo_test_string"; then
  591. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  592. export CONFIG_SHELL
  593. SHELL="$CONFIG_SHELL"
  594. export SHELL
  595. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  596. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  597. test "X$echo_testing_string" = 'X\t' &&
  598. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  599. test "X$echo_testing_string" = "X$echo_test_string"; then
  600. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  601. else
  602. # maybe with a smaller string...
  603. prev=:
  604. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  605. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  606. then
  607. break
  608. fi
  609. prev="$cmd"
  610. done
  611. if test "$prev" != 'sed 50q "$0"'; then
  612. echo_test_string=`eval $prev`
  613. export echo_test_string
  614. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  615. else
  616. # Oops. We lost completely, so just stick with echo.
  617. ECHO=echo
  618. fi
  619. fi
  620. fi
  621. fi
  622. fi
  623. fi
  624. # Copy echo and quote the copy suitably for passing to libtool from
  625. # the Makefile, instead of quoting the original, which is used later.
  626. lt_ECHO=$ECHO
  627. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  628. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  629. fi
  630. exec 7<&0 </dev/null 6>&1
  631. # Name of the host.
  632. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  633. # so uname gets run too.
  634. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  635. #
  636. # Initializations.
  637. #
  638. ac_default_prefix=/usr/local
  639. ac_clean_files=
  640. ac_config_libobj_dir=.
  641. LIBOBJS=
  642. cross_compiling=no
  643. subdirs=
  644. MFLAGS=
  645. MAKEFLAGS=
  646. SHELL=${CONFIG_SHELL-/bin/sh}
  647. # Identity of this package.
  648. PACKAGE_NAME='dirsrv'
  649. PACKAGE_TARNAME='dirsrv'
  650. PACKAGE_VERSION='1.0'
  651. PACKAGE_STRING='dirsrv 1.0'
  652. PACKAGE_BUGREPORT='http://bugzilla.redhat.com/'
  653. # Factoring default headers for most tests.
  654. ac_includes_default="\
  655. #include <stdio.h>
  656. #ifdef HAVE_SYS_TYPES_H
  657. # include <sys/types.h>
  658. #endif
  659. #ifdef HAVE_SYS_STAT_H
  660. # include <sys/stat.h>
  661. #endif
  662. #ifdef STDC_HEADERS
  663. # include <stdlib.h>
  664. # include <stddef.h>
  665. #else
  666. # ifdef HAVE_STDLIB_H
  667. # include <stdlib.h>
  668. # endif
  669. #endif
  670. #ifdef HAVE_STRING_H
  671. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  672. # include <memory.h>
  673. # endif
  674. # include <string.h>
  675. #endif
  676. #ifdef HAVE_STRINGS_H
  677. # include <strings.h>
  678. #endif
  679. #ifdef HAVE_INTTYPES_H
  680. # include <inttypes.h>
  681. #endif
  682. #ifdef HAVE_STDINT_H
  683. # include <stdint.h>
  684. #endif
  685. #ifdef HAVE_UNISTD_H
  686. # include <unistd.h>
  687. #endif"
  688. ac_default_prefix=/opt/$PACKAGE_NAME
  689. ac_subst_vars='am__EXEEXT_FALSE
  690. am__EXEEXT_TRUE
  691. LTLIBOBJS
  692. vendor
  693. capbrand
  694. brand
  695. pcre_libdir
  696. pcre_lib
  697. pcre_inc
  698. netsnmp_link
  699. netsnmp_libdir
  700. netsnmp_lib
  701. netsnmp_inc
  702. icu_bin
  703. icu_inc
  704. icu_lib
  705. svrcore_lib
  706. svrcore_inc
  707. sasl_path
  708. sasl_libdir
  709. sasl_lib
  710. sasl_inc
  711. db_libver
  712. db_bindir
  713. db_libdir
  714. db_lib
  715. db_incdir
  716. db_inc
  717. ol_libver
  718. plainldif_opts
  719. ldaptool_opts
  720. ldaptool_bindir
  721. openldap_bindir
  722. openldap_libdir
  723. openldap_lib
  724. openldap_inc
  725. ldapsdk_bindir
  726. ldapsdk_libdir
  727. ldapsdk_lib
  728. ldapsdk_inc
  729. nss_libdir
  730. nss_lib
  731. nss_inc
  732. nspr_libdir
  733. nspr_lib
  734. nspr_inc
  735. OPENLDAP_FALSE
  736. OPENLDAP_TRUE
  737. SELINUX_FALSE
  738. SELINUX_TRUE
  739. PACKAGE_BASE_VERSION
  740. with_selinux
  741. kerberos_libdir
  742. kerberos_lib
  743. kerberos_inc
  744. KRB5_CONFIG_BIN
  745. NETSNMP_CONFIG
  746. ICU_CONFIG
  747. PKG_CONFIG
  748. SOLARIS_FALSE
  749. SOLARIS_TRUE
  750. HPUX_FALSE
  751. HPUX_TRUE
  752. initconfigdir
  753. sttyexec
  754. perlexec
  755. initdir
  756. LIBCRUN
  757. LIBCSTD
  758. LIBDL
  759. LIBNSL
  760. LIBSOCKET
  761. LIBCRYPT
  762. THREADLIB
  763. WINNT_FALSE
  764. WINNT_TRUE
  765. instconfigdir
  766. defaultgroup
  767. defaultuser
  768. updatedir
  769. mibdir
  770. infdir
  771. perldir
  772. scripttemplatedir
  773. serverplugindir
  774. serverincdir
  775. serverdir
  776. schemadir
  777. propertydir
  778. sampledatadir
  779. configdir
  780. with_tmpfiles_d
  781. with_fhs_opt
  782. enable_acctpolicy_FALSE
  783. enable_acctpolicy_TRUE
  784. enable_presence_FALSE
  785. enable_presence_TRUE
  786. enable_bitwise_FALSE
  787. enable_bitwise_TRUE
  788. enable_auto_dn_suffix_FALSE
  789. enable_auto_dn_suffix_TRUE
  790. enable_autobind_FALSE
  791. enable_autobind_TRUE
  792. enable_ldapi_FALSE
  793. enable_ldapi_TRUE
  794. enable_dna_FALSE
  795. enable_dna_TRUE
  796. enable_pam_passthru_FALSE
  797. enable_pam_passthru_TRUE
  798. BUNDLE_FALSE
  799. BUNDLE_TRUE
  800. debug_defs
  801. LIBOBJS
  802. CXXCPP
  803. CPP
  804. OTOOL64
  805. OTOOL
  806. LIPO
  807. NMEDIT
  808. DSYMUTIL
  809. lt_ECHO
  810. RANLIB
  811. AR
  812. OBJDUMP
  813. LN_S
  814. NM
  815. ac_ct_DUMPBIN
  816. DUMPBIN
  817. LD
  818. FGREP
  819. EGREP
  820. GREP
  821. SED
  822. LIBTOOL
  823. am__fastdepCCAS_FALSE
  824. am__fastdepCCAS_TRUE
  825. CCASDEPMODE
  826. CCASFLAGS
  827. CCAS
  828. am__fastdepCC_FALSE
  829. am__fastdepCC_TRUE
  830. CCDEPMODE
  831. ac_ct_CC
  832. CFLAGS
  833. CC
  834. am__fastdepCXX_FALSE
  835. am__fastdepCXX_TRUE
  836. CXXDEPMODE
  837. AMDEPBACKSLASH
  838. AMDEP_FALSE
  839. AMDEP_TRUE
  840. am__quote
  841. am__include
  842. DEPDIR
  843. OBJEXT
  844. EXEEXT
  845. ac_ct_CXX
  846. CPPFLAGS
  847. LDFLAGS
  848. CXXFLAGS
  849. CXX
  850. host_os
  851. host_vendor
  852. host_cpu
  853. host
  854. build_os
  855. build_vendor
  856. build_cpu
  857. build
  858. MAINT
  859. MAINTAINER_MODE_FALSE
  860. MAINTAINER_MODE_TRUE
  861. CONSOLE_VERSION
  862. am__untar
  863. am__tar
  864. AMTAR
  865. am__leading_dot
  866. SET_MAKE
  867. AWK
  868. mkdir_p
  869. MKDIR_P
  870. INSTALL_STRIP_PROGRAM
  871. STRIP
  872. install_sh
  873. MAKEINFO
  874. AUTOHEADER
  875. AUTOMAKE
  876. AUTOCONF
  877. ACLOCAL
  878. VERSION
  879. PACKAGE
  880. CYGPATH_W
  881. am__isrc
  882. INSTALL_DATA
  883. INSTALL_SCRIPT
  884. INSTALL_PROGRAM
  885. target_alias
  886. host_alias
  887. build_alias
  888. LIBS
  889. ECHO_T
  890. ECHO_N
  891. ECHO_C
  892. DEFS
  893. mandir
  894. localedir
  895. libdir
  896. psdir
  897. pdfdir
  898. dvidir
  899. htmldir
  900. infodir
  901. docdir
  902. oldincludedir
  903. includedir
  904. localstatedir
  905. sharedstatedir
  906. sysconfdir
  907. datadir
  908. datarootdir
  909. libexecdir
  910. sbindir
  911. bindir
  912. program_transform_name
  913. prefix
  914. exec_prefix
  915. PACKAGE_BUGREPORT
  916. PACKAGE_STRING
  917. PACKAGE_VERSION
  918. PACKAGE_TARNAME
  919. PACKAGE_NAME
  920. PATH_SEPARATOR
  921. SHELL'
  922. ac_subst_files=''
  923. ac_user_opts='
  924. enable_option_checking
  925. enable_maintainer_mode
  926. enable_dependency_tracking
  927. enable_static
  928. enable_shared
  929. with_pic
  930. enable_fast_install
  931. with_gnu_ld
  932. enable_libtool_lock
  933. enable_debug
  934. enable_bundle
  935. enable_pam_passthru
  936. enable_dna
  937. enable_ldapi
  938. enable_autobind
  939. enable_bitwise
  940. enable_presence
  941. enable_acctpolicy
  942. with_fhs
  943. with_fhs_opt
  944. with_tmpfiles_d
  945. with_instconfigdir
  946. with_initddir
  947. with_nspr
  948. with_nspr_inc
  949. with_nspr_lib
  950. with_nss
  951. with_nss_inc
  952. with_nss_lib
  953. with_openldap
  954. with_openldap_inc
  955. with_openldap_lib
  956. with_openldap_bin
  957. with_ldapsdk
  958. with_ldapsdk_inc
  959. with_ldapsdk_lib
  960. with_ldapsdk_bin
  961. with_db
  962. with_db_inc
  963. with_db_lib
  964. with_sasl
  965. with_sasl_inc
  966. with_sasl_lib
  967. with_svrcore
  968. with_svrcore_inc
  969. with_svrcore_lib
  970. with_icu
  971. with_icu_inc
  972. with_icu_lib
  973. with_icu_bin
  974. with_netsnmp
  975. with_netsnmp_inc
  976. with_netsnmp_lib
  977. with_kerberos
  978. with_kerberos_inc
  979. with_kerberos_lib
  980. with_pcre
  981. with_selinux
  982. '
  983. ac_precious_vars='build_alias
  984. host_alias
  985. target_alias
  986. CXX
  987. CXXFLAGS
  988. LDFLAGS
  989. LIBS
  990. CPPFLAGS
  991. CCC
  992. CC
  993. CFLAGS
  994. CCAS
  995. CCASFLAGS
  996. CPP
  997. CXXCPP'
  998. # Initialize some variables set by options.
  999. ac_init_help=
  1000. ac_init_version=false
  1001. ac_unrecognized_opts=
  1002. ac_unrecognized_sep=
  1003. # The variables have the same names as the options, with
  1004. # dashes changed to underlines.
  1005. cache_file=/dev/null
  1006. exec_prefix=NONE
  1007. no_create=
  1008. no_recursion=
  1009. prefix=NONE
  1010. program_prefix=NONE
  1011. program_suffix=NONE
  1012. program_transform_name=s,x,x,
  1013. silent=
  1014. site=
  1015. srcdir=
  1016. verbose=
  1017. x_includes=NONE
  1018. x_libraries=NONE
  1019. # Installation directory options.
  1020. # These are left unexpanded so users can "make install exec_prefix=/foo"
  1021. # and all the variables that are supposed to be based on exec_prefix
  1022. # by default will actually change.
  1023. # Use braces instead of parens because sh, perl, etc. also accept them.
  1024. # (The list follows the same order as the GNU Coding Standards.)
  1025. bindir='${exec_prefix}/bin'
  1026. sbindir='${exec_prefix}/sbin'
  1027. libexecdir='${exec_prefix}/libexec'
  1028. datarootdir='${prefix}/share'
  1029. datadir='${datarootdir}'
  1030. sysconfdir='${prefix}/etc'
  1031. sharedstatedir='${prefix}/com'
  1032. localstatedir='${prefix}/var'
  1033. includedir='${prefix}/include'
  1034. oldincludedir='/usr/include'
  1035. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  1036. infodir='${datarootdir}/info'
  1037. htmldir='${docdir}'
  1038. dvidir='${docdir}'
  1039. pdfdir='${docdir}'
  1040. psdir='${docdir}'
  1041. libdir='${exec_prefix}/lib'
  1042. localedir='${datarootdir}/locale'
  1043. mandir='${datarootdir}/man'
  1044. ac_prev=
  1045. ac_dashdash=
  1046. for ac_option
  1047. do
  1048. # If the previous option needs an argument, assign it.
  1049. if test -n "$ac_prev"; then
  1050. eval $ac_prev=\$ac_option
  1051. ac_prev=
  1052. continue
  1053. fi
  1054. case $ac_option in
  1055. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1056. *) ac_optarg=yes ;;
  1057. esac
  1058. # Accept the important Cygnus configure options, so we can diagnose typos.
  1059. case $ac_dashdash$ac_option in
  1060. --)
  1061. ac_dashdash=yes ;;
  1062. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1063. ac_prev=bindir ;;
  1064. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1065. bindir=$ac_optarg ;;
  1066. -build | --build | --buil | --bui | --bu)
  1067. ac_prev=build_alias ;;
  1068. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1069. build_alias=$ac_optarg ;;
  1070. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1071. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1072. ac_prev=cache_file ;;
  1073. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1074. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1075. cache_file=$ac_optarg ;;
  1076. --config-cache | -C)
  1077. cache_file=config.cache ;;
  1078. -datadir | --datadir | --datadi | --datad)
  1079. ac_prev=datadir ;;
  1080. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1081. datadir=$ac_optarg ;;
  1082. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1083. | --dataroo | --dataro | --datar)
  1084. ac_prev=datarootdir ;;
  1085. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1086. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1087. datarootdir=$ac_optarg ;;
  1088. -disable-* | --disable-*)
  1089. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1090. # Reject names that are not valid shell variable names.
  1091. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1092. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  1093. { (exit 1); exit 1; }; }
  1094. ac_useropt_orig=$ac_useropt
  1095. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1096. case $ac_user_opts in
  1097. *"
  1098. "enable_$ac_useropt"
  1099. "*) ;;
  1100. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1101. ac_unrecognized_sep=', ';;
  1102. esac
  1103. eval enable_$ac_useropt=no ;;
  1104. -docdir | --docdir | --docdi | --doc | --do)
  1105. ac_prev=docdir ;;
  1106. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1107. docdir=$ac_optarg ;;
  1108. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1109. ac_prev=dvidir ;;
  1110. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1111. dvidir=$ac_optarg ;;
  1112. -enable-* | --enable-*)
  1113. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1114. # Reject names that are not valid shell variable names.
  1115. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1116. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  1117. { (exit 1); exit 1; }; }
  1118. ac_useropt_orig=$ac_useropt
  1119. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1120. case $ac_user_opts in
  1121. *"
  1122. "enable_$ac_useropt"
  1123. "*) ;;
  1124. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1125. ac_unrecognized_sep=', ';;
  1126. esac
  1127. eval enable_$ac_useropt=\$ac_optarg ;;
  1128. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1129. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1130. | --exec | --exe | --ex)
  1131. ac_prev=exec_prefix ;;
  1132. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1133. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1134. | --exec=* | --exe=* | --ex=*)
  1135. exec_prefix=$ac_optarg ;;
  1136. -gas | --gas | --ga | --g)
  1137. # Obsolete; use --with-gas.
  1138. with_gas=yes ;;
  1139. -help | --help | --hel | --he | -h)
  1140. ac_init_help=long ;;
  1141. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1142. ac_init_help=recursive ;;
  1143. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1144. ac_init_help=short ;;
  1145. -host | --host | --hos | --ho)
  1146. ac_prev=host_alias ;;
  1147. -host=* | --host=* | --hos=* | --ho=*)
  1148. host_alias=$ac_optarg ;;
  1149. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1150. ac_prev=htmldir ;;
  1151. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1152. | --ht=*)
  1153. htmldir=$ac_optarg ;;
  1154. -includedir | --includedir | --includedi | --included | --include \
  1155. | --includ | --inclu | --incl | --inc)
  1156. ac_prev=includedir ;;
  1157. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1158. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1159. includedir=$ac_optarg ;;
  1160. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1161. ac_prev=infodir ;;
  1162. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1163. infodir=$ac_optarg ;;
  1164. -libdir | --libdir | --libdi | --libd)
  1165. ac_prev=libdir ;;
  1166. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1167. libdir=$ac_optarg ;;
  1168. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1169. | --libexe | --libex | --libe)
  1170. ac_prev=libexecdir ;;
  1171. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1172. | --libexe=* | --libex=* | --libe=*)
  1173. libexecdir=$ac_optarg ;;
  1174. -localedir | --localedir | --localedi | --localed | --locale)
  1175. ac_prev=localedir ;;
  1176. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1177. localedir=$ac_optarg ;;
  1178. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1179. | --localstate | --localstat | --localsta | --localst | --locals)
  1180. ac_prev=localstatedir ;;
  1181. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1182. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1183. localstatedir=$ac_optarg ;;
  1184. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1185. ac_prev=mandir ;;
  1186. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1187. mandir=$ac_optarg ;;
  1188. -nfp | --nfp | --nf)
  1189. # Obsolete; use --without-fp.
  1190. with_fp=no ;;
  1191. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1192. | --no-cr | --no-c | -n)
  1193. no_create=yes ;;
  1194. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1195. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1196. no_recursion=yes ;;
  1197. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1198. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1199. | --oldin | --oldi | --old | --ol | --o)
  1200. ac_prev=oldincludedir ;;
  1201. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1202. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1203. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1204. oldincludedir=$ac_optarg ;;
  1205. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1206. ac_prev=prefix ;;
  1207. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1208. prefix=$ac_optarg ;;
  1209. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1210. | --program-pre | --program-pr | --program-p)
  1211. ac_prev=program_prefix ;;
  1212. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1213. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1214. program_prefix=$ac_optarg ;;
  1215. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1216. | --program-suf | --program-su | --program-s)
  1217. ac_prev=program_suffix ;;
  1218. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1219. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1220. program_suffix=$ac_optarg ;;
  1221. -program-transform-name | --program-transform-name \
  1222. | --program-transform-nam | --program-transform-na \
  1223. | --program-transform-n | --program-transform- \
  1224. | --program-transform | --program-transfor \
  1225. | --program-transfo | --program-transf \
  1226. | --program-trans | --program-tran \
  1227. | --progr-tra | --program-tr | --program-t)
  1228. ac_prev=program_transform_name ;;
  1229. -program-transform-name=* | --program-transform-name=* \
  1230. | --program-transform-nam=* | --program-transform-na=* \
  1231. | --program-transform-n=* | --program-transform-=* \
  1232. | --program-transform=* | --program-transfor=* \
  1233. | --program-transfo=* | --program-transf=* \
  1234. | --program-trans=* | --program-tran=* \
  1235. | --progr-tra=* | --program-tr=* | --program-t=*)
  1236. program_transform_name=$ac_optarg ;;
  1237. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1238. ac_prev=pdfdir ;;
  1239. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1240. pdfdir=$ac_optarg ;;
  1241. -psdir | --psdir | --psdi | --psd | --ps)
  1242. ac_prev=psdir ;;
  1243. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1244. psdir=$ac_optarg ;;
  1245. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1246. | -silent | --silent | --silen | --sile | --sil)
  1247. silent=yes ;;
  1248. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1249. ac_prev=sbindir ;;
  1250. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1251. | --sbi=* | --sb=*)
  1252. sbindir=$ac_optarg ;;
  1253. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1254. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1255. | --sharedst | --shareds | --shared | --share | --shar \
  1256. | --sha | --sh)
  1257. ac_prev=sharedstatedir ;;
  1258. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1259. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1260. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1261. | --sha=* | --sh=*)
  1262. sharedstatedir=$ac_optarg ;;
  1263. -site | --site | --sit)
  1264. ac_prev=site ;;
  1265. -site=* | --site=* | --sit=*)
  1266. site=$ac_optarg ;;
  1267. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1268. ac_prev=srcdir ;;
  1269. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1270. srcdir=$ac_optarg ;;
  1271. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1272. | --syscon | --sysco | --sysc | --sys | --sy)
  1273. ac_prev=sysconfdir ;;
  1274. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1275. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1276. sysconfdir=$ac_optarg ;;
  1277. -target | --target | --targe | --targ | --tar | --ta | --t)
  1278. ac_prev=target_alias ;;
  1279. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1280. target_alias=$ac_optarg ;;
  1281. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1282. verbose=yes ;;
  1283. -version | --version | --versio | --versi | --vers | -V)
  1284. ac_init_version=: ;;
  1285. -with-* | --with-*)
  1286. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1287. # Reject names that are not valid shell variable names.
  1288. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1289. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1290. { (exit 1); exit 1; }; }
  1291. ac_useropt_orig=$ac_useropt
  1292. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1293. case $ac_user_opts in
  1294. *"
  1295. "with_$ac_useropt"
  1296. "*) ;;
  1297. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1298. ac_unrecognized_sep=', ';;
  1299. esac
  1300. eval with_$ac_useropt=\$ac_optarg ;;
  1301. -without-* | --without-*)
  1302. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1303. # Reject names that are not valid shell variable names.
  1304. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1305. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1306. { (exit 1); exit 1; }; }
  1307. ac_useropt_orig=$ac_useropt
  1308. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1309. case $ac_user_opts in
  1310. *"
  1311. "with_$ac_useropt"
  1312. "*) ;;
  1313. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1314. ac_unrecognized_sep=', ';;
  1315. esac
  1316. eval with_$ac_useropt=no ;;
  1317. --x)
  1318. # Obsolete; use --with-x.
  1319. with_x=yes ;;
  1320. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1321. | --x-incl | --x-inc | --x-in | --x-i)
  1322. ac_prev=x_includes ;;
  1323. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1324. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1325. x_includes=$ac_optarg ;;
  1326. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1327. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1328. ac_prev=x_libraries ;;
  1329. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1330. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1331. x_libraries=$ac_optarg ;;
  1332. -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  1333. Try \`$0 --help' for more information." >&2
  1334. { (exit 1); exit 1; }; }
  1335. ;;
  1336. *=*)
  1337. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1338. # Reject names that are not valid shell variable names.
  1339. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1340. { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1341. { (exit 1); exit 1; }; }
  1342. eval $ac_envvar=\$ac_optarg
  1343. export $ac_envvar ;;
  1344. *)
  1345. # FIXME: should be removed in autoconf 3.0.
  1346. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1347. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1348. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1349. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1350. ;;
  1351. esac
  1352. done
  1353. if test -n "$ac_prev"; then
  1354. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1355. { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1356. { (exit 1); exit 1; }; }
  1357. fi
  1358. if test -n "$ac_unrecognized_opts"; then
  1359. case $enable_option_checking in
  1360. no) ;;
  1361. fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  1362. { (exit 1); exit 1; }; } ;;
  1363. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1364. esac
  1365. fi
  1366. # Check all directory arguments for consistency.
  1367. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1368. datadir sysconfdir sharedstatedir localstatedir includedir \
  1369. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1370. libdir localedir mandir
  1371. do
  1372. eval ac_val=\$$ac_var
  1373. # Remove trailing slashes.
  1374. case $ac_val in
  1375. */ )
  1376. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1377. eval $ac_var=\$ac_val;;
  1378. esac
  1379. # Be sure to have absolute directory names.
  1380. case $ac_val in
  1381. [\\/$]* | ?:[\\/]* ) continue;;
  1382. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1383. esac
  1384. { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1385. { (exit 1); exit 1; }; }
  1386. done
  1387. # There might be people who depend on the old broken behavior: `$host'
  1388. # used to hold the argument of --host etc.
  1389. # FIXME: To remove some day.
  1390. build=$build_alias
  1391. host=$host_alias
  1392. target=$target_alias
  1393. # FIXME: To remove some day.
  1394. if test "x$host_alias" != x; then
  1395. if test "x$build_alias" = x; then
  1396. cross_compiling=maybe
  1397. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1398. If a cross compiler is detected then cross compile mode will be used." >&2
  1399. elif test "x$build_alias" != "x$host_alias"; then
  1400. cross_compiling=yes
  1401. fi
  1402. fi
  1403. ac_tool_prefix=
  1404. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1405. test "$silent" = yes && exec 6>/dev/null
  1406. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1407. ac_ls_di=`ls -di .` &&
  1408. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1409. { $as_echo "$as_me: error: working directory cannot be determined" >&2
  1410. { (exit 1); exit 1; }; }
  1411. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1412. { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1413. { (exit 1); exit 1; }; }
  1414. # Find the source files, if location was not specified.
  1415. if test -z "$srcdir"; then
  1416. ac_srcdir_defaulted=yes
  1417. # Try the directory containing this script, then the parent directory.
  1418. ac_confdir=`$as_dirname -- "$as_myself" ||
  1419. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1420. X"$as_myself" : 'X\(//\)[^/]' \| \
  1421. X"$as_myself" : 'X\(//\)$' \| \
  1422. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1423. $as_echo X"$as_myself" |
  1424. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1425. s//\1/
  1426. q
  1427. }
  1428. /^X\(\/\/\)[^/].*/{
  1429. s//\1/
  1430. q
  1431. }
  1432. /^X\(\/\/\)$/{
  1433. s//\1/
  1434. q
  1435. }
  1436. /^X\(\/\).*/{
  1437. s//\1/
  1438. q
  1439. }
  1440. s/.*/./; q'`
  1441. srcdir=$ac_confdir
  1442. if test ! -r "$srcdir/$ac_unique_file"; then
  1443. srcdir=..
  1444. fi
  1445. else
  1446. ac_srcdir_defaulted=no
  1447. fi
  1448. if test ! -r "$srcdir/$ac_unique_file"; then
  1449. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1450. { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1451. { (exit 1); exit 1; }; }
  1452. fi
  1453. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1454. ac_abs_confdir=`(
  1455. cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1456. { (exit 1); exit 1; }; }
  1457. pwd)`
  1458. # When building in place, set srcdir=.
  1459. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1460. srcdir=.
  1461. fi
  1462. # Remove unnecessary trailing slashes from srcdir.
  1463. # Double slashes in file names in object file debugging info
  1464. # mess up M-x gdb in Emacs.
  1465. case $srcdir in
  1466. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1467. esac
  1468. for ac_var in $ac_precious_vars; do
  1469. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1470. eval ac_env_${ac_var}_value=\$${ac_var}
  1471. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1472. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1473. done
  1474. #
  1475. # Report the --help message.
  1476. #
  1477. if test "$ac_init_help" = "long"; then
  1478. # Omit some internal or obsolete options to make the list less imposing.
  1479. # This message is too long to be a string in the A/UX 3.1 sh.
  1480. cat <<_ACEOF
  1481. \`configure' configures dirsrv 1.0 to adapt to many kinds of systems.
  1482. Usage: $0 [OPTION]... [VAR=VALUE]...
  1483. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1484. VAR=VALUE. See below for descriptions of some of the useful variables.
  1485. Defaults for the options are specified in brackets.
  1486. Configuration:
  1487. -h, --help display this help and exit
  1488. --help=short display options specific to this package
  1489. --help=recursive display the short help of all the included packages
  1490. -V, --version display version information and exit
  1491. -q, --quiet, --silent do not print \`checking...' messages
  1492. --cache-file=FILE cache test results in FILE [disabled]
  1493. -C, --config-cache alias for \`--cache-file=config.cache'
  1494. -n, --no-create do not create output files
  1495. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1496. Installation directories:
  1497. --prefix=PREFIX install architecture-independent files in PREFIX
  1498. [$ac_default_prefix]
  1499. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1500. [PREFIX]
  1501. By default, \`make install' will install all the files in
  1502. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1503. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1504. for instance \`--prefix=\$HOME'.
  1505. For better control, use the options below.
  1506. Fine tuning of the installation directories:
  1507. --bindir=DIR user executables [EPREFIX/bin]
  1508. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1509. --libexecdir=DIR program executables [EPREFIX/libexec]
  1510. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1511. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1512. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1513. --libdir=DIR object code libraries [EPREFIX/lib]
  1514. --includedir=DIR C header files [PREFIX/include]
  1515. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1516. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1517. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1518. --infodir=DIR info documentation [DATAROOTDIR/info]
  1519. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1520. --mandir=DIR man documentation [DATAROOTDIR/man]
  1521. --docdir=DIR documentation root [DATAROOTDIR/doc/dirsrv]
  1522. --htmldir=DIR html documentation [DOCDIR]
  1523. --dvidir=DIR dvi documentation [DOCDIR]
  1524. --pdfdir=DIR pdf documentation [DOCDIR]
  1525. --psdir=DIR ps documentation [DOCDIR]
  1526. _ACEOF
  1527. cat <<\_ACEOF
  1528. Program names:
  1529. --program-prefix=PREFIX prepend PREFIX to installed program names
  1530. --program-suffix=SUFFIX append SUFFIX to installed program names
  1531. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1532. System types:
  1533. --build=BUILD configure for building on BUILD [guessed]
  1534. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1535. _ACEOF
  1536. fi
  1537. if test -n "$ac_init_help"; then
  1538. case $ac_init_help in
  1539. short | recursive ) echo "Configuration of dirsrv 1.0:";;
  1540. esac
  1541. cat <<\_ACEOF
  1542. Optional Features:
  1543. --disable-option-checking ignore unrecognized --enable/--with options
  1544. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1545. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1546. --enable-maintainer-mode enable make rules and dependencies not useful
  1547. (and sometimes confusing) to the casual installer
  1548. --disable-dependency-tracking speeds up one-time build
  1549. --enable-dependency-tracking do not reject slow dependency extractors
  1550. --enable-static[=PKGS] build static libraries [default=no]
  1551. --enable-shared[=PKGS] build shared libraries [default=yes]
  1552. --enable-fast-install[=PKGS]
  1553. optimize for fast installation [default=yes]
  1554. --disable-libtool-lock avoid locking (might break parallel builds)
  1555. --enable-debug Enable debug features (default: no)
  1556. --enable-bundle Enable bundled dependencies (default: no)
  1557. --enable-pam-passthru enable the PAM passthrough auth plugin (default:
  1558. yes)
  1559. --enable-dna enable the Distributed Numeric Assignment (DNA)
  1560. plugin (default: yes)
  1561. --enable-ldapi enable LDAP over unix domain socket (LDAPI) support
  1562. (default: yes)
  1563. --enable-autobind enable auto bind over unix domain socket (LDAPI)
  1564. support (default: no)
  1565. --enable-auto-dn-suffix enable auto bind with auto dn suffix over unix
  1566. domain socket (LDAPI) support (default: no)
  1567. --enable-bitwise enable the bitwise matching rule plugin (default:
  1568. yes)
  1569. --enable-presence enable the presence plugin (default: no)
  1570. --enable-acctpolicy enable the account policy plugin (default: yes)
  1571. Optional Packages:
  1572. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1573. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1574. --with-pic try to use only PIC/non-PIC objects [default=use
  1575. both]
  1576. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1577. --with-fhs Use FHS layout
  1578. --with-fhs-opt Use FHS optional layout
  1579. --with-tmpfiles-d=PATH system uses tmpfiles.d to handle temp files/dirs
  1580. (default: $with_tmpfiles_d)
  1581. --with-instconfigdir=/path
  1582. Base directory for instance specific writable
  1583. configuration directories (default
  1584. $sysconfdir/$PACKAGE_NAME)
  1585. --with-initddir=/path Absolute path (not relative like some of the other
  1586. options) that should contain the SysV init scripts
  1587. (default '$(sysconfdir)/rc.d')
  1588. --with-nspr[=PATH] Netscape Portable Runtime (NSPR) directory
  1589. --with-nspr-inc=PATH Netscape Portable Runtime (NSPR) include directory
  1590. --with-nspr-lib=PATH Netscape Portable Runtime (NSPR) library directory
  1591. --with-nss[=PATH] Network Security Services (NSS) directory
  1592. --with-nss-inc=PATH Network Security Services (NSS) include directory
  1593. --with-nss-lib=PATH Network Security Services (NSS) library directory
  1594. --with-openldap[=PATH] Use OpenLDAP - optional PATH is path to OpenLDAP SDK
  1595. --with-openldap-inc=PATH
  1596. OpenLDAP SDK include directory
  1597. --with-openldap-lib=PATH
  1598. OpenLDAP SDK library directory
  1599. --with-openldap-bin=PATH
  1600. OpenLDAP SDK binary directory
  1601. --with-ldapsdk[=PATH] Mozilla LDAP SDK directory
  1602. --with-ldapsdk-inc=PATH Mozilla LDAP SDK include directory
  1603. --with-ldapsdk-lib=PATH Mozilla LDAP SDK library directory
  1604. --with-ldapsdk-bin=PATH Mozilla LDAP SDK binary directory
  1605. --with-db[=PATH] Berkeley DB directory
  1606. --with-db-inc=PATH Berkeley DB include file directory
  1607. --with-db-lib=PATH Berkeley DB library directory
  1608. --with-sasl[=PATH] Use SASL from supplied path
  1609. --with-sasl-inc=PATH SASL include file directory
  1610. --with-sasl-lib=PATH SASL library directory
  1611. --with-svrcore[=PATH] Use system installed SVRCORE - optional path for
  1612. SVRCORE
  1613. --with-svrcore-inc=PATH SVRCORE include file directory
  1614. --with-svrcore-lib=PATH SVRCORE library directory
  1615. --with-icu[=PATH] ICU directory
  1616. --with-icu-inc=PATH ICU include directory
  1617. --with-icu-lib=PATH ICU library directory
  1618. --with-icu-bin=PATH ICU binary directory
  1619. --with-netsnmp[=PATH] Net-SNMP directory
  1620. --with-netsnmp-inc=PATH Net-SNMP include directory
  1621. --with-netsnmp-lib=PATH Net-SNMP library directory
  1622. --with-kerberos[=PATH] Use the kerberos API in the server directly - allows
  1623. the server to authenticate directly with a keytab -
  1624. otherwise, SASL/GSSAPI auth depends on underlying
  1625. SASL libraries and external kinit with a keytab - if
  1626. PATH is not specified, look for kerberos in the
  1627. system locations. This will attempt to use
  1628. krb5-config from the PATH to find the libs and
  1629. include dirs - you can specify KRB5_CONFIG_BIN to
  1630. specify a different filename or absolute path. If
  1631. krb5-config does not work, this will attempt to look
  1632. in various system directories
  1633. --with-kerberos-inc=PATH
  1634. Allows you to explicitly set the directory
  1635. containing the kerberos include files - implies use
  1636. of kerberos
  1637. --with-kerberos-lib=PATH
  1638. Allows you to explicitly set the directory
  1639. containing the kerberos libraries - implies use of
  1640. kerberos
  1641. --with-pcre[=PATH] Perl Compatible Regular Expression directory
  1642. --with-selinux Support SELinux policy
  1643. Some influential environment variables:
  1644. CXX C++ compiler command
  1645. CXXFLAGS C++ compiler flags
  1646. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1647. nonstandard directory <lib dir>
  1648. LIBS libraries to pass to the linker, e.g. -l<library>
  1649. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1650. you have headers in a nonstandard directory <include dir>
  1651. CC C compiler command
  1652. CFLAGS C compiler flags
  1653. CCAS assembler compiler command (defaults to CC)
  1654. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1655. CPP C preprocessor
  1656. CXXCPP C++ preprocessor
  1657. Use these variables to override the choices made by `configure' or to help
  1658. it to find libraries and programs with nonstandard names/locations.
  1659. Report bugs to <http://bugzilla.redhat.com/>.
  1660. _ACEOF
  1661. ac_status=$?
  1662. fi
  1663. if test "$ac_init_help" = "recursive"; then
  1664. # If there are subdirs, report their specific --help.
  1665. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1666. test -d "$ac_dir" ||
  1667. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1668. continue
  1669. ac_builddir=.
  1670. case "$ac_dir" in
  1671. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1672. *)
  1673. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1674. # A ".." for each directory in $ac_dir_suffix.
  1675. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1676. case $ac_top_builddir_sub in
  1677. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1678. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1679. esac ;;
  1680. esac
  1681. ac_abs_top_builddir=$ac_pwd
  1682. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1683. # for backward compatibility:
  1684. ac_top_builddir=$ac_top_build_prefix
  1685. case $srcdir in
  1686. .) # We are building in place.
  1687. ac_srcdir=.
  1688. ac_top_srcdir=$ac_top_builddir_sub
  1689. ac_abs_top_srcdir=$ac_pwd ;;
  1690. [\\/]* | ?:[\\/]* ) # Absolute name.
  1691. ac_srcdir=$srcdir$ac_dir_suffix;
  1692. ac_top_srcdir=$srcdir
  1693. ac_abs_top_srcdir=$srcdir ;;
  1694. *) # Relative name.
  1695. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1696. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1697. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1698. esac
  1699. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1700. cd "$ac_dir" || { ac_status=$?; continue; }
  1701. # Check for guested configure.
  1702. if test -f "$ac_srcdir/configure.gnu"; then
  1703. echo &&
  1704. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1705. elif test -f "$ac_srcdir/configure"; then
  1706. echo &&
  1707. $SHELL "$ac_srcdir/configure" --help=recursive
  1708. else
  1709. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1710. fi || ac_status=$?
  1711. cd "$ac_pwd" || { ac_status=$?; break; }
  1712. done
  1713. fi
  1714. test -n "$ac_init_help" && exit $ac_status
  1715. if $ac_init_version; then
  1716. cat <<\_ACEOF
  1717. dirsrv configure 1.0
  1718. generated by GNU Autoconf 2.63
  1719. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1720. 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1721. This configure script is free software; the Free Software Foundation
  1722. gives unlimited permission to copy, distribute and modify it.
  1723. _ACEOF
  1724. exit
  1725. fi
  1726. cat >config.log <<_ACEOF
  1727. This file contains any messages produced by compilers while
  1728. running configure, to aid debugging if configure makes a mistake.
  1729. It was created by dirsrv $as_me 1.0, which was
  1730. generated by GNU Autoconf 2.63. Invocation command line was
  1731. $ $0 $@
  1732. _ACEOF
  1733. exec 5>>config.log
  1734. {
  1735. cat <<_ASUNAME
  1736. ## --------- ##
  1737. ## Platform. ##
  1738. ## --------- ##
  1739. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1740. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1741. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1742. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1743. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1744. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1745. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1746. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1747. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1748. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1749. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1750. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1751. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1752. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1753. _ASUNAME
  1754. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1755. for as_dir in $PATH
  1756. do
  1757. IFS=$as_save_IFS
  1758. test -z "$as_dir" && as_dir=.
  1759. $as_echo "PATH: $as_dir"
  1760. done
  1761. IFS=$as_save_IFS
  1762. } >&5
  1763. cat >&5 <<_ACEOF
  1764. ## ----------- ##
  1765. ## Core tests. ##
  1766. ## ----------- ##
  1767. _ACEOF
  1768. # Keep a trace of the command line.
  1769. # Strip out --no-create and --no-recursion so they do not pile up.
  1770. # Strip out --silent because we don't want to record it for future runs.
  1771. # Also quote any args containing shell meta-characters.
  1772. # Make two passes to allow for proper duplicate-argument suppression.
  1773. ac_configure_args=
  1774. ac_configure_args0=
  1775. ac_configure_args1=
  1776. ac_must_keep_next=false
  1777. for ac_pass in 1 2
  1778. do
  1779. for ac_arg
  1780. do
  1781. case $ac_arg in
  1782. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1783. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1784. | -silent | --silent | --silen | --sile | --sil)
  1785. continue ;;
  1786. *\'*)
  1787. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1788. esac
  1789. case $ac_pass in
  1790. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1791. 2)
  1792. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1793. if test $ac_must_keep_next = true; then
  1794. ac_must_keep_next=false # Got value, back to normal.
  1795. else
  1796. case $ac_arg in
  1797. *=* | --config-cache | -C | -disable-* | --disable-* \
  1798. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1799. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1800. | -with-* | --with-* | -without-* | --without-* | --x)
  1801. case "$ac_configure_args0 " in
  1802. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1803. esac
  1804. ;;
  1805. -* ) ac_must_keep_next=true ;;
  1806. esac
  1807. fi
  1808. ac_configure_args="$ac_configure_args '$ac_arg'"
  1809. ;;
  1810. esac
  1811. done
  1812. done
  1813. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1814. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1815. # When interrupted or exit'd, cleanup temporary files, and complete
  1816. # config.log. We remove comments because anyway the quotes in there
  1817. # would cause problems or look ugly.
  1818. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1819. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1820. trap 'exit_status=$?
  1821. # Save into config.log some information that might help in debugging.
  1822. {
  1823. echo
  1824. cat <<\_ASBOX
  1825. ## ---------------- ##
  1826. ## Cache variables. ##
  1827. ## ---------------- ##
  1828. _ASBOX
  1829. echo
  1830. # The following way of writing the cache mishandles newlines in values,
  1831. (
  1832. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1833. eval ac_val=\$$ac_var
  1834. case $ac_val in #(
  1835. *${as_nl}*)
  1836. case $ac_var in #(
  1837. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  1838. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1839. esac
  1840. case $ac_var in #(
  1841. _ | IFS | as_nl) ;; #(
  1842. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1843. *) $as_unset $ac_var ;;
  1844. esac ;;
  1845. esac
  1846. done
  1847. (set) 2>&1 |
  1848. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1849. *${as_nl}ac_space=\ *)
  1850. sed -n \
  1851. "s/'\''/'\''\\\\'\'''\''/g;
  1852. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1853. ;; #(
  1854. *)
  1855. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1856. ;;
  1857. esac |
  1858. sort
  1859. )
  1860. echo
  1861. cat <<\_ASBOX
  1862. ## ----------------- ##
  1863. ## Output variables. ##
  1864. ## ----------------- ##
  1865. _ASBOX
  1866. echo
  1867. for ac_var in $ac_subst_vars
  1868. do
  1869. eval ac_val=\$$ac_var
  1870. case $ac_val in
  1871. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1872. esac
  1873. $as_echo "$ac_var='\''$ac_val'\''"
  1874. done | sort
  1875. echo
  1876. if test -n "$ac_subst_files"; then
  1877. cat <<\_ASBOX
  1878. ## ------------------- ##
  1879. ## File substitutions. ##
  1880. ## ------------------- ##
  1881. _ASBOX
  1882. echo
  1883. for ac_var in $ac_subst_files
  1884. do
  1885. eval ac_val=\$$ac_var
  1886. case $ac_val in
  1887. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1888. esac
  1889. $as_echo "$ac_var='\''$ac_val'\''"
  1890. done | sort
  1891. echo
  1892. fi
  1893. if test -s confdefs.h; then
  1894. cat <<\_ASBOX
  1895. ## ----------- ##
  1896. ## confdefs.h. ##
  1897. ## ----------- ##
  1898. _ASBOX
  1899. echo
  1900. cat confdefs.h
  1901. echo
  1902. fi
  1903. test "$ac_signal" != 0 &&
  1904. $as_echo "$as_me: caught signal $ac_signal"
  1905. $as_echo "$as_me: exit $exit_status"
  1906. } >&5
  1907. rm -f core *.core core.conftest.* &&
  1908. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1909. exit $exit_status
  1910. ' 0
  1911. for ac_signal in 1 2 13 15; do
  1912. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1913. done
  1914. ac_signal=0
  1915. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1916. rm -f -r conftest* confdefs.h
  1917. # Predefined preprocessor variables.
  1918. cat >>confdefs.h <<_ACEOF
  1919. #define PACKAGE_NAME "$PACKAGE_NAME"
  1920. _ACEOF
  1921. cat >>confdefs.h <<_ACEOF
  1922. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1923. _ACEOF
  1924. cat >>confdefs.h <<_ACEOF
  1925. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1926. _ACEOF
  1927. cat >>confdefs.h <<_ACEOF
  1928. #define PACKAGE_STRING "$PACKAGE_STRING"
  1929. _ACEOF
  1930. cat >>confdefs.h <<_ACEOF
  1931. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1932. _ACEOF
  1933. # Let the site file select an alternate cache file if it wants to.
  1934. # Prefer an explicitly selected file to automatically selected ones.
  1935. ac_site_file1=NONE
  1936. ac_site_file2=NONE
  1937. if test -n "$CONFIG_SITE"; then
  1938. ac_site_file1=$CONFIG_SITE
  1939. elif test "x$prefix" != xNONE; then
  1940. ac_site_file1=$prefix/share/config.site
  1941. ac_site_file2=$prefix/etc/config.site
  1942. else
  1943. ac_site_file1=$ac_default_prefix/share/config.site
  1944. ac_site_file2=$ac_default_prefix/etc/config.site
  1945. fi
  1946. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1947. do
  1948. test "x$ac_site_file" = xNONE && continue
  1949. if test -r "$ac_site_file"; then
  1950. { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1951. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1952. sed 's/^/| /' "$ac_site_file" >&5
  1953. . "$ac_site_file"
  1954. fi
  1955. done
  1956. if test -r "$cache_file"; then
  1957. # Some versions of bash will fail to source /dev/null (special
  1958. # files actually), so we avoid doing that.
  1959. if test -f "$cache_file"; then
  1960. { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1961. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1962. case $cache_file in
  1963. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1964. *) . "./$cache_file";;
  1965. esac
  1966. fi
  1967. else
  1968. { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1969. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1970. >$cache_file
  1971. fi
  1972. # Check that the precious variables saved in the cache have kept the same
  1973. # value.
  1974. ac_cache_corrupted=false
  1975. for ac_var in $ac_precious_vars; do
  1976. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1977. eval ac_new_set=\$ac_env_${ac_var}_set
  1978. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1979. eval ac_new_val=\$ac_env_${ac_var}_value
  1980. case $ac_old_set,$ac_new_set in
  1981. set,)
  1982. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1983. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1984. ac_cache_corrupted=: ;;
  1985. ,set)
  1986. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1987. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1988. ac_cache_corrupted=: ;;
  1989. ,);;
  1990. *)
  1991. if test "x$ac_old_val" != "x$ac_new_val"; then
  1992. # differences in whitespace do not lead to failure.
  1993. ac_old_val_w=`echo x $ac_old_val`
  1994. ac_new_val_w=`echo x $ac_new_val`
  1995. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1996. { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1997. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1998. ac_cache_corrupted=:
  1999. else
  2000. { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2001. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2002. eval $ac_var=\$ac_old_val
  2003. fi
  2004. { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  2005. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2006. { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  2007. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2008. fi;;
  2009. esac
  2010. # Pass precious variables to config.status.
  2011. if test "$ac_new_set" = set; then
  2012. case $ac_new_val in
  2013. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2014. *) ac_arg=$ac_var=$ac_new_val ;;
  2015. esac
  2016. case " $ac_configure_args " in
  2017. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2018. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  2019. esac
  2020. fi
  2021. done
  2022. if $ac_cache_corrupted; then
  2023. { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2024. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2025. { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  2026. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2027. { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  2028. $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  2029. { (exit 1); exit 1; }; }
  2030. fi
  2031. ac_ext=c
  2032. ac_cpp='$CPP $CPPFLAGS'
  2033. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2034. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2035. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2036. # AC_CONFIG_HEADER must be called right after AC_INIT.
  2037. ac_config_headers="$ac_config_headers config.h"
  2038. # include the version information
  2039. . $srcdir/VERSION.sh
  2040. { $as_echo "$as_me:$LINENO: This is configure for $PACKAGE_TARNAME $PACKAGE_VERSION" >&5
  2041. $as_echo "$as_me: This is configure for $PACKAGE_TARNAME $PACKAGE_VERSION" >&6;}
  2042. cat >>confdefs.h <<_ACEOF
  2043. #define DS_PACKAGE_VERSION "$PACKAGE_VERSION"
  2044. _ACEOF
  2045. cat >>confdefs.h <<_ACEOF
  2046. #define DS_PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2047. _ACEOF
  2048. cat >>confdefs.h <<_ACEOF
  2049. #define DS_PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2050. _ACEOF
  2051. cat >>confdefs.h <<_ACEOF
  2052. #define DS_PACKAGE_STRING "$PACKAGE_STRING"
  2053. _ACEOF
  2054. am__api_version='1.11'
  2055. ac_aux_dir=
  2056. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2057. if test -f "$ac_dir/install-sh"; then
  2058. ac_aux_dir=$ac_dir
  2059. ac_install_sh="$ac_aux_dir/install-sh -c"
  2060. break
  2061. elif test -f "$ac_dir/install.sh"; then
  2062. ac_aux_dir=$ac_dir
  2063. ac_install_sh="$ac_aux_dir/install.sh -c"
  2064. break
  2065. elif test -f "$ac_dir/shtool"; then
  2066. ac_aux_dir=$ac_dir
  2067. ac_install_sh="$ac_aux_dir/shtool install -c"
  2068. break
  2069. fi
  2070. done
  2071. if test -z "$ac_aux_dir"; then
  2072. { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  2073. $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  2074. { (exit 1); exit 1; }; }
  2075. fi
  2076. # These three variables are undocumented and unsupported,
  2077. # and are intended to be withdrawn in a future Autoconf release.
  2078. # They can cause serious problems if a builder's source tree is in a directory
  2079. # whose full name contains unusual characters.
  2080. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2081. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2082. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2083. # Find a good install program. We prefer a C program (faster),
  2084. # so one script is as good as another. But avoid the broken or
  2085. # incompatible versions:
  2086. # SysV /etc/install, /usr/sbin/install
  2087. # SunOS /usr/etc/install
  2088. # IRIX /sbin/install
  2089. # AIX /bin/install
  2090. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2091. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2092. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2093. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2094. # OS/2's system install, which has a completely different semantic
  2095. # ./install, which can be erroneously created by make from ./install.sh.
  2096. # Reject install programs that cannot install multiple files.
  2097. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  2098. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2099. if test -z "$INSTALL"; then
  2100. if test "${ac_cv_path_install+set}" = set; then
  2101. $as_echo_n "(cached) " >&6
  2102. else
  2103. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2104. for as_dir in $PATH
  2105. do
  2106. IFS=$as_save_IFS
  2107. test -z "$as_dir" && as_dir=.
  2108. # Account for people who put trailing slashes in PATH elements.
  2109. case $as_dir/ in
  2110. ./ | .// | /cC/* | \
  2111. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2112. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2113. /usr/ucb/* ) ;;
  2114. *)
  2115. # OSF1 and SCO ODT 3.0 have their own names for install.
  2116. # Don't use installbsd from OSF since it installs stuff as root
  2117. # by default.
  2118. for ac_prog in ginstall scoinst install; do
  2119. for ac_exec_ext in '' $ac_executable_extensions; do
  2120. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2121. if test $ac_prog = install &&
  2122. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2123. # AIX install. It has an incompatible calling convention.
  2124. :
  2125. elif test $ac_prog = install &&
  2126. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2127. # program-specific install script used by HP pwplus--don't use.
  2128. :
  2129. else
  2130. rm -rf conftest.one conftest.two conftest.dir
  2131. echo one > conftest.one
  2132. echo two > conftest.two
  2133. mkdir conftest.dir
  2134. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2135. test -s conftest.one && test -s conftest.two &&
  2136. test -s conftest.dir/conftest.one &&
  2137. test -s conftest.dir/conftest.two
  2138. then
  2139. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2140. break 3
  2141. fi
  2142. fi
  2143. fi
  2144. done
  2145. done
  2146. ;;
  2147. esac
  2148. done
  2149. IFS=$as_save_IFS
  2150. rm -rf conftest.one conftest.two conftest.dir
  2151. fi
  2152. if test "${ac_cv_path_install+set}" = set; then
  2153. INSTALL=$ac_cv_path_install
  2154. else
  2155. # As a last resort, use the slow shell script. Don't cache a
  2156. # value for INSTALL within a source directory, because that will
  2157. # break other packages using the cache if that directory is
  2158. # removed, or if the value is a relative name.
  2159. INSTALL=$ac_install_sh
  2160. fi
  2161. fi
  2162. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  2163. $as_echo "$INSTALL" >&6; }
  2164. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2165. # It thinks the first close brace ends the variable substitution.
  2166. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2167. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2168. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2169. { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  2170. $as_echo_n "checking whether build environment is sane... " >&6; }
  2171. # Just in case
  2172. sleep 1
  2173. echo timestamp > conftest.file
  2174. # Reject unsafe characters in $srcdir or the absolute working directory
  2175. # name. Accept space and tab only in the latter.
  2176. am_lf='
  2177. '
  2178. case `pwd` in
  2179. *[\\\"\#\$\&\'\`$am_lf]*)
  2180. { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
  2181. $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
  2182. { (exit 1); exit 1; }; };;
  2183. esac
  2184. case $srcdir in
  2185. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2186. { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
  2187. $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
  2188. { (exit 1); exit 1; }; };;
  2189. esac
  2190. # Do `set' in a subshell so we don't clobber the current shell's
  2191. # arguments. Must try -L first in case configure is actually a
  2192. # symlink; some systems play weird games with the mod time of symlinks
  2193. # (eg FreeBSD returns the mod time of the symlink's containing
  2194. # directory).
  2195. if (
  2196. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2197. if test "$*" = "X"; then
  2198. # -L didn't work.
  2199. set X `ls -t "$srcdir/configure" conftest.file`
  2200. fi
  2201. rm -f conftest.file
  2202. if test "$*" != "X $srcdir/configure conftest.file" \
  2203. && test "$*" != "X conftest.file $srcdir/configure"; then
  2204. # If neither matched, then we have a broken ls. This can happen
  2205. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2206. # broken ls alias from the environment. This has actually
  2207. # happened. Such a system could not be considered "sane".
  2208. { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  2209. alias in your environment" >&5
  2210. $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  2211. alias in your environment" >&2;}
  2212. { (exit 1); exit 1; }; }
  2213. fi
  2214. test "$2" = conftest.file
  2215. )
  2216. then
  2217. # Ok.
  2218. :
  2219. else
  2220. { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  2221. Check your system clock" >&5
  2222. $as_echo "$as_me: error: newly created file is older than distributed files!
  2223. Check your system clock" >&2;}
  2224. { (exit 1); exit 1; }; }
  2225. fi
  2226. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2227. $as_echo "yes" >&6; }
  2228. test "$program_prefix" != NONE &&
  2229. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2230. # Use a double $ so make ignores it.
  2231. test "$program_suffix" != NONE &&
  2232. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2233. # Double any \ or $.
  2234. # By default was `s,x,x', remove it if useless.
  2235. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2236. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2237. # expand $ac_aux_dir to an absolute path
  2238. am_aux_dir=`cd $ac_aux_dir && pwd`
  2239. if test x"${MISSING+set}" != xset; then
  2240. case $am_aux_dir in
  2241. *\ * | *\ *)
  2242. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2243. *)
  2244. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2245. esac
  2246. fi
  2247. # Use eval to expand $SHELL
  2248. if eval "$MISSING --run true"; then
  2249. am_missing_run="$MISSING --run "
  2250. else
  2251. am_missing_run=
  2252. { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2253. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2254. fi
  2255. if test x"${install_sh}" != xset; then
  2256. case $am_aux_dir in
  2257. *\ * | *\ *)
  2258. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2259. *)
  2260. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2261. esac
  2262. fi
  2263. # Installed binaries are usually stripped using `strip' when the user
  2264. # run `make install-strip'. However `strip' might not be the right
  2265. # tool to use in cross-compilation environments, therefore Automake
  2266. # will honor the `STRIP' environment variable to overrule this program.
  2267. if test "$cross_compiling" != no; then
  2268. if test -n "$ac_tool_prefix"; then
  2269. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2270. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2271. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2272. $as_echo_n "checking for $ac_word... " >&6; }
  2273. if test "${ac_cv_prog_STRIP+set}" = set; then
  2274. $as_echo_n "(cached) " >&6
  2275. else
  2276. if test -n "$STRIP"; then
  2277. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2278. else
  2279. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2280. for as_dir in $PATH
  2281. do
  2282. IFS=$as_save_IFS
  2283. test -z "$as_dir" && as_dir=.
  2284. for ac_exec_ext in '' $ac_executable_extensions; do
  2285. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2286. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2287. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2288. break 2
  2289. fi
  2290. done
  2291. done
  2292. IFS=$as_save_IFS
  2293. fi
  2294. fi
  2295. STRIP=$ac_cv_prog_STRIP
  2296. if test -n "$STRIP"; then
  2297. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  2298. $as_echo "$STRIP" >&6; }
  2299. else
  2300. { $as_echo "$as_me:$LINENO: result: no" >&5
  2301. $as_echo "no" >&6; }
  2302. fi
  2303. fi
  2304. if test -z "$ac_cv_prog_STRIP"; then
  2305. ac_ct_STRIP=$STRIP
  2306. # Extract the first word of "strip", so it can be a program name with args.
  2307. set dummy strip; ac_word=$2
  2308. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2309. $as_echo_n "checking for $ac_word... " >&6; }
  2310. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2311. $as_echo_n "(cached) " >&6
  2312. else
  2313. if test -n "$ac_ct_STRIP"; then
  2314. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2315. else
  2316. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2317. for as_dir in $PATH
  2318. do
  2319. IFS=$as_save_IFS
  2320. test -z "$as_dir" && as_dir=.
  2321. for ac_exec_ext in '' $ac_executable_extensions; do
  2322. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2323. ac_cv_prog_ac_ct_STRIP="strip"
  2324. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2325. break 2
  2326. fi
  2327. done
  2328. done
  2329. IFS=$as_save_IFS
  2330. fi
  2331. fi
  2332. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2333. if test -n "$ac_ct_STRIP"; then
  2334. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2335. $as_echo "$ac_ct_STRIP" >&6; }
  2336. else
  2337. { $as_echo "$as_me:$LINENO: result: no" >&5
  2338. $as_echo "no" >&6; }
  2339. fi
  2340. if test "x$ac_ct_STRIP" = x; then
  2341. STRIP=":"
  2342. else
  2343. case $cross_compiling:$ac_tool_warned in
  2344. yes:)
  2345. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2346. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2347. ac_tool_warned=yes ;;
  2348. esac
  2349. STRIP=$ac_ct_STRIP
  2350. fi
  2351. else
  2352. STRIP="$ac_cv_prog_STRIP"
  2353. fi
  2354. fi
  2355. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2356. { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  2357. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2358. if test -z "$MKDIR_P"; then
  2359. if test "${ac_cv_path_mkdir+set}" = set; then
  2360. $as_echo_n "(cached) " >&6
  2361. else
  2362. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2363. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2364. do
  2365. IFS=$as_save_IFS
  2366. test -z "$as_dir" && as_dir=.
  2367. for ac_prog in mkdir gmkdir; do
  2368. for ac_exec_ext in '' $ac_executable_extensions; do
  2369. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2370. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2371. 'mkdir (GNU coreutils) '* | \
  2372. 'mkdir (coreutils) '* | \
  2373. 'mkdir (fileutils) '4.1*)
  2374. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2375. break 3;;
  2376. esac
  2377. done
  2378. done
  2379. done
  2380. IFS=$as_save_IFS
  2381. fi
  2382. if test "${ac_cv_path_mkdir+set}" = set; then
  2383. MKDIR_P="$ac_cv_path_mkdir -p"
  2384. else
  2385. # As a last resort, use the slow shell script. Don't cache a
  2386. # value for MKDIR_P within a source directory, because that will
  2387. # break other packages using the cache if that directory is
  2388. # removed, or if the value is a relative name.
  2389. test -d ./--version && rmdir ./--version
  2390. MKDIR_P="$ac_install_sh -d"
  2391. fi
  2392. fi
  2393. { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  2394. $as_echo "$MKDIR_P" >&6; }
  2395. mkdir_p="$MKDIR_P"
  2396. case $mkdir_p in
  2397. [\\/$]* | ?:[\\/]*) ;;
  2398. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2399. esac
  2400. for ac_prog in gawk mawk nawk awk
  2401. do
  2402. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2403. set dummy $ac_prog; ac_word=$2
  2404. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2405. $as_echo_n "checking for $ac_word... " >&6; }
  2406. if test "${ac_cv_prog_AWK+set}" = set; then
  2407. $as_echo_n "(cached) " >&6
  2408. else
  2409. if test -n "$AWK"; then
  2410. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2411. else
  2412. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2413. for as_dir in $PATH
  2414. do
  2415. IFS=$as_save_IFS
  2416. test -z "$as_dir" && as_dir=.
  2417. for ac_exec_ext in '' $ac_executable_extensions; do
  2418. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2419. ac_cv_prog_AWK="$ac_prog"
  2420. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2421. break 2
  2422. fi
  2423. done
  2424. done
  2425. IFS=$as_save_IFS
  2426. fi
  2427. fi
  2428. AWK=$ac_cv_prog_AWK
  2429. if test -n "$AWK"; then
  2430. { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  2431. $as_echo "$AWK" >&6; }
  2432. else
  2433. { $as_echo "$as_me:$LINENO: result: no" >&5
  2434. $as_echo "no" >&6; }
  2435. fi
  2436. test -n "$AWK" && break
  2437. done
  2438. { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2439. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2440. set x ${MAKE-make}
  2441. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2442. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2443. $as_echo_n "(cached) " >&6
  2444. else
  2445. cat >conftest.make <<\_ACEOF
  2446. SHELL = /bin/sh
  2447. all:
  2448. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2449. _ACEOF
  2450. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2451. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2452. *@@@%%%=?*=@@@%%%*)
  2453. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2454. *)
  2455. eval ac_cv_prog_make_${ac_make}_set=no;;
  2456. esac
  2457. rm -f conftest.make
  2458. fi
  2459. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2460. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2461. $as_echo "yes" >&6; }
  2462. SET_MAKE=
  2463. else
  2464. { $as_echo "$as_me:$LINENO: result: no" >&5
  2465. $as_echo "no" >&6; }
  2466. SET_MAKE="MAKE=${MAKE-make}"
  2467. fi
  2468. rm -rf .tst 2>/dev/null
  2469. mkdir .tst 2>/dev/null
  2470. if test -d .tst; then
  2471. am__leading_dot=.
  2472. else
  2473. am__leading_dot=_
  2474. fi
  2475. rmdir .tst 2>/dev/null
  2476. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2477. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2478. # is not polluted with repeated "-I."
  2479. am__isrc=' -I$(srcdir)'
  2480. # test to see if srcdir already configured
  2481. if test -f $srcdir/config.status; then
  2482. { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2483. $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2484. { (exit 1); exit 1; }; }
  2485. fi
  2486. fi
  2487. # test whether we have cygpath
  2488. if test -z "$CYGPATH_W"; then
  2489. if (cygpath --version) >/dev/null 2>/dev/null; then
  2490. CYGPATH_W='cygpath -w'
  2491. else
  2492. CYGPATH_W=echo
  2493. fi
  2494. fi
  2495. # Define the identity of the package.
  2496. PACKAGE='dirsrv'
  2497. VERSION='1.0'
  2498. # Some tools Automake needs.
  2499. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2500. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2501. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2502. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2503. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2504. # We need awk for the "check" target. The system "awk" is bad on
  2505. # some platforms.
  2506. # Always define AMTAR for backward compatibility.
  2507. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2508. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2509. # define these for automake distdir
  2510. VERSION=$PACKAGE_VERSION
  2511. PACKAGE=$PACKAGE_TARNAME
  2512. cat >>confdefs.h <<_ACEOF
  2513. #define VERSION "$VERSION"
  2514. _ACEOF
  2515. cat >>confdefs.h <<_ACEOF
  2516. #define PACKAGE "$PACKAGE"
  2517. _ACEOF
  2518. { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2519. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2520. # Check whether --enable-maintainer-mode was given.
  2521. if test "${enable_maintainer_mode+set}" = set; then
  2522. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2523. else
  2524. USE_MAINTAINER_MODE=no
  2525. fi
  2526. { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  2527. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2528. if test $USE_MAINTAINER_MODE = yes; then
  2529. MAINTAINER_MODE_TRUE=
  2530. MAINTAINER_MODE_FALSE='#'
  2531. else
  2532. MAINTAINER_MODE_TRUE='#'
  2533. MAINTAINER_MODE_FALSE=
  2534. fi
  2535. MAINT=$MAINTAINER_MODE_TRUE
  2536. # Make sure we can run config.sub.
  2537. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2538. { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  2539. $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  2540. { (exit 1); exit 1; }; }
  2541. { $as_echo "$as_me:$LINENO: checking build system type" >&5
  2542. $as_echo_n "checking build system type... " >&6; }
  2543. if test "${ac_cv_build+set}" = set; then
  2544. $as_echo_n "(cached) " >&6
  2545. else
  2546. ac_build_alias=$build_alias
  2547. test "x$ac_build_alias" = x &&
  2548. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2549. test "x$ac_build_alias" = x &&
  2550. { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  2551. $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  2552. { (exit 1); exit 1; }; }
  2553. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2554. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  2555. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  2556. { (exit 1); exit 1; }; }
  2557. fi
  2558. { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  2559. $as_echo "$ac_cv_build" >&6; }
  2560. case $ac_cv_build in
  2561. *-*-*) ;;
  2562. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  2563. $as_echo "$as_me: error: invalid value of canonical build" >&2;}
  2564. { (exit 1); exit 1; }; };;
  2565. esac
  2566. build=$ac_cv_build
  2567. ac_save_IFS=$IFS; IFS='-'
  2568. set x $ac_cv_build
  2569. shift
  2570. build_cpu=$1
  2571. build_vendor=$2
  2572. shift; shift
  2573. # Remember, the first character of IFS is used to create $*,
  2574. # except with old shells:
  2575. build_os=$*
  2576. IFS=$ac_save_IFS
  2577. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2578. { $as_echo "$as_me:$LINENO: checking host system type" >&5
  2579. $as_echo_n "checking host system type... " >&6; }
  2580. if test "${ac_cv_host+set}" = set; then
  2581. $as_echo_n "(cached) " >&6
  2582. else
  2583. if test "x$host_alias" = x; then
  2584. ac_cv_host=$ac_cv_build
  2585. else
  2586. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2587. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  2588. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  2589. { (exit 1); exit 1; }; }
  2590. fi
  2591. fi
  2592. { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  2593. $as_echo "$ac_cv_host" >&6; }
  2594. case $ac_cv_host in
  2595. *-*-*) ;;
  2596. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  2597. $as_echo "$as_me: error: invalid value of canonical host" >&2;}
  2598. { (exit 1); exit 1; }; };;
  2599. esac
  2600. host=$ac_cv_host
  2601. ac_save_IFS=$IFS; IFS='-'
  2602. set x $ac_cv_host
  2603. shift
  2604. host_cpu=$1
  2605. host_vendor=$2
  2606. shift; shift
  2607. # Remember, the first character of IFS is used to create $*,
  2608. # except with old shells:
  2609. host_os=$*
  2610. IFS=$ac_save_IFS
  2611. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2612. # Checks for programs.
  2613. ac_ext=cpp
  2614. ac_cpp='$CXXCPP $CPPFLAGS'
  2615. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2616. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2617. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2618. if test -z "$CXX"; then
  2619. if test -n "$CCC"; then
  2620. CXX=$CCC
  2621. else
  2622. if test -n "$ac_tool_prefix"; then
  2623. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2624. do
  2625. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2626. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2627. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2628. $as_echo_n "checking for $ac_word... " >&6; }
  2629. if test "${ac_cv_prog_CXX+set}" = set; then
  2630. $as_echo_n "(cached) " >&6
  2631. else
  2632. if test -n "$CXX"; then
  2633. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2634. else
  2635. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2636. for as_dir in $PATH
  2637. do
  2638. IFS=$as_save_IFS
  2639. test -z "$as_dir" && as_dir=.
  2640. for ac_exec_ext in '' $ac_executable_extensions; do
  2641. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2642. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2643. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2644. break 2
  2645. fi
  2646. done
  2647. done
  2648. IFS=$as_save_IFS
  2649. fi
  2650. fi
  2651. CXX=$ac_cv_prog_CXX
  2652. if test -n "$CXX"; then
  2653. { $as_echo "$as_me:$LINENO: result: $CXX" >&5
  2654. $as_echo "$CXX" >&6; }
  2655. else
  2656. { $as_echo "$as_me:$LINENO: result: no" >&5
  2657. $as_echo "no" >&6; }
  2658. fi
  2659. test -n "$CXX" && break
  2660. done
  2661. fi
  2662. if test -z "$CXX"; then
  2663. ac_ct_CXX=$CXX
  2664. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2665. do
  2666. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2667. set dummy $ac_prog; ac_word=$2
  2668. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2669. $as_echo_n "checking for $ac_word... " >&6; }
  2670. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2671. $as_echo_n "(cached) " >&6
  2672. else
  2673. if test -n "$ac_ct_CXX"; then
  2674. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2675. else
  2676. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2677. for as_dir in $PATH
  2678. do
  2679. IFS=$as_save_IFS
  2680. test -z "$as_dir" && as_dir=.
  2681. for ac_exec_ext in '' $ac_executable_extensions; do
  2682. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2683. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2684. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2685. break 2
  2686. fi
  2687. done
  2688. done
  2689. IFS=$as_save_IFS
  2690. fi
  2691. fi
  2692. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2693. if test -n "$ac_ct_CXX"; then
  2694. { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2695. $as_echo "$ac_ct_CXX" >&6; }
  2696. else
  2697. { $as_echo "$as_me:$LINENO: result: no" >&5
  2698. $as_echo "no" >&6; }
  2699. fi
  2700. test -n "$ac_ct_CXX" && break
  2701. done
  2702. if test "x$ac_ct_CXX" = x; then
  2703. CXX="g++"
  2704. else
  2705. case $cross_compiling:$ac_tool_warned in
  2706. yes:)
  2707. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2708. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2709. ac_tool_warned=yes ;;
  2710. esac
  2711. CXX=$ac_ct_CXX
  2712. fi
  2713. fi
  2714. fi
  2715. fi
  2716. # Provide some information about the compiler.
  2717. $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  2718. set X $ac_compile
  2719. ac_compiler=$2
  2720. { (ac_try="$ac_compiler --version >&5"
  2721. case "(($ac_try" in
  2722. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2723. *) ac_try_echo=$ac_try;;
  2724. esac
  2725. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2726. $as_echo "$ac_try_echo") >&5
  2727. (eval "$ac_compiler --version >&5") 2>&5
  2728. ac_status=$?
  2729. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2730. (exit $ac_status); }
  2731. { (ac_try="$ac_compiler -v >&5"
  2732. case "(($ac_try" in
  2733. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2734. *) ac_try_echo=$ac_try;;
  2735. esac
  2736. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2737. $as_echo "$ac_try_echo") >&5
  2738. (eval "$ac_compiler -v >&5") 2>&5
  2739. ac_status=$?
  2740. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2741. (exit $ac_status); }
  2742. { (ac_try="$ac_compiler -V >&5"
  2743. case "(($ac_try" in
  2744. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2745. *) ac_try_echo=$ac_try;;
  2746. esac
  2747. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2748. $as_echo "$ac_try_echo") >&5
  2749. (eval "$ac_compiler -V >&5") 2>&5
  2750. ac_status=$?
  2751. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2752. (exit $ac_status); }
  2753. cat >conftest.$ac_ext <<_ACEOF
  2754. /* confdefs.h. */
  2755. _ACEOF
  2756. cat confdefs.h >>conftest.$ac_ext
  2757. cat >>conftest.$ac_ext <<_ACEOF
  2758. /* end confdefs.h. */
  2759. int
  2760. main ()
  2761. {
  2762. ;
  2763. return 0;
  2764. }
  2765. _ACEOF
  2766. ac_clean_files_save=$ac_clean_files
  2767. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2768. # Try to create an executable without -o first, disregard a.out.
  2769. # It will help us diagnose broken compilers, and finding out an intuition
  2770. # of exeext.
  2771. { $as_echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  2772. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  2773. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2774. # The possible output files:
  2775. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2776. ac_rmfiles=
  2777. for ac_file in $ac_files
  2778. do
  2779. case $ac_file in
  2780. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2781. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2782. esac
  2783. done
  2784. rm -f $ac_rmfiles
  2785. if { (ac_try="$ac_link_default"
  2786. case "(($ac_try" in
  2787. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2788. *) ac_try_echo=$ac_try;;
  2789. esac
  2790. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2791. $as_echo "$ac_try_echo") >&5
  2792. (eval "$ac_link_default") 2>&5
  2793. ac_status=$?
  2794. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2795. (exit $ac_status); }; then
  2796. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2797. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2798. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2799. # so that the user can short-circuit this test for compilers unknown to
  2800. # Autoconf.
  2801. for ac_file in $ac_files ''
  2802. do
  2803. test -f "$ac_file" || continue
  2804. case $ac_file in
  2805. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2806. ;;
  2807. [ab].out )
  2808. # We found the default executable, but exeext='' is most
  2809. # certainly right.
  2810. break;;
  2811. *.* )
  2812. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2813. then :; else
  2814. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2815. fi
  2816. # We set ac_cv_exeext here because the later test for it is not
  2817. # safe: cross compilers may not add the suffix if given an `-o'
  2818. # argument, so we may need to know it at that point already.
  2819. # Even if this section looks crufty: it has the advantage of
  2820. # actually working.
  2821. break;;
  2822. * )
  2823. break;;
  2824. esac
  2825. done
  2826. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2827. else
  2828. ac_file=''
  2829. fi
  2830. { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  2831. $as_echo "$ac_file" >&6; }
  2832. if test -z "$ac_file"; then
  2833. $as_echo "$as_me: failed program was:" >&5
  2834. sed 's/^/| /' conftest.$ac_ext >&5
  2835. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2836. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2837. { { $as_echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  2838. See \`config.log' for more details." >&5
  2839. $as_echo "$as_me: error: C++ compiler cannot create executables
  2840. See \`config.log' for more details." >&2;}
  2841. { (exit 77); exit 77; }; }; }
  2842. fi
  2843. ac_exeext=$ac_cv_exeext
  2844. # Check that the compiler produces executables we can run. If not, either
  2845. # the compiler is broken, or we cross compile.
  2846. { $as_echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  2847. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2848. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2849. # If not cross compiling, check that we can run a simple program.
  2850. if test "$cross_compiling" != yes; then
  2851. if { ac_try='./$ac_file'
  2852. { (case "(($ac_try" in
  2853. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2854. *) ac_try_echo=$ac_try;;
  2855. esac
  2856. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2857. $as_echo "$ac_try_echo") >&5
  2858. (eval "$ac_try") 2>&5
  2859. ac_status=$?
  2860. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2861. (exit $ac_status); }; }; then
  2862. cross_compiling=no
  2863. else
  2864. if test "$cross_compiling" = maybe; then
  2865. cross_compiling=yes
  2866. else
  2867. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2868. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2869. { { $as_echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2870. If you meant to cross compile, use \`--host'.
  2871. See \`config.log' for more details." >&5
  2872. $as_echo "$as_me: error: cannot run C++ compiled programs.
  2873. If you meant to cross compile, use \`--host'.
  2874. See \`config.log' for more details." >&2;}
  2875. { (exit 1); exit 1; }; }; }
  2876. fi
  2877. fi
  2878. fi
  2879. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2880. $as_echo "yes" >&6; }
  2881. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2882. ac_clean_files=$ac_clean_files_save
  2883. # Check that the compiler produces executables we can run. If not, either
  2884. # the compiler is broken, or we cross compile.
  2885. { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2886. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2887. { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2888. $as_echo "$cross_compiling" >&6; }
  2889. { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2890. $as_echo_n "checking for suffix of executables... " >&6; }
  2891. if { (ac_try="$ac_link"
  2892. case "(($ac_try" in
  2893. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2894. *) ac_try_echo=$ac_try;;
  2895. esac
  2896. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2897. $as_echo "$ac_try_echo") >&5
  2898. (eval "$ac_link") 2>&5
  2899. ac_status=$?
  2900. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2901. (exit $ac_status); }; then
  2902. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2903. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2904. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2905. # `rm'.
  2906. for ac_file in conftest.exe conftest conftest.*; do
  2907. test -f "$ac_file" || continue
  2908. case $ac_file in
  2909. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2910. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2911. break;;
  2912. * ) break;;
  2913. esac
  2914. done
  2915. else
  2916. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2917. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2918. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2919. See \`config.log' for more details." >&5
  2920. $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2921. See \`config.log' for more details." >&2;}
  2922. { (exit 1); exit 1; }; }; }
  2923. fi
  2924. rm -f conftest$ac_cv_exeext
  2925. { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2926. $as_echo "$ac_cv_exeext" >&6; }
  2927. rm -f conftest.$ac_ext
  2928. EXEEXT=$ac_cv_exeext
  2929. ac_exeext=$EXEEXT
  2930. { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2931. $as_echo_n "checking for suffix of object files... " >&6; }
  2932. if test "${ac_cv_objext+set}" = set; then
  2933. $as_echo_n "(cached) " >&6
  2934. else
  2935. cat >conftest.$ac_ext <<_ACEOF
  2936. /* confdefs.h. */
  2937. _ACEOF
  2938. cat confdefs.h >>conftest.$ac_ext
  2939. cat >>conftest.$ac_ext <<_ACEOF
  2940. /* end confdefs.h. */
  2941. int
  2942. main ()
  2943. {
  2944. ;
  2945. return 0;
  2946. }
  2947. _ACEOF
  2948. rm -f conftest.o conftest.obj
  2949. if { (ac_try="$ac_compile"
  2950. case "(($ac_try" in
  2951. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2952. *) ac_try_echo=$ac_try;;
  2953. esac
  2954. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2955. $as_echo "$ac_try_echo") >&5
  2956. (eval "$ac_compile") 2>&5
  2957. ac_status=$?
  2958. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2959. (exit $ac_status); }; then
  2960. for ac_file in conftest.o conftest.obj conftest.*; do
  2961. test -f "$ac_file" || continue;
  2962. case $ac_file in
  2963. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2964. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2965. break;;
  2966. esac
  2967. done
  2968. else
  2969. $as_echo "$as_me: failed program was:" >&5
  2970. sed 's/^/| /' conftest.$ac_ext >&5
  2971. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2972. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2973. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2974. See \`config.log' for more details." >&5
  2975. $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2976. See \`config.log' for more details." >&2;}
  2977. { (exit 1); exit 1; }; }; }
  2978. fi
  2979. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2980. fi
  2981. { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2982. $as_echo "$ac_cv_objext" >&6; }
  2983. OBJEXT=$ac_cv_objext
  2984. ac_objext=$OBJEXT
  2985. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2986. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  2987. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2988. $as_echo_n "(cached) " >&6
  2989. else
  2990. cat >conftest.$ac_ext <<_ACEOF
  2991. /* confdefs.h. */
  2992. _ACEOF
  2993. cat confdefs.h >>conftest.$ac_ext
  2994. cat >>conftest.$ac_ext <<_ACEOF
  2995. /* end confdefs.h. */
  2996. int
  2997. main ()
  2998. {
  2999. #ifndef __GNUC__
  3000. choke me
  3001. #endif
  3002. ;
  3003. return 0;
  3004. }
  3005. _ACEOF
  3006. rm -f conftest.$ac_objext
  3007. if { (ac_try="$ac_compile"
  3008. case "(($ac_try" in
  3009. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3010. *) ac_try_echo=$ac_try;;
  3011. esac
  3012. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3013. $as_echo "$ac_try_echo") >&5
  3014. (eval "$ac_compile") 2>conftest.er1
  3015. ac_status=$?
  3016. grep -v '^ *+' conftest.er1 >conftest.err
  3017. rm -f conftest.er1
  3018. cat conftest.err >&5
  3019. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3020. (exit $ac_status); } && {
  3021. test -z "$ac_cxx_werror_flag" ||
  3022. test ! -s conftest.err
  3023. } && test -s conftest.$ac_objext; then
  3024. ac_compiler_gnu=yes
  3025. else
  3026. $as_echo "$as_me: failed program was:" >&5
  3027. sed 's/^/| /' conftest.$ac_ext >&5
  3028. ac_compiler_gnu=no
  3029. fi
  3030. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3031. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3032. fi
  3033. { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  3034. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3035. if test $ac_compiler_gnu = yes; then
  3036. GXX=yes
  3037. else
  3038. GXX=
  3039. fi
  3040. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3041. ac_save_CXXFLAGS=$CXXFLAGS
  3042. { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  3043. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3044. if test "${ac_cv_prog_cxx_g+set}" = set; then
  3045. $as_echo_n "(cached) " >&6
  3046. else
  3047. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3048. ac_cxx_werror_flag=yes
  3049. ac_cv_prog_cxx_g=no
  3050. CXXFLAGS="-g"
  3051. cat >conftest.$ac_ext <<_ACEOF
  3052. /* confdefs.h. */
  3053. _ACEOF
  3054. cat confdefs.h >>conftest.$ac_ext
  3055. cat >>conftest.$ac_ext <<_ACEOF
  3056. /* end confdefs.h. */
  3057. int
  3058. main ()
  3059. {
  3060. ;
  3061. return 0;
  3062. }
  3063. _ACEOF
  3064. rm -f conftest.$ac_objext
  3065. if { (ac_try="$ac_compile"
  3066. case "(($ac_try" in
  3067. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3068. *) ac_try_echo=$ac_try;;
  3069. esac
  3070. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3071. $as_echo "$ac_try_echo") >&5
  3072. (eval "$ac_compile") 2>conftest.er1
  3073. ac_status=$?
  3074. grep -v '^ *+' conftest.er1 >conftest.err
  3075. rm -f conftest.er1
  3076. cat conftest.err >&5
  3077. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3078. (exit $ac_status); } && {
  3079. test -z "$ac_cxx_werror_flag" ||
  3080. test ! -s conftest.err
  3081. } && test -s conftest.$ac_objext; then
  3082. ac_cv_prog_cxx_g=yes
  3083. else
  3084. $as_echo "$as_me: failed program was:" >&5
  3085. sed 's/^/| /' conftest.$ac_ext >&5
  3086. CXXFLAGS=""
  3087. cat >conftest.$ac_ext <<_ACEOF
  3088. /* confdefs.h. */
  3089. _ACEOF
  3090. cat confdefs.h >>conftest.$ac_ext
  3091. cat >>conftest.$ac_ext <<_ACEOF
  3092. /* end confdefs.h. */
  3093. int
  3094. main ()
  3095. {
  3096. ;
  3097. return 0;
  3098. }
  3099. _ACEOF
  3100. rm -f conftest.$ac_objext
  3101. if { (ac_try="$ac_compile"
  3102. case "(($ac_try" in
  3103. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3104. *) ac_try_echo=$ac_try;;
  3105. esac
  3106. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3107. $as_echo "$ac_try_echo") >&5
  3108. (eval "$ac_compile") 2>conftest.er1
  3109. ac_status=$?
  3110. grep -v '^ *+' conftest.er1 >conftest.err
  3111. rm -f conftest.er1
  3112. cat conftest.err >&5
  3113. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3114. (exit $ac_status); } && {
  3115. test -z "$ac_cxx_werror_flag" ||
  3116. test ! -s conftest.err
  3117. } && test -s conftest.$ac_objext; then
  3118. :
  3119. else
  3120. $as_echo "$as_me: failed program was:" >&5
  3121. sed 's/^/| /' conftest.$ac_ext >&5
  3122. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3123. CXXFLAGS="-g"
  3124. cat >conftest.$ac_ext <<_ACEOF
  3125. /* confdefs.h. */
  3126. _ACEOF
  3127. cat confdefs.h >>conftest.$ac_ext
  3128. cat >>conftest.$ac_ext <<_ACEOF
  3129. /* end confdefs.h. */
  3130. int
  3131. main ()
  3132. {
  3133. ;
  3134. return 0;
  3135. }
  3136. _ACEOF
  3137. rm -f conftest.$ac_objext
  3138. if { (ac_try="$ac_compile"
  3139. case "(($ac_try" in
  3140. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3141. *) ac_try_echo=$ac_try;;
  3142. esac
  3143. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3144. $as_echo "$ac_try_echo") >&5
  3145. (eval "$ac_compile") 2>conftest.er1
  3146. ac_status=$?
  3147. grep -v '^ *+' conftest.er1 >conftest.err
  3148. rm -f conftest.er1
  3149. cat conftest.err >&5
  3150. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3151. (exit $ac_status); } && {
  3152. test -z "$ac_cxx_werror_flag" ||
  3153. test ! -s conftest.err
  3154. } && test -s conftest.$ac_objext; then
  3155. ac_cv_prog_cxx_g=yes
  3156. else
  3157. $as_echo "$as_me: failed program was:" >&5
  3158. sed 's/^/| /' conftest.$ac_ext >&5
  3159. fi
  3160. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3161. fi
  3162. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3163. fi
  3164. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3165. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3166. fi
  3167. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  3168. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3169. if test "$ac_test_CXXFLAGS" = set; then
  3170. CXXFLAGS=$ac_save_CXXFLAGS
  3171. elif test $ac_cv_prog_cxx_g = yes; then
  3172. if test "$GXX" = yes; then
  3173. CXXFLAGS="-g -O2"
  3174. else
  3175. CXXFLAGS="-g"
  3176. fi
  3177. else
  3178. if test "$GXX" = yes; then
  3179. CXXFLAGS="-O2"
  3180. else
  3181. CXXFLAGS=
  3182. fi
  3183. fi
  3184. ac_ext=c
  3185. ac_cpp='$CPP $CPPFLAGS'
  3186. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3187. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3188. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3189. DEPDIR="${am__leading_dot}deps"
  3190. ac_config_commands="$ac_config_commands depfiles"
  3191. am_make=${MAKE-make}
  3192. cat > confinc << 'END'
  3193. am__doit:
  3194. @echo this is the am__doit target
  3195. .PHONY: am__doit
  3196. END
  3197. # If we don't find an include directive, just comment out the code.
  3198. { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  3199. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3200. am__include="#"
  3201. am__quote=
  3202. _am_result=none
  3203. # First try GNU make style include.
  3204. echo "include confinc" > confmf
  3205. # Ignore all kinds of additional output from `make'.
  3206. case `$am_make -s -f confmf 2> /dev/null` in #(
  3207. *the\ am__doit\ target*)
  3208. am__include=include
  3209. am__quote=
  3210. _am_result=GNU
  3211. ;;
  3212. esac
  3213. # Now try BSD make style include.
  3214. if test "$am__include" = "#"; then
  3215. echo '.include "confinc"' > confmf
  3216. case `$am_make -s -f confmf 2> /dev/null` in #(
  3217. *the\ am__doit\ target*)
  3218. am__include=.include
  3219. am__quote="\""
  3220. _am_result=BSD
  3221. ;;
  3222. esac
  3223. fi
  3224. { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
  3225. $as_echo "$_am_result" >&6; }
  3226. rm -f confinc confmf
  3227. # Check whether --enable-dependency-tracking was given.
  3228. if test "${enable_dependency_tracking+set}" = set; then
  3229. enableval=$enable_dependency_tracking;
  3230. fi
  3231. if test "x$enable_dependency_tracking" != xno; then
  3232. am_depcomp="$ac_aux_dir/depcomp"
  3233. AMDEPBACKSLASH='\'
  3234. fi
  3235. if test "x$enable_dependency_tracking" != xno; then
  3236. AMDEP_TRUE=
  3237. AMDEP_FALSE='#'
  3238. else
  3239. AMDEP_TRUE='#'
  3240. AMDEP_FALSE=
  3241. fi
  3242. depcc="$CXX" am_compiler_list=
  3243. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3244. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3245. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  3246. $as_echo_n "(cached) " >&6
  3247. else
  3248. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3249. # We make a subdir and do the tests there. Otherwise we can end up
  3250. # making bogus files that we don't know about and never remove. For
  3251. # instance it was reported that on HP-UX the gcc test will end up
  3252. # making a dummy file named `D' -- because `-MD' means `put the output
  3253. # in D'.
  3254. mkdir conftest.dir
  3255. # Copy depcomp to subdir because otherwise we won't find it if we're
  3256. # using a relative directory.
  3257. cp "$am_depcomp" conftest.dir
  3258. cd conftest.dir
  3259. # We will build objects and dependencies in a subdirectory because
  3260. # it helps to detect inapplicable dependency modes. For instance
  3261. # both Tru64's cc and ICC support -MD to output dependencies as a
  3262. # side effect of compilation, but ICC will put the dependencies in
  3263. # the current directory while Tru64 will put them in the object
  3264. # directory.
  3265. mkdir sub
  3266. am_cv_CXX_dependencies_compiler_type=none
  3267. if test "$am_compiler_list" = ""; then
  3268. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3269. fi
  3270. am__universal=false
  3271. case " $depcc " in #(
  3272. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3273. esac
  3274. for depmode in $am_compiler_list; do
  3275. # Setup a source with many dependencies, because some compilers
  3276. # like to wrap large dependency lists on column 80 (with \), and
  3277. # we should not choose a depcomp mode which is confused by this.
  3278. #
  3279. # We need to recreate these files for each test, as the compiler may
  3280. # overwrite some of them when testing with obscure command lines.
  3281. # This happens at least with the AIX C compiler.
  3282. : > sub/conftest.c
  3283. for i in 1 2 3 4 5 6; do
  3284. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3285. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3286. # Solaris 8's {/usr,}/bin/sh.
  3287. touch sub/conftst$i.h
  3288. done
  3289. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3290. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3291. # mode. It turns out that the SunPro C++ compiler does not properly
  3292. # handle `-M -o', and we need to detect this. Also, some Intel
  3293. # versions had trouble with output in subdirs
  3294. am__obj=sub/conftest.${OBJEXT-o}
  3295. am__minus_obj="-o $am__obj"
  3296. case $depmode in
  3297. gcc)
  3298. # This depmode causes a compiler race in universal mode.
  3299. test "$am__universal" = false || continue
  3300. ;;
  3301. nosideeffect)
  3302. # after this tag, mechanisms are not by side-effect, so they'll
  3303. # only be used when explicitly requested
  3304. if test "x$enable_dependency_tracking" = xyes; then
  3305. continue
  3306. else
  3307. break
  3308. fi
  3309. ;;
  3310. msvisualcpp | msvcmsys)
  3311. # This compiler won't grok `-c -o', but also, the minuso test has
  3312. # not run yet. These depmodes are late enough in the game, and
  3313. # so weak that their functioning should not be impacted.
  3314. am__obj=conftest.${OBJEXT-o}
  3315. am__minus_obj=
  3316. ;;
  3317. none) break ;;
  3318. esac
  3319. if depmode=$depmode \
  3320. source=sub/conftest.c object=$am__obj \
  3321. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3322. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3323. >/dev/null 2>conftest.err &&
  3324. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3325. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3326. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3327. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3328. # icc doesn't choke on unknown options, it will just issue warnings
  3329. # or remarks (even with -Werror). So we grep stderr for any message
  3330. # that says an option was ignored or not supported.
  3331. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3332. # icc: Command line warning: ignoring option '-M'; no argument required
  3333. # The diagnosis changed in icc 8.0:
  3334. # icc: Command line remark: option '-MP' not supported
  3335. if (grep 'ignoring option' conftest.err ||
  3336. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3337. am_cv_CXX_dependencies_compiler_type=$depmode
  3338. break
  3339. fi
  3340. fi
  3341. done
  3342. cd ..
  3343. rm -rf conftest.dir
  3344. else
  3345. am_cv_CXX_dependencies_compiler_type=none
  3346. fi
  3347. fi
  3348. { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3349. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3350. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3351. if
  3352. test "x$enable_dependency_tracking" != xno \
  3353. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3354. am__fastdepCXX_TRUE=
  3355. am__fastdepCXX_FALSE='#'
  3356. else
  3357. am__fastdepCXX_TRUE='#'
  3358. am__fastdepCXX_FALSE=
  3359. fi
  3360. ac_ext=c
  3361. ac_cpp='$CPP $CPPFLAGS'
  3362. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3363. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3364. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3365. if test -n "$ac_tool_prefix"; then
  3366. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3367. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3368. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3369. $as_echo_n "checking for $ac_word... " >&6; }
  3370. if test "${ac_cv_prog_CC+set}" = set; then
  3371. $as_echo_n "(cached) " >&6
  3372. else
  3373. if test -n "$CC"; then
  3374. ac_cv_prog_CC="$CC" # Let the user override the test.
  3375. else
  3376. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3377. for as_dir in $PATH
  3378. do
  3379. IFS=$as_save_IFS
  3380. test -z "$as_dir" && as_dir=.
  3381. for ac_exec_ext in '' $ac_executable_extensions; do
  3382. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3383. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3384. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3385. break 2
  3386. fi
  3387. done
  3388. done
  3389. IFS=$as_save_IFS
  3390. fi
  3391. fi
  3392. CC=$ac_cv_prog_CC
  3393. if test -n "$CC"; then
  3394. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3395. $as_echo "$CC" >&6; }
  3396. else
  3397. { $as_echo "$as_me:$LINENO: result: no" >&5
  3398. $as_echo "no" >&6; }
  3399. fi
  3400. fi
  3401. if test -z "$ac_cv_prog_CC"; then
  3402. ac_ct_CC=$CC
  3403. # Extract the first word of "gcc", so it can be a program name with args.
  3404. set dummy gcc; ac_word=$2
  3405. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3406. $as_echo_n "checking for $ac_word... " >&6; }
  3407. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3408. $as_echo_n "(cached) " >&6
  3409. else
  3410. if test -n "$ac_ct_CC"; then
  3411. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3412. else
  3413. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3414. for as_dir in $PATH
  3415. do
  3416. IFS=$as_save_IFS
  3417. test -z "$as_dir" && as_dir=.
  3418. for ac_exec_ext in '' $ac_executable_extensions; do
  3419. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3420. ac_cv_prog_ac_ct_CC="gcc"
  3421. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3422. break 2
  3423. fi
  3424. done
  3425. done
  3426. IFS=$as_save_IFS
  3427. fi
  3428. fi
  3429. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3430. if test -n "$ac_ct_CC"; then
  3431. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3432. $as_echo "$ac_ct_CC" >&6; }
  3433. else
  3434. { $as_echo "$as_me:$LINENO: result: no" >&5
  3435. $as_echo "no" >&6; }
  3436. fi
  3437. if test "x$ac_ct_CC" = x; then
  3438. CC=""
  3439. else
  3440. case $cross_compiling:$ac_tool_warned in
  3441. yes:)
  3442. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  3443. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3444. ac_tool_warned=yes ;;
  3445. esac
  3446. CC=$ac_ct_CC
  3447. fi
  3448. else
  3449. CC="$ac_cv_prog_CC"
  3450. fi
  3451. if test -z "$CC"; then
  3452. if test -n "$ac_tool_prefix"; then
  3453. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3454. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3455. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3456. $as_echo_n "checking for $ac_word... " >&6; }
  3457. if test "${ac_cv_prog_CC+set}" = set; then
  3458. $as_echo_n "(cached) " >&6
  3459. else
  3460. if test -n "$CC"; then
  3461. ac_cv_prog_CC="$CC" # Let the user override the test.
  3462. else
  3463. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3464. for as_dir in $PATH
  3465. do
  3466. IFS=$as_save_IFS
  3467. test -z "$as_dir" && as_dir=.
  3468. for ac_exec_ext in '' $ac_executable_extensions; do
  3469. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3470. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3471. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3472. break 2
  3473. fi
  3474. done
  3475. done
  3476. IFS=$as_save_IFS
  3477. fi
  3478. fi
  3479. CC=$ac_cv_prog_CC
  3480. if test -n "$CC"; then
  3481. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3482. $as_echo "$CC" >&6; }
  3483. else
  3484. { $as_echo "$as_me:$LINENO: result: no" >&5
  3485. $as_echo "no" >&6; }
  3486. fi
  3487. fi
  3488. fi
  3489. if test -z "$CC"; then
  3490. # Extract the first word of "cc", so it can be a program name with args.
  3491. set dummy cc; ac_word=$2
  3492. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3493. $as_echo_n "checking for $ac_word... " >&6; }
  3494. if test "${ac_cv_prog_CC+set}" = set; then
  3495. $as_echo_n "(cached) " >&6
  3496. else
  3497. if test -n "$CC"; then
  3498. ac_cv_prog_CC="$CC" # Let the user override the test.
  3499. else
  3500. ac_prog_rejected=no
  3501. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3502. for as_dir in $PATH
  3503. do
  3504. IFS=$as_save_IFS
  3505. test -z "$as_dir" && as_dir=.
  3506. for ac_exec_ext in '' $ac_executable_extensions; do
  3507. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3508. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3509. ac_prog_rejected=yes
  3510. continue
  3511. fi
  3512. ac_cv_prog_CC="cc"
  3513. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3514. break 2
  3515. fi
  3516. done
  3517. done
  3518. IFS=$as_save_IFS
  3519. if test $ac_prog_rejected = yes; then
  3520. # We found a bogon in the path, so make sure we never use it.
  3521. set dummy $ac_cv_prog_CC
  3522. shift
  3523. if test $# != 0; then
  3524. # We chose a different compiler from the bogus one.
  3525. # However, it has the same basename, so the bogon will be chosen
  3526. # first if we set CC to just the basename; use the full file name.
  3527. shift
  3528. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3529. fi
  3530. fi
  3531. fi
  3532. fi
  3533. CC=$ac_cv_prog_CC
  3534. if test -n "$CC"; then
  3535. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3536. $as_echo "$CC" >&6; }
  3537. else
  3538. { $as_echo "$as_me:$LINENO: result: no" >&5
  3539. $as_echo "no" >&6; }
  3540. fi
  3541. fi
  3542. if test -z "$CC"; then
  3543. if test -n "$ac_tool_prefix"; then
  3544. for ac_prog in cl.exe
  3545. do
  3546. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3547. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3548. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3549. $as_echo_n "checking for $ac_word... " >&6; }
  3550. if test "${ac_cv_prog_CC+set}" = set; then
  3551. $as_echo_n "(cached) " >&6
  3552. else
  3553. if test -n "$CC"; then
  3554. ac_cv_prog_CC="$CC" # Let the user override the test.
  3555. else
  3556. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3557. for as_dir in $PATH
  3558. do
  3559. IFS=$as_save_IFS
  3560. test -z "$as_dir" && as_dir=.
  3561. for ac_exec_ext in '' $ac_executable_extensions; do
  3562. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3563. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3564. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3565. break 2
  3566. fi
  3567. done
  3568. done
  3569. IFS=$as_save_IFS
  3570. fi
  3571. fi
  3572. CC=$ac_cv_prog_CC
  3573. if test -n "$CC"; then
  3574. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3575. $as_echo "$CC" >&6; }
  3576. else
  3577. { $as_echo "$as_me:$LINENO: result: no" >&5
  3578. $as_echo "no" >&6; }
  3579. fi
  3580. test -n "$CC" && break
  3581. done
  3582. fi
  3583. if test -z "$CC"; then
  3584. ac_ct_CC=$CC
  3585. for ac_prog in cl.exe
  3586. do
  3587. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3588. set dummy $ac_prog; ac_word=$2
  3589. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3590. $as_echo_n "checking for $ac_word... " >&6; }
  3591. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3592. $as_echo_n "(cached) " >&6
  3593. else
  3594. if test -n "$ac_ct_CC"; then
  3595. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3596. else
  3597. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3598. for as_dir in $PATH
  3599. do
  3600. IFS=$as_save_IFS
  3601. test -z "$as_dir" && as_dir=.
  3602. for ac_exec_ext in '' $ac_executable_extensions; do
  3603. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3604. ac_cv_prog_ac_ct_CC="$ac_prog"
  3605. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3606. break 2
  3607. fi
  3608. done
  3609. done
  3610. IFS=$as_save_IFS
  3611. fi
  3612. fi
  3613. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3614. if test -n "$ac_ct_CC"; then
  3615. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3616. $as_echo "$ac_ct_CC" >&6; }
  3617. else
  3618. { $as_echo "$as_me:$LINENO: result: no" >&5
  3619. $as_echo "no" >&6; }
  3620. fi
  3621. test -n "$ac_ct_CC" && break
  3622. done
  3623. if test "x$ac_ct_CC" = x; then
  3624. CC=""
  3625. else
  3626. case $cross_compiling:$ac_tool_warned in
  3627. yes:)
  3628. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  3629. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3630. ac_tool_warned=yes ;;
  3631. esac
  3632. CC=$ac_ct_CC
  3633. fi
  3634. fi
  3635. fi
  3636. test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3637. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3638. { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3639. See \`config.log' for more details." >&5
  3640. $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  3641. See \`config.log' for more details." >&2;}
  3642. { (exit 1); exit 1; }; }; }
  3643. # Provide some information about the compiler.
  3644. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  3645. set X $ac_compile
  3646. ac_compiler=$2
  3647. { (ac_try="$ac_compiler --version >&5"
  3648. case "(($ac_try" in
  3649. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3650. *) ac_try_echo=$ac_try;;
  3651. esac
  3652. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3653. $as_echo "$ac_try_echo") >&5
  3654. (eval "$ac_compiler --version >&5") 2>&5
  3655. ac_status=$?
  3656. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3657. (exit $ac_status); }
  3658. { (ac_try="$ac_compiler -v >&5"
  3659. case "(($ac_try" in
  3660. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3661. *) ac_try_echo=$ac_try;;
  3662. esac
  3663. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3664. $as_echo "$ac_try_echo") >&5
  3665. (eval "$ac_compiler -v >&5") 2>&5
  3666. ac_status=$?
  3667. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3668. (exit $ac_status); }
  3669. { (ac_try="$ac_compiler -V >&5"
  3670. case "(($ac_try" in
  3671. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3672. *) ac_try_echo=$ac_try;;
  3673. esac
  3674. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3675. $as_echo "$ac_try_echo") >&5
  3676. (eval "$ac_compiler -V >&5") 2>&5
  3677. ac_status=$?
  3678. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3679. (exit $ac_status); }
  3680. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3681. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3682. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3683. $as_echo_n "(cached) " >&6
  3684. else
  3685. cat >conftest.$ac_ext <<_ACEOF
  3686. /* confdefs.h. */
  3687. _ACEOF
  3688. cat confdefs.h >>conftest.$ac_ext
  3689. cat >>conftest.$ac_ext <<_ACEOF
  3690. /* end confdefs.h. */
  3691. int
  3692. main ()
  3693. {
  3694. #ifndef __GNUC__
  3695. choke me
  3696. #endif
  3697. ;
  3698. return 0;
  3699. }
  3700. _ACEOF
  3701. rm -f conftest.$ac_objext
  3702. if { (ac_try="$ac_compile"
  3703. case "(($ac_try" in
  3704. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3705. *) ac_try_echo=$ac_try;;
  3706. esac
  3707. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3708. $as_echo "$ac_try_echo") >&5
  3709. (eval "$ac_compile") 2>conftest.er1
  3710. ac_status=$?
  3711. grep -v '^ *+' conftest.er1 >conftest.err
  3712. rm -f conftest.er1
  3713. cat conftest.err >&5
  3714. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3715. (exit $ac_status); } && {
  3716. test -z "$ac_c_werror_flag" ||
  3717. test ! -s conftest.err
  3718. } && test -s conftest.$ac_objext; then
  3719. ac_compiler_gnu=yes
  3720. else
  3721. $as_echo "$as_me: failed program was:" >&5
  3722. sed 's/^/| /' conftest.$ac_ext >&5
  3723. ac_compiler_gnu=no
  3724. fi
  3725. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3726. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3727. fi
  3728. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3729. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3730. if test $ac_compiler_gnu = yes; then
  3731. GCC=yes
  3732. else
  3733. GCC=
  3734. fi
  3735. ac_test_CFLAGS=${CFLAGS+set}
  3736. ac_save_CFLAGS=$CFLAGS
  3737. { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3738. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3739. if test "${ac_cv_prog_cc_g+set}" = set; then
  3740. $as_echo_n "(cached) " >&6
  3741. else
  3742. ac_save_c_werror_flag=$ac_c_werror_flag
  3743. ac_c_werror_flag=yes
  3744. ac_cv_prog_cc_g=no
  3745. CFLAGS="-g"
  3746. cat >conftest.$ac_ext <<_ACEOF
  3747. /* confdefs.h. */
  3748. _ACEOF
  3749. cat confdefs.h >>conftest.$ac_ext
  3750. cat >>conftest.$ac_ext <<_ACEOF
  3751. /* end confdefs.h. */
  3752. int
  3753. main ()
  3754. {
  3755. ;
  3756. return 0;
  3757. }
  3758. _ACEOF
  3759. rm -f conftest.$ac_objext
  3760. if { (ac_try="$ac_compile"
  3761. case "(($ac_try" in
  3762. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3763. *) ac_try_echo=$ac_try;;
  3764. esac
  3765. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3766. $as_echo "$ac_try_echo") >&5
  3767. (eval "$ac_compile") 2>conftest.er1
  3768. ac_status=$?
  3769. grep -v '^ *+' conftest.er1 >conftest.err
  3770. rm -f conftest.er1
  3771. cat conftest.err >&5
  3772. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3773. (exit $ac_status); } && {
  3774. test -z "$ac_c_werror_flag" ||
  3775. test ! -s conftest.err
  3776. } && test -s conftest.$ac_objext; then
  3777. ac_cv_prog_cc_g=yes
  3778. else
  3779. $as_echo "$as_me: failed program was:" >&5
  3780. sed 's/^/| /' conftest.$ac_ext >&5
  3781. CFLAGS=""
  3782. cat >conftest.$ac_ext <<_ACEOF
  3783. /* confdefs.h. */
  3784. _ACEOF
  3785. cat confdefs.h >>conftest.$ac_ext
  3786. cat >>conftest.$ac_ext <<_ACEOF
  3787. /* end confdefs.h. */
  3788. int
  3789. main ()
  3790. {
  3791. ;
  3792. return 0;
  3793. }
  3794. _ACEOF
  3795. rm -f conftest.$ac_objext
  3796. if { (ac_try="$ac_compile"
  3797. case "(($ac_try" in
  3798. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3799. *) ac_try_echo=$ac_try;;
  3800. esac
  3801. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3802. $as_echo "$ac_try_echo") >&5
  3803. (eval "$ac_compile") 2>conftest.er1
  3804. ac_status=$?
  3805. grep -v '^ *+' conftest.er1 >conftest.err
  3806. rm -f conftest.er1
  3807. cat conftest.err >&5
  3808. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3809. (exit $ac_status); } && {
  3810. test -z "$ac_c_werror_flag" ||
  3811. test ! -s conftest.err
  3812. } && test -s conftest.$ac_objext; then
  3813. :
  3814. else
  3815. $as_echo "$as_me: failed program was:" >&5
  3816. sed 's/^/| /' conftest.$ac_ext >&5
  3817. ac_c_werror_flag=$ac_save_c_werror_flag
  3818. CFLAGS="-g"
  3819. cat >conftest.$ac_ext <<_ACEOF
  3820. /* confdefs.h. */
  3821. _ACEOF
  3822. cat confdefs.h >>conftest.$ac_ext
  3823. cat >>conftest.$ac_ext <<_ACEOF
  3824. /* end confdefs.h. */
  3825. int
  3826. main ()
  3827. {
  3828. ;
  3829. return 0;
  3830. }
  3831. _ACEOF
  3832. rm -f conftest.$ac_objext
  3833. if { (ac_try="$ac_compile"
  3834. case "(($ac_try" in
  3835. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3836. *) ac_try_echo=$ac_try;;
  3837. esac
  3838. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3839. $as_echo "$ac_try_echo") >&5
  3840. (eval "$ac_compile") 2>conftest.er1
  3841. ac_status=$?
  3842. grep -v '^ *+' conftest.er1 >conftest.err
  3843. rm -f conftest.er1
  3844. cat conftest.err >&5
  3845. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3846. (exit $ac_status); } && {
  3847. test -z "$ac_c_werror_flag" ||
  3848. test ! -s conftest.err
  3849. } && test -s conftest.$ac_objext; then
  3850. ac_cv_prog_cc_g=yes
  3851. else
  3852. $as_echo "$as_me: failed program was:" >&5
  3853. sed 's/^/| /' conftest.$ac_ext >&5
  3854. fi
  3855. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3856. fi
  3857. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3858. fi
  3859. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3860. ac_c_werror_flag=$ac_save_c_werror_flag
  3861. fi
  3862. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3863. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3864. if test "$ac_test_CFLAGS" = set; then
  3865. CFLAGS=$ac_save_CFLAGS
  3866. elif test $ac_cv_prog_cc_g = yes; then
  3867. if test "$GCC" = yes; then
  3868. CFLAGS="-g -O2"
  3869. else
  3870. CFLAGS="-g"
  3871. fi
  3872. else
  3873. if test "$GCC" = yes; then
  3874. CFLAGS="-O2"
  3875. else
  3876. CFLAGS=
  3877. fi
  3878. fi
  3879. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3880. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3881. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3882. $as_echo_n "(cached) " >&6
  3883. else
  3884. ac_cv_prog_cc_c89=no
  3885. ac_save_CC=$CC
  3886. cat >conftest.$ac_ext <<_ACEOF
  3887. /* confdefs.h. */
  3888. _ACEOF
  3889. cat confdefs.h >>conftest.$ac_ext
  3890. cat >>conftest.$ac_ext <<_ACEOF
  3891. /* end confdefs.h. */
  3892. #include <stdarg.h>
  3893. #include <stdio.h>
  3894. #include <sys/types.h>
  3895. #include <sys/stat.h>
  3896. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3897. struct buf { int x; };
  3898. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3899. static char *e (p, i)
  3900. char **p;
  3901. int i;
  3902. {
  3903. return p[i];
  3904. }
  3905. static char *f (char * (*g) (char **, int), char **p, ...)
  3906. {
  3907. char *s;
  3908. va_list v;
  3909. va_start (v,p);
  3910. s = g (p, va_arg (v,int));
  3911. va_end (v);
  3912. return s;
  3913. }
  3914. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3915. function prototypes and stuff, but not '\xHH' hex character constants.
  3916. These don't provoke an error unfortunately, instead are silently treated
  3917. as 'x'. The following induces an error, until -std is added to get
  3918. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3919. array size at least. It's necessary to write '\x00'==0 to get something
  3920. that's true only with -std. */
  3921. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3922. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3923. inside strings and character constants. */
  3924. #define FOO(x) 'x'
  3925. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3926. int test (int i, double x);
  3927. struct s1 {int (*f) (int a);};
  3928. struct s2 {int (*f) (double a);};
  3929. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3930. int argc;
  3931. char **argv;
  3932. int
  3933. main ()
  3934. {
  3935. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3936. ;
  3937. return 0;
  3938. }
  3939. _ACEOF
  3940. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3941. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3942. do
  3943. CC="$ac_save_CC $ac_arg"
  3944. rm -f conftest.$ac_objext
  3945. if { (ac_try="$ac_compile"
  3946. case "(($ac_try" in
  3947. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3948. *) ac_try_echo=$ac_try;;
  3949. esac
  3950. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3951. $as_echo "$ac_try_echo") >&5
  3952. (eval "$ac_compile") 2>conftest.er1
  3953. ac_status=$?
  3954. grep -v '^ *+' conftest.er1 >conftest.err
  3955. rm -f conftest.er1
  3956. cat conftest.err >&5
  3957. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3958. (exit $ac_status); } && {
  3959. test -z "$ac_c_werror_flag" ||
  3960. test ! -s conftest.err
  3961. } && test -s conftest.$ac_objext; then
  3962. ac_cv_prog_cc_c89=$ac_arg
  3963. else
  3964. $as_echo "$as_me: failed program was:" >&5
  3965. sed 's/^/| /' conftest.$ac_ext >&5
  3966. fi
  3967. rm -f core conftest.err conftest.$ac_objext
  3968. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3969. done
  3970. rm -f conftest.$ac_ext
  3971. CC=$ac_save_CC
  3972. fi
  3973. # AC_CACHE_VAL
  3974. case "x$ac_cv_prog_cc_c89" in
  3975. x)
  3976. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  3977. $as_echo "none needed" >&6; } ;;
  3978. xno)
  3979. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  3980. $as_echo "unsupported" >&6; } ;;
  3981. *)
  3982. CC="$CC $ac_cv_prog_cc_c89"
  3983. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3984. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3985. esac
  3986. ac_ext=c
  3987. ac_cpp='$CPP $CPPFLAGS'
  3988. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3989. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3990. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3991. depcc="$CC" am_compiler_list=
  3992. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3993. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3994. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3995. $as_echo_n "(cached) " >&6
  3996. else
  3997. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3998. # We make a subdir and do the tests there. Otherwise we can end up
  3999. # making bogus files that we don't know about and never remove. For
  4000. # instance it was reported that on HP-UX the gcc test will end up
  4001. # making a dummy file named `D' -- because `-MD' means `put the output
  4002. # in D'.
  4003. mkdir conftest.dir
  4004. # Copy depcomp to subdir because otherwise we won't find it if we're
  4005. # using a relative directory.
  4006. cp "$am_depcomp" conftest.dir
  4007. cd conftest.dir
  4008. # We will build objects and dependencies in a subdirectory because
  4009. # it helps to detect inapplicable dependency modes. For instance
  4010. # both Tru64's cc and ICC support -MD to output dependencies as a
  4011. # side effect of compilation, but ICC will put the dependencies in
  4012. # the current directory while Tru64 will put them in the object
  4013. # directory.
  4014. mkdir sub
  4015. am_cv_CC_dependencies_compiler_type=none
  4016. if test "$am_compiler_list" = ""; then
  4017. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4018. fi
  4019. am__universal=false
  4020. case " $depcc " in #(
  4021. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4022. esac
  4023. for depmode in $am_compiler_list; do
  4024. # Setup a source with many dependencies, because some compilers
  4025. # like to wrap large dependency lists on column 80 (with \), and
  4026. # we should not choose a depcomp mode which is confused by this.
  4027. #
  4028. # We need to recreate these files for each test, as the compiler may
  4029. # overwrite some of them when testing with obscure command lines.
  4030. # This happens at least with the AIX C compiler.
  4031. : > sub/conftest.c
  4032. for i in 1 2 3 4 5 6; do
  4033. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4034. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4035. # Solaris 8's {/usr,}/bin/sh.
  4036. touch sub/conftst$i.h
  4037. done
  4038. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4039. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4040. # mode. It turns out that the SunPro C++ compiler does not properly
  4041. # handle `-M -o', and we need to detect this. Also, some Intel
  4042. # versions had trouble with output in subdirs
  4043. am__obj=sub/conftest.${OBJEXT-o}
  4044. am__minus_obj="-o $am__obj"
  4045. case $depmode in
  4046. gcc)
  4047. # This depmode causes a compiler race in universal mode.
  4048. test "$am__universal" = false || continue
  4049. ;;
  4050. nosideeffect)
  4051. # after this tag, mechanisms are not by side-effect, so they'll
  4052. # only be used when explicitly requested
  4053. if test "x$enable_dependency_tracking" = xyes; then
  4054. continue
  4055. else
  4056. break
  4057. fi
  4058. ;;
  4059. msvisualcpp | msvcmsys)
  4060. # This compiler won't grok `-c -o', but also, the minuso test has
  4061. # not run yet. These depmodes are late enough in the game, and
  4062. # so weak that their functioning should not be impacted.
  4063. am__obj=conftest.${OBJEXT-o}
  4064. am__minus_obj=
  4065. ;;
  4066. none) break ;;
  4067. esac
  4068. if depmode=$depmode \
  4069. source=sub/conftest.c object=$am__obj \
  4070. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4071. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4072. >/dev/null 2>conftest.err &&
  4073. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4074. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4075. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4076. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4077. # icc doesn't choke on unknown options, it will just issue warnings
  4078. # or remarks (even with -Werror). So we grep stderr for any message
  4079. # that says an option was ignored or not supported.
  4080. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4081. # icc: Command line warning: ignoring option '-M'; no argument required
  4082. # The diagnosis changed in icc 8.0:
  4083. # icc: Command line remark: option '-MP' not supported
  4084. if (grep 'ignoring option' conftest.err ||
  4085. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4086. am_cv_CC_dependencies_compiler_type=$depmode
  4087. break
  4088. fi
  4089. fi
  4090. done
  4091. cd ..
  4092. rm -rf conftest.dir
  4093. else
  4094. am_cv_CC_dependencies_compiler_type=none
  4095. fi
  4096. fi
  4097. { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  4098. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4099. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4100. if
  4101. test "x$enable_dependency_tracking" != xno \
  4102. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4103. am__fastdepCC_TRUE=
  4104. am__fastdepCC_FALSE='#'
  4105. else
  4106. am__fastdepCC_TRUE='#'
  4107. am__fastdepCC_FALSE=
  4108. fi
  4109. if test "x$CC" != xcc; then
  4110. { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
  4111. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  4112. else
  4113. { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
  4114. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  4115. fi
  4116. set dummy $CC; ac_cc=`$as_echo "$2" |
  4117. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4118. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
  4119. $as_echo_n "(cached) " >&6
  4120. else
  4121. cat >conftest.$ac_ext <<_ACEOF
  4122. /* confdefs.h. */
  4123. _ACEOF
  4124. cat confdefs.h >>conftest.$ac_ext
  4125. cat >>conftest.$ac_ext <<_ACEOF
  4126. /* end confdefs.h. */
  4127. int
  4128. main ()
  4129. {
  4130. ;
  4131. return 0;
  4132. }
  4133. _ACEOF
  4134. # Make sure it works both with $CC and with simple cc.
  4135. # We do the test twice because some compilers refuse to overwrite an
  4136. # existing .o file with -o, though they will create one.
  4137. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4138. rm -f conftest2.*
  4139. if { (case "(($ac_try" in
  4140. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4141. *) ac_try_echo=$ac_try;;
  4142. esac
  4143. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4144. $as_echo "$ac_try_echo") >&5
  4145. (eval "$ac_try") 2>&5
  4146. ac_status=$?
  4147. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4148. (exit $ac_status); } &&
  4149. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  4150. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4151. *) ac_try_echo=$ac_try;;
  4152. esac
  4153. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4154. $as_echo "$ac_try_echo") >&5
  4155. (eval "$ac_try") 2>&5
  4156. ac_status=$?
  4157. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4158. (exit $ac_status); };
  4159. then
  4160. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  4161. if test "x$CC" != xcc; then
  4162. # Test first that cc exists at all.
  4163. if { ac_try='cc -c conftest.$ac_ext >&5'
  4164. { (case "(($ac_try" in
  4165. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4166. *) ac_try_echo=$ac_try;;
  4167. esac
  4168. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4169. $as_echo "$ac_try_echo") >&5
  4170. (eval "$ac_try") 2>&5
  4171. ac_status=$?
  4172. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4173. (exit $ac_status); }; }; then
  4174. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4175. rm -f conftest2.*
  4176. if { (case "(($ac_try" in
  4177. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4178. *) ac_try_echo=$ac_try;;
  4179. esac
  4180. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4181. $as_echo "$ac_try_echo") >&5
  4182. (eval "$ac_try") 2>&5
  4183. ac_status=$?
  4184. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4185. (exit $ac_status); } &&
  4186. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  4187. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4188. *) ac_try_echo=$ac_try;;
  4189. esac
  4190. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4191. $as_echo "$ac_try_echo") >&5
  4192. (eval "$ac_try") 2>&5
  4193. ac_status=$?
  4194. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4195. (exit $ac_status); };
  4196. then
  4197. # cc works too.
  4198. :
  4199. else
  4200. # cc exists but doesn't like -o.
  4201. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4202. fi
  4203. fi
  4204. fi
  4205. else
  4206. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4207. fi
  4208. rm -f core conftest*
  4209. fi
  4210. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  4211. { $as_echo "$as_me:$LINENO: result: yes" >&5
  4212. $as_echo "yes" >&6; }
  4213. else
  4214. { $as_echo "$as_me:$LINENO: result: no" >&5
  4215. $as_echo "no" >&6; }
  4216. cat >>confdefs.h <<\_ACEOF
  4217. #define NO_MINUS_C_MINUS_O 1
  4218. _ACEOF
  4219. fi
  4220. # FIXME: we rely on the cache variable name because
  4221. # there is no other way.
  4222. set dummy $CC
  4223. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4224. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  4225. if test "$am_t" != yes; then
  4226. # Losing compiler, so override with the script.
  4227. # FIXME: It is wrong to rewrite CC.
  4228. # But if we don't then we get into trouble of one sort or another.
  4229. # A longer-term fix would be to have automake use am__CC in this case,
  4230. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4231. CC="$am_aux_dir/compile $CC"
  4232. fi
  4233. # By default we simply use the C compiler to build assembly code.
  4234. test "${CCAS+set}" = set || CCAS=$CC
  4235. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  4236. depcc="$CCAS" am_compiler_list=
  4237. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  4238. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4239. if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
  4240. $as_echo_n "(cached) " >&6
  4241. else
  4242. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4243. # We make a subdir and do the tests there. Otherwise we can end up
  4244. # making bogus files that we don't know about and never remove. For
  4245. # instance it was reported that on HP-UX the gcc test will end up
  4246. # making a dummy file named `D' -- because `-MD' means `put the output
  4247. # in D'.
  4248. mkdir conftest.dir
  4249. # Copy depcomp to subdir because otherwise we won't find it if we're
  4250. # using a relative directory.
  4251. cp "$am_depcomp" conftest.dir
  4252. cd conftest.dir
  4253. # We will build objects and dependencies in a subdirectory because
  4254. # it helps to detect inapplicable dependency modes. For instance
  4255. # both Tru64's cc and ICC support -MD to output dependencies as a
  4256. # side effect of compilation, but ICC will put the dependencies in
  4257. # the current directory while Tru64 will put them in the object
  4258. # directory.
  4259. mkdir sub
  4260. am_cv_CCAS_dependencies_compiler_type=none
  4261. if test "$am_compiler_list" = ""; then
  4262. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4263. fi
  4264. am__universal=false
  4265. for depmode in $am_compiler_list; do
  4266. # Setup a source with many dependencies, because some compilers
  4267. # like to wrap large dependency lists on column 80 (with \), and
  4268. # we should not choose a depcomp mode which is confused by this.
  4269. #
  4270. # We need to recreate these files for each test, as the compiler may
  4271. # overwrite some of them when testing with obscure command lines.
  4272. # This happens at least with the AIX C compiler.
  4273. : > sub/conftest.c
  4274. for i in 1 2 3 4 5 6; do
  4275. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4276. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4277. # Solaris 8's {/usr,}/bin/sh.
  4278. touch sub/conftst$i.h
  4279. done
  4280. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4281. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4282. # mode. It turns out that the SunPro C++ compiler does not properly
  4283. # handle `-M -o', and we need to detect this. Also, some Intel
  4284. # versions had trouble with output in subdirs
  4285. am__obj=sub/conftest.${OBJEXT-o}
  4286. am__minus_obj="-o $am__obj"
  4287. case $depmode in
  4288. gcc)
  4289. # This depmode causes a compiler race in universal mode.
  4290. test "$am__universal" = false || continue
  4291. ;;
  4292. nosideeffect)
  4293. # after this tag, mechanisms are not by side-effect, so they'll
  4294. # only be used when explicitly requested
  4295. if test "x$enable_dependency_tracking" = xyes; then
  4296. continue
  4297. else
  4298. break
  4299. fi
  4300. ;;
  4301. msvisualcpp | msvcmsys)
  4302. # This compiler won't grok `-c -o', but also, the minuso test has
  4303. # not run yet. These depmodes are late enough in the game, and
  4304. # so weak that their functioning should not be impacted.
  4305. am__obj=conftest.${OBJEXT-o}
  4306. am__minus_obj=
  4307. ;;
  4308. none) break ;;
  4309. esac
  4310. if depmode=$depmode \
  4311. source=sub/conftest.c object=$am__obj \
  4312. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4313. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4314. >/dev/null 2>conftest.err &&
  4315. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4316. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4317. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4318. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4319. # icc doesn't choke on unknown options, it will just issue warnings
  4320. # or remarks (even with -Werror). So we grep stderr for any message
  4321. # that says an option was ignored or not supported.
  4322. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4323. # icc: Command line warning: ignoring option '-M'; no argument required
  4324. # The diagnosis changed in icc 8.0:
  4325. # icc: Command line remark: option '-MP' not supported
  4326. if (grep 'ignoring option' conftest.err ||
  4327. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4328. am_cv_CCAS_dependencies_compiler_type=$depmode
  4329. break
  4330. fi
  4331. fi
  4332. done
  4333. cd ..
  4334. rm -rf conftest.dir
  4335. else
  4336. am_cv_CCAS_dependencies_compiler_type=none
  4337. fi
  4338. fi
  4339. { $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
  4340. $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
  4341. CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
  4342. if
  4343. test "x$enable_dependency_tracking" != xno \
  4344. && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  4345. am__fastdepCCAS_TRUE=
  4346. am__fastdepCCAS_FALSE='#'
  4347. else
  4348. am__fastdepCCAS_TRUE='#'
  4349. am__fastdepCCAS_FALSE=
  4350. fi
  4351. # disable static libs by default - we only use a couple
  4352. # Check whether --enable-static was given.
  4353. if test "${enable_static+set}" = set; then
  4354. enableval=$enable_static; p=${PACKAGE-default}
  4355. case $enableval in
  4356. yes) enable_static=yes ;;
  4357. no) enable_static=no ;;
  4358. *)
  4359. enable_static=no
  4360. # Look at the argument we got. We use all the common list separators.
  4361. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  4362. for pkg in $enableval; do
  4363. IFS="$lt_save_ifs"
  4364. if test "X$pkg" = "X$p"; then
  4365. enable_static=yes
  4366. fi
  4367. done
  4368. IFS="$lt_save_ifs"
  4369. ;;
  4370. esac
  4371. else
  4372. enable_static=no
  4373. fi
  4374. case `pwd` in
  4375. *\ * | *\ *)
  4376. { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4377. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4378. esac
  4379. macro_version='2.2.6b'
  4380. macro_revision='1.3017'
  4381. ltmain="$ac_aux_dir/ltmain.sh"
  4382. { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  4383. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4384. if test "${ac_cv_path_SED+set}" = set; then
  4385. $as_echo_n "(cached) " >&6
  4386. else
  4387. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4388. for ac_i in 1 2 3 4 5 6 7; do
  4389. ac_script="$ac_script$as_nl$ac_script"
  4390. done
  4391. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4392. $as_unset ac_script || ac_script=
  4393. if test -z "$SED"; then
  4394. ac_path_SED_found=false
  4395. # Loop through the user's path and test for each of PROGNAME-LIST
  4396. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4397. for as_dir in $PATH
  4398. do
  4399. IFS=$as_save_IFS
  4400. test -z "$as_dir" && as_dir=.
  4401. for ac_prog in sed gsed; do
  4402. for ac_exec_ext in '' $ac_executable_extensions; do
  4403. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4404. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4405. # Check for GNU ac_path_SED and select it if it is found.
  4406. # Check for GNU $ac_path_SED
  4407. case `"$ac_path_SED" --version 2>&1` in
  4408. *GNU*)
  4409. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4410. *)
  4411. ac_count=0
  4412. $as_echo_n 0123456789 >"conftest.in"
  4413. while :
  4414. do
  4415. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4416. mv "conftest.tmp" "conftest.in"
  4417. cp "conftest.in" "conftest.nl"
  4418. $as_echo '' >> "conftest.nl"
  4419. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4420. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4421. ac_count=`expr $ac_count + 1`
  4422. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4423. # Best one so far, save it but keep looking for a better one
  4424. ac_cv_path_SED="$ac_path_SED"
  4425. ac_path_SED_max=$ac_count
  4426. fi
  4427. # 10*(2^10) chars as input seems more than enough
  4428. test $ac_count -gt 10 && break
  4429. done
  4430. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4431. esac
  4432. $ac_path_SED_found && break 3
  4433. done
  4434. done
  4435. done
  4436. IFS=$as_save_IFS
  4437. if test -z "$ac_cv_path_SED"; then
  4438. { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
  4439. $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
  4440. { (exit 1); exit 1; }; }
  4441. fi
  4442. else
  4443. ac_cv_path_SED=$SED
  4444. fi
  4445. fi
  4446. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  4447. $as_echo "$ac_cv_path_SED" >&6; }
  4448. SED="$ac_cv_path_SED"
  4449. rm -f conftest.sed
  4450. test -z "$SED" && SED=sed
  4451. Xsed="$SED -e 1s/^X//"
  4452. { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  4453. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4454. if test "${ac_cv_path_GREP+set}" = set; then
  4455. $as_echo_n "(cached) " >&6
  4456. else
  4457. if test -z "$GREP"; then
  4458. ac_path_GREP_found=false
  4459. # Loop through the user's path and test for each of PROGNAME-LIST
  4460. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4461. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4462. do
  4463. IFS=$as_save_IFS
  4464. test -z "$as_dir" && as_dir=.
  4465. for ac_prog in grep ggrep; do
  4466. for ac_exec_ext in '' $ac_executable_extensions; do
  4467. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4468. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4469. # Check for GNU ac_path_GREP and select it if it is found.
  4470. # Check for GNU $ac_path_GREP
  4471. case `"$ac_path_GREP" --version 2>&1` in
  4472. *GNU*)
  4473. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4474. *)
  4475. ac_count=0
  4476. $as_echo_n 0123456789 >"conftest.in"
  4477. while :
  4478. do
  4479. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4480. mv "conftest.tmp" "conftest.in"
  4481. cp "conftest.in" "conftest.nl"
  4482. $as_echo 'GREP' >> "conftest.nl"
  4483. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4484. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4485. ac_count=`expr $ac_count + 1`
  4486. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4487. # Best one so far, save it but keep looking for a better one
  4488. ac_cv_path_GREP="$ac_path_GREP"
  4489. ac_path_GREP_max=$ac_count
  4490. fi
  4491. # 10*(2^10) chars as input seems more than enough
  4492. test $ac_count -gt 10 && break
  4493. done
  4494. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4495. esac
  4496. $ac_path_GREP_found && break 3
  4497. done
  4498. done
  4499. done
  4500. IFS=$as_save_IFS
  4501. if test -z "$ac_cv_path_GREP"; then
  4502. { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4503. $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4504. { (exit 1); exit 1; }; }
  4505. fi
  4506. else
  4507. ac_cv_path_GREP=$GREP
  4508. fi
  4509. fi
  4510. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  4511. $as_echo "$ac_cv_path_GREP" >&6; }
  4512. GREP="$ac_cv_path_GREP"
  4513. { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  4514. $as_echo_n "checking for egrep... " >&6; }
  4515. if test "${ac_cv_path_EGREP+set}" = set; then
  4516. $as_echo_n "(cached) " >&6
  4517. else
  4518. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4519. then ac_cv_path_EGREP="$GREP -E"
  4520. else
  4521. if test -z "$EGREP"; then
  4522. ac_path_EGREP_found=false
  4523. # Loop through the user's path and test for each of PROGNAME-LIST
  4524. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4525. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4526. do
  4527. IFS=$as_save_IFS
  4528. test -z "$as_dir" && as_dir=.
  4529. for ac_prog in egrep; do
  4530. for ac_exec_ext in '' $ac_executable_extensions; do
  4531. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4532. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4533. # Check for GNU ac_path_EGREP and select it if it is found.
  4534. # Check for GNU $ac_path_EGREP
  4535. case `"$ac_path_EGREP" --version 2>&1` in
  4536. *GNU*)
  4537. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4538. *)
  4539. ac_count=0
  4540. $as_echo_n 0123456789 >"conftest.in"
  4541. while :
  4542. do
  4543. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4544. mv "conftest.tmp" "conftest.in"
  4545. cp "conftest.in" "conftest.nl"
  4546. $as_echo 'EGREP' >> "conftest.nl"
  4547. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4548. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4549. ac_count=`expr $ac_count + 1`
  4550. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4551. # Best one so far, save it but keep looking for a better one
  4552. ac_cv_path_EGREP="$ac_path_EGREP"
  4553. ac_path_EGREP_max=$ac_count
  4554. fi
  4555. # 10*(2^10) chars as input seems more than enough
  4556. test $ac_count -gt 10 && break
  4557. done
  4558. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4559. esac
  4560. $ac_path_EGREP_found && break 3
  4561. done
  4562. done
  4563. done
  4564. IFS=$as_save_IFS
  4565. if test -z "$ac_cv_path_EGREP"; then
  4566. { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4567. $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4568. { (exit 1); exit 1; }; }
  4569. fi
  4570. else
  4571. ac_cv_path_EGREP=$EGREP
  4572. fi
  4573. fi
  4574. fi
  4575. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4576. $as_echo "$ac_cv_path_EGREP" >&6; }
  4577. EGREP="$ac_cv_path_EGREP"
  4578. { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
  4579. $as_echo_n "checking for fgrep... " >&6; }
  4580. if test "${ac_cv_path_FGREP+set}" = set; then
  4581. $as_echo_n "(cached) " >&6
  4582. else
  4583. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4584. then ac_cv_path_FGREP="$GREP -F"
  4585. else
  4586. if test -z "$FGREP"; then
  4587. ac_path_FGREP_found=false
  4588. # Loop through the user's path and test for each of PROGNAME-LIST
  4589. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4590. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4591. do
  4592. IFS=$as_save_IFS
  4593. test -z "$as_dir" && as_dir=.
  4594. for ac_prog in fgrep; do
  4595. for ac_exec_ext in '' $ac_executable_extensions; do
  4596. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4597. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4598. # Check for GNU ac_path_FGREP and select it if it is found.
  4599. # Check for GNU $ac_path_FGREP
  4600. case `"$ac_path_FGREP" --version 2>&1` in
  4601. *GNU*)
  4602. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4603. *)
  4604. ac_count=0
  4605. $as_echo_n 0123456789 >"conftest.in"
  4606. while :
  4607. do
  4608. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4609. mv "conftest.tmp" "conftest.in"
  4610. cp "conftest.in" "conftest.nl"
  4611. $as_echo 'FGREP' >> "conftest.nl"
  4612. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4613. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4614. ac_count=`expr $ac_count + 1`
  4615. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4616. # Best one so far, save it but keep looking for a better one
  4617. ac_cv_path_FGREP="$ac_path_FGREP"
  4618. ac_path_FGREP_max=$ac_count
  4619. fi
  4620. # 10*(2^10) chars as input seems more than enough
  4621. test $ac_count -gt 10 && break
  4622. done
  4623. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4624. esac
  4625. $ac_path_FGREP_found && break 3
  4626. done
  4627. done
  4628. done
  4629. IFS=$as_save_IFS
  4630. if test -z "$ac_cv_path_FGREP"; then
  4631. { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4632. $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4633. { (exit 1); exit 1; }; }
  4634. fi
  4635. else
  4636. ac_cv_path_FGREP=$FGREP
  4637. fi
  4638. fi
  4639. fi
  4640. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
  4641. $as_echo "$ac_cv_path_FGREP" >&6; }
  4642. FGREP="$ac_cv_path_FGREP"
  4643. test -z "$GREP" && GREP=grep
  4644. # Check whether --with-gnu-ld was given.
  4645. if test "${with_gnu_ld+set}" = set; then
  4646. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4647. else
  4648. with_gnu_ld=no
  4649. fi
  4650. ac_prog=ld
  4651. if test "$GCC" = yes; then
  4652. # Check if gcc -print-prog-name=ld gives a path.
  4653. { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  4654. $as_echo_n "checking for ld used by $CC... " >&6; }
  4655. case $host in
  4656. *-*-mingw*)
  4657. # gcc leaves a trailing carriage return which upsets mingw
  4658. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4659. *)
  4660. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4661. esac
  4662. case $ac_prog in
  4663. # Accept absolute paths.
  4664. [\\/]* | ?:[\\/]*)
  4665. re_direlt='/[^/][^/]*/\.\./'
  4666. # Canonicalize the pathname of ld
  4667. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4668. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4669. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4670. done
  4671. test -z "$LD" && LD="$ac_prog"
  4672. ;;
  4673. "")
  4674. # If it fails, then pretend we aren't using GCC.
  4675. ac_prog=ld
  4676. ;;
  4677. *)
  4678. # If it is relative, then search for the first ld in PATH.
  4679. with_gnu_ld=unknown
  4680. ;;
  4681. esac
  4682. elif test "$with_gnu_ld" = yes; then
  4683. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  4684. $as_echo_n "checking for GNU ld... " >&6; }
  4685. else
  4686. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  4687. $as_echo_n "checking for non-GNU ld... " >&6; }
  4688. fi
  4689. if test "${lt_cv_path_LD+set}" = set; then
  4690. $as_echo_n "(cached) " >&6
  4691. else
  4692. if test -z "$LD"; then
  4693. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4694. for ac_dir in $PATH; do
  4695. IFS="$lt_save_ifs"
  4696. test -z "$ac_dir" && ac_dir=.
  4697. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4698. lt_cv_path_LD="$ac_dir/$ac_prog"
  4699. # Check to see if the program is GNU ld. I'd rather use --version,
  4700. # but apparently some variants of GNU ld only accept -v.
  4701. # Break only if it was the GNU/non-GNU ld that we prefer.
  4702. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4703. *GNU* | *'with BFD'*)
  4704. test "$with_gnu_ld" != no && break
  4705. ;;
  4706. *)
  4707. test "$with_gnu_ld" != yes && break
  4708. ;;
  4709. esac
  4710. fi
  4711. done
  4712. IFS="$lt_save_ifs"
  4713. else
  4714. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4715. fi
  4716. fi
  4717. LD="$lt_cv_path_LD"
  4718. if test -n "$LD"; then
  4719. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  4720. $as_echo "$LD" >&6; }
  4721. else
  4722. { $as_echo "$as_me:$LINENO: result: no" >&5
  4723. $as_echo "no" >&6; }
  4724. fi
  4725. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  4726. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  4727. { (exit 1); exit 1; }; }
  4728. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  4729. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4730. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  4731. $as_echo_n "(cached) " >&6
  4732. else
  4733. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4734. case `$LD -v 2>&1 </dev/null` in
  4735. *GNU* | *'with BFD'*)
  4736. lt_cv_prog_gnu_ld=yes
  4737. ;;
  4738. *)
  4739. lt_cv_prog_gnu_ld=no
  4740. ;;
  4741. esac
  4742. fi
  4743. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  4744. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4745. with_gnu_ld=$lt_cv_prog_gnu_ld
  4746. { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
  4747. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4748. if test "${lt_cv_path_NM+set}" = set; then
  4749. $as_echo_n "(cached) " >&6
  4750. else
  4751. if test -n "$NM"; then
  4752. # Let the user override the test.
  4753. lt_cv_path_NM="$NM"
  4754. else
  4755. lt_nm_to_check="${ac_tool_prefix}nm"
  4756. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4757. lt_nm_to_check="$lt_nm_to_check nm"
  4758. fi
  4759. for lt_tmp_nm in $lt_nm_to_check; do
  4760. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4761. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4762. IFS="$lt_save_ifs"
  4763. test -z "$ac_dir" && ac_dir=.
  4764. tmp_nm="$ac_dir/$lt_tmp_nm"
  4765. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4766. # Check to see if the nm accepts a BSD-compat flag.
  4767. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4768. # nm: unknown option "B" ignored
  4769. # Tru64's nm complains that /dev/null is an invalid object file
  4770. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4771. */dev/null* | *'Invalid file or object type'*)
  4772. lt_cv_path_NM="$tmp_nm -B"
  4773. break
  4774. ;;
  4775. *)
  4776. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4777. */dev/null*)
  4778. lt_cv_path_NM="$tmp_nm -p"
  4779. break
  4780. ;;
  4781. *)
  4782. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4783. continue # so that we can try to find one that supports BSD flags
  4784. ;;
  4785. esac
  4786. ;;
  4787. esac
  4788. fi
  4789. done
  4790. IFS="$lt_save_ifs"
  4791. done
  4792. : ${lt_cv_path_NM=no}
  4793. fi
  4794. fi
  4795. { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  4796. $as_echo "$lt_cv_path_NM" >&6; }
  4797. if test "$lt_cv_path_NM" != "no"; then
  4798. NM="$lt_cv_path_NM"
  4799. else
  4800. # Didn't find any BSD compatible name lister, look for dumpbin.
  4801. if test -n "$ac_tool_prefix"; then
  4802. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4803. do
  4804. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4805. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4806. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4807. $as_echo_n "checking for $ac_word... " >&6; }
  4808. if test "${ac_cv_prog_DUMPBIN+set}" = set; then
  4809. $as_echo_n "(cached) " >&6
  4810. else
  4811. if test -n "$DUMPBIN"; then
  4812. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4813. else
  4814. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4815. for as_dir in $PATH
  4816. do
  4817. IFS=$as_save_IFS
  4818. test -z "$as_dir" && as_dir=.
  4819. for ac_exec_ext in '' $ac_executable_extensions; do
  4820. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4821. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4822. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4823. break 2
  4824. fi
  4825. done
  4826. done
  4827. IFS=$as_save_IFS
  4828. fi
  4829. fi
  4830. DUMPBIN=$ac_cv_prog_DUMPBIN
  4831. if test -n "$DUMPBIN"; then
  4832. { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
  4833. $as_echo "$DUMPBIN" >&6; }
  4834. else
  4835. { $as_echo "$as_me:$LINENO: result: no" >&5
  4836. $as_echo "no" >&6; }
  4837. fi
  4838. test -n "$DUMPBIN" && break
  4839. done
  4840. fi
  4841. if test -z "$DUMPBIN"; then
  4842. ac_ct_DUMPBIN=$DUMPBIN
  4843. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4844. do
  4845. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4846. set dummy $ac_prog; ac_word=$2
  4847. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4848. $as_echo_n "checking for $ac_word... " >&6; }
  4849. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
  4850. $as_echo_n "(cached) " >&6
  4851. else
  4852. if test -n "$ac_ct_DUMPBIN"; then
  4853. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4854. else
  4855. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4856. for as_dir in $PATH
  4857. do
  4858. IFS=$as_save_IFS
  4859. test -z "$as_dir" && as_dir=.
  4860. for ac_exec_ext in '' $ac_executable_extensions; do
  4861. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4862. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4863. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4864. break 2
  4865. fi
  4866. done
  4867. done
  4868. IFS=$as_save_IFS
  4869. fi
  4870. fi
  4871. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4872. if test -n "$ac_ct_DUMPBIN"; then
  4873. { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
  4874. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4875. else
  4876. { $as_echo "$as_me:$LINENO: result: no" >&5
  4877. $as_echo "no" >&6; }
  4878. fi
  4879. test -n "$ac_ct_DUMPBIN" && break
  4880. done
  4881. if test "x$ac_ct_DUMPBIN" = x; then
  4882. DUMPBIN=":"
  4883. else
  4884. case $cross_compiling:$ac_tool_warned in
  4885. yes:)
  4886. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4887. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4888. ac_tool_warned=yes ;;
  4889. esac
  4890. DUMPBIN=$ac_ct_DUMPBIN
  4891. fi
  4892. fi
  4893. if test "$DUMPBIN" != ":"; then
  4894. NM="$DUMPBIN"
  4895. fi
  4896. fi
  4897. test -z "$NM" && NM=nm
  4898. { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
  4899. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4900. if test "${lt_cv_nm_interface+set}" = set; then
  4901. $as_echo_n "(cached) " >&6
  4902. else
  4903. lt_cv_nm_interface="BSD nm"
  4904. echo "int some_variable = 0;" > conftest.$ac_ext
  4905. (eval echo "\"\$as_me:5488: $ac_compile\"" >&5)
  4906. (eval "$ac_compile" 2>conftest.err)
  4907. cat conftest.err >&5
  4908. (eval echo "\"\$as_me:5491: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4909. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4910. cat conftest.err >&5
  4911. (eval echo "\"\$as_me:5494: output\"" >&5)
  4912. cat conftest.out >&5
  4913. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4914. lt_cv_nm_interface="MS dumpbin"
  4915. fi
  4916. rm -f conftest*
  4917. fi
  4918. { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
  4919. $as_echo "$lt_cv_nm_interface" >&6; }
  4920. { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
  4921. $as_echo_n "checking whether ln -s works... " >&6; }
  4922. LN_S=$as_ln_s
  4923. if test "$LN_S" = "ln -s"; then
  4924. { $as_echo "$as_me:$LINENO: result: yes" >&5
  4925. $as_echo "yes" >&6; }
  4926. else
  4927. { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  4928. $as_echo "no, using $LN_S" >&6; }
  4929. fi
  4930. # find the maximum length of command line arguments
  4931. { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  4932. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4933. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  4934. $as_echo_n "(cached) " >&6
  4935. else
  4936. i=0
  4937. teststring="ABCD"
  4938. case $build_os in
  4939. msdosdjgpp*)
  4940. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4941. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4942. # during glob expansion). Even if it were fixed, the result of this
  4943. # check would be larger than it should be.
  4944. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4945. ;;
  4946. gnu*)
  4947. # Under GNU Hurd, this test is not required because there is
  4948. # no limit to the length of command line arguments.
  4949. # Libtool will interpret -1 as no limit whatsoever
  4950. lt_cv_sys_max_cmd_len=-1;
  4951. ;;
  4952. cygwin* | mingw* | cegcc*)
  4953. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4954. # about 5 minutes as the teststring grows exponentially.
  4955. # Worse, since 9x/ME are not pre-emptively multitasking,
  4956. # you end up with a "frozen" computer, even though with patience
  4957. # the test eventually succeeds (with a max line length of 256k).
  4958. # Instead, let's just punt: use the minimum linelength reported by
  4959. # all of the supported platforms: 8192 (on NT/2K/XP).
  4960. lt_cv_sys_max_cmd_len=8192;
  4961. ;;
  4962. amigaos*)
  4963. # On AmigaOS with pdksh, this test takes hours, literally.
  4964. # So we just punt and use a minimum line length of 8192.
  4965. lt_cv_sys_max_cmd_len=8192;
  4966. ;;
  4967. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4968. # This has been around since 386BSD, at least. Likely further.
  4969. if test -x /sbin/sysctl; then
  4970. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4971. elif test -x /usr/sbin/sysctl; then
  4972. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4973. else
  4974. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4975. fi
  4976. # And add a safety zone
  4977. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4978. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4979. ;;
  4980. interix*)
  4981. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4982. lt_cv_sys_max_cmd_len=196608
  4983. ;;
  4984. osf*)
  4985. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4986. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4987. # nice to cause kernel panics so lets avoid the loop below.
  4988. # First set a reasonable default.
  4989. lt_cv_sys_max_cmd_len=16384
  4990. #
  4991. if test -x /sbin/sysconfig; then
  4992. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4993. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4994. esac
  4995. fi
  4996. ;;
  4997. sco3.2v5*)
  4998. lt_cv_sys_max_cmd_len=102400
  4999. ;;
  5000. sysv5* | sco5v6* | sysv4.2uw2*)
  5001. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5002. if test -n "$kargmax"; then
  5003. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5004. else
  5005. lt_cv_sys_max_cmd_len=32768
  5006. fi
  5007. ;;
  5008. *)
  5009. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5010. if test -n "$lt_cv_sys_max_cmd_len"; then
  5011. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5012. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5013. else
  5014. # Make teststring a little bigger before we do anything with it.
  5015. # a 1K string should be a reasonable start.
  5016. for i in 1 2 3 4 5 6 7 8 ; do
  5017. teststring=$teststring$teststring
  5018. done
  5019. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5020. # If test is not a shell built-in, we'll probably end up computing a
  5021. # maximum length that is only half of the actual maximum length, but
  5022. # we can't tell.
  5023. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  5024. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  5025. test $i != 17 # 1/2 MB should be enough
  5026. do
  5027. i=`expr $i + 1`
  5028. teststring=$teststring$teststring
  5029. done
  5030. # Only check the string length outside the loop.
  5031. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5032. teststring=
  5033. # Add a significant safety factor because C++ compilers can tack on
  5034. # massive amounts of additional arguments before passing them to the
  5035. # linker. It appears as though 1/2 is a usable value.
  5036. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5037. fi
  5038. ;;
  5039. esac
  5040. fi
  5041. if test -n $lt_cv_sys_max_cmd_len ; then
  5042. { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  5043. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5044. else
  5045. { $as_echo "$as_me:$LINENO: result: none" >&5
  5046. $as_echo "none" >&6; }
  5047. fi
  5048. max_cmd_len=$lt_cv_sys_max_cmd_len
  5049. : ${CP="cp -f"}
  5050. : ${MV="mv -f"}
  5051. : ${RM="rm -f"}
  5052. { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
  5053. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5054. # Try some XSI features
  5055. xsi_shell=no
  5056. ( _lt_dummy="a/b/c"
  5057. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5058. = c,a/b,, \
  5059. && eval 'test $(( 1 + 1 )) -eq 2 \
  5060. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5061. && xsi_shell=yes
  5062. { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
  5063. $as_echo "$xsi_shell" >&6; }
  5064. { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
  5065. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5066. lt_shell_append=no
  5067. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5068. >/dev/null 2>&1 \
  5069. && lt_shell_append=yes
  5070. { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
  5071. $as_echo "$lt_shell_append" >&6; }
  5072. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5073. lt_unset=unset
  5074. else
  5075. lt_unset=false
  5076. fi
  5077. # test EBCDIC or ASCII
  5078. case `echo X|tr X '\101'` in
  5079. A) # ASCII based system
  5080. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5081. lt_SP2NL='tr \040 \012'
  5082. lt_NL2SP='tr \015\012 \040\040'
  5083. ;;
  5084. *) # EBCDIC based system
  5085. lt_SP2NL='tr \100 \n'
  5086. lt_NL2SP='tr \r\n \100\100'
  5087. ;;
  5088. esac
  5089. { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  5090. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5091. if test "${lt_cv_ld_reload_flag+set}" = set; then
  5092. $as_echo_n "(cached) " >&6
  5093. else
  5094. lt_cv_ld_reload_flag='-r'
  5095. fi
  5096. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  5097. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5098. reload_flag=$lt_cv_ld_reload_flag
  5099. case $reload_flag in
  5100. "" | " "*) ;;
  5101. *) reload_flag=" $reload_flag" ;;
  5102. esac
  5103. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5104. case $host_os in
  5105. darwin*)
  5106. if test "$GCC" = yes; then
  5107. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5108. else
  5109. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5110. fi
  5111. ;;
  5112. esac
  5113. if test -n "$ac_tool_prefix"; then
  5114. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5115. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5116. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5117. $as_echo_n "checking for $ac_word... " >&6; }
  5118. if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  5119. $as_echo_n "(cached) " >&6
  5120. else
  5121. if test -n "$OBJDUMP"; then
  5122. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5123. else
  5124. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5125. for as_dir in $PATH
  5126. do
  5127. IFS=$as_save_IFS
  5128. test -z "$as_dir" && as_dir=.
  5129. for ac_exec_ext in '' $ac_executable_extensions; do
  5130. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5131. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5132. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5133. break 2
  5134. fi
  5135. done
  5136. done
  5137. IFS=$as_save_IFS
  5138. fi
  5139. fi
  5140. OBJDUMP=$ac_cv_prog_OBJDUMP
  5141. if test -n "$OBJDUMP"; then
  5142. { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
  5143. $as_echo "$OBJDUMP" >&6; }
  5144. else
  5145. { $as_echo "$as_me:$LINENO: result: no" >&5
  5146. $as_echo "no" >&6; }
  5147. fi
  5148. fi
  5149. if test -z "$ac_cv_prog_OBJDUMP"; then
  5150. ac_ct_OBJDUMP=$OBJDUMP
  5151. # Extract the first word of "objdump", so it can be a program name with args.
  5152. set dummy objdump; ac_word=$2
  5153. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5154. $as_echo_n "checking for $ac_word... " >&6; }
  5155. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  5156. $as_echo_n "(cached) " >&6
  5157. else
  5158. if test -n "$ac_ct_OBJDUMP"; then
  5159. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5160. else
  5161. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5162. for as_dir in $PATH
  5163. do
  5164. IFS=$as_save_IFS
  5165. test -z "$as_dir" && as_dir=.
  5166. for ac_exec_ext in '' $ac_executable_extensions; do
  5167. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5168. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5169. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5170. break 2
  5171. fi
  5172. done
  5173. done
  5174. IFS=$as_save_IFS
  5175. fi
  5176. fi
  5177. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5178. if test -n "$ac_ct_OBJDUMP"; then
  5179. { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
  5180. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5181. else
  5182. { $as_echo "$as_me:$LINENO: result: no" >&5
  5183. $as_echo "no" >&6; }
  5184. fi
  5185. if test "x$ac_ct_OBJDUMP" = x; then
  5186. OBJDUMP="false"
  5187. else
  5188. case $cross_compiling:$ac_tool_warned in
  5189. yes:)
  5190. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5191. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5192. ac_tool_warned=yes ;;
  5193. esac
  5194. OBJDUMP=$ac_ct_OBJDUMP
  5195. fi
  5196. else
  5197. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5198. fi
  5199. test -z "$OBJDUMP" && OBJDUMP=objdump
  5200. { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  5201. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5202. if test "${lt_cv_deplibs_check_method+set}" = set; then
  5203. $as_echo_n "(cached) " >&6
  5204. else
  5205. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5206. lt_cv_file_magic_test_file=
  5207. lt_cv_deplibs_check_method='unknown'
  5208. # Need to set the preceding variable on all platforms that support
  5209. # interlibrary dependencies.
  5210. # 'none' -- dependencies not supported.
  5211. # `unknown' -- same as none, but documents that we really don't know.
  5212. # 'pass_all' -- all dependencies passed with no checks.
  5213. # 'test_compile' -- check by making test program.
  5214. # 'file_magic [[regex]]' -- check by looking for files in library path
  5215. # which responds to the $file_magic_cmd with a given extended regex.
  5216. # If you have `file' or equivalent on your system and you're not sure
  5217. # whether `pass_all' will *always* work, you probably want this one.
  5218. case $host_os in
  5219. aix[4-9]*)
  5220. lt_cv_deplibs_check_method=pass_all
  5221. ;;
  5222. beos*)
  5223. lt_cv_deplibs_check_method=pass_all
  5224. ;;
  5225. bsdi[45]*)
  5226. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5227. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5228. lt_cv_file_magic_test_file=/shlib/libc.so
  5229. ;;
  5230. cygwin*)
  5231. # func_win32_libid is a shell function defined in ltmain.sh
  5232. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5233. lt_cv_file_magic_cmd='func_win32_libid'
  5234. ;;
  5235. mingw* | pw32*)
  5236. # Base MSYS/MinGW do not provide the 'file' command needed by
  5237. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5238. # unless we find 'file', for example because we are cross-compiling.
  5239. if ( file / ) >/dev/null 2>&1; then
  5240. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5241. lt_cv_file_magic_cmd='func_win32_libid'
  5242. else
  5243. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5244. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5245. fi
  5246. ;;
  5247. cegcc)
  5248. # use the weaker test based on 'objdump'. See mingw*.
  5249. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5250. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5251. ;;
  5252. darwin* | rhapsody*)
  5253. lt_cv_deplibs_check_method=pass_all
  5254. ;;
  5255. freebsd* | dragonfly*)
  5256. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5257. case $host_cpu in
  5258. i*86 )
  5259. # Not sure whether the presence of OpenBSD here was a mistake.
  5260. # Let's accept both of them until this is cleared up.
  5261. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5262. lt_cv_file_magic_cmd=/usr/bin/file
  5263. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5264. ;;
  5265. esac
  5266. else
  5267. lt_cv_deplibs_check_method=pass_all
  5268. fi
  5269. ;;
  5270. gnu*)
  5271. lt_cv_deplibs_check_method=pass_all
  5272. ;;
  5273. hpux10.20* | hpux11*)
  5274. lt_cv_file_magic_cmd=/usr/bin/file
  5275. case $host_cpu in
  5276. ia64*)
  5277. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5278. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5279. ;;
  5280. hppa*64*)
  5281. 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]'
  5282. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5283. ;;
  5284. *)
  5285. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  5286. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5287. ;;
  5288. esac
  5289. ;;
  5290. interix[3-9]*)
  5291. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5292. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5293. ;;
  5294. irix5* | irix6* | nonstopux*)
  5295. case $LD in
  5296. *-32|*"-32 ") libmagic=32-bit;;
  5297. *-n32|*"-n32 ") libmagic=N32;;
  5298. *-64|*"-64 ") libmagic=64-bit;;
  5299. *) libmagic=never-match;;
  5300. esac
  5301. lt_cv_deplibs_check_method=pass_all
  5302. ;;
  5303. # This must be Linux ELF.
  5304. linux* | k*bsd*-gnu)
  5305. lt_cv_deplibs_check_method=pass_all
  5306. ;;
  5307. netbsd*)
  5308. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5309. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5310. else
  5311. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5312. fi
  5313. ;;
  5314. newos6*)
  5315. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5316. lt_cv_file_magic_cmd=/usr/bin/file
  5317. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5318. ;;
  5319. *nto* | *qnx*)
  5320. lt_cv_deplibs_check_method=pass_all
  5321. ;;
  5322. openbsd*)
  5323. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5324. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5325. else
  5326. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5327. fi
  5328. ;;
  5329. osf3* | osf4* | osf5*)
  5330. lt_cv_deplibs_check_method=pass_all
  5331. ;;
  5332. rdos*)
  5333. lt_cv_deplibs_check_method=pass_all
  5334. ;;
  5335. solaris*)
  5336. lt_cv_deplibs_check_method=pass_all
  5337. ;;
  5338. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5339. lt_cv_deplibs_check_method=pass_all
  5340. ;;
  5341. sysv4 | sysv4.3*)
  5342. case $host_vendor in
  5343. motorola)
  5344. 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]'
  5345. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5346. ;;
  5347. ncr)
  5348. lt_cv_deplibs_check_method=pass_all
  5349. ;;
  5350. sequent)
  5351. lt_cv_file_magic_cmd='/bin/file'
  5352. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5353. ;;
  5354. sni)
  5355. lt_cv_file_magic_cmd='/bin/file'
  5356. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5357. lt_cv_file_magic_test_file=/lib/libc.so
  5358. ;;
  5359. siemens)
  5360. lt_cv_deplibs_check_method=pass_all
  5361. ;;
  5362. pc)
  5363. lt_cv_deplibs_check_method=pass_all
  5364. ;;
  5365. esac
  5366. ;;
  5367. tpf*)
  5368. lt_cv_deplibs_check_method=pass_all
  5369. ;;
  5370. esac
  5371. fi
  5372. { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  5373. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5374. file_magic_cmd=$lt_cv_file_magic_cmd
  5375. deplibs_check_method=$lt_cv_deplibs_check_method
  5376. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5377. if test -n "$ac_tool_prefix"; then
  5378. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5379. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5380. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5381. $as_echo_n "checking for $ac_word... " >&6; }
  5382. if test "${ac_cv_prog_AR+set}" = set; then
  5383. $as_echo_n "(cached) " >&6
  5384. else
  5385. if test -n "$AR"; then
  5386. ac_cv_prog_AR="$AR" # Let the user override the test.
  5387. else
  5388. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5389. for as_dir in $PATH
  5390. do
  5391. IFS=$as_save_IFS
  5392. test -z "$as_dir" && as_dir=.
  5393. for ac_exec_ext in '' $ac_executable_extensions; do
  5394. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5395. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5396. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5397. break 2
  5398. fi
  5399. done
  5400. done
  5401. IFS=$as_save_IFS
  5402. fi
  5403. fi
  5404. AR=$ac_cv_prog_AR
  5405. if test -n "$AR"; then
  5406. { $as_echo "$as_me:$LINENO: result: $AR" >&5
  5407. $as_echo "$AR" >&6; }
  5408. else
  5409. { $as_echo "$as_me:$LINENO: result: no" >&5
  5410. $as_echo "no" >&6; }
  5411. fi
  5412. fi
  5413. if test -z "$ac_cv_prog_AR"; then
  5414. ac_ct_AR=$AR
  5415. # Extract the first word of "ar", so it can be a program name with args.
  5416. set dummy ar; ac_word=$2
  5417. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5418. $as_echo_n "checking for $ac_word... " >&6; }
  5419. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  5420. $as_echo_n "(cached) " >&6
  5421. else
  5422. if test -n "$ac_ct_AR"; then
  5423. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5424. else
  5425. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5426. for as_dir in $PATH
  5427. do
  5428. IFS=$as_save_IFS
  5429. test -z "$as_dir" && as_dir=.
  5430. for ac_exec_ext in '' $ac_executable_extensions; do
  5431. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5432. ac_cv_prog_ac_ct_AR="ar"
  5433. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5434. break 2
  5435. fi
  5436. done
  5437. done
  5438. IFS=$as_save_IFS
  5439. fi
  5440. fi
  5441. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5442. if test -n "$ac_ct_AR"; then
  5443. { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  5444. $as_echo "$ac_ct_AR" >&6; }
  5445. else
  5446. { $as_echo "$as_me:$LINENO: result: no" >&5
  5447. $as_echo "no" >&6; }
  5448. fi
  5449. if test "x$ac_ct_AR" = x; then
  5450. AR="false"
  5451. else
  5452. case $cross_compiling:$ac_tool_warned in
  5453. yes:)
  5454. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5455. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5456. ac_tool_warned=yes ;;
  5457. esac
  5458. AR=$ac_ct_AR
  5459. fi
  5460. else
  5461. AR="$ac_cv_prog_AR"
  5462. fi
  5463. test -z "$AR" && AR=ar
  5464. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5465. if test -n "$ac_tool_prefix"; then
  5466. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5467. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5468. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5469. $as_echo_n "checking for $ac_word... " >&6; }
  5470. if test "${ac_cv_prog_STRIP+set}" = set; then
  5471. $as_echo_n "(cached) " >&6
  5472. else
  5473. if test -n "$STRIP"; then
  5474. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5475. else
  5476. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5477. for as_dir in $PATH
  5478. do
  5479. IFS=$as_save_IFS
  5480. test -z "$as_dir" && as_dir=.
  5481. for ac_exec_ext in '' $ac_executable_extensions; do
  5482. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5483. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5484. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5485. break 2
  5486. fi
  5487. done
  5488. done
  5489. IFS=$as_save_IFS
  5490. fi
  5491. fi
  5492. STRIP=$ac_cv_prog_STRIP
  5493. if test -n "$STRIP"; then
  5494. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  5495. $as_echo "$STRIP" >&6; }
  5496. else
  5497. { $as_echo "$as_me:$LINENO: result: no" >&5
  5498. $as_echo "no" >&6; }
  5499. fi
  5500. fi
  5501. if test -z "$ac_cv_prog_STRIP"; then
  5502. ac_ct_STRIP=$STRIP
  5503. # Extract the first word of "strip", so it can be a program name with args.
  5504. set dummy strip; ac_word=$2
  5505. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5506. $as_echo_n "checking for $ac_word... " >&6; }
  5507. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  5508. $as_echo_n "(cached) " >&6
  5509. else
  5510. if test -n "$ac_ct_STRIP"; then
  5511. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5512. else
  5513. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5514. for as_dir in $PATH
  5515. do
  5516. IFS=$as_save_IFS
  5517. test -z "$as_dir" && as_dir=.
  5518. for ac_exec_ext in '' $ac_executable_extensions; do
  5519. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5520. ac_cv_prog_ac_ct_STRIP="strip"
  5521. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5522. break 2
  5523. fi
  5524. done
  5525. done
  5526. IFS=$as_save_IFS
  5527. fi
  5528. fi
  5529. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5530. if test -n "$ac_ct_STRIP"; then
  5531. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  5532. $as_echo "$ac_ct_STRIP" >&6; }
  5533. else
  5534. { $as_echo "$as_me:$LINENO: result: no" >&5
  5535. $as_echo "no" >&6; }
  5536. fi
  5537. if test "x$ac_ct_STRIP" = x; then
  5538. STRIP=":"
  5539. else
  5540. case $cross_compiling:$ac_tool_warned in
  5541. yes:)
  5542. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5543. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5544. ac_tool_warned=yes ;;
  5545. esac
  5546. STRIP=$ac_ct_STRIP
  5547. fi
  5548. else
  5549. STRIP="$ac_cv_prog_STRIP"
  5550. fi
  5551. test -z "$STRIP" && STRIP=:
  5552. if test -n "$ac_tool_prefix"; then
  5553. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5554. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5555. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5556. $as_echo_n "checking for $ac_word... " >&6; }
  5557. if test "${ac_cv_prog_RANLIB+set}" = set; then
  5558. $as_echo_n "(cached) " >&6
  5559. else
  5560. if test -n "$RANLIB"; then
  5561. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5562. else
  5563. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5564. for as_dir in $PATH
  5565. do
  5566. IFS=$as_save_IFS
  5567. test -z "$as_dir" && as_dir=.
  5568. for ac_exec_ext in '' $ac_executable_extensions; do
  5569. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5570. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5571. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5572. break 2
  5573. fi
  5574. done
  5575. done
  5576. IFS=$as_save_IFS
  5577. fi
  5578. fi
  5579. RANLIB=$ac_cv_prog_RANLIB
  5580. if test -n "$RANLIB"; then
  5581. { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  5582. $as_echo "$RANLIB" >&6; }
  5583. else
  5584. { $as_echo "$as_me:$LINENO: result: no" >&5
  5585. $as_echo "no" >&6; }
  5586. fi
  5587. fi
  5588. if test -z "$ac_cv_prog_RANLIB"; then
  5589. ac_ct_RANLIB=$RANLIB
  5590. # Extract the first word of "ranlib", so it can be a program name with args.
  5591. set dummy ranlib; ac_word=$2
  5592. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5593. $as_echo_n "checking for $ac_word... " >&6; }
  5594. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  5595. $as_echo_n "(cached) " >&6
  5596. else
  5597. if test -n "$ac_ct_RANLIB"; then
  5598. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5599. else
  5600. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5601. for as_dir in $PATH
  5602. do
  5603. IFS=$as_save_IFS
  5604. test -z "$as_dir" && as_dir=.
  5605. for ac_exec_ext in '' $ac_executable_extensions; do
  5606. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5607. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5608. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5609. break 2
  5610. fi
  5611. done
  5612. done
  5613. IFS=$as_save_IFS
  5614. fi
  5615. fi
  5616. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5617. if test -n "$ac_ct_RANLIB"; then
  5618. { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  5619. $as_echo "$ac_ct_RANLIB" >&6; }
  5620. else
  5621. { $as_echo "$as_me:$LINENO: result: no" >&5
  5622. $as_echo "no" >&6; }
  5623. fi
  5624. if test "x$ac_ct_RANLIB" = x; then
  5625. RANLIB=":"
  5626. else
  5627. case $cross_compiling:$ac_tool_warned in
  5628. yes:)
  5629. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5630. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5631. ac_tool_warned=yes ;;
  5632. esac
  5633. RANLIB=$ac_ct_RANLIB
  5634. fi
  5635. else
  5636. RANLIB="$ac_cv_prog_RANLIB"
  5637. fi
  5638. test -z "$RANLIB" && RANLIB=:
  5639. # Determine commands to create old-style static archives.
  5640. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5641. old_postinstall_cmds='chmod 644 $oldlib'
  5642. old_postuninstall_cmds=
  5643. if test -n "$RANLIB"; then
  5644. case $host_os in
  5645. openbsd*)
  5646. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5647. ;;
  5648. *)
  5649. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5650. ;;
  5651. esac
  5652. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5653. fi
  5654. # If no C compiler was specified, use CC.
  5655. LTCC=${LTCC-"$CC"}
  5656. # If no C compiler flags were specified, use CFLAGS.
  5657. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5658. # Allow CC to be a program name with arguments.
  5659. compiler=$CC
  5660. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5661. { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  5662. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5663. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  5664. $as_echo_n "(cached) " >&6
  5665. else
  5666. # These are sane defaults that work on at least a few old systems.
  5667. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5668. # Character class describing NM global symbol codes.
  5669. symcode='[BCDEGRST]'
  5670. # Regexp to match symbols that can be accessed directly from C.
  5671. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5672. # Define system-specific variables.
  5673. case $host_os in
  5674. aix*)
  5675. symcode='[BCDT]'
  5676. ;;
  5677. cygwin* | mingw* | pw32* | cegcc*)
  5678. symcode='[ABCDGISTW]'
  5679. ;;
  5680. hpux*)
  5681. if test "$host_cpu" = ia64; then
  5682. symcode='[ABCDEGRST]'
  5683. fi
  5684. ;;
  5685. irix* | nonstopux*)
  5686. symcode='[BCDEGRST]'
  5687. ;;
  5688. osf*)
  5689. symcode='[BCDEGQRST]'
  5690. ;;
  5691. solaris*)
  5692. symcode='[BDRT]'
  5693. ;;
  5694. sco3.2v5*)
  5695. symcode='[DT]'
  5696. ;;
  5697. sysv4.2uw2*)
  5698. symcode='[DT]'
  5699. ;;
  5700. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5701. symcode='[ABDT]'
  5702. ;;
  5703. sysv4)
  5704. symcode='[DFNSTU]'
  5705. ;;
  5706. esac
  5707. # If we're using GNU nm, then use its standard symbol codes.
  5708. case `$NM -V 2>&1` in
  5709. *GNU* | *'with BFD'*)
  5710. symcode='[ABCDGIRSTW]' ;;
  5711. esac
  5712. # Transform an extracted symbol line into a proper C declaration.
  5713. # Some systems (esp. on ia64) link data and code symbols differently,
  5714. # so use this general approach.
  5715. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5716. # Transform an extracted symbol line into symbol name and symbol address
  5717. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5718. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  5719. # Handle CRLF in mingw tool chain
  5720. opt_cr=
  5721. case $build_os in
  5722. mingw*)
  5723. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5724. ;;
  5725. esac
  5726. # Try without a prefix underscore, then with it.
  5727. for ac_symprfx in "" "_"; do
  5728. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5729. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5730. # Write the raw and C identifiers.
  5731. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5732. # Fake it for dumpbin and say T for any non-static function
  5733. # and D for any global variable.
  5734. # Also find C++ and __fastcall symbols from MSVC++,
  5735. # which start with @ or ?.
  5736. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5737. " {last_section=section; section=\$ 3};"\
  5738. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5739. " \$ 0!~/External *\|/{next};"\
  5740. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5741. " {if(hide[section]) next};"\
  5742. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5743. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5744. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5745. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5746. " ' prfx=^$ac_symprfx"
  5747. else
  5748. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5749. fi
  5750. # Check to see that the pipe works correctly.
  5751. pipe_works=no
  5752. rm -f conftest*
  5753. cat > conftest.$ac_ext <<_LT_EOF
  5754. #ifdef __cplusplus
  5755. extern "C" {
  5756. #endif
  5757. char nm_test_var;
  5758. void nm_test_func(void);
  5759. void nm_test_func(void){}
  5760. #ifdef __cplusplus
  5761. }
  5762. #endif
  5763. int main(){nm_test_var='a';nm_test_func();return(0);}
  5764. _LT_EOF
  5765. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5766. (eval $ac_compile) 2>&5
  5767. ac_status=$?
  5768. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5769. (exit $ac_status); }; then
  5770. # Now try to grab the symbols.
  5771. nlist=conftest.nm
  5772. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  5773. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5774. ac_status=$?
  5775. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5776. (exit $ac_status); } && test -s "$nlist"; then
  5777. # Try sorting and uniquifying the output.
  5778. if sort "$nlist" | uniq > "$nlist"T; then
  5779. mv -f "$nlist"T "$nlist"
  5780. else
  5781. rm -f "$nlist"T
  5782. fi
  5783. # Make sure that we snagged all the symbols we need.
  5784. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5785. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5786. cat <<_LT_EOF > conftest.$ac_ext
  5787. #ifdef __cplusplus
  5788. extern "C" {
  5789. #endif
  5790. _LT_EOF
  5791. # Now generate the symbol file.
  5792. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5793. cat <<_LT_EOF >> conftest.$ac_ext
  5794. /* The mapping between symbol names and symbols. */
  5795. const struct {
  5796. const char *name;
  5797. void *address;
  5798. }
  5799. lt__PROGRAM__LTX_preloaded_symbols[] =
  5800. {
  5801. { "@PROGRAM@", (void *) 0 },
  5802. _LT_EOF
  5803. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5804. cat <<\_LT_EOF >> conftest.$ac_ext
  5805. {0, (void *) 0}
  5806. };
  5807. /* This works around a problem in FreeBSD linker */
  5808. #ifdef FREEBSD_WORKAROUND
  5809. static const void *lt_preloaded_setup() {
  5810. return lt__PROGRAM__LTX_preloaded_symbols;
  5811. }
  5812. #endif
  5813. #ifdef __cplusplus
  5814. }
  5815. #endif
  5816. _LT_EOF
  5817. # Now try linking the two files.
  5818. mv conftest.$ac_objext conftstm.$ac_objext
  5819. lt_save_LIBS="$LIBS"
  5820. lt_save_CFLAGS="$CFLAGS"
  5821. LIBS="conftstm.$ac_objext"
  5822. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5823. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5824. (eval $ac_link) 2>&5
  5825. ac_status=$?
  5826. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5827. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  5828. pipe_works=yes
  5829. fi
  5830. LIBS="$lt_save_LIBS"
  5831. CFLAGS="$lt_save_CFLAGS"
  5832. else
  5833. echo "cannot find nm_test_func in $nlist" >&5
  5834. fi
  5835. else
  5836. echo "cannot find nm_test_var in $nlist" >&5
  5837. fi
  5838. else
  5839. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5840. fi
  5841. else
  5842. echo "$progname: failed program was:" >&5
  5843. cat conftest.$ac_ext >&5
  5844. fi
  5845. rm -rf conftest* conftst*
  5846. # Do not use the global_symbol_pipe unless it works.
  5847. if test "$pipe_works" = yes; then
  5848. break
  5849. else
  5850. lt_cv_sys_global_symbol_pipe=
  5851. fi
  5852. done
  5853. fi
  5854. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5855. lt_cv_sys_global_symbol_to_cdecl=
  5856. fi
  5857. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5858. { $as_echo "$as_me:$LINENO: result: failed" >&5
  5859. $as_echo "failed" >&6; }
  5860. else
  5861. { $as_echo "$as_me:$LINENO: result: ok" >&5
  5862. $as_echo "ok" >&6; }
  5863. fi
  5864. # Check whether --enable-libtool-lock was given.
  5865. if test "${enable_libtool_lock+set}" = set; then
  5866. enableval=$enable_libtool_lock;
  5867. fi
  5868. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5869. # Some flags need to be propagated to the compiler or linker for good
  5870. # libtool support.
  5871. case $host in
  5872. ia64-*-hpux*)
  5873. # Find out which ABI we are using.
  5874. echo 'int i;' > conftest.$ac_ext
  5875. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5876. (eval $ac_compile) 2>&5
  5877. ac_status=$?
  5878. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5879. (exit $ac_status); }; then
  5880. case `/usr/bin/file conftest.$ac_objext` in
  5881. *ELF-32*)
  5882. HPUX_IA64_MODE="32"
  5883. ;;
  5884. *ELF-64*)
  5885. HPUX_IA64_MODE="64"
  5886. ;;
  5887. esac
  5888. fi
  5889. rm -rf conftest*
  5890. ;;
  5891. *-*-irix6*)
  5892. # Find out which ABI we are using.
  5893. echo '#line 6700 "configure"' > conftest.$ac_ext
  5894. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5895. (eval $ac_compile) 2>&5
  5896. ac_status=$?
  5897. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5898. (exit $ac_status); }; then
  5899. if test "$lt_cv_prog_gnu_ld" = yes; then
  5900. case `/usr/bin/file conftest.$ac_objext` in
  5901. *32-bit*)
  5902. LD="${LD-ld} -melf32bsmip"
  5903. ;;
  5904. *N32*)
  5905. LD="${LD-ld} -melf32bmipn32"
  5906. ;;
  5907. *64-bit*)
  5908. LD="${LD-ld} -melf64bmip"
  5909. ;;
  5910. esac
  5911. else
  5912. case `/usr/bin/file conftest.$ac_objext` in
  5913. *32-bit*)
  5914. LD="${LD-ld} -32"
  5915. ;;
  5916. *N32*)
  5917. LD="${LD-ld} -n32"
  5918. ;;
  5919. *64-bit*)
  5920. LD="${LD-ld} -64"
  5921. ;;
  5922. esac
  5923. fi
  5924. fi
  5925. rm -rf conftest*
  5926. ;;
  5927. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5928. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5929. # Find out which ABI we are using.
  5930. echo 'int i;' > conftest.$ac_ext
  5931. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5932. (eval $ac_compile) 2>&5
  5933. ac_status=$?
  5934. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5935. (exit $ac_status); }; then
  5936. case `/usr/bin/file conftest.o` in
  5937. *32-bit*)
  5938. case $host in
  5939. x86_64-*kfreebsd*-gnu)
  5940. LD="${LD-ld} -m elf_i386_fbsd"
  5941. ;;
  5942. x86_64-*linux*)
  5943. LD="${LD-ld} -m elf_i386"
  5944. ;;
  5945. ppc64-*linux*|powerpc64-*linux*)
  5946. LD="${LD-ld} -m elf32ppclinux"
  5947. ;;
  5948. s390x-*linux*)
  5949. LD="${LD-ld} -m elf_s390"
  5950. ;;
  5951. sparc64-*linux*)
  5952. LD="${LD-ld} -m elf32_sparc"
  5953. ;;
  5954. esac
  5955. ;;
  5956. *64-bit*)
  5957. case $host in
  5958. x86_64-*kfreebsd*-gnu)
  5959. LD="${LD-ld} -m elf_x86_64_fbsd"
  5960. ;;
  5961. x86_64-*linux*)
  5962. LD="${LD-ld} -m elf_x86_64"
  5963. ;;
  5964. ppc*-*linux*|powerpc*-*linux*)
  5965. LD="${LD-ld} -m elf64ppc"
  5966. ;;
  5967. s390*-*linux*|s390*-*tpf*)
  5968. LD="${LD-ld} -m elf64_s390"
  5969. ;;
  5970. sparc*-*linux*)
  5971. LD="${LD-ld} -m elf64_sparc"
  5972. ;;
  5973. esac
  5974. ;;
  5975. esac
  5976. fi
  5977. rm -rf conftest*
  5978. ;;
  5979. *-*-sco3.2v5*)
  5980. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5981. SAVE_CFLAGS="$CFLAGS"
  5982. CFLAGS="$CFLAGS -belf"
  5983. { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  5984. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5985. if test "${lt_cv_cc_needs_belf+set}" = set; then
  5986. $as_echo_n "(cached) " >&6
  5987. else
  5988. ac_ext=c
  5989. ac_cpp='$CPP $CPPFLAGS'
  5990. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5991. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5992. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5993. cat >conftest.$ac_ext <<_ACEOF
  5994. /* confdefs.h. */
  5995. _ACEOF
  5996. cat confdefs.h >>conftest.$ac_ext
  5997. cat >>conftest.$ac_ext <<_ACEOF
  5998. /* end confdefs.h. */
  5999. int
  6000. main ()
  6001. {
  6002. ;
  6003. return 0;
  6004. }
  6005. _ACEOF
  6006. rm -f conftest.$ac_objext conftest$ac_exeext
  6007. if { (ac_try="$ac_link"
  6008. case "(($ac_try" in
  6009. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6010. *) ac_try_echo=$ac_try;;
  6011. esac
  6012. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6013. $as_echo "$ac_try_echo") >&5
  6014. (eval "$ac_link") 2>conftest.er1
  6015. ac_status=$?
  6016. grep -v '^ *+' conftest.er1 >conftest.err
  6017. rm -f conftest.er1
  6018. cat conftest.err >&5
  6019. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6020. (exit $ac_status); } && {
  6021. test -z "$ac_c_werror_flag" ||
  6022. test ! -s conftest.err
  6023. } && test -s conftest$ac_exeext && {
  6024. test "$cross_compiling" = yes ||
  6025. $as_test_x conftest$ac_exeext
  6026. }; then
  6027. lt_cv_cc_needs_belf=yes
  6028. else
  6029. $as_echo "$as_me: failed program was:" >&5
  6030. sed 's/^/| /' conftest.$ac_ext >&5
  6031. lt_cv_cc_needs_belf=no
  6032. fi
  6033. rm -rf conftest.dSYM
  6034. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6035. conftest$ac_exeext conftest.$ac_ext
  6036. ac_ext=c
  6037. ac_cpp='$CPP $CPPFLAGS'
  6038. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6039. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6040. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6041. fi
  6042. { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  6043. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6044. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6045. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6046. CFLAGS="$SAVE_CFLAGS"
  6047. fi
  6048. ;;
  6049. sparc*-*solaris*)
  6050. # Find out which ABI we are using.
  6051. echo 'int i;' > conftest.$ac_ext
  6052. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6053. (eval $ac_compile) 2>&5
  6054. ac_status=$?
  6055. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6056. (exit $ac_status); }; then
  6057. case `/usr/bin/file conftest.o` in
  6058. *64-bit*)
  6059. case $lt_cv_prog_gnu_ld in
  6060. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6061. *)
  6062. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6063. LD="${LD-ld} -64"
  6064. fi
  6065. ;;
  6066. esac
  6067. ;;
  6068. esac
  6069. fi
  6070. rm -rf conftest*
  6071. ;;
  6072. esac
  6073. need_locks="$enable_libtool_lock"
  6074. case $host_os in
  6075. rhapsody* | darwin*)
  6076. if test -n "$ac_tool_prefix"; then
  6077. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6078. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6079. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6080. $as_echo_n "checking for $ac_word... " >&6; }
  6081. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
  6082. $as_echo_n "(cached) " >&6
  6083. else
  6084. if test -n "$DSYMUTIL"; then
  6085. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6086. else
  6087. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6088. for as_dir in $PATH
  6089. do
  6090. IFS=$as_save_IFS
  6091. test -z "$as_dir" && as_dir=.
  6092. for ac_exec_ext in '' $ac_executable_extensions; do
  6093. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6094. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6095. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6096. break 2
  6097. fi
  6098. done
  6099. done
  6100. IFS=$as_save_IFS
  6101. fi
  6102. fi
  6103. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6104. if test -n "$DSYMUTIL"; then
  6105. { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
  6106. $as_echo "$DSYMUTIL" >&6; }
  6107. else
  6108. { $as_echo "$as_me:$LINENO: result: no" >&5
  6109. $as_echo "no" >&6; }
  6110. fi
  6111. fi
  6112. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6113. ac_ct_DSYMUTIL=$DSYMUTIL
  6114. # Extract the first word of "dsymutil", so it can be a program name with args.
  6115. set dummy dsymutil; ac_word=$2
  6116. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6117. $as_echo_n "checking for $ac_word... " >&6; }
  6118. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
  6119. $as_echo_n "(cached) " >&6
  6120. else
  6121. if test -n "$ac_ct_DSYMUTIL"; then
  6122. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6123. else
  6124. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6125. for as_dir in $PATH
  6126. do
  6127. IFS=$as_save_IFS
  6128. test -z "$as_dir" && as_dir=.
  6129. for ac_exec_ext in '' $ac_executable_extensions; do
  6130. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6131. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6132. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6133. break 2
  6134. fi
  6135. done
  6136. done
  6137. IFS=$as_save_IFS
  6138. fi
  6139. fi
  6140. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6141. if test -n "$ac_ct_DSYMUTIL"; then
  6142. { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
  6143. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6144. else
  6145. { $as_echo "$as_me:$LINENO: result: no" >&5
  6146. $as_echo "no" >&6; }
  6147. fi
  6148. if test "x$ac_ct_DSYMUTIL" = x; then
  6149. DSYMUTIL=":"
  6150. else
  6151. case $cross_compiling:$ac_tool_warned in
  6152. yes:)
  6153. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6154. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6155. ac_tool_warned=yes ;;
  6156. esac
  6157. DSYMUTIL=$ac_ct_DSYMUTIL
  6158. fi
  6159. else
  6160. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6161. fi
  6162. if test -n "$ac_tool_prefix"; then
  6163. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6164. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6165. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6166. $as_echo_n "checking for $ac_word... " >&6; }
  6167. if test "${ac_cv_prog_NMEDIT+set}" = set; then
  6168. $as_echo_n "(cached) " >&6
  6169. else
  6170. if test -n "$NMEDIT"; then
  6171. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6172. else
  6173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6174. for as_dir in $PATH
  6175. do
  6176. IFS=$as_save_IFS
  6177. test -z "$as_dir" && as_dir=.
  6178. for ac_exec_ext in '' $ac_executable_extensions; do
  6179. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6180. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6181. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6182. break 2
  6183. fi
  6184. done
  6185. done
  6186. IFS=$as_save_IFS
  6187. fi
  6188. fi
  6189. NMEDIT=$ac_cv_prog_NMEDIT
  6190. if test -n "$NMEDIT"; then
  6191. { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
  6192. $as_echo "$NMEDIT" >&6; }
  6193. else
  6194. { $as_echo "$as_me:$LINENO: result: no" >&5
  6195. $as_echo "no" >&6; }
  6196. fi
  6197. fi
  6198. if test -z "$ac_cv_prog_NMEDIT"; then
  6199. ac_ct_NMEDIT=$NMEDIT
  6200. # Extract the first word of "nmedit", so it can be a program name with args.
  6201. set dummy nmedit; ac_word=$2
  6202. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6203. $as_echo_n "checking for $ac_word... " >&6; }
  6204. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
  6205. $as_echo_n "(cached) " >&6
  6206. else
  6207. if test -n "$ac_ct_NMEDIT"; then
  6208. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6209. else
  6210. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6211. for as_dir in $PATH
  6212. do
  6213. IFS=$as_save_IFS
  6214. test -z "$as_dir" && as_dir=.
  6215. for ac_exec_ext in '' $ac_executable_extensions; do
  6216. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6217. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6218. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6219. break 2
  6220. fi
  6221. done
  6222. done
  6223. IFS=$as_save_IFS
  6224. fi
  6225. fi
  6226. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6227. if test -n "$ac_ct_NMEDIT"; then
  6228. { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
  6229. $as_echo "$ac_ct_NMEDIT" >&6; }
  6230. else
  6231. { $as_echo "$as_me:$LINENO: result: no" >&5
  6232. $as_echo "no" >&6; }
  6233. fi
  6234. if test "x$ac_ct_NMEDIT" = x; then
  6235. NMEDIT=":"
  6236. else
  6237. case $cross_compiling:$ac_tool_warned in
  6238. yes:)
  6239. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6240. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6241. ac_tool_warned=yes ;;
  6242. esac
  6243. NMEDIT=$ac_ct_NMEDIT
  6244. fi
  6245. else
  6246. NMEDIT="$ac_cv_prog_NMEDIT"
  6247. fi
  6248. if test -n "$ac_tool_prefix"; then
  6249. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6250. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6251. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6252. $as_echo_n "checking for $ac_word... " >&6; }
  6253. if test "${ac_cv_prog_LIPO+set}" = set; then
  6254. $as_echo_n "(cached) " >&6
  6255. else
  6256. if test -n "$LIPO"; then
  6257. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6258. else
  6259. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6260. for as_dir in $PATH
  6261. do
  6262. IFS=$as_save_IFS
  6263. test -z "$as_dir" && as_dir=.
  6264. for ac_exec_ext in '' $ac_executable_extensions; do
  6265. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6266. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6267. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6268. break 2
  6269. fi
  6270. done
  6271. done
  6272. IFS=$as_save_IFS
  6273. fi
  6274. fi
  6275. LIPO=$ac_cv_prog_LIPO
  6276. if test -n "$LIPO"; then
  6277. { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
  6278. $as_echo "$LIPO" >&6; }
  6279. else
  6280. { $as_echo "$as_me:$LINENO: result: no" >&5
  6281. $as_echo "no" >&6; }
  6282. fi
  6283. fi
  6284. if test -z "$ac_cv_prog_LIPO"; then
  6285. ac_ct_LIPO=$LIPO
  6286. # Extract the first word of "lipo", so it can be a program name with args.
  6287. set dummy lipo; ac_word=$2
  6288. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6289. $as_echo_n "checking for $ac_word... " >&6; }
  6290. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
  6291. $as_echo_n "(cached) " >&6
  6292. else
  6293. if test -n "$ac_ct_LIPO"; then
  6294. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6295. else
  6296. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6297. for as_dir in $PATH
  6298. do
  6299. IFS=$as_save_IFS
  6300. test -z "$as_dir" && as_dir=.
  6301. for ac_exec_ext in '' $ac_executable_extensions; do
  6302. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6303. ac_cv_prog_ac_ct_LIPO="lipo"
  6304. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6305. break 2
  6306. fi
  6307. done
  6308. done
  6309. IFS=$as_save_IFS
  6310. fi
  6311. fi
  6312. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6313. if test -n "$ac_ct_LIPO"; then
  6314. { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
  6315. $as_echo "$ac_ct_LIPO" >&6; }
  6316. else
  6317. { $as_echo "$as_me:$LINENO: result: no" >&5
  6318. $as_echo "no" >&6; }
  6319. fi
  6320. if test "x$ac_ct_LIPO" = x; then
  6321. LIPO=":"
  6322. else
  6323. case $cross_compiling:$ac_tool_warned in
  6324. yes:)
  6325. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6326. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6327. ac_tool_warned=yes ;;
  6328. esac
  6329. LIPO=$ac_ct_LIPO
  6330. fi
  6331. else
  6332. LIPO="$ac_cv_prog_LIPO"
  6333. fi
  6334. if test -n "$ac_tool_prefix"; then
  6335. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6336. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6337. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6338. $as_echo_n "checking for $ac_word... " >&6; }
  6339. if test "${ac_cv_prog_OTOOL+set}" = set; then
  6340. $as_echo_n "(cached) " >&6
  6341. else
  6342. if test -n "$OTOOL"; then
  6343. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6344. else
  6345. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6346. for as_dir in $PATH
  6347. do
  6348. IFS=$as_save_IFS
  6349. test -z "$as_dir" && as_dir=.
  6350. for ac_exec_ext in '' $ac_executable_extensions; do
  6351. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6352. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6353. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6354. break 2
  6355. fi
  6356. done
  6357. done
  6358. IFS=$as_save_IFS
  6359. fi
  6360. fi
  6361. OTOOL=$ac_cv_prog_OTOOL
  6362. if test -n "$OTOOL"; then
  6363. { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
  6364. $as_echo "$OTOOL" >&6; }
  6365. else
  6366. { $as_echo "$as_me:$LINENO: result: no" >&5
  6367. $as_echo "no" >&6; }
  6368. fi
  6369. fi
  6370. if test -z "$ac_cv_prog_OTOOL"; then
  6371. ac_ct_OTOOL=$OTOOL
  6372. # Extract the first word of "otool", so it can be a program name with args.
  6373. set dummy otool; ac_word=$2
  6374. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6375. $as_echo_n "checking for $ac_word... " >&6; }
  6376. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
  6377. $as_echo_n "(cached) " >&6
  6378. else
  6379. if test -n "$ac_ct_OTOOL"; then
  6380. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6381. else
  6382. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6383. for as_dir in $PATH
  6384. do
  6385. IFS=$as_save_IFS
  6386. test -z "$as_dir" && as_dir=.
  6387. for ac_exec_ext in '' $ac_executable_extensions; do
  6388. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6389. ac_cv_prog_ac_ct_OTOOL="otool"
  6390. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6391. break 2
  6392. fi
  6393. done
  6394. done
  6395. IFS=$as_save_IFS
  6396. fi
  6397. fi
  6398. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6399. if test -n "$ac_ct_OTOOL"; then
  6400. { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
  6401. $as_echo "$ac_ct_OTOOL" >&6; }
  6402. else
  6403. { $as_echo "$as_me:$LINENO: result: no" >&5
  6404. $as_echo "no" >&6; }
  6405. fi
  6406. if test "x$ac_ct_OTOOL" = x; then
  6407. OTOOL=":"
  6408. else
  6409. case $cross_compiling:$ac_tool_warned in
  6410. yes:)
  6411. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6412. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6413. ac_tool_warned=yes ;;
  6414. esac
  6415. OTOOL=$ac_ct_OTOOL
  6416. fi
  6417. else
  6418. OTOOL="$ac_cv_prog_OTOOL"
  6419. fi
  6420. if test -n "$ac_tool_prefix"; then
  6421. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6422. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6423. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6424. $as_echo_n "checking for $ac_word... " >&6; }
  6425. if test "${ac_cv_prog_OTOOL64+set}" = set; then
  6426. $as_echo_n "(cached) " >&6
  6427. else
  6428. if test -n "$OTOOL64"; then
  6429. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6430. else
  6431. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6432. for as_dir in $PATH
  6433. do
  6434. IFS=$as_save_IFS
  6435. test -z "$as_dir" && as_dir=.
  6436. for ac_exec_ext in '' $ac_executable_extensions; do
  6437. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6438. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6439. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6440. break 2
  6441. fi
  6442. done
  6443. done
  6444. IFS=$as_save_IFS
  6445. fi
  6446. fi
  6447. OTOOL64=$ac_cv_prog_OTOOL64
  6448. if test -n "$OTOOL64"; then
  6449. { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
  6450. $as_echo "$OTOOL64" >&6; }
  6451. else
  6452. { $as_echo "$as_me:$LINENO: result: no" >&5
  6453. $as_echo "no" >&6; }
  6454. fi
  6455. fi
  6456. if test -z "$ac_cv_prog_OTOOL64"; then
  6457. ac_ct_OTOOL64=$OTOOL64
  6458. # Extract the first word of "otool64", so it can be a program name with args.
  6459. set dummy otool64; ac_word=$2
  6460. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6461. $as_echo_n "checking for $ac_word... " >&6; }
  6462. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
  6463. $as_echo_n "(cached) " >&6
  6464. else
  6465. if test -n "$ac_ct_OTOOL64"; then
  6466. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6467. else
  6468. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6469. for as_dir in $PATH
  6470. do
  6471. IFS=$as_save_IFS
  6472. test -z "$as_dir" && as_dir=.
  6473. for ac_exec_ext in '' $ac_executable_extensions; do
  6474. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6475. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6476. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6477. break 2
  6478. fi
  6479. done
  6480. done
  6481. IFS=$as_save_IFS
  6482. fi
  6483. fi
  6484. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6485. if test -n "$ac_ct_OTOOL64"; then
  6486. { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
  6487. $as_echo "$ac_ct_OTOOL64" >&6; }
  6488. else
  6489. { $as_echo "$as_me:$LINENO: result: no" >&5
  6490. $as_echo "no" >&6; }
  6491. fi
  6492. if test "x$ac_ct_OTOOL64" = x; then
  6493. OTOOL64=":"
  6494. else
  6495. case $cross_compiling:$ac_tool_warned in
  6496. yes:)
  6497. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6498. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6499. ac_tool_warned=yes ;;
  6500. esac
  6501. OTOOL64=$ac_ct_OTOOL64
  6502. fi
  6503. else
  6504. OTOOL64="$ac_cv_prog_OTOOL64"
  6505. fi
  6506. { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
  6507. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6508. if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  6509. $as_echo_n "(cached) " >&6
  6510. else
  6511. lt_cv_apple_cc_single_mod=no
  6512. if test -z "${LT_MULTI_MODULE}"; then
  6513. # By default we will add the -single_module flag. You can override
  6514. # by either setting the environment variable LT_MULTI_MODULE
  6515. # non-empty at configure time, or by adding -multi_module to the
  6516. # link flags.
  6517. rm -rf libconftest.dylib*
  6518. echo "int foo(void){return 1;}" > conftest.c
  6519. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6520. -dynamiclib -Wl,-single_module conftest.c" >&5
  6521. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6522. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6523. _lt_result=$?
  6524. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6525. lt_cv_apple_cc_single_mod=yes
  6526. else
  6527. cat conftest.err >&5
  6528. fi
  6529. rm -rf libconftest.dylib*
  6530. rm -f conftest.*
  6531. fi
  6532. fi
  6533. { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
  6534. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6535. { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
  6536. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6537. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
  6538. $as_echo_n "(cached) " >&6
  6539. else
  6540. lt_cv_ld_exported_symbols_list=no
  6541. save_LDFLAGS=$LDFLAGS
  6542. echo "_main" > conftest.sym
  6543. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6544. cat >conftest.$ac_ext <<_ACEOF
  6545. /* confdefs.h. */
  6546. _ACEOF
  6547. cat confdefs.h >>conftest.$ac_ext
  6548. cat >>conftest.$ac_ext <<_ACEOF
  6549. /* end confdefs.h. */
  6550. int
  6551. main ()
  6552. {
  6553. ;
  6554. return 0;
  6555. }
  6556. _ACEOF
  6557. rm -f conftest.$ac_objext conftest$ac_exeext
  6558. if { (ac_try="$ac_link"
  6559. case "(($ac_try" in
  6560. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6561. *) ac_try_echo=$ac_try;;
  6562. esac
  6563. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6564. $as_echo "$ac_try_echo") >&5
  6565. (eval "$ac_link") 2>conftest.er1
  6566. ac_status=$?
  6567. grep -v '^ *+' conftest.er1 >conftest.err
  6568. rm -f conftest.er1
  6569. cat conftest.err >&5
  6570. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6571. (exit $ac_status); } && {
  6572. test -z "$ac_c_werror_flag" ||
  6573. test ! -s conftest.err
  6574. } && test -s conftest$ac_exeext && {
  6575. test "$cross_compiling" = yes ||
  6576. $as_test_x conftest$ac_exeext
  6577. }; then
  6578. lt_cv_ld_exported_symbols_list=yes
  6579. else
  6580. $as_echo "$as_me: failed program was:" >&5
  6581. sed 's/^/| /' conftest.$ac_ext >&5
  6582. lt_cv_ld_exported_symbols_list=no
  6583. fi
  6584. rm -rf conftest.dSYM
  6585. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6586. conftest$ac_exeext conftest.$ac_ext
  6587. LDFLAGS="$save_LDFLAGS"
  6588. fi
  6589. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
  6590. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6591. case $host_os in
  6592. rhapsody* | darwin1.[012])
  6593. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6594. darwin1.*)
  6595. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6596. darwin*) # darwin 5.x on
  6597. # if running on 10.5 or later, the deployment target defaults
  6598. # to the OS version, if on x86, and 10.4, the deployment
  6599. # target defaults to 10.4. Don't you love it?
  6600. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6601. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6602. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6603. 10.[012]*)
  6604. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6605. 10.*)
  6606. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6607. esac
  6608. ;;
  6609. esac
  6610. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6611. _lt_dar_single_mod='$single_module'
  6612. fi
  6613. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6614. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6615. else
  6616. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6617. fi
  6618. if test "$DSYMUTIL" != ":"; then
  6619. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6620. else
  6621. _lt_dsymutil=
  6622. fi
  6623. ;;
  6624. esac
  6625. ac_ext=c
  6626. ac_cpp='$CPP $CPPFLAGS'
  6627. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6628. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6629. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6630. { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  6631. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6632. # On Suns, sometimes $CPP names a directory.
  6633. if test -n "$CPP" && test -d "$CPP"; then
  6634. CPP=
  6635. fi
  6636. if test -z "$CPP"; then
  6637. if test "${ac_cv_prog_CPP+set}" = set; then
  6638. $as_echo_n "(cached) " >&6
  6639. else
  6640. # Double quotes because CPP needs to be expanded
  6641. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6642. do
  6643. ac_preproc_ok=false
  6644. for ac_c_preproc_warn_flag in '' yes
  6645. do
  6646. # Use a header file that comes with gcc, so configuring glibc
  6647. # with a fresh cross-compiler works.
  6648. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6649. # <limits.h> exists even on freestanding compilers.
  6650. # On the NeXT, cc -E runs the code through the compiler's parser,
  6651. # not just through cpp. "Syntax error" is here to catch this case.
  6652. cat >conftest.$ac_ext <<_ACEOF
  6653. /* confdefs.h. */
  6654. _ACEOF
  6655. cat confdefs.h >>conftest.$ac_ext
  6656. cat >>conftest.$ac_ext <<_ACEOF
  6657. /* end confdefs.h. */
  6658. #ifdef __STDC__
  6659. # include <limits.h>
  6660. #else
  6661. # include <assert.h>
  6662. #endif
  6663. Syntax error
  6664. _ACEOF
  6665. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6666. case "(($ac_try" in
  6667. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6668. *) ac_try_echo=$ac_try;;
  6669. esac
  6670. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6671. $as_echo "$ac_try_echo") >&5
  6672. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6673. ac_status=$?
  6674. grep -v '^ *+' conftest.er1 >conftest.err
  6675. rm -f conftest.er1
  6676. cat conftest.err >&5
  6677. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6678. (exit $ac_status); } >/dev/null && {
  6679. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6680. test ! -s conftest.err
  6681. }; then
  6682. :
  6683. else
  6684. $as_echo "$as_me: failed program was:" >&5
  6685. sed 's/^/| /' conftest.$ac_ext >&5
  6686. # Broken: fails on valid input.
  6687. continue
  6688. fi
  6689. rm -f conftest.err conftest.$ac_ext
  6690. # OK, works on sane cases. Now check whether nonexistent headers
  6691. # can be detected and how.
  6692. cat >conftest.$ac_ext <<_ACEOF
  6693. /* confdefs.h. */
  6694. _ACEOF
  6695. cat confdefs.h >>conftest.$ac_ext
  6696. cat >>conftest.$ac_ext <<_ACEOF
  6697. /* end confdefs.h. */
  6698. #include <ac_nonexistent.h>
  6699. _ACEOF
  6700. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6701. case "(($ac_try" in
  6702. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6703. *) ac_try_echo=$ac_try;;
  6704. esac
  6705. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6706. $as_echo "$ac_try_echo") >&5
  6707. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6708. ac_status=$?
  6709. grep -v '^ *+' conftest.er1 >conftest.err
  6710. rm -f conftest.er1
  6711. cat conftest.err >&5
  6712. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6713. (exit $ac_status); } >/dev/null && {
  6714. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6715. test ! -s conftest.err
  6716. }; then
  6717. # Broken: success on invalid input.
  6718. continue
  6719. else
  6720. $as_echo "$as_me: failed program was:" >&5
  6721. sed 's/^/| /' conftest.$ac_ext >&5
  6722. # Passes both tests.
  6723. ac_preproc_ok=:
  6724. break
  6725. fi
  6726. rm -f conftest.err conftest.$ac_ext
  6727. done
  6728. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6729. rm -f conftest.err conftest.$ac_ext
  6730. if $ac_preproc_ok; then
  6731. break
  6732. fi
  6733. done
  6734. ac_cv_prog_CPP=$CPP
  6735. fi
  6736. CPP=$ac_cv_prog_CPP
  6737. else
  6738. ac_cv_prog_CPP=$CPP
  6739. fi
  6740. { $as_echo "$as_me:$LINENO: result: $CPP" >&5
  6741. $as_echo "$CPP" >&6; }
  6742. ac_preproc_ok=false
  6743. for ac_c_preproc_warn_flag in '' yes
  6744. do
  6745. # Use a header file that comes with gcc, so configuring glibc
  6746. # with a fresh cross-compiler works.
  6747. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6748. # <limits.h> exists even on freestanding compilers.
  6749. # On the NeXT, cc -E runs the code through the compiler's parser,
  6750. # not just through cpp. "Syntax error" is here to catch this case.
  6751. cat >conftest.$ac_ext <<_ACEOF
  6752. /* confdefs.h. */
  6753. _ACEOF
  6754. cat confdefs.h >>conftest.$ac_ext
  6755. cat >>conftest.$ac_ext <<_ACEOF
  6756. /* end confdefs.h. */
  6757. #ifdef __STDC__
  6758. # include <limits.h>
  6759. #else
  6760. # include <assert.h>
  6761. #endif
  6762. Syntax error
  6763. _ACEOF
  6764. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6765. case "(($ac_try" in
  6766. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6767. *) ac_try_echo=$ac_try;;
  6768. esac
  6769. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6770. $as_echo "$ac_try_echo") >&5
  6771. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6772. ac_status=$?
  6773. grep -v '^ *+' conftest.er1 >conftest.err
  6774. rm -f conftest.er1
  6775. cat conftest.err >&5
  6776. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6777. (exit $ac_status); } >/dev/null && {
  6778. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6779. test ! -s conftest.err
  6780. }; then
  6781. :
  6782. else
  6783. $as_echo "$as_me: failed program was:" >&5
  6784. sed 's/^/| /' conftest.$ac_ext >&5
  6785. # Broken: fails on valid input.
  6786. continue
  6787. fi
  6788. rm -f conftest.err conftest.$ac_ext
  6789. # OK, works on sane cases. Now check whether nonexistent headers
  6790. # can be detected and how.
  6791. cat >conftest.$ac_ext <<_ACEOF
  6792. /* confdefs.h. */
  6793. _ACEOF
  6794. cat confdefs.h >>conftest.$ac_ext
  6795. cat >>conftest.$ac_ext <<_ACEOF
  6796. /* end confdefs.h. */
  6797. #include <ac_nonexistent.h>
  6798. _ACEOF
  6799. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6800. case "(($ac_try" in
  6801. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6802. *) ac_try_echo=$ac_try;;
  6803. esac
  6804. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6805. $as_echo "$ac_try_echo") >&5
  6806. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6807. ac_status=$?
  6808. grep -v '^ *+' conftest.er1 >conftest.err
  6809. rm -f conftest.er1
  6810. cat conftest.err >&5
  6811. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6812. (exit $ac_status); } >/dev/null && {
  6813. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6814. test ! -s conftest.err
  6815. }; then
  6816. # Broken: success on invalid input.
  6817. continue
  6818. else
  6819. $as_echo "$as_me: failed program was:" >&5
  6820. sed 's/^/| /' conftest.$ac_ext >&5
  6821. # Passes both tests.
  6822. ac_preproc_ok=:
  6823. break
  6824. fi
  6825. rm -f conftest.err conftest.$ac_ext
  6826. done
  6827. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6828. rm -f conftest.err conftest.$ac_ext
  6829. if $ac_preproc_ok; then
  6830. :
  6831. else
  6832. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  6833. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6834. { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  6835. See \`config.log' for more details." >&5
  6836. $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  6837. See \`config.log' for more details." >&2;}
  6838. { (exit 1); exit 1; }; }; }
  6839. fi
  6840. ac_ext=c
  6841. ac_cpp='$CPP $CPPFLAGS'
  6842. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6843. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6844. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6845. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  6846. $as_echo_n "checking for ANSI C header files... " >&6; }
  6847. if test "${ac_cv_header_stdc+set}" = set; then
  6848. $as_echo_n "(cached) " >&6
  6849. else
  6850. cat >conftest.$ac_ext <<_ACEOF
  6851. /* confdefs.h. */
  6852. _ACEOF
  6853. cat confdefs.h >>conftest.$ac_ext
  6854. cat >>conftest.$ac_ext <<_ACEOF
  6855. /* end confdefs.h. */
  6856. #include <stdlib.h>
  6857. #include <stdarg.h>
  6858. #include <string.h>
  6859. #include <float.h>
  6860. int
  6861. main ()
  6862. {
  6863. ;
  6864. return 0;
  6865. }
  6866. _ACEOF
  6867. rm -f conftest.$ac_objext
  6868. if { (ac_try="$ac_compile"
  6869. case "(($ac_try" in
  6870. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6871. *) ac_try_echo=$ac_try;;
  6872. esac
  6873. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6874. $as_echo "$ac_try_echo") >&5
  6875. (eval "$ac_compile") 2>conftest.er1
  6876. ac_status=$?
  6877. grep -v '^ *+' conftest.er1 >conftest.err
  6878. rm -f conftest.er1
  6879. cat conftest.err >&5
  6880. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6881. (exit $ac_status); } && {
  6882. test -z "$ac_c_werror_flag" ||
  6883. test ! -s conftest.err
  6884. } && test -s conftest.$ac_objext; then
  6885. ac_cv_header_stdc=yes
  6886. else
  6887. $as_echo "$as_me: failed program was:" >&5
  6888. sed 's/^/| /' conftest.$ac_ext >&5
  6889. ac_cv_header_stdc=no
  6890. fi
  6891. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6892. if test $ac_cv_header_stdc = yes; then
  6893. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6894. cat >conftest.$ac_ext <<_ACEOF
  6895. /* confdefs.h. */
  6896. _ACEOF
  6897. cat confdefs.h >>conftest.$ac_ext
  6898. cat >>conftest.$ac_ext <<_ACEOF
  6899. /* end confdefs.h. */
  6900. #include <string.h>
  6901. _ACEOF
  6902. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6903. $EGREP "memchr" >/dev/null 2>&1; then
  6904. :
  6905. else
  6906. ac_cv_header_stdc=no
  6907. fi
  6908. rm -f conftest*
  6909. fi
  6910. if test $ac_cv_header_stdc = yes; then
  6911. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6912. cat >conftest.$ac_ext <<_ACEOF
  6913. /* confdefs.h. */
  6914. _ACEOF
  6915. cat confdefs.h >>conftest.$ac_ext
  6916. cat >>conftest.$ac_ext <<_ACEOF
  6917. /* end confdefs.h. */
  6918. #include <stdlib.h>
  6919. _ACEOF
  6920. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6921. $EGREP "free" >/dev/null 2>&1; then
  6922. :
  6923. else
  6924. ac_cv_header_stdc=no
  6925. fi
  6926. rm -f conftest*
  6927. fi
  6928. if test $ac_cv_header_stdc = yes; then
  6929. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6930. if test "$cross_compiling" = yes; then
  6931. :
  6932. else
  6933. cat >conftest.$ac_ext <<_ACEOF
  6934. /* confdefs.h. */
  6935. _ACEOF
  6936. cat confdefs.h >>conftest.$ac_ext
  6937. cat >>conftest.$ac_ext <<_ACEOF
  6938. /* end confdefs.h. */
  6939. #include <ctype.h>
  6940. #include <stdlib.h>
  6941. #if ((' ' & 0x0FF) == 0x020)
  6942. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6943. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6944. #else
  6945. # define ISLOWER(c) \
  6946. (('a' <= (c) && (c) <= 'i') \
  6947. || ('j' <= (c) && (c) <= 'r') \
  6948. || ('s' <= (c) && (c) <= 'z'))
  6949. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6950. #endif
  6951. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6952. int
  6953. main ()
  6954. {
  6955. int i;
  6956. for (i = 0; i < 256; i++)
  6957. if (XOR (islower (i), ISLOWER (i))
  6958. || toupper (i) != TOUPPER (i))
  6959. return 2;
  6960. return 0;
  6961. }
  6962. _ACEOF
  6963. rm -f conftest$ac_exeext
  6964. if { (ac_try="$ac_link"
  6965. case "(($ac_try" in
  6966. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6967. *) ac_try_echo=$ac_try;;
  6968. esac
  6969. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6970. $as_echo "$ac_try_echo") >&5
  6971. (eval "$ac_link") 2>&5
  6972. ac_status=$?
  6973. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6974. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6975. { (case "(($ac_try" in
  6976. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6977. *) ac_try_echo=$ac_try;;
  6978. esac
  6979. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6980. $as_echo "$ac_try_echo") >&5
  6981. (eval "$ac_try") 2>&5
  6982. ac_status=$?
  6983. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6984. (exit $ac_status); }; }; then
  6985. :
  6986. else
  6987. $as_echo "$as_me: program exited with status $ac_status" >&5
  6988. $as_echo "$as_me: failed program was:" >&5
  6989. sed 's/^/| /' conftest.$ac_ext >&5
  6990. ( exit $ac_status )
  6991. ac_cv_header_stdc=no
  6992. fi
  6993. rm -rf conftest.dSYM
  6994. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6995. fi
  6996. fi
  6997. fi
  6998. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  6999. $as_echo "$ac_cv_header_stdc" >&6; }
  7000. if test $ac_cv_header_stdc = yes; then
  7001. cat >>confdefs.h <<\_ACEOF
  7002. #define STDC_HEADERS 1
  7003. _ACEOF
  7004. fi
  7005. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7006. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7007. inttypes.h stdint.h unistd.h
  7008. do
  7009. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7010. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  7011. $as_echo_n "checking for $ac_header... " >&6; }
  7012. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7013. $as_echo_n "(cached) " >&6
  7014. else
  7015. cat >conftest.$ac_ext <<_ACEOF
  7016. /* confdefs.h. */
  7017. _ACEOF
  7018. cat confdefs.h >>conftest.$ac_ext
  7019. cat >>conftest.$ac_ext <<_ACEOF
  7020. /* end confdefs.h. */
  7021. $ac_includes_default
  7022. #include <$ac_header>
  7023. _ACEOF
  7024. rm -f conftest.$ac_objext
  7025. if { (ac_try="$ac_compile"
  7026. case "(($ac_try" in
  7027. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7028. *) ac_try_echo=$ac_try;;
  7029. esac
  7030. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7031. $as_echo "$ac_try_echo") >&5
  7032. (eval "$ac_compile") 2>conftest.er1
  7033. ac_status=$?
  7034. grep -v '^ *+' conftest.er1 >conftest.err
  7035. rm -f conftest.er1
  7036. cat conftest.err >&5
  7037. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7038. (exit $ac_status); } && {
  7039. test -z "$ac_c_werror_flag" ||
  7040. test ! -s conftest.err
  7041. } && test -s conftest.$ac_objext; then
  7042. eval "$as_ac_Header=yes"
  7043. else
  7044. $as_echo "$as_me: failed program was:" >&5
  7045. sed 's/^/| /' conftest.$ac_ext >&5
  7046. eval "$as_ac_Header=no"
  7047. fi
  7048. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7049. fi
  7050. ac_res=`eval 'as_val=${'$as_ac_Header'}
  7051. $as_echo "$as_val"'`
  7052. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7053. $as_echo "$ac_res" >&6; }
  7054. as_val=`eval 'as_val=${'$as_ac_Header'}
  7055. $as_echo "$as_val"'`
  7056. if test "x$as_val" = x""yes; then
  7057. cat >>confdefs.h <<_ACEOF
  7058. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7059. _ACEOF
  7060. fi
  7061. done
  7062. for ac_header in dlfcn.h
  7063. do
  7064. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7065. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  7066. $as_echo_n "checking for $ac_header... " >&6; }
  7067. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7068. $as_echo_n "(cached) " >&6
  7069. else
  7070. cat >conftest.$ac_ext <<_ACEOF
  7071. /* confdefs.h. */
  7072. _ACEOF
  7073. cat confdefs.h >>conftest.$ac_ext
  7074. cat >>conftest.$ac_ext <<_ACEOF
  7075. /* end confdefs.h. */
  7076. $ac_includes_default
  7077. #include <$ac_header>
  7078. _ACEOF
  7079. rm -f conftest.$ac_objext
  7080. if { (ac_try="$ac_compile"
  7081. case "(($ac_try" in
  7082. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7083. *) ac_try_echo=$ac_try;;
  7084. esac
  7085. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7086. $as_echo "$ac_try_echo") >&5
  7087. (eval "$ac_compile") 2>conftest.er1
  7088. ac_status=$?
  7089. grep -v '^ *+' conftest.er1 >conftest.err
  7090. rm -f conftest.er1
  7091. cat conftest.err >&5
  7092. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7093. (exit $ac_status); } && {
  7094. test -z "$ac_c_werror_flag" ||
  7095. test ! -s conftest.err
  7096. } && test -s conftest.$ac_objext; then
  7097. eval "$as_ac_Header=yes"
  7098. else
  7099. $as_echo "$as_me: failed program was:" >&5
  7100. sed 's/^/| /' conftest.$ac_ext >&5
  7101. eval "$as_ac_Header=no"
  7102. fi
  7103. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7104. fi
  7105. ac_res=`eval 'as_val=${'$as_ac_Header'}
  7106. $as_echo "$as_val"'`
  7107. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7108. $as_echo "$ac_res" >&6; }
  7109. as_val=`eval 'as_val=${'$as_ac_Header'}
  7110. $as_echo "$as_val"'`
  7111. if test "x$as_val" = x""yes; then
  7112. cat >>confdefs.h <<_ACEOF
  7113. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7114. _ACEOF
  7115. fi
  7116. done
  7117. ac_ext=cpp
  7118. ac_cpp='$CXXCPP $CPPFLAGS'
  7119. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7120. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7121. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7122. if test -z "$CXX"; then
  7123. if test -n "$CCC"; then
  7124. CXX=$CCC
  7125. else
  7126. if test -n "$ac_tool_prefix"; then
  7127. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  7128. do
  7129. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7130. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7131. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7132. $as_echo_n "checking for $ac_word... " >&6; }
  7133. if test "${ac_cv_prog_CXX+set}" = set; then
  7134. $as_echo_n "(cached) " >&6
  7135. else
  7136. if test -n "$CXX"; then
  7137. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  7138. else
  7139. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7140. for as_dir in $PATH
  7141. do
  7142. IFS=$as_save_IFS
  7143. test -z "$as_dir" && as_dir=.
  7144. for ac_exec_ext in '' $ac_executable_extensions; do
  7145. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7146. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  7147. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7148. break 2
  7149. fi
  7150. done
  7151. done
  7152. IFS=$as_save_IFS
  7153. fi
  7154. fi
  7155. CXX=$ac_cv_prog_CXX
  7156. if test -n "$CXX"; then
  7157. { $as_echo "$as_me:$LINENO: result: $CXX" >&5
  7158. $as_echo "$CXX" >&6; }
  7159. else
  7160. { $as_echo "$as_me:$LINENO: result: no" >&5
  7161. $as_echo "no" >&6; }
  7162. fi
  7163. test -n "$CXX" && break
  7164. done
  7165. fi
  7166. if test -z "$CXX"; then
  7167. ac_ct_CXX=$CXX
  7168. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  7169. do
  7170. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7171. set dummy $ac_prog; ac_word=$2
  7172. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7173. $as_echo_n "checking for $ac_word... " >&6; }
  7174. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  7175. $as_echo_n "(cached) " >&6
  7176. else
  7177. if test -n "$ac_ct_CXX"; then
  7178. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  7179. else
  7180. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7181. for as_dir in $PATH
  7182. do
  7183. IFS=$as_save_IFS
  7184. test -z "$as_dir" && as_dir=.
  7185. for ac_exec_ext in '' $ac_executable_extensions; do
  7186. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7187. ac_cv_prog_ac_ct_CXX="$ac_prog"
  7188. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7189. break 2
  7190. fi
  7191. done
  7192. done
  7193. IFS=$as_save_IFS
  7194. fi
  7195. fi
  7196. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  7197. if test -n "$ac_ct_CXX"; then
  7198. { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  7199. $as_echo "$ac_ct_CXX" >&6; }
  7200. else
  7201. { $as_echo "$as_me:$LINENO: result: no" >&5
  7202. $as_echo "no" >&6; }
  7203. fi
  7204. test -n "$ac_ct_CXX" && break
  7205. done
  7206. if test "x$ac_ct_CXX" = x; then
  7207. CXX="g++"
  7208. else
  7209. case $cross_compiling:$ac_tool_warned in
  7210. yes:)
  7211. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  7212. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7213. ac_tool_warned=yes ;;
  7214. esac
  7215. CXX=$ac_ct_CXX
  7216. fi
  7217. fi
  7218. fi
  7219. fi
  7220. # Provide some information about the compiler.
  7221. $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  7222. set X $ac_compile
  7223. ac_compiler=$2
  7224. { (ac_try="$ac_compiler --version >&5"
  7225. case "(($ac_try" in
  7226. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7227. *) ac_try_echo=$ac_try;;
  7228. esac
  7229. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7230. $as_echo "$ac_try_echo") >&5
  7231. (eval "$ac_compiler --version >&5") 2>&5
  7232. ac_status=$?
  7233. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7234. (exit $ac_status); }
  7235. { (ac_try="$ac_compiler -v >&5"
  7236. case "(($ac_try" in
  7237. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7238. *) ac_try_echo=$ac_try;;
  7239. esac
  7240. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7241. $as_echo "$ac_try_echo") >&5
  7242. (eval "$ac_compiler -v >&5") 2>&5
  7243. ac_status=$?
  7244. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7245. (exit $ac_status); }
  7246. { (ac_try="$ac_compiler -V >&5"
  7247. case "(($ac_try" in
  7248. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7249. *) ac_try_echo=$ac_try;;
  7250. esac
  7251. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7252. $as_echo "$ac_try_echo") >&5
  7253. (eval "$ac_compiler -V >&5") 2>&5
  7254. ac_status=$?
  7255. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7256. (exit $ac_status); }
  7257. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  7258. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  7259. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  7260. $as_echo_n "(cached) " >&6
  7261. else
  7262. cat >conftest.$ac_ext <<_ACEOF
  7263. /* confdefs.h. */
  7264. _ACEOF
  7265. cat confdefs.h >>conftest.$ac_ext
  7266. cat >>conftest.$ac_ext <<_ACEOF
  7267. /* end confdefs.h. */
  7268. int
  7269. main ()
  7270. {
  7271. #ifndef __GNUC__
  7272. choke me
  7273. #endif
  7274. ;
  7275. return 0;
  7276. }
  7277. _ACEOF
  7278. rm -f conftest.$ac_objext
  7279. if { (ac_try="$ac_compile"
  7280. case "(($ac_try" in
  7281. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7282. *) ac_try_echo=$ac_try;;
  7283. esac
  7284. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7285. $as_echo "$ac_try_echo") >&5
  7286. (eval "$ac_compile") 2>conftest.er1
  7287. ac_status=$?
  7288. grep -v '^ *+' conftest.er1 >conftest.err
  7289. rm -f conftest.er1
  7290. cat conftest.err >&5
  7291. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7292. (exit $ac_status); } && {
  7293. test -z "$ac_cxx_werror_flag" ||
  7294. test ! -s conftest.err
  7295. } && test -s conftest.$ac_objext; then
  7296. ac_compiler_gnu=yes
  7297. else
  7298. $as_echo "$as_me: failed program was:" >&5
  7299. sed 's/^/| /' conftest.$ac_ext >&5
  7300. ac_compiler_gnu=no
  7301. fi
  7302. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7303. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  7304. fi
  7305. { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  7306. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  7307. if test $ac_compiler_gnu = yes; then
  7308. GXX=yes
  7309. else
  7310. GXX=
  7311. fi
  7312. ac_test_CXXFLAGS=${CXXFLAGS+set}
  7313. ac_save_CXXFLAGS=$CXXFLAGS
  7314. { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  7315. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  7316. if test "${ac_cv_prog_cxx_g+set}" = set; then
  7317. $as_echo_n "(cached) " >&6
  7318. else
  7319. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  7320. ac_cxx_werror_flag=yes
  7321. ac_cv_prog_cxx_g=no
  7322. CXXFLAGS="-g"
  7323. cat >conftest.$ac_ext <<_ACEOF
  7324. /* confdefs.h. */
  7325. _ACEOF
  7326. cat confdefs.h >>conftest.$ac_ext
  7327. cat >>conftest.$ac_ext <<_ACEOF
  7328. /* end confdefs.h. */
  7329. int
  7330. main ()
  7331. {
  7332. ;
  7333. return 0;
  7334. }
  7335. _ACEOF
  7336. rm -f conftest.$ac_objext
  7337. if { (ac_try="$ac_compile"
  7338. case "(($ac_try" in
  7339. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7340. *) ac_try_echo=$ac_try;;
  7341. esac
  7342. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7343. $as_echo "$ac_try_echo") >&5
  7344. (eval "$ac_compile") 2>conftest.er1
  7345. ac_status=$?
  7346. grep -v '^ *+' conftest.er1 >conftest.err
  7347. rm -f conftest.er1
  7348. cat conftest.err >&5
  7349. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7350. (exit $ac_status); } && {
  7351. test -z "$ac_cxx_werror_flag" ||
  7352. test ! -s conftest.err
  7353. } && test -s conftest.$ac_objext; then
  7354. ac_cv_prog_cxx_g=yes
  7355. else
  7356. $as_echo "$as_me: failed program was:" >&5
  7357. sed 's/^/| /' conftest.$ac_ext >&5
  7358. CXXFLAGS=""
  7359. cat >conftest.$ac_ext <<_ACEOF
  7360. /* confdefs.h. */
  7361. _ACEOF
  7362. cat confdefs.h >>conftest.$ac_ext
  7363. cat >>conftest.$ac_ext <<_ACEOF
  7364. /* end confdefs.h. */
  7365. int
  7366. main ()
  7367. {
  7368. ;
  7369. return 0;
  7370. }
  7371. _ACEOF
  7372. rm -f conftest.$ac_objext
  7373. if { (ac_try="$ac_compile"
  7374. case "(($ac_try" in
  7375. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7376. *) ac_try_echo=$ac_try;;
  7377. esac
  7378. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7379. $as_echo "$ac_try_echo") >&5
  7380. (eval "$ac_compile") 2>conftest.er1
  7381. ac_status=$?
  7382. grep -v '^ *+' conftest.er1 >conftest.err
  7383. rm -f conftest.er1
  7384. cat conftest.err >&5
  7385. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7386. (exit $ac_status); } && {
  7387. test -z "$ac_cxx_werror_flag" ||
  7388. test ! -s conftest.err
  7389. } && test -s conftest.$ac_objext; then
  7390. :
  7391. else
  7392. $as_echo "$as_me: failed program was:" >&5
  7393. sed 's/^/| /' conftest.$ac_ext >&5
  7394. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  7395. CXXFLAGS="-g"
  7396. cat >conftest.$ac_ext <<_ACEOF
  7397. /* confdefs.h. */
  7398. _ACEOF
  7399. cat confdefs.h >>conftest.$ac_ext
  7400. cat >>conftest.$ac_ext <<_ACEOF
  7401. /* end confdefs.h. */
  7402. int
  7403. main ()
  7404. {
  7405. ;
  7406. return 0;
  7407. }
  7408. _ACEOF
  7409. rm -f conftest.$ac_objext
  7410. if { (ac_try="$ac_compile"
  7411. case "(($ac_try" in
  7412. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7413. *) ac_try_echo=$ac_try;;
  7414. esac
  7415. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7416. $as_echo "$ac_try_echo") >&5
  7417. (eval "$ac_compile") 2>conftest.er1
  7418. ac_status=$?
  7419. grep -v '^ *+' conftest.er1 >conftest.err
  7420. rm -f conftest.er1
  7421. cat conftest.err >&5
  7422. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7423. (exit $ac_status); } && {
  7424. test -z "$ac_cxx_werror_flag" ||
  7425. test ! -s conftest.err
  7426. } && test -s conftest.$ac_objext; then
  7427. ac_cv_prog_cxx_g=yes
  7428. else
  7429. $as_echo "$as_me: failed program was:" >&5
  7430. sed 's/^/| /' conftest.$ac_ext >&5
  7431. fi
  7432. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7433. fi
  7434. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7435. fi
  7436. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7437. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  7438. fi
  7439. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  7440. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  7441. if test "$ac_test_CXXFLAGS" = set; then
  7442. CXXFLAGS=$ac_save_CXXFLAGS
  7443. elif test $ac_cv_prog_cxx_g = yes; then
  7444. if test "$GXX" = yes; then
  7445. CXXFLAGS="-g -O2"
  7446. else
  7447. CXXFLAGS="-g"
  7448. fi
  7449. else
  7450. if test "$GXX" = yes; then
  7451. CXXFLAGS="-O2"
  7452. else
  7453. CXXFLAGS=
  7454. fi
  7455. fi
  7456. ac_ext=c
  7457. ac_cpp='$CPP $CPPFLAGS'
  7458. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7459. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7460. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7461. depcc="$CXX" am_compiler_list=
  7462. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  7463. $as_echo_n "checking dependency style of $depcc... " >&6; }
  7464. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  7465. $as_echo_n "(cached) " >&6
  7466. else
  7467. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  7468. # We make a subdir and do the tests there. Otherwise we can end up
  7469. # making bogus files that we don't know about and never remove. For
  7470. # instance it was reported that on HP-UX the gcc test will end up
  7471. # making a dummy file named `D' -- because `-MD' means `put the output
  7472. # in D'.
  7473. mkdir conftest.dir
  7474. # Copy depcomp to subdir because otherwise we won't find it if we're
  7475. # using a relative directory.
  7476. cp "$am_depcomp" conftest.dir
  7477. cd conftest.dir
  7478. # We will build objects and dependencies in a subdirectory because
  7479. # it helps to detect inapplicable dependency modes. For instance
  7480. # both Tru64's cc and ICC support -MD to output dependencies as a
  7481. # side effect of compilation, but ICC will put the dependencies in
  7482. # the current directory while Tru64 will put them in the object
  7483. # directory.
  7484. mkdir sub
  7485. am_cv_CXX_dependencies_compiler_type=none
  7486. if test "$am_compiler_list" = ""; then
  7487. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  7488. fi
  7489. am__universal=false
  7490. case " $depcc " in #(
  7491. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  7492. esac
  7493. for depmode in $am_compiler_list; do
  7494. # Setup a source with many dependencies, because some compilers
  7495. # like to wrap large dependency lists on column 80 (with \), and
  7496. # we should not choose a depcomp mode which is confused by this.
  7497. #
  7498. # We need to recreate these files for each test, as the compiler may
  7499. # overwrite some of them when testing with obscure command lines.
  7500. # This happens at least with the AIX C compiler.
  7501. : > sub/conftest.c
  7502. for i in 1 2 3 4 5 6; do
  7503. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  7504. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  7505. # Solaris 8's {/usr,}/bin/sh.
  7506. touch sub/conftst$i.h
  7507. done
  7508. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  7509. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  7510. # mode. It turns out that the SunPro C++ compiler does not properly
  7511. # handle `-M -o', and we need to detect this. Also, some Intel
  7512. # versions had trouble with output in subdirs
  7513. am__obj=sub/conftest.${OBJEXT-o}
  7514. am__minus_obj="-o $am__obj"
  7515. case $depmode in
  7516. gcc)
  7517. # This depmode causes a compiler race in universal mode.
  7518. test "$am__universal" = false || continue
  7519. ;;
  7520. nosideeffect)
  7521. # after this tag, mechanisms are not by side-effect, so they'll
  7522. # only be used when explicitly requested
  7523. if test "x$enable_dependency_tracking" = xyes; then
  7524. continue
  7525. else
  7526. break
  7527. fi
  7528. ;;
  7529. msvisualcpp | msvcmsys)
  7530. # This compiler won't grok `-c -o', but also, the minuso test has
  7531. # not run yet. These depmodes are late enough in the game, and
  7532. # so weak that their functioning should not be impacted.
  7533. am__obj=conftest.${OBJEXT-o}
  7534. am__minus_obj=
  7535. ;;
  7536. none) break ;;
  7537. esac
  7538. if depmode=$depmode \
  7539. source=sub/conftest.c object=$am__obj \
  7540. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  7541. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  7542. >/dev/null 2>conftest.err &&
  7543. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  7544. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  7545. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  7546. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  7547. # icc doesn't choke on unknown options, it will just issue warnings
  7548. # or remarks (even with -Werror). So we grep stderr for any message
  7549. # that says an option was ignored or not supported.
  7550. # When given -MP, icc 7.0 and 7.1 complain thusly:
  7551. # icc: Command line warning: ignoring option '-M'; no argument required
  7552. # The diagnosis changed in icc 8.0:
  7553. # icc: Command line remark: option '-MP' not supported
  7554. if (grep 'ignoring option' conftest.err ||
  7555. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  7556. am_cv_CXX_dependencies_compiler_type=$depmode
  7557. break
  7558. fi
  7559. fi
  7560. done
  7561. cd ..
  7562. rm -rf conftest.dir
  7563. else
  7564. am_cv_CXX_dependencies_compiler_type=none
  7565. fi
  7566. fi
  7567. { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  7568. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  7569. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  7570. if
  7571. test "x$enable_dependency_tracking" != xno \
  7572. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  7573. am__fastdepCXX_TRUE=
  7574. am__fastdepCXX_FALSE='#'
  7575. else
  7576. am__fastdepCXX_TRUE='#'
  7577. am__fastdepCXX_FALSE=
  7578. fi
  7579. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  7580. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  7581. (test "X$CXX" != "Xg++"))) ; then
  7582. ac_ext=cpp
  7583. ac_cpp='$CXXCPP $CPPFLAGS'
  7584. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7585. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7586. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7587. { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  7588. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  7589. if test -z "$CXXCPP"; then
  7590. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  7591. $as_echo_n "(cached) " >&6
  7592. else
  7593. # Double quotes because CXXCPP needs to be expanded
  7594. for CXXCPP in "$CXX -E" "/lib/cpp"
  7595. do
  7596. ac_preproc_ok=false
  7597. for ac_cxx_preproc_warn_flag in '' yes
  7598. do
  7599. # Use a header file that comes with gcc, so configuring glibc
  7600. # with a fresh cross-compiler works.
  7601. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7602. # <limits.h> exists even on freestanding compilers.
  7603. # On the NeXT, cc -E runs the code through the compiler's parser,
  7604. # not just through cpp. "Syntax error" is here to catch this case.
  7605. cat >conftest.$ac_ext <<_ACEOF
  7606. /* confdefs.h. */
  7607. _ACEOF
  7608. cat confdefs.h >>conftest.$ac_ext
  7609. cat >>conftest.$ac_ext <<_ACEOF
  7610. /* end confdefs.h. */
  7611. #ifdef __STDC__
  7612. # include <limits.h>
  7613. #else
  7614. # include <assert.h>
  7615. #endif
  7616. Syntax error
  7617. _ACEOF
  7618. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7619. case "(($ac_try" in
  7620. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7621. *) ac_try_echo=$ac_try;;
  7622. esac
  7623. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7624. $as_echo "$ac_try_echo") >&5
  7625. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7626. ac_status=$?
  7627. grep -v '^ *+' conftest.er1 >conftest.err
  7628. rm -f conftest.er1
  7629. cat conftest.err >&5
  7630. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7631. (exit $ac_status); } >/dev/null && {
  7632. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7633. test ! -s conftest.err
  7634. }; then
  7635. :
  7636. else
  7637. $as_echo "$as_me: failed program was:" >&5
  7638. sed 's/^/| /' conftest.$ac_ext >&5
  7639. # Broken: fails on valid input.
  7640. continue
  7641. fi
  7642. rm -f conftest.err conftest.$ac_ext
  7643. # OK, works on sane cases. Now check whether nonexistent headers
  7644. # can be detected and how.
  7645. cat >conftest.$ac_ext <<_ACEOF
  7646. /* confdefs.h. */
  7647. _ACEOF
  7648. cat confdefs.h >>conftest.$ac_ext
  7649. cat >>conftest.$ac_ext <<_ACEOF
  7650. /* end confdefs.h. */
  7651. #include <ac_nonexistent.h>
  7652. _ACEOF
  7653. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7654. case "(($ac_try" in
  7655. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7656. *) ac_try_echo=$ac_try;;
  7657. esac
  7658. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7659. $as_echo "$ac_try_echo") >&5
  7660. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7661. ac_status=$?
  7662. grep -v '^ *+' conftest.er1 >conftest.err
  7663. rm -f conftest.er1
  7664. cat conftest.err >&5
  7665. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7666. (exit $ac_status); } >/dev/null && {
  7667. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7668. test ! -s conftest.err
  7669. }; then
  7670. # Broken: success on invalid input.
  7671. continue
  7672. else
  7673. $as_echo "$as_me: failed program was:" >&5
  7674. sed 's/^/| /' conftest.$ac_ext >&5
  7675. # Passes both tests.
  7676. ac_preproc_ok=:
  7677. break
  7678. fi
  7679. rm -f conftest.err conftest.$ac_ext
  7680. done
  7681. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7682. rm -f conftest.err conftest.$ac_ext
  7683. if $ac_preproc_ok; then
  7684. break
  7685. fi
  7686. done
  7687. ac_cv_prog_CXXCPP=$CXXCPP
  7688. fi
  7689. CXXCPP=$ac_cv_prog_CXXCPP
  7690. else
  7691. ac_cv_prog_CXXCPP=$CXXCPP
  7692. fi
  7693. { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
  7694. $as_echo "$CXXCPP" >&6; }
  7695. ac_preproc_ok=false
  7696. for ac_cxx_preproc_warn_flag in '' yes
  7697. do
  7698. # Use a header file that comes with gcc, so configuring glibc
  7699. # with a fresh cross-compiler works.
  7700. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7701. # <limits.h> exists even on freestanding compilers.
  7702. # On the NeXT, cc -E runs the code through the compiler's parser,
  7703. # not just through cpp. "Syntax error" is here to catch this case.
  7704. cat >conftest.$ac_ext <<_ACEOF
  7705. /* confdefs.h. */
  7706. _ACEOF
  7707. cat confdefs.h >>conftest.$ac_ext
  7708. cat >>conftest.$ac_ext <<_ACEOF
  7709. /* end confdefs.h. */
  7710. #ifdef __STDC__
  7711. # include <limits.h>
  7712. #else
  7713. # include <assert.h>
  7714. #endif
  7715. Syntax error
  7716. _ACEOF
  7717. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7718. case "(($ac_try" in
  7719. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7720. *) ac_try_echo=$ac_try;;
  7721. esac
  7722. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7723. $as_echo "$ac_try_echo") >&5
  7724. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7725. ac_status=$?
  7726. grep -v '^ *+' conftest.er1 >conftest.err
  7727. rm -f conftest.er1
  7728. cat conftest.err >&5
  7729. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7730. (exit $ac_status); } >/dev/null && {
  7731. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7732. test ! -s conftest.err
  7733. }; then
  7734. :
  7735. else
  7736. $as_echo "$as_me: failed program was:" >&5
  7737. sed 's/^/| /' conftest.$ac_ext >&5
  7738. # Broken: fails on valid input.
  7739. continue
  7740. fi
  7741. rm -f conftest.err conftest.$ac_ext
  7742. # OK, works on sane cases. Now check whether nonexistent headers
  7743. # can be detected and how.
  7744. cat >conftest.$ac_ext <<_ACEOF
  7745. /* confdefs.h. */
  7746. _ACEOF
  7747. cat confdefs.h >>conftest.$ac_ext
  7748. cat >>conftest.$ac_ext <<_ACEOF
  7749. /* end confdefs.h. */
  7750. #include <ac_nonexistent.h>
  7751. _ACEOF
  7752. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7753. case "(($ac_try" in
  7754. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7755. *) ac_try_echo=$ac_try;;
  7756. esac
  7757. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7758. $as_echo "$ac_try_echo") >&5
  7759. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7760. ac_status=$?
  7761. grep -v '^ *+' conftest.er1 >conftest.err
  7762. rm -f conftest.er1
  7763. cat conftest.err >&5
  7764. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7765. (exit $ac_status); } >/dev/null && {
  7766. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7767. test ! -s conftest.err
  7768. }; then
  7769. # Broken: success on invalid input.
  7770. continue
  7771. else
  7772. $as_echo "$as_me: failed program was:" >&5
  7773. sed 's/^/| /' conftest.$ac_ext >&5
  7774. # Passes both tests.
  7775. ac_preproc_ok=:
  7776. break
  7777. fi
  7778. rm -f conftest.err conftest.$ac_ext
  7779. done
  7780. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7781. rm -f conftest.err conftest.$ac_ext
  7782. if $ac_preproc_ok; then
  7783. :
  7784. else
  7785. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7786. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7787. _lt_caught_CXX_error=yes; }
  7788. fi
  7789. ac_ext=c
  7790. ac_cpp='$CPP $CPPFLAGS'
  7791. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7792. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7793. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7794. else
  7795. _lt_caught_CXX_error=yes
  7796. fi
  7797. # Set options
  7798. enable_dlopen=no
  7799. enable_win32_dll=no
  7800. # Check whether --enable-shared was given.
  7801. if test "${enable_shared+set}" = set; then
  7802. enableval=$enable_shared; p=${PACKAGE-default}
  7803. case $enableval in
  7804. yes) enable_shared=yes ;;
  7805. no) enable_shared=no ;;
  7806. *)
  7807. enable_shared=no
  7808. # Look at the argument we got. We use all the common list separators.
  7809. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7810. for pkg in $enableval; do
  7811. IFS="$lt_save_ifs"
  7812. if test "X$pkg" = "X$p"; then
  7813. enable_shared=yes
  7814. fi
  7815. done
  7816. IFS="$lt_save_ifs"
  7817. ;;
  7818. esac
  7819. else
  7820. enable_shared=yes
  7821. fi
  7822. # Check whether --with-pic was given.
  7823. if test "${with_pic+set}" = set; then
  7824. withval=$with_pic; pic_mode="$withval"
  7825. else
  7826. pic_mode=default
  7827. fi
  7828. test -z "$pic_mode" && pic_mode=default
  7829. # Check whether --enable-fast-install was given.
  7830. if test "${enable_fast_install+set}" = set; then
  7831. enableval=$enable_fast_install; p=${PACKAGE-default}
  7832. case $enableval in
  7833. yes) enable_fast_install=yes ;;
  7834. no) enable_fast_install=no ;;
  7835. *)
  7836. enable_fast_install=no
  7837. # Look at the argument we got. We use all the common list separators.
  7838. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7839. for pkg in $enableval; do
  7840. IFS="$lt_save_ifs"
  7841. if test "X$pkg" = "X$p"; then
  7842. enable_fast_install=yes
  7843. fi
  7844. done
  7845. IFS="$lt_save_ifs"
  7846. ;;
  7847. esac
  7848. else
  7849. enable_fast_install=yes
  7850. fi
  7851. # This can be used to rebuild libtool when needed
  7852. LIBTOOL_DEPS="$ltmain"
  7853. # Always use our own libtool.
  7854. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7855. test -z "$LN_S" && LN_S="ln -s"
  7856. if test -n "${ZSH_VERSION+set}" ; then
  7857. setopt NO_GLOB_SUBST
  7858. fi
  7859. { $as_echo "$as_me:$LINENO: checking for objdir" >&5
  7860. $as_echo_n "checking for objdir... " >&6; }
  7861. if test "${lt_cv_objdir+set}" = set; then
  7862. $as_echo_n "(cached) " >&6
  7863. else
  7864. rm -f .libs 2>/dev/null
  7865. mkdir .libs 2>/dev/null
  7866. if test -d .libs; then
  7867. lt_cv_objdir=.libs
  7868. else
  7869. # MS-DOS does not allow filenames that begin with a dot.
  7870. lt_cv_objdir=_libs
  7871. fi
  7872. rmdir .libs 2>/dev/null
  7873. fi
  7874. { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  7875. $as_echo "$lt_cv_objdir" >&6; }
  7876. objdir=$lt_cv_objdir
  7877. cat >>confdefs.h <<_ACEOF
  7878. #define LT_OBJDIR "$lt_cv_objdir/"
  7879. _ACEOF
  7880. case $host_os in
  7881. aix3*)
  7882. # AIX sometimes has problems with the GCC collect2 program. For some
  7883. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7884. # vanish in a puff of smoke.
  7885. if test "X${COLLECT_NAMES+set}" != Xset; then
  7886. COLLECT_NAMES=
  7887. export COLLECT_NAMES
  7888. fi
  7889. ;;
  7890. esac
  7891. # Sed substitution that helps us do robust quoting. It backslashifies
  7892. # metacharacters that are still active within double-quoted strings.
  7893. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  7894. # Same as above, but do not quote variable references.
  7895. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  7896. # Sed substitution to delay expansion of an escaped shell variable in a
  7897. # double_quote_subst'ed string.
  7898. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  7899. # Sed substitution to delay expansion of an escaped single quote.
  7900. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  7901. # Sed substitution to avoid accidental globbing in evaled expressions
  7902. no_glob_subst='s/\*/\\\*/g'
  7903. # Global variables:
  7904. ofile=libtool
  7905. can_build_shared=yes
  7906. # All known linkers require a `.a' archive for static linking (except MSVC,
  7907. # which needs '.lib').
  7908. libext=a
  7909. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7910. old_CC="$CC"
  7911. old_CFLAGS="$CFLAGS"
  7912. # Set sane defaults for various variables
  7913. test -z "$CC" && CC=cc
  7914. test -z "$LTCC" && LTCC=$CC
  7915. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7916. test -z "$LD" && LD=ld
  7917. test -z "$ac_objext" && ac_objext=o
  7918. for cc_temp in $compiler""; do
  7919. case $cc_temp in
  7920. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7921. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7922. \-*) ;;
  7923. *) break;;
  7924. esac
  7925. done
  7926. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  7927. # Only perform the check for file, if the check method requires it
  7928. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7929. case $deplibs_check_method in
  7930. file_magic*)
  7931. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7932. { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  7933. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7934. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  7935. $as_echo_n "(cached) " >&6
  7936. else
  7937. case $MAGIC_CMD in
  7938. [\\/*] | ?:[\\/]*)
  7939. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7940. ;;
  7941. *)
  7942. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7943. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7944. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7945. for ac_dir in $ac_dummy; do
  7946. IFS="$lt_save_ifs"
  7947. test -z "$ac_dir" && ac_dir=.
  7948. if test -f $ac_dir/${ac_tool_prefix}file; then
  7949. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7950. if test -n "$file_magic_test_file"; then
  7951. case $deplibs_check_method in
  7952. "file_magic "*)
  7953. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7954. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7955. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7956. $EGREP "$file_magic_regex" > /dev/null; then
  7957. :
  7958. else
  7959. cat <<_LT_EOF 1>&2
  7960. *** Warning: the command libtool uses to detect shared libraries,
  7961. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7962. *** The result is that libtool may fail to recognize shared libraries
  7963. *** as such. This will affect the creation of libtool libraries that
  7964. *** depend on shared libraries, but programs linked with such libtool
  7965. *** libraries will work regardless of this problem. Nevertheless, you
  7966. *** may want to report the problem to your system manager and/or to
  7967. *** [email protected]
  7968. _LT_EOF
  7969. fi ;;
  7970. esac
  7971. fi
  7972. break
  7973. fi
  7974. done
  7975. IFS="$lt_save_ifs"
  7976. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7977. ;;
  7978. esac
  7979. fi
  7980. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7981. if test -n "$MAGIC_CMD"; then
  7982. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  7983. $as_echo "$MAGIC_CMD" >&6; }
  7984. else
  7985. { $as_echo "$as_me:$LINENO: result: no" >&5
  7986. $as_echo "no" >&6; }
  7987. fi
  7988. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7989. if test -n "$ac_tool_prefix"; then
  7990. { $as_echo "$as_me:$LINENO: checking for file" >&5
  7991. $as_echo_n "checking for file... " >&6; }
  7992. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  7993. $as_echo_n "(cached) " >&6
  7994. else
  7995. case $MAGIC_CMD in
  7996. [\\/*] | ?:[\\/]*)
  7997. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7998. ;;
  7999. *)
  8000. lt_save_MAGIC_CMD="$MAGIC_CMD"
  8001. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8002. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8003. for ac_dir in $ac_dummy; do
  8004. IFS="$lt_save_ifs"
  8005. test -z "$ac_dir" && ac_dir=.
  8006. if test -f $ac_dir/file; then
  8007. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  8008. if test -n "$file_magic_test_file"; then
  8009. case $deplibs_check_method in
  8010. "file_magic "*)
  8011. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8012. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8013. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8014. $EGREP "$file_magic_regex" > /dev/null; then
  8015. :
  8016. else
  8017. cat <<_LT_EOF 1>&2
  8018. *** Warning: the command libtool uses to detect shared libraries,
  8019. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8020. *** The result is that libtool may fail to recognize shared libraries
  8021. *** as such. This will affect the creation of libtool libraries that
  8022. *** depend on shared libraries, but programs linked with such libtool
  8023. *** libraries will work regardless of this problem. Nevertheless, you
  8024. *** may want to report the problem to your system manager and/or to
  8025. *** [email protected]
  8026. _LT_EOF
  8027. fi ;;
  8028. esac
  8029. fi
  8030. break
  8031. fi
  8032. done
  8033. IFS="$lt_save_ifs"
  8034. MAGIC_CMD="$lt_save_MAGIC_CMD"
  8035. ;;
  8036. esac
  8037. fi
  8038. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8039. if test -n "$MAGIC_CMD"; then
  8040. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  8041. $as_echo "$MAGIC_CMD" >&6; }
  8042. else
  8043. { $as_echo "$as_me:$LINENO: result: no" >&5
  8044. $as_echo "no" >&6; }
  8045. fi
  8046. else
  8047. MAGIC_CMD=:
  8048. fi
  8049. fi
  8050. fi
  8051. ;;
  8052. esac
  8053. # Use C for the default configuration in the libtool script
  8054. lt_save_CC="$CC"
  8055. ac_ext=c
  8056. ac_cpp='$CPP $CPPFLAGS'
  8057. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8058. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8059. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8060. # Source file extension for C test sources.
  8061. ac_ext=c
  8062. # Object file extension for compiled C test sources.
  8063. objext=o
  8064. objext=$objext
  8065. # Code to be used in simple compile tests
  8066. lt_simple_compile_test_code="int some_variable = 0;"
  8067. # Code to be used in simple link tests
  8068. lt_simple_link_test_code='int main(){return(0);}'
  8069. # If no C compiler was specified, use CC.
  8070. LTCC=${LTCC-"$CC"}
  8071. # If no C compiler flags were specified, use CFLAGS.
  8072. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8073. # Allow CC to be a program name with arguments.
  8074. compiler=$CC
  8075. # Save the default compiler, since it gets overwritten when the other
  8076. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8077. compiler_DEFAULT=$CC
  8078. # save warnings/boilerplate of simple test code
  8079. ac_outfile=conftest.$ac_objext
  8080. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8081. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8082. _lt_compiler_boilerplate=`cat conftest.err`
  8083. $RM conftest*
  8084. ac_outfile=conftest.$ac_objext
  8085. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8086. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8087. _lt_linker_boilerplate=`cat conftest.err`
  8088. $RM -r conftest*
  8089. ## CAVEAT EMPTOR:
  8090. ## There is no encapsulation within the following macros, do not change
  8091. ## the running order or otherwise move them around unless you know exactly
  8092. ## what you are doing...
  8093. if test -n "$compiler"; then
  8094. lt_prog_compiler_no_builtin_flag=
  8095. if test "$GCC" = yes; then
  8096. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  8097. { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8098. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8099. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  8100. $as_echo_n "(cached) " >&6
  8101. else
  8102. lt_cv_prog_compiler_rtti_exceptions=no
  8103. ac_outfile=conftest.$ac_objext
  8104. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8105. lt_compiler_flag="-fno-rtti -fno-exceptions"
  8106. # Insert the option either (1) after the last *FLAGS variable, or
  8107. # (2) before a word containing "conftest.", or (3) at the end.
  8108. # Note that $ac_compile itself does not contain backslashes and begins
  8109. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8110. # The option is referenced via a variable to avoid confusing sed.
  8111. lt_compile=`echo "$ac_compile" | $SED \
  8112. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8113. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8114. -e 's:$: $lt_compiler_flag:'`
  8115. (eval echo "\"\$as_me:9265: $lt_compile\"" >&5)
  8116. (eval "$lt_compile" 2>conftest.err)
  8117. ac_status=$?
  8118. cat conftest.err >&5
  8119. echo "$as_me:9269: \$? = $ac_status" >&5
  8120. if (exit $ac_status) && test -s "$ac_outfile"; then
  8121. # The compiler can only warn and ignore the option if not recognized
  8122. # So say no if there are warnings other than the usual output.
  8123. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  8124. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8125. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8126. lt_cv_prog_compiler_rtti_exceptions=yes
  8127. fi
  8128. fi
  8129. $RM conftest*
  8130. fi
  8131. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8132. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8133. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  8134. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8135. else
  8136. :
  8137. fi
  8138. fi
  8139. lt_prog_compiler_wl=
  8140. lt_prog_compiler_pic=
  8141. lt_prog_compiler_static=
  8142. { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  8143. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8144. if test "$GCC" = yes; then
  8145. lt_prog_compiler_wl='-Wl,'
  8146. lt_prog_compiler_static='-static'
  8147. case $host_os in
  8148. aix*)
  8149. # All AIX code is PIC.
  8150. if test "$host_cpu" = ia64; then
  8151. # AIX 5 now supports IA64 processor
  8152. lt_prog_compiler_static='-Bstatic'
  8153. fi
  8154. ;;
  8155. amigaos*)
  8156. case $host_cpu in
  8157. powerpc)
  8158. # see comment about AmigaOS4 .so support
  8159. lt_prog_compiler_pic='-fPIC'
  8160. ;;
  8161. m68k)
  8162. # FIXME: we need at least 68020 code to build shared libraries, but
  8163. # adding the `-m68020' flag to GCC prevents building anything better,
  8164. # like `-m68040'.
  8165. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8166. ;;
  8167. esac
  8168. ;;
  8169. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8170. # PIC is the default for these OSes.
  8171. ;;
  8172. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8173. # This hack is so that the source file can tell whether it is being
  8174. # built for inclusion in a dll (and should export symbols for example).
  8175. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8176. # (--disable-auto-import) libraries
  8177. lt_prog_compiler_pic='-DDLL_EXPORT'
  8178. ;;
  8179. darwin* | rhapsody*)
  8180. # PIC is the default on this platform
  8181. # Common symbols not allowed in MH_DYLIB files
  8182. lt_prog_compiler_pic='-fno-common'
  8183. ;;
  8184. hpux*)
  8185. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8186. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8187. # sets the default TLS model and affects inlining.
  8188. case $host_cpu in
  8189. hppa*64*)
  8190. # +Z the default
  8191. ;;
  8192. *)
  8193. lt_prog_compiler_pic='-fPIC'
  8194. ;;
  8195. esac
  8196. ;;
  8197. interix[3-9]*)
  8198. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8199. # Instead, we relocate shared libraries at runtime.
  8200. ;;
  8201. msdosdjgpp*)
  8202. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8203. # on systems that don't support them.
  8204. lt_prog_compiler_can_build_shared=no
  8205. enable_shared=no
  8206. ;;
  8207. *nto* | *qnx*)
  8208. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8209. # it will coredump.
  8210. lt_prog_compiler_pic='-fPIC -shared'
  8211. ;;
  8212. sysv4*MP*)
  8213. if test -d /usr/nec; then
  8214. lt_prog_compiler_pic=-Kconform_pic
  8215. fi
  8216. ;;
  8217. *)
  8218. lt_prog_compiler_pic='-fPIC'
  8219. ;;
  8220. esac
  8221. else
  8222. # PORTME Check for flag to pass linker flags through the system compiler.
  8223. case $host_os in
  8224. aix*)
  8225. lt_prog_compiler_wl='-Wl,'
  8226. if test "$host_cpu" = ia64; then
  8227. # AIX 5 now supports IA64 processor
  8228. lt_prog_compiler_static='-Bstatic'
  8229. else
  8230. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8231. fi
  8232. ;;
  8233. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8234. # This hack is so that the source file can tell whether it is being
  8235. # built for inclusion in a dll (and should export symbols for example).
  8236. lt_prog_compiler_pic='-DDLL_EXPORT'
  8237. ;;
  8238. hpux9* | hpux10* | hpux11*)
  8239. lt_prog_compiler_wl='-Wl,'
  8240. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8241. # not for PA HP-UX.
  8242. case $host_cpu in
  8243. hppa*64*|ia64*)
  8244. # +Z the default
  8245. ;;
  8246. *)
  8247. lt_prog_compiler_pic='+Z'
  8248. ;;
  8249. esac
  8250. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8251. lt_prog_compiler_static='${wl}-a ${wl}archive'
  8252. ;;
  8253. irix5* | irix6* | nonstopux*)
  8254. lt_prog_compiler_wl='-Wl,'
  8255. # PIC (with -KPIC) is the default.
  8256. lt_prog_compiler_static='-non_shared'
  8257. ;;
  8258. linux* | k*bsd*-gnu)
  8259. case $cc_basename in
  8260. # old Intel for x86_64 which still supported -KPIC.
  8261. ecc*)
  8262. lt_prog_compiler_wl='-Wl,'
  8263. lt_prog_compiler_pic='-KPIC'
  8264. lt_prog_compiler_static='-static'
  8265. ;;
  8266. # icc used to be incompatible with GCC.
  8267. # ICC 10 doesn't accept -KPIC any more.
  8268. icc* | ifort*)
  8269. lt_prog_compiler_wl='-Wl,'
  8270. lt_prog_compiler_pic='-fPIC'
  8271. lt_prog_compiler_static='-static'
  8272. ;;
  8273. # Lahey Fortran 8.1.
  8274. lf95*)
  8275. lt_prog_compiler_wl='-Wl,'
  8276. lt_prog_compiler_pic='--shared'
  8277. lt_prog_compiler_static='--static'
  8278. ;;
  8279. pgcc* | pgf77* | pgf90* | pgf95*)
  8280. # Portland Group compilers (*not* the Pentium gcc compiler,
  8281. # which looks to be a dead project)
  8282. lt_prog_compiler_wl='-Wl,'
  8283. lt_prog_compiler_pic='-fpic'
  8284. lt_prog_compiler_static='-Bstatic'
  8285. ;;
  8286. ccc*)
  8287. lt_prog_compiler_wl='-Wl,'
  8288. # All Alpha code is PIC.
  8289. lt_prog_compiler_static='-non_shared'
  8290. ;;
  8291. xl*)
  8292. # IBM XL C 8.0/Fortran 10.1 on PPC
  8293. lt_prog_compiler_wl='-Wl,'
  8294. lt_prog_compiler_pic='-qpic'
  8295. lt_prog_compiler_static='-qstaticlink'
  8296. ;;
  8297. *)
  8298. case `$CC -V 2>&1 | sed 5q` in
  8299. *Sun\ C*)
  8300. # Sun C 5.9
  8301. lt_prog_compiler_pic='-KPIC'
  8302. lt_prog_compiler_static='-Bstatic'
  8303. lt_prog_compiler_wl='-Wl,'
  8304. ;;
  8305. *Sun\ F*)
  8306. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8307. lt_prog_compiler_pic='-KPIC'
  8308. lt_prog_compiler_static='-Bstatic'
  8309. lt_prog_compiler_wl=''
  8310. ;;
  8311. esac
  8312. ;;
  8313. esac
  8314. ;;
  8315. newsos6)
  8316. lt_prog_compiler_pic='-KPIC'
  8317. lt_prog_compiler_static='-Bstatic'
  8318. ;;
  8319. *nto* | *qnx*)
  8320. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8321. # it will coredump.
  8322. lt_prog_compiler_pic='-fPIC -shared'
  8323. ;;
  8324. osf3* | osf4* | osf5*)
  8325. lt_prog_compiler_wl='-Wl,'
  8326. # All OSF/1 code is PIC.
  8327. lt_prog_compiler_static='-non_shared'
  8328. ;;
  8329. rdos*)
  8330. lt_prog_compiler_static='-non_shared'
  8331. ;;
  8332. solaris*)
  8333. lt_prog_compiler_pic='-KPIC'
  8334. lt_prog_compiler_static='-Bstatic'
  8335. case $cc_basename in
  8336. f77* | f90* | f95*)
  8337. lt_prog_compiler_wl='-Qoption ld ';;
  8338. *)
  8339. lt_prog_compiler_wl='-Wl,';;
  8340. esac
  8341. ;;
  8342. sunos4*)
  8343. lt_prog_compiler_wl='-Qoption ld '
  8344. lt_prog_compiler_pic='-PIC'
  8345. lt_prog_compiler_static='-Bstatic'
  8346. ;;
  8347. sysv4 | sysv4.2uw2* | sysv4.3*)
  8348. lt_prog_compiler_wl='-Wl,'
  8349. lt_prog_compiler_pic='-KPIC'
  8350. lt_prog_compiler_static='-Bstatic'
  8351. ;;
  8352. sysv4*MP*)
  8353. if test -d /usr/nec ;then
  8354. lt_prog_compiler_pic='-Kconform_pic'
  8355. lt_prog_compiler_static='-Bstatic'
  8356. fi
  8357. ;;
  8358. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8359. lt_prog_compiler_wl='-Wl,'
  8360. lt_prog_compiler_pic='-KPIC'
  8361. lt_prog_compiler_static='-Bstatic'
  8362. ;;
  8363. unicos*)
  8364. lt_prog_compiler_wl='-Wl,'
  8365. lt_prog_compiler_can_build_shared=no
  8366. ;;
  8367. uts4*)
  8368. lt_prog_compiler_pic='-pic'
  8369. lt_prog_compiler_static='-Bstatic'
  8370. ;;
  8371. *)
  8372. lt_prog_compiler_can_build_shared=no
  8373. ;;
  8374. esac
  8375. fi
  8376. case $host_os in
  8377. # For platforms which do not support PIC, -DPIC is meaningless:
  8378. *djgpp*)
  8379. lt_prog_compiler_pic=
  8380. ;;
  8381. *)
  8382. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8383. ;;
  8384. esac
  8385. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  8386. $as_echo "$lt_prog_compiler_pic" >&6; }
  8387. #
  8388. # Check to make sure the PIC flag actually works.
  8389. #
  8390. if test -n "$lt_prog_compiler_pic"; then
  8391. { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8392. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8393. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
  8394. $as_echo_n "(cached) " >&6
  8395. else
  8396. lt_cv_prog_compiler_pic_works=no
  8397. ac_outfile=conftest.$ac_objext
  8398. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8399. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8400. # Insert the option either (1) after the last *FLAGS variable, or
  8401. # (2) before a word containing "conftest.", or (3) at the end.
  8402. # Note that $ac_compile itself does not contain backslashes and begins
  8403. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8404. # The option is referenced via a variable to avoid confusing sed.
  8405. lt_compile=`echo "$ac_compile" | $SED \
  8406. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8407. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8408. -e 's:$: $lt_compiler_flag:'`
  8409. (eval echo "\"\$as_me:9604: $lt_compile\"" >&5)
  8410. (eval "$lt_compile" 2>conftest.err)
  8411. ac_status=$?
  8412. cat conftest.err >&5
  8413. echo "$as_me:9608: \$? = $ac_status" >&5
  8414. if (exit $ac_status) && test -s "$ac_outfile"; then
  8415. # The compiler can only warn and ignore the option if not recognized
  8416. # So say no if there are warnings other than the usual output.
  8417. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  8418. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8419. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8420. lt_cv_prog_compiler_pic_works=yes
  8421. fi
  8422. fi
  8423. $RM conftest*
  8424. fi
  8425. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
  8426. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8427. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8428. case $lt_prog_compiler_pic in
  8429. "" | " "*) ;;
  8430. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8431. esac
  8432. else
  8433. lt_prog_compiler_pic=
  8434. lt_prog_compiler_can_build_shared=no
  8435. fi
  8436. fi
  8437. #
  8438. # Check to make sure the static flag actually works.
  8439. #
  8440. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8441. { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8442. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8443. if test "${lt_cv_prog_compiler_static_works+set}" = set; then
  8444. $as_echo_n "(cached) " >&6
  8445. else
  8446. lt_cv_prog_compiler_static_works=no
  8447. save_LDFLAGS="$LDFLAGS"
  8448. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8449. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8450. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8451. # The linker can only warn and ignore the option if not recognized
  8452. # So say no if there are warnings
  8453. if test -s conftest.err; then
  8454. # Append any errors to the config.log.
  8455. cat conftest.err 1>&5
  8456. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  8457. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8458. if diff conftest.exp conftest.er2 >/dev/null; then
  8459. lt_cv_prog_compiler_static_works=yes
  8460. fi
  8461. else
  8462. lt_cv_prog_compiler_static_works=yes
  8463. fi
  8464. fi
  8465. $RM -r conftest*
  8466. LDFLAGS="$save_LDFLAGS"
  8467. fi
  8468. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
  8469. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8470. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8471. :
  8472. else
  8473. lt_prog_compiler_static=
  8474. fi
  8475. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  8476. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8477. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  8478. $as_echo_n "(cached) " >&6
  8479. else
  8480. lt_cv_prog_compiler_c_o=no
  8481. $RM -r conftest 2>/dev/null
  8482. mkdir conftest
  8483. cd conftest
  8484. mkdir out
  8485. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8486. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8487. # Insert the option either (1) after the last *FLAGS variable, or
  8488. # (2) before a word containing "conftest.", or (3) at the end.
  8489. # Note that $ac_compile itself does not contain backslashes and begins
  8490. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8491. lt_compile=`echo "$ac_compile" | $SED \
  8492. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8493. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8494. -e 's:$: $lt_compiler_flag:'`
  8495. (eval echo "\"\$as_me:9709: $lt_compile\"" >&5)
  8496. (eval "$lt_compile" 2>out/conftest.err)
  8497. ac_status=$?
  8498. cat out/conftest.err >&5
  8499. echo "$as_me:9713: \$? = $ac_status" >&5
  8500. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8501. then
  8502. # The compiler can only warn and ignore the option if not recognized
  8503. # So say no if there are warnings
  8504. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  8505. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8506. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8507. lt_cv_prog_compiler_c_o=yes
  8508. fi
  8509. fi
  8510. chmod u+w . 2>&5
  8511. $RM conftest*
  8512. # SGI C++ compiler will create directory out/ii_files/ for
  8513. # template instantiation
  8514. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8515. $RM out/* && rmdir out
  8516. cd ..
  8517. $RM -r conftest
  8518. $RM conftest*
  8519. fi
  8520. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  8521. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8522. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  8523. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8524. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  8525. $as_echo_n "(cached) " >&6
  8526. else
  8527. lt_cv_prog_compiler_c_o=no
  8528. $RM -r conftest 2>/dev/null
  8529. mkdir conftest
  8530. cd conftest
  8531. mkdir out
  8532. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8533. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8534. # Insert the option either (1) after the last *FLAGS variable, or
  8535. # (2) before a word containing "conftest.", or (3) at the end.
  8536. # Note that $ac_compile itself does not contain backslashes and begins
  8537. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8538. lt_compile=`echo "$ac_compile" | $SED \
  8539. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8540. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8541. -e 's:$: $lt_compiler_flag:'`
  8542. (eval echo "\"\$as_me:9764: $lt_compile\"" >&5)
  8543. (eval "$lt_compile" 2>out/conftest.err)
  8544. ac_status=$?
  8545. cat out/conftest.err >&5
  8546. echo "$as_me:9768: \$? = $ac_status" >&5
  8547. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8548. then
  8549. # The compiler can only warn and ignore the option if not recognized
  8550. # So say no if there are warnings
  8551. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  8552. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8553. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8554. lt_cv_prog_compiler_c_o=yes
  8555. fi
  8556. fi
  8557. chmod u+w . 2>&5
  8558. $RM conftest*
  8559. # SGI C++ compiler will create directory out/ii_files/ for
  8560. # template instantiation
  8561. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8562. $RM out/* && rmdir out
  8563. cd ..
  8564. $RM -r conftest
  8565. $RM conftest*
  8566. fi
  8567. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  8568. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8569. hard_links="nottested"
  8570. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8571. # do not overwrite the value of need_locks provided by the user
  8572. { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  8573. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8574. hard_links=yes
  8575. $RM conftest*
  8576. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8577. touch conftest.a
  8578. ln conftest.a conftest.b 2>&5 || hard_links=no
  8579. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8580. { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  8581. $as_echo "$hard_links" >&6; }
  8582. if test "$hard_links" = no; then
  8583. { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8584. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8585. need_locks=warn
  8586. fi
  8587. else
  8588. need_locks=no
  8589. fi
  8590. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8591. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8592. runpath_var=
  8593. allow_undefined_flag=
  8594. always_export_symbols=no
  8595. archive_cmds=
  8596. archive_expsym_cmds=
  8597. compiler_needs_object=no
  8598. enable_shared_with_static_runtimes=no
  8599. export_dynamic_flag_spec=
  8600. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8601. hardcode_automatic=no
  8602. hardcode_direct=no
  8603. hardcode_direct_absolute=no
  8604. hardcode_libdir_flag_spec=
  8605. hardcode_libdir_flag_spec_ld=
  8606. hardcode_libdir_separator=
  8607. hardcode_minus_L=no
  8608. hardcode_shlibpath_var=unsupported
  8609. inherit_rpath=no
  8610. link_all_deplibs=unknown
  8611. module_cmds=
  8612. module_expsym_cmds=
  8613. old_archive_from_new_cmds=
  8614. old_archive_from_expsyms_cmds=
  8615. thread_safe_flag_spec=
  8616. whole_archive_flag_spec=
  8617. # include_expsyms should be a list of space-separated symbols to be *always*
  8618. # included in the symbol list
  8619. include_expsyms=
  8620. # exclude_expsyms can be an extended regexp of symbols to exclude
  8621. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8622. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8623. # as well as any symbol that contains `d'.
  8624. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8625. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8626. # platforms (ab)use it in PIC code, but their linkers get confused if
  8627. # the symbol is explicitly referenced. Since portable code cannot
  8628. # rely on this symbol name, it's probably fine to never include it in
  8629. # preloaded symbol tables.
  8630. # Exclude shared library initialization/finalization symbols.
  8631. extract_expsyms_cmds=
  8632. case $host_os in
  8633. cygwin* | mingw* | pw32* | cegcc*)
  8634. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8635. # When not using gcc, we currently assume that we are using
  8636. # Microsoft Visual C++.
  8637. if test "$GCC" != yes; then
  8638. with_gnu_ld=no
  8639. fi
  8640. ;;
  8641. interix*)
  8642. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8643. with_gnu_ld=yes
  8644. ;;
  8645. openbsd*)
  8646. with_gnu_ld=no
  8647. ;;
  8648. esac
  8649. ld_shlibs=yes
  8650. if test "$with_gnu_ld" = yes; then
  8651. # If archive_cmds runs LD, not CC, wlarc should be empty
  8652. wlarc='${wl}'
  8653. # Set some defaults for GNU ld with shared library support. These
  8654. # are reset later if shared libraries are not supported. Putting them
  8655. # here allows them to be overridden if necessary.
  8656. runpath_var=LD_RUN_PATH
  8657. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8658. export_dynamic_flag_spec='${wl}--export-dynamic'
  8659. # ancient GNU ld didn't support --whole-archive et. al.
  8660. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8661. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8662. else
  8663. whole_archive_flag_spec=
  8664. fi
  8665. supports_anon_versioning=no
  8666. case `$LD -v 2>&1` in
  8667. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8668. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8669. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8670. *\ 2.11.*) ;; # other 2.11 versions
  8671. *) supports_anon_versioning=yes ;;
  8672. esac
  8673. # See if GNU ld supports shared libraries.
  8674. case $host_os in
  8675. aix[3-9]*)
  8676. # On AIX/PPC, the GNU linker is very broken
  8677. if test "$host_cpu" != ia64; then
  8678. ld_shlibs=no
  8679. cat <<_LT_EOF 1>&2
  8680. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  8681. *** to be unable to reliably create shared libraries on AIX.
  8682. *** Therefore, libtool is disabling shared libraries support. If you
  8683. *** really care for shared libraries, you may want to modify your PATH
  8684. *** so that a non-GNU linker is found, and then restart.
  8685. _LT_EOF
  8686. fi
  8687. ;;
  8688. amigaos*)
  8689. case $host_cpu in
  8690. powerpc)
  8691. # see comment about AmigaOS4 .so support
  8692. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8693. archive_expsym_cmds=''
  8694. ;;
  8695. m68k)
  8696. 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)'
  8697. hardcode_libdir_flag_spec='-L$libdir'
  8698. hardcode_minus_L=yes
  8699. ;;
  8700. esac
  8701. ;;
  8702. beos*)
  8703. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8704. allow_undefined_flag=unsupported
  8705. # Joseph Beckenbach <[email protected]> says some releases of gcc
  8706. # support --undefined. This deserves some investigation. FIXME
  8707. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8708. else
  8709. ld_shlibs=no
  8710. fi
  8711. ;;
  8712. cygwin* | mingw* | pw32* | cegcc*)
  8713. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8714. # as there is no search path for DLLs.
  8715. hardcode_libdir_flag_spec='-L$libdir'
  8716. allow_undefined_flag=unsupported
  8717. always_export_symbols=no
  8718. enable_shared_with_static_runtimes=yes
  8719. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8720. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8721. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8722. # If the export-symbols file already is a .def file (1st line
  8723. # is EXPORTS), use it as is; otherwise, prepend...
  8724. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8725. cp $export_symbols $output_objdir/$soname.def;
  8726. else
  8727. echo EXPORTS > $output_objdir/$soname.def;
  8728. cat $export_symbols >> $output_objdir/$soname.def;
  8729. fi~
  8730. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8731. else
  8732. ld_shlibs=no
  8733. fi
  8734. ;;
  8735. interix[3-9]*)
  8736. hardcode_direct=no
  8737. hardcode_shlibpath_var=no
  8738. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8739. export_dynamic_flag_spec='${wl}-E'
  8740. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8741. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8742. # default) and relocated if they conflict, which is a slow very memory
  8743. # consuming and fragmenting process. To avoid this, we pick a random,
  8744. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8745. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8746. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8747. archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8748. ;;
  8749. gnu* | linux* | tpf* | k*bsd*-gnu)
  8750. tmp_diet=no
  8751. if test "$host_os" = linux-dietlibc; then
  8752. case $cc_basename in
  8753. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8754. esac
  8755. fi
  8756. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8757. && test "$tmp_diet" = no
  8758. then
  8759. tmp_addflag=
  8760. tmp_sharedflag='-shared'
  8761. case $cc_basename,$host_cpu in
  8762. pgcc*) # Portland Group C compiler
  8763. 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'
  8764. tmp_addflag=' $pic_flag'
  8765. ;;
  8766. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  8767. 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'
  8768. tmp_addflag=' $pic_flag -Mnomain' ;;
  8769. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8770. tmp_addflag=' -i_dynamic' ;;
  8771. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8772. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8773. ifc* | ifort*) # Intel Fortran compiler
  8774. tmp_addflag=' -nofor_main' ;;
  8775. lf95*) # Lahey Fortran 8.1
  8776. whole_archive_flag_spec=
  8777. tmp_sharedflag='--shared' ;;
  8778. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8779. tmp_sharedflag='-qmkshrobj'
  8780. tmp_addflag= ;;
  8781. esac
  8782. case `$CC -V 2>&1 | sed 5q` in
  8783. *Sun\ C*) # Sun C 5.9
  8784. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8785. compiler_needs_object=yes
  8786. tmp_sharedflag='-G' ;;
  8787. *Sun\ F*) # Sun Fortran 8.3
  8788. tmp_sharedflag='-G' ;;
  8789. esac
  8790. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8791. if test "x$supports_anon_versioning" = xyes; then
  8792. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8793. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8794. echo "local: *; };" >> $output_objdir/$libname.ver~
  8795. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8796. fi
  8797. case $cc_basename in
  8798. xlf*)
  8799. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8800. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8801. hardcode_libdir_flag_spec=
  8802. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8803. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8804. if test "x$supports_anon_versioning" = xyes; then
  8805. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8806. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8807. echo "local: *; };" >> $output_objdir/$libname.ver~
  8808. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8809. fi
  8810. ;;
  8811. esac
  8812. else
  8813. ld_shlibs=no
  8814. fi
  8815. ;;
  8816. netbsd*)
  8817. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8818. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8819. wlarc=
  8820. else
  8821. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8822. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8823. fi
  8824. ;;
  8825. solaris*)
  8826. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8827. ld_shlibs=no
  8828. cat <<_LT_EOF 1>&2
  8829. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8830. *** create shared libraries on Solaris systems. Therefore, libtool
  8831. *** is disabling shared libraries support. We urge you to upgrade GNU
  8832. *** binutils to release 2.9.1 or newer. Another option is to modify
  8833. *** your PATH or compiler configuration so that the native linker is
  8834. *** used, and then restart.
  8835. _LT_EOF
  8836. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8837. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8838. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8839. else
  8840. ld_shlibs=no
  8841. fi
  8842. ;;
  8843. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8844. case `$LD -v 2>&1` in
  8845. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8846. ld_shlibs=no
  8847. cat <<_LT_EOF 1>&2
  8848. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8849. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8850. *** is disabling shared libraries support. We urge you to upgrade GNU
  8851. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8852. *** your PATH or compiler configuration so that the native linker is
  8853. *** used, and then restart.
  8854. _LT_EOF
  8855. ;;
  8856. *)
  8857. # For security reasons, it is highly recommended that you always
  8858. # use absolute paths for naming shared libraries, and exclude the
  8859. # DT_RUNPATH tag from executables and libraries. But doing so
  8860. # requires that you compile everything twice, which is a pain.
  8861. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8862. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8863. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8864. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8865. else
  8866. ld_shlibs=no
  8867. fi
  8868. ;;
  8869. esac
  8870. ;;
  8871. sunos4*)
  8872. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8873. wlarc=
  8874. hardcode_direct=yes
  8875. hardcode_shlibpath_var=no
  8876. ;;
  8877. *)
  8878. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8879. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8880. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8881. else
  8882. ld_shlibs=no
  8883. fi
  8884. ;;
  8885. esac
  8886. if test "$ld_shlibs" = no; then
  8887. runpath_var=
  8888. hardcode_libdir_flag_spec=
  8889. export_dynamic_flag_spec=
  8890. whole_archive_flag_spec=
  8891. fi
  8892. else
  8893. # PORTME fill in a description of your system's linker (not GNU ld)
  8894. case $host_os in
  8895. aix3*)
  8896. allow_undefined_flag=unsupported
  8897. always_export_symbols=yes
  8898. 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'
  8899. # Note: this linker hardcodes the directories in LIBPATH if there
  8900. # are no directories specified by -L.
  8901. hardcode_minus_L=yes
  8902. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8903. # Neither direct hardcoding nor static linking is supported with a
  8904. # broken collect2.
  8905. hardcode_direct=unsupported
  8906. fi
  8907. ;;
  8908. aix[4-9]*)
  8909. if test "$host_cpu" = ia64; then
  8910. # On IA64, the linker does run time linking by default, so we don't
  8911. # have to do anything special.
  8912. aix_use_runtimelinking=no
  8913. exp_sym_flag='-Bexport'
  8914. no_entry_flag=""
  8915. else
  8916. # If we're using GNU nm, then we don't want the "-C" option.
  8917. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8918. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8919. 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'
  8920. else
  8921. 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'
  8922. fi
  8923. aix_use_runtimelinking=no
  8924. # Test if we are trying to use run time linking or normal
  8925. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8926. # need to do runtime linking.
  8927. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8928. for ld_flag in $LDFLAGS; do
  8929. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8930. aix_use_runtimelinking=yes
  8931. break
  8932. fi
  8933. done
  8934. ;;
  8935. esac
  8936. exp_sym_flag='-bexport'
  8937. no_entry_flag='-bnoentry'
  8938. fi
  8939. # When large executables or shared objects are built, AIX ld can
  8940. # have problems creating the table of contents. If linking a library
  8941. # or program results in "error TOC overflow" add -mminimal-toc to
  8942. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8943. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8944. archive_cmds=''
  8945. hardcode_direct=yes
  8946. hardcode_direct_absolute=yes
  8947. hardcode_libdir_separator=':'
  8948. link_all_deplibs=yes
  8949. file_list_spec='${wl}-f,'
  8950. if test "$GCC" = yes; then
  8951. case $host_os in aix4.[012]|aix4.[012].*)
  8952. # We only want to do this on AIX 4.2 and lower, the check
  8953. # below for broken collect2 doesn't work under 4.3+
  8954. collect2name=`${CC} -print-prog-name=collect2`
  8955. if test -f "$collect2name" &&
  8956. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8957. then
  8958. # We have reworked collect2
  8959. :
  8960. else
  8961. # We have old collect2
  8962. hardcode_direct=unsupported
  8963. # It fails to find uninstalled libraries when the uninstalled
  8964. # path is not listed in the libpath. Setting hardcode_minus_L
  8965. # to unsupported forces relinking
  8966. hardcode_minus_L=yes
  8967. hardcode_libdir_flag_spec='-L$libdir'
  8968. hardcode_libdir_separator=
  8969. fi
  8970. ;;
  8971. esac
  8972. shared_flag='-shared'
  8973. if test "$aix_use_runtimelinking" = yes; then
  8974. shared_flag="$shared_flag "'${wl}-G'
  8975. fi
  8976. else
  8977. # not using gcc
  8978. if test "$host_cpu" = ia64; then
  8979. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8980. # chokes on -Wl,-G. The following line is correct:
  8981. shared_flag='-G'
  8982. else
  8983. if test "$aix_use_runtimelinking" = yes; then
  8984. shared_flag='${wl}-G'
  8985. else
  8986. shared_flag='${wl}-bM:SRE'
  8987. fi
  8988. fi
  8989. fi
  8990. export_dynamic_flag_spec='${wl}-bexpall'
  8991. # It seems that -bexpall does not export symbols beginning with
  8992. # underscore (_), so it is better to generate a list of symbols to export.
  8993. always_export_symbols=yes
  8994. if test "$aix_use_runtimelinking" = yes; then
  8995. # Warning - without using the other runtime loading flags (-brtl),
  8996. # -berok will link without error, but may produce a broken library.
  8997. allow_undefined_flag='-berok'
  8998. # Determine the default libpath from the value encoded in an
  8999. # empty executable.
  9000. cat >conftest.$ac_ext <<_ACEOF
  9001. /* confdefs.h. */
  9002. _ACEOF
  9003. cat confdefs.h >>conftest.$ac_ext
  9004. cat >>conftest.$ac_ext <<_ACEOF
  9005. /* end confdefs.h. */
  9006. int
  9007. main ()
  9008. {
  9009. ;
  9010. return 0;
  9011. }
  9012. _ACEOF
  9013. rm -f conftest.$ac_objext conftest$ac_exeext
  9014. if { (ac_try="$ac_link"
  9015. case "(($ac_try" in
  9016. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9017. *) ac_try_echo=$ac_try;;
  9018. esac
  9019. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9020. $as_echo "$ac_try_echo") >&5
  9021. (eval "$ac_link") 2>conftest.er1
  9022. ac_status=$?
  9023. grep -v '^ *+' conftest.er1 >conftest.err
  9024. rm -f conftest.er1
  9025. cat conftest.err >&5
  9026. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9027. (exit $ac_status); } && {
  9028. test -z "$ac_c_werror_flag" ||
  9029. test ! -s conftest.err
  9030. } && test -s conftest$ac_exeext && {
  9031. test "$cross_compiling" = yes ||
  9032. $as_test_x conftest$ac_exeext
  9033. }; then
  9034. lt_aix_libpath_sed='
  9035. /Import File Strings/,/^$/ {
  9036. /^0/ {
  9037. s/^0 *\(.*\)$/\1/
  9038. p
  9039. }
  9040. }'
  9041. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9042. # Check for a 64-bit object if we didn't find anything.
  9043. if test -z "$aix_libpath"; then
  9044. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9045. fi
  9046. else
  9047. $as_echo "$as_me: failed program was:" >&5
  9048. sed 's/^/| /' conftest.$ac_ext >&5
  9049. fi
  9050. rm -rf conftest.dSYM
  9051. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9052. conftest$ac_exeext conftest.$ac_ext
  9053. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9054. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9055. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  9056. else
  9057. if test "$host_cpu" = ia64; then
  9058. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  9059. allow_undefined_flag="-z nodefs"
  9060. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  9061. else
  9062. # Determine the default libpath from the value encoded in an
  9063. # empty executable.
  9064. cat >conftest.$ac_ext <<_ACEOF
  9065. /* confdefs.h. */
  9066. _ACEOF
  9067. cat confdefs.h >>conftest.$ac_ext
  9068. cat >>conftest.$ac_ext <<_ACEOF
  9069. /* end confdefs.h. */
  9070. int
  9071. main ()
  9072. {
  9073. ;
  9074. return 0;
  9075. }
  9076. _ACEOF
  9077. rm -f conftest.$ac_objext conftest$ac_exeext
  9078. if { (ac_try="$ac_link"
  9079. case "(($ac_try" in
  9080. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9081. *) ac_try_echo=$ac_try;;
  9082. esac
  9083. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9084. $as_echo "$ac_try_echo") >&5
  9085. (eval "$ac_link") 2>conftest.er1
  9086. ac_status=$?
  9087. grep -v '^ *+' conftest.er1 >conftest.err
  9088. rm -f conftest.er1
  9089. cat conftest.err >&5
  9090. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9091. (exit $ac_status); } && {
  9092. test -z "$ac_c_werror_flag" ||
  9093. test ! -s conftest.err
  9094. } && test -s conftest$ac_exeext && {
  9095. test "$cross_compiling" = yes ||
  9096. $as_test_x conftest$ac_exeext
  9097. }; then
  9098. lt_aix_libpath_sed='
  9099. /Import File Strings/,/^$/ {
  9100. /^0/ {
  9101. s/^0 *\(.*\)$/\1/
  9102. p
  9103. }
  9104. }'
  9105. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9106. # Check for a 64-bit object if we didn't find anything.
  9107. if test -z "$aix_libpath"; then
  9108. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9109. fi
  9110. else
  9111. $as_echo "$as_me: failed program was:" >&5
  9112. sed 's/^/| /' conftest.$ac_ext >&5
  9113. fi
  9114. rm -rf conftest.dSYM
  9115. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9116. conftest$ac_exeext conftest.$ac_ext
  9117. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9118. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9119. # Warning - without using the other run time loading flags,
  9120. # -berok will link without error, but may produce a broken library.
  9121. no_undefined_flag=' ${wl}-bernotok'
  9122. allow_undefined_flag=' ${wl}-berok'
  9123. # Exported symbols can be pulled into shared objects from archives
  9124. whole_archive_flag_spec='$convenience'
  9125. archive_cmds_need_lc=yes
  9126. # This is similar to how AIX traditionally builds its shared libraries.
  9127. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  9128. fi
  9129. fi
  9130. ;;
  9131. amigaos*)
  9132. case $host_cpu in
  9133. powerpc)
  9134. # see comment about AmigaOS4 .so support
  9135. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9136. archive_expsym_cmds=''
  9137. ;;
  9138. m68k)
  9139. 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)'
  9140. hardcode_libdir_flag_spec='-L$libdir'
  9141. hardcode_minus_L=yes
  9142. ;;
  9143. esac
  9144. ;;
  9145. bsdi[45]*)
  9146. export_dynamic_flag_spec=-rdynamic
  9147. ;;
  9148. cygwin* | mingw* | pw32* | cegcc*)
  9149. # When not using gcc, we currently assume that we are using
  9150. # Microsoft Visual C++.
  9151. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9152. # no search path for DLLs.
  9153. hardcode_libdir_flag_spec=' '
  9154. allow_undefined_flag=unsupported
  9155. # Tell ltmain to make .lib files, not .a files.
  9156. libext=lib
  9157. # Tell ltmain to make .dll files, not .so files.
  9158. shrext_cmds=".dll"
  9159. # FIXME: Setting linknames here is a bad hack.
  9160. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  9161. # The linker will automatically build a .lib file if we build a DLL.
  9162. old_archive_from_new_cmds='true'
  9163. # FIXME: Should let the user specify the lib program.
  9164. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9165. fix_srcfile_path='`cygpath -w "$srcfile"`'
  9166. enable_shared_with_static_runtimes=yes
  9167. ;;
  9168. darwin* | rhapsody*)
  9169. archive_cmds_need_lc=no
  9170. hardcode_direct=no
  9171. hardcode_automatic=yes
  9172. hardcode_shlibpath_var=unsupported
  9173. whole_archive_flag_spec=''
  9174. link_all_deplibs=yes
  9175. allow_undefined_flag="$_lt_dar_allow_undefined"
  9176. case $cc_basename in
  9177. ifort*) _lt_dar_can_shared=yes ;;
  9178. *) _lt_dar_can_shared=$GCC ;;
  9179. esac
  9180. if test "$_lt_dar_can_shared" = "yes"; then
  9181. output_verbose_link_cmd=echo
  9182. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  9183. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  9184. archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  9185. module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  9186. else
  9187. ld_shlibs=no
  9188. fi
  9189. ;;
  9190. dgux*)
  9191. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9192. hardcode_libdir_flag_spec='-L$libdir'
  9193. hardcode_shlibpath_var=no
  9194. ;;
  9195. freebsd1*)
  9196. ld_shlibs=no
  9197. ;;
  9198. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9199. # support. Future versions do this automatically, but an explicit c++rt0.o
  9200. # does not break anything, and helps significantly (at the cost of a little
  9201. # extra space).
  9202. freebsd2.2*)
  9203. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9204. hardcode_libdir_flag_spec='-R$libdir'
  9205. hardcode_direct=yes
  9206. hardcode_shlibpath_var=no
  9207. ;;
  9208. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9209. freebsd2*)
  9210. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9211. hardcode_direct=yes
  9212. hardcode_minus_L=yes
  9213. hardcode_shlibpath_var=no
  9214. ;;
  9215. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9216. freebsd* | dragonfly*)
  9217. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  9218. hardcode_libdir_flag_spec='-R$libdir'
  9219. hardcode_direct=yes
  9220. hardcode_shlibpath_var=no
  9221. ;;
  9222. hpux9*)
  9223. if test "$GCC" = yes; then
  9224. 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'
  9225. else
  9226. 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'
  9227. fi
  9228. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9229. hardcode_libdir_separator=:
  9230. hardcode_direct=yes
  9231. # hardcode_minus_L: Not really in the search PATH,
  9232. # but as the default location of the library.
  9233. hardcode_minus_L=yes
  9234. export_dynamic_flag_spec='${wl}-E'
  9235. ;;
  9236. hpux10*)
  9237. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  9238. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9239. else
  9240. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9241. fi
  9242. if test "$with_gnu_ld" = no; then
  9243. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9244. hardcode_libdir_flag_spec_ld='+b $libdir'
  9245. hardcode_libdir_separator=:
  9246. hardcode_direct=yes
  9247. hardcode_direct_absolute=yes
  9248. export_dynamic_flag_spec='${wl}-E'
  9249. # hardcode_minus_L: Not really in the search PATH,
  9250. # but as the default location of the library.
  9251. hardcode_minus_L=yes
  9252. fi
  9253. ;;
  9254. hpux11*)
  9255. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  9256. case $host_cpu in
  9257. hppa*64*)
  9258. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9259. ;;
  9260. ia64*)
  9261. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9262. ;;
  9263. *)
  9264. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9265. ;;
  9266. esac
  9267. else
  9268. case $host_cpu in
  9269. hppa*64*)
  9270. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9271. ;;
  9272. ia64*)
  9273. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9274. ;;
  9275. *)
  9276. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9277. ;;
  9278. esac
  9279. fi
  9280. if test "$with_gnu_ld" = no; then
  9281. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9282. hardcode_libdir_separator=:
  9283. case $host_cpu in
  9284. hppa*64*|ia64*)
  9285. hardcode_direct=no
  9286. hardcode_shlibpath_var=no
  9287. ;;
  9288. *)
  9289. hardcode_direct=yes
  9290. hardcode_direct_absolute=yes
  9291. export_dynamic_flag_spec='${wl}-E'
  9292. # hardcode_minus_L: Not really in the search PATH,
  9293. # but as the default location of the library.
  9294. hardcode_minus_L=yes
  9295. ;;
  9296. esac
  9297. fi
  9298. ;;
  9299. irix5* | irix6* | nonstopux*)
  9300. if test "$GCC" = yes; then
  9301. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9302. # Try to use the -exported_symbol ld option, if it does not
  9303. # work, assume that -exports_file does not work either and
  9304. # implicitly export all symbols.
  9305. save_LDFLAGS="$LDFLAGS"
  9306. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9307. cat >conftest.$ac_ext <<_ACEOF
  9308. int foo(void) {}
  9309. _ACEOF
  9310. rm -f conftest.$ac_objext conftest$ac_exeext
  9311. if { (ac_try="$ac_link"
  9312. case "(($ac_try" in
  9313. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9314. *) ac_try_echo=$ac_try;;
  9315. esac
  9316. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9317. $as_echo "$ac_try_echo") >&5
  9318. (eval "$ac_link") 2>conftest.er1
  9319. ac_status=$?
  9320. grep -v '^ *+' conftest.er1 >conftest.err
  9321. rm -f conftest.er1
  9322. cat conftest.err >&5
  9323. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9324. (exit $ac_status); } && {
  9325. test -z "$ac_c_werror_flag" ||
  9326. test ! -s conftest.err
  9327. } && test -s conftest$ac_exeext && {
  9328. test "$cross_compiling" = yes ||
  9329. $as_test_x conftest$ac_exeext
  9330. }; then
  9331. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  9332. else
  9333. $as_echo "$as_me: failed program was:" >&5
  9334. sed 's/^/| /' conftest.$ac_ext >&5
  9335. fi
  9336. rm -rf conftest.dSYM
  9337. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9338. conftest$ac_exeext conftest.$ac_ext
  9339. LDFLAGS="$save_LDFLAGS"
  9340. else
  9341. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  9342. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  9343. fi
  9344. archive_cmds_need_lc='no'
  9345. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9346. hardcode_libdir_separator=:
  9347. inherit_rpath=yes
  9348. link_all_deplibs=yes
  9349. ;;
  9350. netbsd*)
  9351. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9352. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9353. else
  9354. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9355. fi
  9356. hardcode_libdir_flag_spec='-R$libdir'
  9357. hardcode_direct=yes
  9358. hardcode_shlibpath_var=no
  9359. ;;
  9360. newsos6)
  9361. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9362. hardcode_direct=yes
  9363. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9364. hardcode_libdir_separator=:
  9365. hardcode_shlibpath_var=no
  9366. ;;
  9367. *nto* | *qnx*)
  9368. ;;
  9369. openbsd*)
  9370. if test -f /usr/libexec/ld.so; then
  9371. hardcode_direct=yes
  9372. hardcode_shlibpath_var=no
  9373. hardcode_direct_absolute=yes
  9374. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9375. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9376. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9377. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9378. export_dynamic_flag_spec='${wl}-E'
  9379. else
  9380. case $host_os in
  9381. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9382. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9383. hardcode_libdir_flag_spec='-R$libdir'
  9384. ;;
  9385. *)
  9386. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9387. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9388. ;;
  9389. esac
  9390. fi
  9391. else
  9392. ld_shlibs=no
  9393. fi
  9394. ;;
  9395. os2*)
  9396. hardcode_libdir_flag_spec='-L$libdir'
  9397. hardcode_minus_L=yes
  9398. allow_undefined_flag=unsupported
  9399. 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'
  9400. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9401. ;;
  9402. osf3*)
  9403. if test "$GCC" = yes; then
  9404. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9405. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9406. else
  9407. allow_undefined_flag=' -expect_unresolved \*'
  9408. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  9409. fi
  9410. archive_cmds_need_lc='no'
  9411. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9412. hardcode_libdir_separator=:
  9413. ;;
  9414. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9415. if test "$GCC" = yes; then
  9416. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9417. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9418. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9419. else
  9420. allow_undefined_flag=' -expect_unresolved \*'
  9421. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  9422. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  9423. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  9424. # Both c and cxx compiler support -rpath directly
  9425. hardcode_libdir_flag_spec='-rpath $libdir'
  9426. fi
  9427. archive_cmds_need_lc='no'
  9428. hardcode_libdir_separator=:
  9429. ;;
  9430. solaris*)
  9431. no_undefined_flag=' -z defs'
  9432. if test "$GCC" = yes; then
  9433. wlarc='${wl}'
  9434. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9435. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9436. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9437. else
  9438. case `$CC -V 2>&1` in
  9439. *"Compilers 5.0"*)
  9440. wlarc=''
  9441. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9442. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9443. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9444. ;;
  9445. *)
  9446. wlarc='${wl}'
  9447. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9448. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9449. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9450. ;;
  9451. esac
  9452. fi
  9453. hardcode_libdir_flag_spec='-R$libdir'
  9454. hardcode_shlibpath_var=no
  9455. case $host_os in
  9456. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9457. *)
  9458. # The compiler driver will combine and reorder linker options,
  9459. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9460. # but is careful enough not to reorder.
  9461. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9462. if test "$GCC" = yes; then
  9463. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9464. else
  9465. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9466. fi
  9467. ;;
  9468. esac
  9469. link_all_deplibs=yes
  9470. ;;
  9471. sunos4*)
  9472. if test "x$host_vendor" = xsequent; then
  9473. # Use $CC to link under sequent, because it throws in some extra .o
  9474. # files that make .init and .fini sections work.
  9475. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9476. else
  9477. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9478. fi
  9479. hardcode_libdir_flag_spec='-L$libdir'
  9480. hardcode_direct=yes
  9481. hardcode_minus_L=yes
  9482. hardcode_shlibpath_var=no
  9483. ;;
  9484. sysv4)
  9485. case $host_vendor in
  9486. sni)
  9487. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9488. hardcode_direct=yes # is this really true???
  9489. ;;
  9490. siemens)
  9491. ## LD is ld it makes a PLAMLIB
  9492. ## CC just makes a GrossModule.
  9493. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9494. reload_cmds='$CC -r -o $output$reload_objs'
  9495. hardcode_direct=no
  9496. ;;
  9497. motorola)
  9498. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9499. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9500. ;;
  9501. esac
  9502. runpath_var='LD_RUN_PATH'
  9503. hardcode_shlibpath_var=no
  9504. ;;
  9505. sysv4.3*)
  9506. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9507. hardcode_shlibpath_var=no
  9508. export_dynamic_flag_spec='-Bexport'
  9509. ;;
  9510. sysv4*MP*)
  9511. if test -d /usr/nec; then
  9512. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9513. hardcode_shlibpath_var=no
  9514. runpath_var=LD_RUN_PATH
  9515. hardcode_runpath_var=yes
  9516. ld_shlibs=yes
  9517. fi
  9518. ;;
  9519. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9520. no_undefined_flag='${wl}-z,text'
  9521. archive_cmds_need_lc=no
  9522. hardcode_shlibpath_var=no
  9523. runpath_var='LD_RUN_PATH'
  9524. if test "$GCC" = yes; then
  9525. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9526. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9527. else
  9528. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9529. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9530. fi
  9531. ;;
  9532. sysv5* | sco3.2v5* | sco5v6*)
  9533. # Note: We can NOT use -z defs as we might desire, because we do not
  9534. # link with -lc, and that would cause any symbols used from libc to
  9535. # always be unresolved, which means just about no library would
  9536. # ever link correctly. If we're not using GNU ld we use -z text
  9537. # though, which does catch some bad symbols but isn't as heavy-handed
  9538. # as -z defs.
  9539. no_undefined_flag='${wl}-z,text'
  9540. allow_undefined_flag='${wl}-z,nodefs'
  9541. archive_cmds_need_lc=no
  9542. hardcode_shlibpath_var=no
  9543. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9544. hardcode_libdir_separator=':'
  9545. link_all_deplibs=yes
  9546. export_dynamic_flag_spec='${wl}-Bexport'
  9547. runpath_var='LD_RUN_PATH'
  9548. if test "$GCC" = yes; then
  9549. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9550. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9551. else
  9552. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9553. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9554. fi
  9555. ;;
  9556. uts4*)
  9557. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9558. hardcode_libdir_flag_spec='-L$libdir'
  9559. hardcode_shlibpath_var=no
  9560. ;;
  9561. *)
  9562. ld_shlibs=no
  9563. ;;
  9564. esac
  9565. if test x$host_vendor = xsni; then
  9566. case $host in
  9567. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9568. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9569. ;;
  9570. esac
  9571. fi
  9572. fi
  9573. { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  9574. $as_echo "$ld_shlibs" >&6; }
  9575. test "$ld_shlibs" = no && can_build_shared=no
  9576. with_gnu_ld=$with_gnu_ld
  9577. #
  9578. # Do we need to explicitly link libc?
  9579. #
  9580. case "x$archive_cmds_need_lc" in
  9581. x|xyes)
  9582. # Assume -lc should be added
  9583. archive_cmds_need_lc=yes
  9584. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9585. case $archive_cmds in
  9586. *'~'*)
  9587. # FIXME: we may have to deal with multi-command sequences.
  9588. ;;
  9589. '$CC '*)
  9590. # Test whether the compiler implicitly links with -lc since on some
  9591. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9592. # to ld, don't add -lc before -lgcc.
  9593. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  9594. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9595. $RM conftest*
  9596. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9597. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9598. (eval $ac_compile) 2>&5
  9599. ac_status=$?
  9600. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9601. (exit $ac_status); } 2>conftest.err; then
  9602. soname=conftest
  9603. lib=conftest
  9604. libobjs=conftest.$ac_objext
  9605. deplibs=
  9606. wl=$lt_prog_compiler_wl
  9607. pic_flag=$lt_prog_compiler_pic
  9608. compiler_flags=-v
  9609. linker_flags=-v
  9610. verstring=
  9611. output_objdir=.
  9612. libname=conftest
  9613. lt_save_allow_undefined_flag=$allow_undefined_flag
  9614. allow_undefined_flag=
  9615. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
  9616. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9617. ac_status=$?
  9618. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9619. (exit $ac_status); }
  9620. then
  9621. archive_cmds_need_lc=no
  9622. else
  9623. archive_cmds_need_lc=yes
  9624. fi
  9625. allow_undefined_flag=$lt_save_allow_undefined_flag
  9626. else
  9627. cat conftest.err 1>&5
  9628. fi
  9629. $RM conftest*
  9630. { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  9631. $as_echo "$archive_cmds_need_lc" >&6; }
  9632. ;;
  9633. esac
  9634. fi
  9635. ;;
  9636. esac
  9637. { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  9638. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9639. if test "$GCC" = yes; then
  9640. case $host_os in
  9641. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9642. *) lt_awk_arg="/^libraries:/" ;;
  9643. esac
  9644. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9645. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  9646. # if the path contains ";" then we assume it to be the separator
  9647. # otherwise default to the standard path separator (i.e. ":") - it is
  9648. # assumed that no part of a normal pathname contains ";" but that should
  9649. # okay in the real world where ";" in dirpaths is itself problematic.
  9650. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  9651. else
  9652. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9653. fi
  9654. # Ok, now we have the path, separated by spaces, we can step through it
  9655. # and add multilib dir if necessary.
  9656. lt_tmp_lt_search_path_spec=
  9657. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9658. for lt_sys_path in $lt_search_path_spec; do
  9659. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9660. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9661. else
  9662. test -d "$lt_sys_path" && \
  9663. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9664. fi
  9665. done
  9666. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  9667. BEGIN {RS=" "; FS="/|\n";} {
  9668. lt_foo="";
  9669. lt_count=0;
  9670. for (lt_i = NF; lt_i > 0; lt_i--) {
  9671. if ($lt_i != "" && $lt_i != ".") {
  9672. if ($lt_i == "..") {
  9673. lt_count++;
  9674. } else {
  9675. if (lt_count == 0) {
  9676. lt_foo="/" $lt_i lt_foo;
  9677. } else {
  9678. lt_count--;
  9679. }
  9680. }
  9681. }
  9682. }
  9683. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9684. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9685. }'`
  9686. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  9687. else
  9688. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9689. fi
  9690. library_names_spec=
  9691. libname_spec='lib$name'
  9692. soname_spec=
  9693. shrext_cmds=".so"
  9694. postinstall_cmds=
  9695. postuninstall_cmds=
  9696. finish_cmds=
  9697. finish_eval=
  9698. shlibpath_var=
  9699. shlibpath_overrides_runpath=unknown
  9700. version_type=none
  9701. dynamic_linker="$host_os ld.so"
  9702. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9703. need_lib_prefix=unknown
  9704. hardcode_into_libs=no
  9705. # when you set need_version to no, make sure it does not cause -set_version
  9706. # flags to be left without arguments
  9707. need_version=unknown
  9708. case $host_os in
  9709. aix3*)
  9710. version_type=linux
  9711. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9712. shlibpath_var=LIBPATH
  9713. # AIX 3 has no versioning support, so we append a major version to the name.
  9714. soname_spec='${libname}${release}${shared_ext}$major'
  9715. ;;
  9716. aix[4-9]*)
  9717. version_type=linux
  9718. need_lib_prefix=no
  9719. need_version=no
  9720. hardcode_into_libs=yes
  9721. if test "$host_cpu" = ia64; then
  9722. # AIX 5 supports IA64
  9723. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9724. shlibpath_var=LD_LIBRARY_PATH
  9725. else
  9726. # With GCC up to 2.95.x, collect2 would create an import file
  9727. # for dependence libraries. The import file would start with
  9728. # the line `#! .'. This would cause the generated library to
  9729. # depend on `.', always an invalid library. This was fixed in
  9730. # development snapshots of GCC prior to 3.0.
  9731. case $host_os in
  9732. aix4 | aix4.[01] | aix4.[01].*)
  9733. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9734. echo ' yes '
  9735. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9736. :
  9737. else
  9738. can_build_shared=no
  9739. fi
  9740. ;;
  9741. esac
  9742. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9743. # soname into executable. Probably we can add versioning support to
  9744. # collect2, so additional links can be useful in future.
  9745. if test "$aix_use_runtimelinking" = yes; then
  9746. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9747. # instead of lib<name>.a to let people know that these are not
  9748. # typical AIX shared libraries.
  9749. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9750. else
  9751. # We preserve .a as extension for shared libraries through AIX4.2
  9752. # and later when we are not doing run time linking.
  9753. library_names_spec='${libname}${release}.a $libname.a'
  9754. soname_spec='${libname}${release}${shared_ext}$major'
  9755. fi
  9756. shlibpath_var=LIBPATH
  9757. fi
  9758. ;;
  9759. amigaos*)
  9760. case $host_cpu in
  9761. powerpc)
  9762. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9763. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9764. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9765. ;;
  9766. m68k)
  9767. library_names_spec='$libname.ixlibrary $libname.a'
  9768. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9769. 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'
  9770. ;;
  9771. esac
  9772. ;;
  9773. beos*)
  9774. library_names_spec='${libname}${shared_ext}'
  9775. dynamic_linker="$host_os ld.so"
  9776. shlibpath_var=LIBRARY_PATH
  9777. ;;
  9778. bsdi[45]*)
  9779. version_type=linux
  9780. need_version=no
  9781. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9782. soname_spec='${libname}${release}${shared_ext}$major'
  9783. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9784. shlibpath_var=LD_LIBRARY_PATH
  9785. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9786. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9787. # the default ld.so.conf also contains /usr/contrib/lib and
  9788. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9789. # libtool to hard-code these into programs
  9790. ;;
  9791. cygwin* | mingw* | pw32* | cegcc*)
  9792. version_type=windows
  9793. shrext_cmds=".dll"
  9794. need_version=no
  9795. need_lib_prefix=no
  9796. case $GCC,$host_os in
  9797. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9798. library_names_spec='$libname.dll.a'
  9799. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9800. postinstall_cmds='base_file=`basename \${file}`~
  9801. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9802. dldir=$destdir/`dirname \$dlpath`~
  9803. test -d \$dldir || mkdir -p \$dldir~
  9804. $install_prog $dir/$dlname \$dldir/$dlname~
  9805. chmod a+x \$dldir/$dlname~
  9806. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9807. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9808. fi'
  9809. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9810. dlpath=$dir/\$dldll~
  9811. $RM \$dlpath'
  9812. shlibpath_overrides_runpath=yes
  9813. case $host_os in
  9814. cygwin*)
  9815. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9816. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9817. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  9818. ;;
  9819. mingw* | cegcc*)
  9820. # MinGW DLLs use traditional 'lib' prefix
  9821. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9822. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9823. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9824. # It is most probably a Windows format PATH printed by
  9825. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  9826. # path with ; separators, and with drive letters. We can handle the
  9827. # drive letters (cygwin fileutils understands them), so leave them,
  9828. # especially as we might pass files found there to a mingw objdump,
  9829. # which wouldn't understand a cygwinified path. Ahh.
  9830. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9831. else
  9832. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9833. fi
  9834. ;;
  9835. pw32*)
  9836. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9837. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9838. ;;
  9839. esac
  9840. ;;
  9841. *)
  9842. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9843. ;;
  9844. esac
  9845. dynamic_linker='Win32 ld.exe'
  9846. # FIXME: first we should search . and the directory the executable is in
  9847. shlibpath_var=PATH
  9848. ;;
  9849. darwin* | rhapsody*)
  9850. dynamic_linker="$host_os dyld"
  9851. version_type=darwin
  9852. need_lib_prefix=no
  9853. need_version=no
  9854. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9855. soname_spec='${libname}${release}${major}$shared_ext'
  9856. shlibpath_overrides_runpath=yes
  9857. shlibpath_var=DYLD_LIBRARY_PATH
  9858. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9859. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9860. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9861. ;;
  9862. dgux*)
  9863. version_type=linux
  9864. need_lib_prefix=no
  9865. need_version=no
  9866. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9867. soname_spec='${libname}${release}${shared_ext}$major'
  9868. shlibpath_var=LD_LIBRARY_PATH
  9869. ;;
  9870. freebsd1*)
  9871. dynamic_linker=no
  9872. ;;
  9873. freebsd* | dragonfly*)
  9874. # DragonFly does not have aout. When/if they implement a new
  9875. # versioning mechanism, adjust this.
  9876. if test -x /usr/bin/objformat; then
  9877. objformat=`/usr/bin/objformat`
  9878. else
  9879. case $host_os in
  9880. freebsd[123]*) objformat=aout ;;
  9881. *) objformat=elf ;;
  9882. esac
  9883. fi
  9884. version_type=freebsd-$objformat
  9885. case $version_type in
  9886. freebsd-elf*)
  9887. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9888. need_version=no
  9889. need_lib_prefix=no
  9890. ;;
  9891. freebsd-*)
  9892. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9893. need_version=yes
  9894. ;;
  9895. esac
  9896. shlibpath_var=LD_LIBRARY_PATH
  9897. case $host_os in
  9898. freebsd2*)
  9899. shlibpath_overrides_runpath=yes
  9900. ;;
  9901. freebsd3.[01]* | freebsdelf3.[01]*)
  9902. shlibpath_overrides_runpath=yes
  9903. hardcode_into_libs=yes
  9904. ;;
  9905. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9906. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9907. shlibpath_overrides_runpath=no
  9908. hardcode_into_libs=yes
  9909. ;;
  9910. *) # from 4.6 on, and DragonFly
  9911. shlibpath_overrides_runpath=yes
  9912. hardcode_into_libs=yes
  9913. ;;
  9914. esac
  9915. ;;
  9916. gnu*)
  9917. version_type=linux
  9918. need_lib_prefix=no
  9919. need_version=no
  9920. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9921. soname_spec='${libname}${release}${shared_ext}$major'
  9922. shlibpath_var=LD_LIBRARY_PATH
  9923. hardcode_into_libs=yes
  9924. ;;
  9925. hpux9* | hpux10* | hpux11*)
  9926. # Give a soname corresponding to the major version so that dld.sl refuses to
  9927. # link against other versions.
  9928. version_type=sunos
  9929. need_lib_prefix=no
  9930. need_version=no
  9931. case $host_cpu in
  9932. ia64*)
  9933. shrext_cmds='.so'
  9934. hardcode_into_libs=yes
  9935. dynamic_linker="$host_os dld.so"
  9936. shlibpath_var=LD_LIBRARY_PATH
  9937. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9938. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9939. soname_spec='${libname}${release}${shared_ext}$major'
  9940. if test "X$HPUX_IA64_MODE" = X32; then
  9941. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9942. else
  9943. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9944. fi
  9945. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9946. ;;
  9947. hppa*64*)
  9948. shrext_cmds='.sl'
  9949. hardcode_into_libs=yes
  9950. dynamic_linker="$host_os dld.sl"
  9951. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9952. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9953. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9954. soname_spec='${libname}${release}${shared_ext}$major'
  9955. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9956. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9957. ;;
  9958. *)
  9959. shrext_cmds='.sl'
  9960. dynamic_linker="$host_os dld.sl"
  9961. shlibpath_var=SHLIB_PATH
  9962. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9963. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9964. soname_spec='${libname}${release}${shared_ext}$major'
  9965. ;;
  9966. esac
  9967. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  9968. postinstall_cmds='chmod 555 $lib'
  9969. ;;
  9970. interix[3-9]*)
  9971. version_type=linux
  9972. need_lib_prefix=no
  9973. need_version=no
  9974. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9975. soname_spec='${libname}${release}${shared_ext}$major'
  9976. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9977. shlibpath_var=LD_LIBRARY_PATH
  9978. shlibpath_overrides_runpath=no
  9979. hardcode_into_libs=yes
  9980. ;;
  9981. irix5* | irix6* | nonstopux*)
  9982. case $host_os in
  9983. nonstopux*) version_type=nonstopux ;;
  9984. *)
  9985. if test "$lt_cv_prog_gnu_ld" = yes; then
  9986. version_type=linux
  9987. else
  9988. version_type=irix
  9989. fi ;;
  9990. esac
  9991. need_lib_prefix=no
  9992. need_version=no
  9993. soname_spec='${libname}${release}${shared_ext}$major'
  9994. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9995. case $host_os in
  9996. irix5* | nonstopux*)
  9997. libsuff= shlibsuff=
  9998. ;;
  9999. *)
  10000. case $LD in # libtool.m4 will add one of these switches to LD
  10001. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10002. libsuff= shlibsuff= libmagic=32-bit;;
  10003. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10004. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10005. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10006. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10007. *) libsuff= shlibsuff= libmagic=never-match;;
  10008. esac
  10009. ;;
  10010. esac
  10011. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10012. shlibpath_overrides_runpath=no
  10013. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  10014. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  10015. hardcode_into_libs=yes
  10016. ;;
  10017. # No shared lib support for Linux oldld, aout, or coff.
  10018. linux*oldld* | linux*aout* | linux*coff*)
  10019. dynamic_linker=no
  10020. ;;
  10021. # This must be Linux ELF.
  10022. linux* | k*bsd*-gnu)
  10023. version_type=linux
  10024. need_lib_prefix=no
  10025. need_version=no
  10026. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10027. soname_spec='${libname}${release}${shared_ext}$major'
  10028. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10029. shlibpath_var=LD_LIBRARY_PATH
  10030. shlibpath_overrides_runpath=no
  10031. # Some binutils ld are patched to set DT_RUNPATH
  10032. save_LDFLAGS=$LDFLAGS
  10033. save_libdir=$libdir
  10034. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10035. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10036. cat >conftest.$ac_ext <<_ACEOF
  10037. /* confdefs.h. */
  10038. _ACEOF
  10039. cat confdefs.h >>conftest.$ac_ext
  10040. cat >>conftest.$ac_ext <<_ACEOF
  10041. /* end confdefs.h. */
  10042. int
  10043. main ()
  10044. {
  10045. ;
  10046. return 0;
  10047. }
  10048. _ACEOF
  10049. rm -f conftest.$ac_objext conftest$ac_exeext
  10050. if { (ac_try="$ac_link"
  10051. case "(($ac_try" in
  10052. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10053. *) ac_try_echo=$ac_try;;
  10054. esac
  10055. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10056. $as_echo "$ac_try_echo") >&5
  10057. (eval "$ac_link") 2>conftest.er1
  10058. ac_status=$?
  10059. grep -v '^ *+' conftest.er1 >conftest.err
  10060. rm -f conftest.er1
  10061. cat conftest.err >&5
  10062. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10063. (exit $ac_status); } && {
  10064. test -z "$ac_c_werror_flag" ||
  10065. test ! -s conftest.err
  10066. } && test -s conftest$ac_exeext && {
  10067. test "$cross_compiling" = yes ||
  10068. $as_test_x conftest$ac_exeext
  10069. }; then
  10070. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
  10071. shlibpath_overrides_runpath=yes
  10072. fi
  10073. else
  10074. $as_echo "$as_me: failed program was:" >&5
  10075. sed 's/^/| /' conftest.$ac_ext >&5
  10076. fi
  10077. rm -rf conftest.dSYM
  10078. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10079. conftest$ac_exeext conftest.$ac_ext
  10080. LDFLAGS=$save_LDFLAGS
  10081. libdir=$save_libdir
  10082. # This implies no fast_install, which is unacceptable.
  10083. # Some rework will be needed to allow for fast_install
  10084. # before this can be enabled.
  10085. hardcode_into_libs=yes
  10086. # Add ABI-specific directories to the system library path.
  10087. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  10088. # Append ld.so.conf contents to the search path
  10089. if test -f /etc/ld.so.conf; then
  10090. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  10091. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10092. fi
  10093. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10094. # powerpc, because MkLinux only supported shared libraries with the
  10095. # GNU dynamic linker. Since this was broken with cross compilers,
  10096. # most powerpc-linux boxes support dynamic linking these days and
  10097. # people can always --disable-shared, the test was removed, and we
  10098. # assume the GNU/Linux dynamic linker is in use.
  10099. dynamic_linker='GNU/Linux ld.so'
  10100. ;;
  10101. netbsd*)
  10102. version_type=sunos
  10103. need_lib_prefix=no
  10104. need_version=no
  10105. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10106. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10107. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10108. dynamic_linker='NetBSD (a.out) ld.so'
  10109. else
  10110. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10111. soname_spec='${libname}${release}${shared_ext}$major'
  10112. dynamic_linker='NetBSD ld.elf_so'
  10113. fi
  10114. shlibpath_var=LD_LIBRARY_PATH
  10115. shlibpath_overrides_runpath=yes
  10116. hardcode_into_libs=yes
  10117. ;;
  10118. newsos6)
  10119. version_type=linux
  10120. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10121. shlibpath_var=LD_LIBRARY_PATH
  10122. shlibpath_overrides_runpath=yes
  10123. ;;
  10124. *nto* | *qnx*)
  10125. version_type=qnx
  10126. need_lib_prefix=no
  10127. need_version=no
  10128. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10129. soname_spec='${libname}${release}${shared_ext}$major'
  10130. shlibpath_var=LD_LIBRARY_PATH
  10131. shlibpath_overrides_runpath=no
  10132. hardcode_into_libs=yes
  10133. dynamic_linker='ldqnx.so'
  10134. ;;
  10135. openbsd*)
  10136. version_type=sunos
  10137. sys_lib_dlsearch_path_spec="/usr/lib"
  10138. need_lib_prefix=no
  10139. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10140. case $host_os in
  10141. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  10142. *) need_version=no ;;
  10143. esac
  10144. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10145. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10146. shlibpath_var=LD_LIBRARY_PATH
  10147. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10148. case $host_os in
  10149. openbsd2.[89] | openbsd2.[89].*)
  10150. shlibpath_overrides_runpath=no
  10151. ;;
  10152. *)
  10153. shlibpath_overrides_runpath=yes
  10154. ;;
  10155. esac
  10156. else
  10157. shlibpath_overrides_runpath=yes
  10158. fi
  10159. ;;
  10160. os2*)
  10161. libname_spec='$name'
  10162. shrext_cmds=".dll"
  10163. need_lib_prefix=no
  10164. library_names_spec='$libname${shared_ext} $libname.a'
  10165. dynamic_linker='OS/2 ld.exe'
  10166. shlibpath_var=LIBPATH
  10167. ;;
  10168. osf3* | osf4* | osf5*)
  10169. version_type=osf
  10170. need_lib_prefix=no
  10171. need_version=no
  10172. soname_spec='${libname}${release}${shared_ext}$major'
  10173. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10174. shlibpath_var=LD_LIBRARY_PATH
  10175. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10176. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10177. ;;
  10178. rdos*)
  10179. dynamic_linker=no
  10180. ;;
  10181. solaris*)
  10182. version_type=linux
  10183. need_lib_prefix=no
  10184. need_version=no
  10185. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10186. soname_spec='${libname}${release}${shared_ext}$major'
  10187. shlibpath_var=LD_LIBRARY_PATH
  10188. shlibpath_overrides_runpath=yes
  10189. hardcode_into_libs=yes
  10190. # ldd complains unless libraries are executable
  10191. postinstall_cmds='chmod +x $lib'
  10192. ;;
  10193. sunos4*)
  10194. version_type=sunos
  10195. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10196. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10197. shlibpath_var=LD_LIBRARY_PATH
  10198. shlibpath_overrides_runpath=yes
  10199. if test "$with_gnu_ld" = yes; then
  10200. need_lib_prefix=no
  10201. fi
  10202. need_version=yes
  10203. ;;
  10204. sysv4 | sysv4.3*)
  10205. version_type=linux
  10206. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10207. soname_spec='${libname}${release}${shared_ext}$major'
  10208. shlibpath_var=LD_LIBRARY_PATH
  10209. case $host_vendor in
  10210. sni)
  10211. shlibpath_overrides_runpath=no
  10212. need_lib_prefix=no
  10213. runpath_var=LD_RUN_PATH
  10214. ;;
  10215. siemens)
  10216. need_lib_prefix=no
  10217. ;;
  10218. motorola)
  10219. need_lib_prefix=no
  10220. need_version=no
  10221. shlibpath_overrides_runpath=no
  10222. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10223. ;;
  10224. esac
  10225. ;;
  10226. sysv4*MP*)
  10227. if test -d /usr/nec ;then
  10228. version_type=linux
  10229. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10230. soname_spec='$libname${shared_ext}.$major'
  10231. shlibpath_var=LD_LIBRARY_PATH
  10232. fi
  10233. ;;
  10234. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10235. version_type=freebsd-elf
  10236. need_lib_prefix=no
  10237. need_version=no
  10238. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10239. soname_spec='${libname}${release}${shared_ext}$major'
  10240. shlibpath_var=LD_LIBRARY_PATH
  10241. shlibpath_overrides_runpath=yes
  10242. hardcode_into_libs=yes
  10243. if test "$with_gnu_ld" = yes; then
  10244. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10245. else
  10246. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10247. case $host_os in
  10248. sco3.2v5*)
  10249. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10250. ;;
  10251. esac
  10252. fi
  10253. sys_lib_dlsearch_path_spec='/usr/lib'
  10254. ;;
  10255. tpf*)
  10256. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10257. version_type=linux
  10258. need_lib_prefix=no
  10259. need_version=no
  10260. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10261. shlibpath_var=LD_LIBRARY_PATH
  10262. shlibpath_overrides_runpath=no
  10263. hardcode_into_libs=yes
  10264. ;;
  10265. uts4*)
  10266. version_type=linux
  10267. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10268. soname_spec='${libname}${release}${shared_ext}$major'
  10269. shlibpath_var=LD_LIBRARY_PATH
  10270. ;;
  10271. *)
  10272. dynamic_linker=no
  10273. ;;
  10274. esac
  10275. { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  10276. $as_echo "$dynamic_linker" >&6; }
  10277. test "$dynamic_linker" = no && can_build_shared=no
  10278. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10279. if test "$GCC" = yes; then
  10280. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10281. fi
  10282. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  10283. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  10284. fi
  10285. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  10286. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  10287. fi
  10288. { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  10289. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10290. hardcode_action=
  10291. if test -n "$hardcode_libdir_flag_spec" ||
  10292. test -n "$runpath_var" ||
  10293. test "X$hardcode_automatic" = "Xyes" ; then
  10294. # We can hardcode non-existent directories.
  10295. if test "$hardcode_direct" != no &&
  10296. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10297. # have to relink, otherwise we might link with an installed library
  10298. # when we should be linking with a yet-to-be-installed one
  10299. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10300. test "$hardcode_minus_L" != no; then
  10301. # Linking always hardcodes the temporary library directory.
  10302. hardcode_action=relink
  10303. else
  10304. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10305. hardcode_action=immediate
  10306. fi
  10307. else
  10308. # We cannot hardcode anything, or else we can only hardcode existing
  10309. # directories.
  10310. hardcode_action=unsupported
  10311. fi
  10312. { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
  10313. $as_echo "$hardcode_action" >&6; }
  10314. if test "$hardcode_action" = relink ||
  10315. test "$inherit_rpath" = yes; then
  10316. # Fast installation is not supported
  10317. enable_fast_install=no
  10318. elif test "$shlibpath_overrides_runpath" = yes ||
  10319. test "$enable_shared" = no; then
  10320. # Fast installation is not necessary
  10321. enable_fast_install=needless
  10322. fi
  10323. if test "x$enable_dlopen" != xyes; then
  10324. enable_dlopen=unknown
  10325. enable_dlopen_self=unknown
  10326. enable_dlopen_self_static=unknown
  10327. else
  10328. lt_cv_dlopen=no
  10329. lt_cv_dlopen_libs=
  10330. case $host_os in
  10331. beos*)
  10332. lt_cv_dlopen="load_add_on"
  10333. lt_cv_dlopen_libs=
  10334. lt_cv_dlopen_self=yes
  10335. ;;
  10336. mingw* | pw32* | cegcc*)
  10337. lt_cv_dlopen="LoadLibrary"
  10338. lt_cv_dlopen_libs=
  10339. ;;
  10340. cygwin*)
  10341. lt_cv_dlopen="dlopen"
  10342. lt_cv_dlopen_libs=
  10343. ;;
  10344. darwin*)
  10345. # if libdl is installed we need to link against it
  10346. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  10347. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10348. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  10349. $as_echo_n "(cached) " >&6
  10350. else
  10351. ac_check_lib_save_LIBS=$LIBS
  10352. LIBS="-ldl $LIBS"
  10353. cat >conftest.$ac_ext <<_ACEOF
  10354. /* confdefs.h. */
  10355. _ACEOF
  10356. cat confdefs.h >>conftest.$ac_ext
  10357. cat >>conftest.$ac_ext <<_ACEOF
  10358. /* end confdefs.h. */
  10359. /* Override any GCC internal prototype to avoid an error.
  10360. Use char because int might match the return type of a GCC
  10361. builtin and then its argument prototype would still apply. */
  10362. #ifdef __cplusplus
  10363. extern "C"
  10364. #endif
  10365. char dlopen ();
  10366. int
  10367. main ()
  10368. {
  10369. return dlopen ();
  10370. ;
  10371. return 0;
  10372. }
  10373. _ACEOF
  10374. rm -f conftest.$ac_objext conftest$ac_exeext
  10375. if { (ac_try="$ac_link"
  10376. case "(($ac_try" in
  10377. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10378. *) ac_try_echo=$ac_try;;
  10379. esac
  10380. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10381. $as_echo "$ac_try_echo") >&5
  10382. (eval "$ac_link") 2>conftest.er1
  10383. ac_status=$?
  10384. grep -v '^ *+' conftest.er1 >conftest.err
  10385. rm -f conftest.er1
  10386. cat conftest.err >&5
  10387. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10388. (exit $ac_status); } && {
  10389. test -z "$ac_c_werror_flag" ||
  10390. test ! -s conftest.err
  10391. } && test -s conftest$ac_exeext && {
  10392. test "$cross_compiling" = yes ||
  10393. $as_test_x conftest$ac_exeext
  10394. }; then
  10395. ac_cv_lib_dl_dlopen=yes
  10396. else
  10397. $as_echo "$as_me: failed program was:" >&5
  10398. sed 's/^/| /' conftest.$ac_ext >&5
  10399. ac_cv_lib_dl_dlopen=no
  10400. fi
  10401. rm -rf conftest.dSYM
  10402. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10403. conftest$ac_exeext conftest.$ac_ext
  10404. LIBS=$ac_check_lib_save_LIBS
  10405. fi
  10406. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  10407. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10408. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  10409. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10410. else
  10411. lt_cv_dlopen="dyld"
  10412. lt_cv_dlopen_libs=
  10413. lt_cv_dlopen_self=yes
  10414. fi
  10415. ;;
  10416. *)
  10417. { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
  10418. $as_echo_n "checking for shl_load... " >&6; }
  10419. if test "${ac_cv_func_shl_load+set}" = set; then
  10420. $as_echo_n "(cached) " >&6
  10421. else
  10422. cat >conftest.$ac_ext <<_ACEOF
  10423. /* confdefs.h. */
  10424. _ACEOF
  10425. cat confdefs.h >>conftest.$ac_ext
  10426. cat >>conftest.$ac_ext <<_ACEOF
  10427. /* end confdefs.h. */
  10428. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  10429. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10430. #define shl_load innocuous_shl_load
  10431. /* System header to define __stub macros and hopefully few prototypes,
  10432. which can conflict with char shl_load (); below.
  10433. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10434. <limits.h> exists even on freestanding compilers. */
  10435. #ifdef __STDC__
  10436. # include <limits.h>
  10437. #else
  10438. # include <assert.h>
  10439. #endif
  10440. #undef shl_load
  10441. /* Override any GCC internal prototype to avoid an error.
  10442. Use char because int might match the return type of a GCC
  10443. builtin and then its argument prototype would still apply. */
  10444. #ifdef __cplusplus
  10445. extern "C"
  10446. #endif
  10447. char shl_load ();
  10448. /* The GNU C library defines this for functions which it implements
  10449. to always fail with ENOSYS. Some functions are actually named
  10450. something starting with __ and the normal name is an alias. */
  10451. #if defined __stub_shl_load || defined __stub___shl_load
  10452. choke me
  10453. #endif
  10454. int
  10455. main ()
  10456. {
  10457. return shl_load ();
  10458. ;
  10459. return 0;
  10460. }
  10461. _ACEOF
  10462. rm -f conftest.$ac_objext conftest$ac_exeext
  10463. if { (ac_try="$ac_link"
  10464. case "(($ac_try" in
  10465. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10466. *) ac_try_echo=$ac_try;;
  10467. esac
  10468. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10469. $as_echo "$ac_try_echo") >&5
  10470. (eval "$ac_link") 2>conftest.er1
  10471. ac_status=$?
  10472. grep -v '^ *+' conftest.er1 >conftest.err
  10473. rm -f conftest.er1
  10474. cat conftest.err >&5
  10475. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10476. (exit $ac_status); } && {
  10477. test -z "$ac_c_werror_flag" ||
  10478. test ! -s conftest.err
  10479. } && test -s conftest$ac_exeext && {
  10480. test "$cross_compiling" = yes ||
  10481. $as_test_x conftest$ac_exeext
  10482. }; then
  10483. ac_cv_func_shl_load=yes
  10484. else
  10485. $as_echo "$as_me: failed program was:" >&5
  10486. sed 's/^/| /' conftest.$ac_ext >&5
  10487. ac_cv_func_shl_load=no
  10488. fi
  10489. rm -rf conftest.dSYM
  10490. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10491. conftest$ac_exeext conftest.$ac_ext
  10492. fi
  10493. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  10494. $as_echo "$ac_cv_func_shl_load" >&6; }
  10495. if test "x$ac_cv_func_shl_load" = x""yes; then
  10496. lt_cv_dlopen="shl_load"
  10497. else
  10498. { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  10499. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10500. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  10501. $as_echo_n "(cached) " >&6
  10502. else
  10503. ac_check_lib_save_LIBS=$LIBS
  10504. LIBS="-ldld $LIBS"
  10505. cat >conftest.$ac_ext <<_ACEOF
  10506. /* confdefs.h. */
  10507. _ACEOF
  10508. cat confdefs.h >>conftest.$ac_ext
  10509. cat >>conftest.$ac_ext <<_ACEOF
  10510. /* end confdefs.h. */
  10511. /* Override any GCC internal prototype to avoid an error.
  10512. Use char because int might match the return type of a GCC
  10513. builtin and then its argument prototype would still apply. */
  10514. #ifdef __cplusplus
  10515. extern "C"
  10516. #endif
  10517. char shl_load ();
  10518. int
  10519. main ()
  10520. {
  10521. return shl_load ();
  10522. ;
  10523. return 0;
  10524. }
  10525. _ACEOF
  10526. rm -f conftest.$ac_objext conftest$ac_exeext
  10527. if { (ac_try="$ac_link"
  10528. case "(($ac_try" in
  10529. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10530. *) ac_try_echo=$ac_try;;
  10531. esac
  10532. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10533. $as_echo "$ac_try_echo") >&5
  10534. (eval "$ac_link") 2>conftest.er1
  10535. ac_status=$?
  10536. grep -v '^ *+' conftest.er1 >conftest.err
  10537. rm -f conftest.er1
  10538. cat conftest.err >&5
  10539. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10540. (exit $ac_status); } && {
  10541. test -z "$ac_c_werror_flag" ||
  10542. test ! -s conftest.err
  10543. } && test -s conftest$ac_exeext && {
  10544. test "$cross_compiling" = yes ||
  10545. $as_test_x conftest$ac_exeext
  10546. }; then
  10547. ac_cv_lib_dld_shl_load=yes
  10548. else
  10549. $as_echo "$as_me: failed program was:" >&5
  10550. sed 's/^/| /' conftest.$ac_ext >&5
  10551. ac_cv_lib_dld_shl_load=no
  10552. fi
  10553. rm -rf conftest.dSYM
  10554. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10555. conftest$ac_exeext conftest.$ac_ext
  10556. LIBS=$ac_check_lib_save_LIBS
  10557. fi
  10558. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  10559. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10560. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
  10561. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10562. else
  10563. { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
  10564. $as_echo_n "checking for dlopen... " >&6; }
  10565. if test "${ac_cv_func_dlopen+set}" = set; then
  10566. $as_echo_n "(cached) " >&6
  10567. else
  10568. cat >conftest.$ac_ext <<_ACEOF
  10569. /* confdefs.h. */
  10570. _ACEOF
  10571. cat confdefs.h >>conftest.$ac_ext
  10572. cat >>conftest.$ac_ext <<_ACEOF
  10573. /* end confdefs.h. */
  10574. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  10575. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10576. #define dlopen innocuous_dlopen
  10577. /* System header to define __stub macros and hopefully few prototypes,
  10578. which can conflict with char dlopen (); below.
  10579. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10580. <limits.h> exists even on freestanding compilers. */
  10581. #ifdef __STDC__
  10582. # include <limits.h>
  10583. #else
  10584. # include <assert.h>
  10585. #endif
  10586. #undef dlopen
  10587. /* Override any GCC internal prototype to avoid an error.
  10588. Use char because int might match the return type of a GCC
  10589. builtin and then its argument prototype would still apply. */
  10590. #ifdef __cplusplus
  10591. extern "C"
  10592. #endif
  10593. char dlopen ();
  10594. /* The GNU C library defines this for functions which it implements
  10595. to always fail with ENOSYS. Some functions are actually named
  10596. something starting with __ and the normal name is an alias. */
  10597. #if defined __stub_dlopen || defined __stub___dlopen
  10598. choke me
  10599. #endif
  10600. int
  10601. main ()
  10602. {
  10603. return dlopen ();
  10604. ;
  10605. return 0;
  10606. }
  10607. _ACEOF
  10608. rm -f conftest.$ac_objext conftest$ac_exeext
  10609. if { (ac_try="$ac_link"
  10610. case "(($ac_try" in
  10611. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10612. *) ac_try_echo=$ac_try;;
  10613. esac
  10614. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10615. $as_echo "$ac_try_echo") >&5
  10616. (eval "$ac_link") 2>conftest.er1
  10617. ac_status=$?
  10618. grep -v '^ *+' conftest.er1 >conftest.err
  10619. rm -f conftest.er1
  10620. cat conftest.err >&5
  10621. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10622. (exit $ac_status); } && {
  10623. test -z "$ac_c_werror_flag" ||
  10624. test ! -s conftest.err
  10625. } && test -s conftest$ac_exeext && {
  10626. test "$cross_compiling" = yes ||
  10627. $as_test_x conftest$ac_exeext
  10628. }; then
  10629. ac_cv_func_dlopen=yes
  10630. else
  10631. $as_echo "$as_me: failed program was:" >&5
  10632. sed 's/^/| /' conftest.$ac_ext >&5
  10633. ac_cv_func_dlopen=no
  10634. fi
  10635. rm -rf conftest.dSYM
  10636. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10637. conftest$ac_exeext conftest.$ac_ext
  10638. fi
  10639. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  10640. $as_echo "$ac_cv_func_dlopen" >&6; }
  10641. if test "x$ac_cv_func_dlopen" = x""yes; then
  10642. lt_cv_dlopen="dlopen"
  10643. else
  10644. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  10645. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10646. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  10647. $as_echo_n "(cached) " >&6
  10648. else
  10649. ac_check_lib_save_LIBS=$LIBS
  10650. LIBS="-ldl $LIBS"
  10651. cat >conftest.$ac_ext <<_ACEOF
  10652. /* confdefs.h. */
  10653. _ACEOF
  10654. cat confdefs.h >>conftest.$ac_ext
  10655. cat >>conftest.$ac_ext <<_ACEOF
  10656. /* end confdefs.h. */
  10657. /* Override any GCC internal prototype to avoid an error.
  10658. Use char because int might match the return type of a GCC
  10659. builtin and then its argument prototype would still apply. */
  10660. #ifdef __cplusplus
  10661. extern "C"
  10662. #endif
  10663. char dlopen ();
  10664. int
  10665. main ()
  10666. {
  10667. return dlopen ();
  10668. ;
  10669. return 0;
  10670. }
  10671. _ACEOF
  10672. rm -f conftest.$ac_objext conftest$ac_exeext
  10673. if { (ac_try="$ac_link"
  10674. case "(($ac_try" in
  10675. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10676. *) ac_try_echo=$ac_try;;
  10677. esac
  10678. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10679. $as_echo "$ac_try_echo") >&5
  10680. (eval "$ac_link") 2>conftest.er1
  10681. ac_status=$?
  10682. grep -v '^ *+' conftest.er1 >conftest.err
  10683. rm -f conftest.er1
  10684. cat conftest.err >&5
  10685. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10686. (exit $ac_status); } && {
  10687. test -z "$ac_c_werror_flag" ||
  10688. test ! -s conftest.err
  10689. } && test -s conftest$ac_exeext && {
  10690. test "$cross_compiling" = yes ||
  10691. $as_test_x conftest$ac_exeext
  10692. }; then
  10693. ac_cv_lib_dl_dlopen=yes
  10694. else
  10695. $as_echo "$as_me: failed program was:" >&5
  10696. sed 's/^/| /' conftest.$ac_ext >&5
  10697. ac_cv_lib_dl_dlopen=no
  10698. fi
  10699. rm -rf conftest.dSYM
  10700. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10701. conftest$ac_exeext conftest.$ac_ext
  10702. LIBS=$ac_check_lib_save_LIBS
  10703. fi
  10704. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  10705. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10706. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  10707. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10708. else
  10709. { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  10710. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10711. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  10712. $as_echo_n "(cached) " >&6
  10713. else
  10714. ac_check_lib_save_LIBS=$LIBS
  10715. LIBS="-lsvld $LIBS"
  10716. cat >conftest.$ac_ext <<_ACEOF
  10717. /* confdefs.h. */
  10718. _ACEOF
  10719. cat confdefs.h >>conftest.$ac_ext
  10720. cat >>conftest.$ac_ext <<_ACEOF
  10721. /* end confdefs.h. */
  10722. /* Override any GCC internal prototype to avoid an error.
  10723. Use char because int might match the return type of a GCC
  10724. builtin and then its argument prototype would still apply. */
  10725. #ifdef __cplusplus
  10726. extern "C"
  10727. #endif
  10728. char dlopen ();
  10729. int
  10730. main ()
  10731. {
  10732. return dlopen ();
  10733. ;
  10734. return 0;
  10735. }
  10736. _ACEOF
  10737. rm -f conftest.$ac_objext conftest$ac_exeext
  10738. if { (ac_try="$ac_link"
  10739. case "(($ac_try" in
  10740. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10741. *) ac_try_echo=$ac_try;;
  10742. esac
  10743. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10744. $as_echo "$ac_try_echo") >&5
  10745. (eval "$ac_link") 2>conftest.er1
  10746. ac_status=$?
  10747. grep -v '^ *+' conftest.er1 >conftest.err
  10748. rm -f conftest.er1
  10749. cat conftest.err >&5
  10750. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10751. (exit $ac_status); } && {
  10752. test -z "$ac_c_werror_flag" ||
  10753. test ! -s conftest.err
  10754. } && test -s conftest$ac_exeext && {
  10755. test "$cross_compiling" = yes ||
  10756. $as_test_x conftest$ac_exeext
  10757. }; then
  10758. ac_cv_lib_svld_dlopen=yes
  10759. else
  10760. $as_echo "$as_me: failed program was:" >&5
  10761. sed 's/^/| /' conftest.$ac_ext >&5
  10762. ac_cv_lib_svld_dlopen=no
  10763. fi
  10764. rm -rf conftest.dSYM
  10765. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10766. conftest$ac_exeext conftest.$ac_ext
  10767. LIBS=$ac_check_lib_save_LIBS
  10768. fi
  10769. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  10770. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10771. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
  10772. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10773. else
  10774. { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  10775. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10776. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  10777. $as_echo_n "(cached) " >&6
  10778. else
  10779. ac_check_lib_save_LIBS=$LIBS
  10780. LIBS="-ldld $LIBS"
  10781. cat >conftest.$ac_ext <<_ACEOF
  10782. /* confdefs.h. */
  10783. _ACEOF
  10784. cat confdefs.h >>conftest.$ac_ext
  10785. cat >>conftest.$ac_ext <<_ACEOF
  10786. /* end confdefs.h. */
  10787. /* Override any GCC internal prototype to avoid an error.
  10788. Use char because int might match the return type of a GCC
  10789. builtin and then its argument prototype would still apply. */
  10790. #ifdef __cplusplus
  10791. extern "C"
  10792. #endif
  10793. char dld_link ();
  10794. int
  10795. main ()
  10796. {
  10797. return dld_link ();
  10798. ;
  10799. return 0;
  10800. }
  10801. _ACEOF
  10802. rm -f conftest.$ac_objext conftest$ac_exeext
  10803. if { (ac_try="$ac_link"
  10804. case "(($ac_try" in
  10805. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10806. *) ac_try_echo=$ac_try;;
  10807. esac
  10808. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10809. $as_echo "$ac_try_echo") >&5
  10810. (eval "$ac_link") 2>conftest.er1
  10811. ac_status=$?
  10812. grep -v '^ *+' conftest.er1 >conftest.err
  10813. rm -f conftest.er1
  10814. cat conftest.err >&5
  10815. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10816. (exit $ac_status); } && {
  10817. test -z "$ac_c_werror_flag" ||
  10818. test ! -s conftest.err
  10819. } && test -s conftest$ac_exeext && {
  10820. test "$cross_compiling" = yes ||
  10821. $as_test_x conftest$ac_exeext
  10822. }; then
  10823. ac_cv_lib_dld_dld_link=yes
  10824. else
  10825. $as_echo "$as_me: failed program was:" >&5
  10826. sed 's/^/| /' conftest.$ac_ext >&5
  10827. ac_cv_lib_dld_dld_link=no
  10828. fi
  10829. rm -rf conftest.dSYM
  10830. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10831. conftest$ac_exeext conftest.$ac_ext
  10832. LIBS=$ac_check_lib_save_LIBS
  10833. fi
  10834. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  10835. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10836. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
  10837. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10838. fi
  10839. fi
  10840. fi
  10841. fi
  10842. fi
  10843. fi
  10844. ;;
  10845. esac
  10846. if test "x$lt_cv_dlopen" != xno; then
  10847. enable_dlopen=yes
  10848. else
  10849. enable_dlopen=no
  10850. fi
  10851. case $lt_cv_dlopen in
  10852. dlopen)
  10853. save_CPPFLAGS="$CPPFLAGS"
  10854. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10855. save_LDFLAGS="$LDFLAGS"
  10856. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10857. save_LIBS="$LIBS"
  10858. LIBS="$lt_cv_dlopen_libs $LIBS"
  10859. { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  10860. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10861. if test "${lt_cv_dlopen_self+set}" = set; then
  10862. $as_echo_n "(cached) " >&6
  10863. else
  10864. if test "$cross_compiling" = yes; then :
  10865. lt_cv_dlopen_self=cross
  10866. else
  10867. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10868. lt_status=$lt_dlunknown
  10869. cat > conftest.$ac_ext <<_LT_EOF
  10870. #line 12567 "configure"
  10871. #include "confdefs.h"
  10872. #if HAVE_DLFCN_H
  10873. #include <dlfcn.h>
  10874. #endif
  10875. #include <stdio.h>
  10876. #ifdef RTLD_GLOBAL
  10877. # define LT_DLGLOBAL RTLD_GLOBAL
  10878. #else
  10879. # ifdef DL_GLOBAL
  10880. # define LT_DLGLOBAL DL_GLOBAL
  10881. # else
  10882. # define LT_DLGLOBAL 0
  10883. # endif
  10884. #endif
  10885. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10886. find out it does not work in some platform. */
  10887. #ifndef LT_DLLAZY_OR_NOW
  10888. # ifdef RTLD_LAZY
  10889. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10890. # else
  10891. # ifdef DL_LAZY
  10892. # define LT_DLLAZY_OR_NOW DL_LAZY
  10893. # else
  10894. # ifdef RTLD_NOW
  10895. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10896. # else
  10897. # ifdef DL_NOW
  10898. # define LT_DLLAZY_OR_NOW DL_NOW
  10899. # else
  10900. # define LT_DLLAZY_OR_NOW 0
  10901. # endif
  10902. # endif
  10903. # endif
  10904. # endif
  10905. #endif
  10906. void fnord() { int i=42;}
  10907. int main ()
  10908. {
  10909. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10910. int status = $lt_dlunknown;
  10911. if (self)
  10912. {
  10913. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10914. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10915. /* dlclose (self); */
  10916. }
  10917. else
  10918. puts (dlerror ());
  10919. return status;
  10920. }
  10921. _LT_EOF
  10922. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10923. (eval $ac_link) 2>&5
  10924. ac_status=$?
  10925. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10926. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  10927. (./conftest; exit; ) >&5 2>/dev/null
  10928. lt_status=$?
  10929. case x$lt_status in
  10930. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10931. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10932. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10933. esac
  10934. else :
  10935. # compilation failed
  10936. lt_cv_dlopen_self=no
  10937. fi
  10938. fi
  10939. rm -fr conftest*
  10940. fi
  10941. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  10942. $as_echo "$lt_cv_dlopen_self" >&6; }
  10943. if test "x$lt_cv_dlopen_self" = xyes; then
  10944. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10945. { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  10946. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10947. if test "${lt_cv_dlopen_self_static+set}" = set; then
  10948. $as_echo_n "(cached) " >&6
  10949. else
  10950. if test "$cross_compiling" = yes; then :
  10951. lt_cv_dlopen_self_static=cross
  10952. else
  10953. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10954. lt_status=$lt_dlunknown
  10955. cat > conftest.$ac_ext <<_LT_EOF
  10956. #line 12663 "configure"
  10957. #include "confdefs.h"
  10958. #if HAVE_DLFCN_H
  10959. #include <dlfcn.h>
  10960. #endif
  10961. #include <stdio.h>
  10962. #ifdef RTLD_GLOBAL
  10963. # define LT_DLGLOBAL RTLD_GLOBAL
  10964. #else
  10965. # ifdef DL_GLOBAL
  10966. # define LT_DLGLOBAL DL_GLOBAL
  10967. # else
  10968. # define LT_DLGLOBAL 0
  10969. # endif
  10970. #endif
  10971. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10972. find out it does not work in some platform. */
  10973. #ifndef LT_DLLAZY_OR_NOW
  10974. # ifdef RTLD_LAZY
  10975. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10976. # else
  10977. # ifdef DL_LAZY
  10978. # define LT_DLLAZY_OR_NOW DL_LAZY
  10979. # else
  10980. # ifdef RTLD_NOW
  10981. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10982. # else
  10983. # ifdef DL_NOW
  10984. # define LT_DLLAZY_OR_NOW DL_NOW
  10985. # else
  10986. # define LT_DLLAZY_OR_NOW 0
  10987. # endif
  10988. # endif
  10989. # endif
  10990. # endif
  10991. #endif
  10992. void fnord() { int i=42;}
  10993. int main ()
  10994. {
  10995. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10996. int status = $lt_dlunknown;
  10997. if (self)
  10998. {
  10999. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11000. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11001. /* dlclose (self); */
  11002. }
  11003. else
  11004. puts (dlerror ());
  11005. return status;
  11006. }
  11007. _LT_EOF
  11008. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11009. (eval $ac_link) 2>&5
  11010. ac_status=$?
  11011. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11012. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  11013. (./conftest; exit; ) >&5 2>/dev/null
  11014. lt_status=$?
  11015. case x$lt_status in
  11016. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11017. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11018. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11019. esac
  11020. else :
  11021. # compilation failed
  11022. lt_cv_dlopen_self_static=no
  11023. fi
  11024. fi
  11025. rm -fr conftest*
  11026. fi
  11027. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  11028. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  11029. fi
  11030. CPPFLAGS="$save_CPPFLAGS"
  11031. LDFLAGS="$save_LDFLAGS"
  11032. LIBS="$save_LIBS"
  11033. ;;
  11034. esac
  11035. case $lt_cv_dlopen_self in
  11036. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11037. *) enable_dlopen_self=unknown ;;
  11038. esac
  11039. case $lt_cv_dlopen_self_static in
  11040. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11041. *) enable_dlopen_self_static=unknown ;;
  11042. esac
  11043. fi
  11044. striplib=
  11045. old_striplib=
  11046. { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  11047. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  11048. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11049. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11050. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11051. { $as_echo "$as_me:$LINENO: result: yes" >&5
  11052. $as_echo "yes" >&6; }
  11053. else
  11054. # FIXME - insert some real tests, host_os isn't really good enough
  11055. case $host_os in
  11056. darwin*)
  11057. if test -n "$STRIP" ; then
  11058. striplib="$STRIP -x"
  11059. old_striplib="$STRIP -S"
  11060. { $as_echo "$as_me:$LINENO: result: yes" >&5
  11061. $as_echo "yes" >&6; }
  11062. else
  11063. { $as_echo "$as_me:$LINENO: result: no" >&5
  11064. $as_echo "no" >&6; }
  11065. fi
  11066. ;;
  11067. *)
  11068. { $as_echo "$as_me:$LINENO: result: no" >&5
  11069. $as_echo "no" >&6; }
  11070. ;;
  11071. esac
  11072. fi
  11073. # Report which library types will actually be built
  11074. { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  11075. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  11076. { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
  11077. $as_echo "$can_build_shared" >&6; }
  11078. { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  11079. $as_echo_n "checking whether to build shared libraries... " >&6; }
  11080. test "$can_build_shared" = "no" && enable_shared=no
  11081. # On AIX, shared libraries and static libraries use the same namespace, and
  11082. # are all built from PIC.
  11083. case $host_os in
  11084. aix3*)
  11085. test "$enable_shared" = yes && enable_static=no
  11086. if test -n "$RANLIB"; then
  11087. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11088. postinstall_cmds='$RANLIB $lib'
  11089. fi
  11090. ;;
  11091. aix[4-9]*)
  11092. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11093. test "$enable_shared" = yes && enable_static=no
  11094. fi
  11095. ;;
  11096. esac
  11097. { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
  11098. $as_echo "$enable_shared" >&6; }
  11099. { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  11100. $as_echo_n "checking whether to build static libraries... " >&6; }
  11101. # Make sure either enable_shared or enable_static is yes.
  11102. test "$enable_shared" = yes || enable_static=yes
  11103. { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
  11104. $as_echo "$enable_static" >&6; }
  11105. fi
  11106. ac_ext=c
  11107. ac_cpp='$CPP $CPPFLAGS'
  11108. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11109. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11110. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11111. CC="$lt_save_CC"
  11112. ac_ext=cpp
  11113. ac_cpp='$CXXCPP $CPPFLAGS'
  11114. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11115. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11116. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11117. archive_cmds_need_lc_CXX=no
  11118. allow_undefined_flag_CXX=
  11119. always_export_symbols_CXX=no
  11120. archive_expsym_cmds_CXX=
  11121. compiler_needs_object_CXX=no
  11122. export_dynamic_flag_spec_CXX=
  11123. hardcode_direct_CXX=no
  11124. hardcode_direct_absolute_CXX=no
  11125. hardcode_libdir_flag_spec_CXX=
  11126. hardcode_libdir_flag_spec_ld_CXX=
  11127. hardcode_libdir_separator_CXX=
  11128. hardcode_minus_L_CXX=no
  11129. hardcode_shlibpath_var_CXX=unsupported
  11130. hardcode_automatic_CXX=no
  11131. inherit_rpath_CXX=no
  11132. module_cmds_CXX=
  11133. module_expsym_cmds_CXX=
  11134. link_all_deplibs_CXX=unknown
  11135. old_archive_cmds_CXX=$old_archive_cmds
  11136. no_undefined_flag_CXX=
  11137. whole_archive_flag_spec_CXX=
  11138. enable_shared_with_static_runtimes_CXX=no
  11139. # Source file extension for C++ test sources.
  11140. ac_ext=cpp
  11141. # Object file extension for compiled C++ test sources.
  11142. objext=o
  11143. objext_CXX=$objext
  11144. # No sense in running all these tests if we already determined that
  11145. # the CXX compiler isn't working. Some variables (like enable_shared)
  11146. # are currently assumed to apply to all compilers on this platform,
  11147. # and will be corrupted by setting them based on a non-working compiler.
  11148. if test "$_lt_caught_CXX_error" != yes; then
  11149. # Code to be used in simple compile tests
  11150. lt_simple_compile_test_code="int some_variable = 0;"
  11151. # Code to be used in simple link tests
  11152. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  11153. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11154. # If no C compiler was specified, use CC.
  11155. LTCC=${LTCC-"$CC"}
  11156. # If no C compiler flags were specified, use CFLAGS.
  11157. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11158. # Allow CC to be a program name with arguments.
  11159. compiler=$CC
  11160. # save warnings/boilerplate of simple test code
  11161. ac_outfile=conftest.$ac_objext
  11162. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11163. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11164. _lt_compiler_boilerplate=`cat conftest.err`
  11165. $RM conftest*
  11166. ac_outfile=conftest.$ac_objext
  11167. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11168. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11169. _lt_linker_boilerplate=`cat conftest.err`
  11170. $RM -r conftest*
  11171. # Allow CC to be a program name with arguments.
  11172. lt_save_CC=$CC
  11173. lt_save_LD=$LD
  11174. lt_save_GCC=$GCC
  11175. GCC=$GXX
  11176. lt_save_with_gnu_ld=$with_gnu_ld
  11177. lt_save_path_LD=$lt_cv_path_LD
  11178. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11179. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11180. else
  11181. $as_unset lt_cv_prog_gnu_ld
  11182. fi
  11183. if test -n "${lt_cv_path_LDCXX+set}"; then
  11184. lt_cv_path_LD=$lt_cv_path_LDCXX
  11185. else
  11186. $as_unset lt_cv_path_LD
  11187. fi
  11188. test -z "${LDCXX+set}" || LD=$LDCXX
  11189. CC=${CXX-"c++"}
  11190. compiler=$CC
  11191. compiler_CXX=$CC
  11192. for cc_temp in $compiler""; do
  11193. case $cc_temp in
  11194. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11195. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11196. \-*) ;;
  11197. *) break;;
  11198. esac
  11199. done
  11200. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  11201. if test -n "$compiler"; then
  11202. # We don't want -fno-exception when compiling C++ code, so set the
  11203. # no_builtin_flag separately
  11204. if test "$GXX" = yes; then
  11205. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11206. else
  11207. lt_prog_compiler_no_builtin_flag_CXX=
  11208. fi
  11209. if test "$GXX" = yes; then
  11210. # Set up default GNU C++ configuration
  11211. # Check whether --with-gnu-ld was given.
  11212. if test "${with_gnu_ld+set}" = set; then
  11213. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11214. else
  11215. with_gnu_ld=no
  11216. fi
  11217. ac_prog=ld
  11218. if test "$GCC" = yes; then
  11219. # Check if gcc -print-prog-name=ld gives a path.
  11220. { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  11221. $as_echo_n "checking for ld used by $CC... " >&6; }
  11222. case $host in
  11223. *-*-mingw*)
  11224. # gcc leaves a trailing carriage return which upsets mingw
  11225. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11226. *)
  11227. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11228. esac
  11229. case $ac_prog in
  11230. # Accept absolute paths.
  11231. [\\/]* | ?:[\\/]*)
  11232. re_direlt='/[^/][^/]*/\.\./'
  11233. # Canonicalize the pathname of ld
  11234. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11235. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11236. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11237. done
  11238. test -z "$LD" && LD="$ac_prog"
  11239. ;;
  11240. "")
  11241. # If it fails, then pretend we aren't using GCC.
  11242. ac_prog=ld
  11243. ;;
  11244. *)
  11245. # If it is relative, then search for the first ld in PATH.
  11246. with_gnu_ld=unknown
  11247. ;;
  11248. esac
  11249. elif test "$with_gnu_ld" = yes; then
  11250. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  11251. $as_echo_n "checking for GNU ld... " >&6; }
  11252. else
  11253. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  11254. $as_echo_n "checking for non-GNU ld... " >&6; }
  11255. fi
  11256. if test "${lt_cv_path_LD+set}" = set; then
  11257. $as_echo_n "(cached) " >&6
  11258. else
  11259. if test -z "$LD"; then
  11260. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11261. for ac_dir in $PATH; do
  11262. IFS="$lt_save_ifs"
  11263. test -z "$ac_dir" && ac_dir=.
  11264. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11265. lt_cv_path_LD="$ac_dir/$ac_prog"
  11266. # Check to see if the program is GNU ld. I'd rather use --version,
  11267. # but apparently some variants of GNU ld only accept -v.
  11268. # Break only if it was the GNU/non-GNU ld that we prefer.
  11269. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11270. *GNU* | *'with BFD'*)
  11271. test "$with_gnu_ld" != no && break
  11272. ;;
  11273. *)
  11274. test "$with_gnu_ld" != yes && break
  11275. ;;
  11276. esac
  11277. fi
  11278. done
  11279. IFS="$lt_save_ifs"
  11280. else
  11281. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11282. fi
  11283. fi
  11284. LD="$lt_cv_path_LD"
  11285. if test -n "$LD"; then
  11286. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  11287. $as_echo "$LD" >&6; }
  11288. else
  11289. { $as_echo "$as_me:$LINENO: result: no" >&5
  11290. $as_echo "no" >&6; }
  11291. fi
  11292. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  11293. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  11294. { (exit 1); exit 1; }; }
  11295. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  11296. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11297. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  11298. $as_echo_n "(cached) " >&6
  11299. else
  11300. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11301. case `$LD -v 2>&1 </dev/null` in
  11302. *GNU* | *'with BFD'*)
  11303. lt_cv_prog_gnu_ld=yes
  11304. ;;
  11305. *)
  11306. lt_cv_prog_gnu_ld=no
  11307. ;;
  11308. esac
  11309. fi
  11310. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  11311. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11312. with_gnu_ld=$lt_cv_prog_gnu_ld
  11313. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11314. # archiving commands below assume that GNU ld is being used.
  11315. if test "$with_gnu_ld" = yes; then
  11316. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11317. 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'
  11318. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11319. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11320. # If archive_cmds runs LD, not CC, wlarc should be empty
  11321. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11322. # investigate it a little bit more. (MM)
  11323. wlarc='${wl}'
  11324. # ancient GNU ld didn't support --whole-archive et. al.
  11325. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11326. $GREP 'no-whole-archive' > /dev/null; then
  11327. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11328. else
  11329. whole_archive_flag_spec_CXX=
  11330. fi
  11331. else
  11332. with_gnu_ld=no
  11333. wlarc=
  11334. # A generic and very simple default shared library creation
  11335. # command for GNU C++ for the case where it uses the native
  11336. # linker, instead of GNU ld. If possible, this setting should
  11337. # overridden to take advantage of the native linker features on
  11338. # the platform it is being used on.
  11339. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11340. fi
  11341. # Commands to make compiler produce verbose output that lists
  11342. # what "hidden" libraries, object files and flags are used when
  11343. # linking a shared library.
  11344. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  11345. else
  11346. GXX=no
  11347. with_gnu_ld=no
  11348. wlarc=
  11349. fi
  11350. # PORTME: fill in a description of your system's C++ link characteristics
  11351. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11352. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11353. ld_shlibs_CXX=yes
  11354. case $host_os in
  11355. aix3*)
  11356. # FIXME: insert proper C++ library support
  11357. ld_shlibs_CXX=no
  11358. ;;
  11359. aix[4-9]*)
  11360. if test "$host_cpu" = ia64; then
  11361. # On IA64, the linker does run time linking by default, so we don't
  11362. # have to do anything special.
  11363. aix_use_runtimelinking=no
  11364. exp_sym_flag='-Bexport'
  11365. no_entry_flag=""
  11366. else
  11367. aix_use_runtimelinking=no
  11368. # Test if we are trying to use run time linking or normal
  11369. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11370. # need to do runtime linking.
  11371. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11372. for ld_flag in $LDFLAGS; do
  11373. case $ld_flag in
  11374. *-brtl*)
  11375. aix_use_runtimelinking=yes
  11376. break
  11377. ;;
  11378. esac
  11379. done
  11380. ;;
  11381. esac
  11382. exp_sym_flag='-bexport'
  11383. no_entry_flag='-bnoentry'
  11384. fi
  11385. # When large executables or shared objects are built, AIX ld can
  11386. # have problems creating the table of contents. If linking a library
  11387. # or program results in "error TOC overflow" add -mminimal-toc to
  11388. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11389. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11390. archive_cmds_CXX=''
  11391. hardcode_direct_CXX=yes
  11392. hardcode_direct_absolute_CXX=yes
  11393. hardcode_libdir_separator_CXX=':'
  11394. link_all_deplibs_CXX=yes
  11395. file_list_spec_CXX='${wl}-f,'
  11396. if test "$GXX" = yes; then
  11397. case $host_os in aix4.[012]|aix4.[012].*)
  11398. # We only want to do this on AIX 4.2 and lower, the check
  11399. # below for broken collect2 doesn't work under 4.3+
  11400. collect2name=`${CC} -print-prog-name=collect2`
  11401. if test -f "$collect2name" &&
  11402. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11403. then
  11404. # We have reworked collect2
  11405. :
  11406. else
  11407. # We have old collect2
  11408. hardcode_direct_CXX=unsupported
  11409. # It fails to find uninstalled libraries when the uninstalled
  11410. # path is not listed in the libpath. Setting hardcode_minus_L
  11411. # to unsupported forces relinking
  11412. hardcode_minus_L_CXX=yes
  11413. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11414. hardcode_libdir_separator_CXX=
  11415. fi
  11416. esac
  11417. shared_flag='-shared'
  11418. if test "$aix_use_runtimelinking" = yes; then
  11419. shared_flag="$shared_flag "'${wl}-G'
  11420. fi
  11421. else
  11422. # not using gcc
  11423. if test "$host_cpu" = ia64; then
  11424. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11425. # chokes on -Wl,-G. The following line is correct:
  11426. shared_flag='-G'
  11427. else
  11428. if test "$aix_use_runtimelinking" = yes; then
  11429. shared_flag='${wl}-G'
  11430. else
  11431. shared_flag='${wl}-bM:SRE'
  11432. fi
  11433. fi
  11434. fi
  11435. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11436. # It seems that -bexpall does not export symbols beginning with
  11437. # underscore (_), so it is better to generate a list of symbols to
  11438. # export.
  11439. always_export_symbols_CXX=yes
  11440. if test "$aix_use_runtimelinking" = yes; then
  11441. # Warning - without using the other runtime loading flags (-brtl),
  11442. # -berok will link without error, but may produce a broken library.
  11443. allow_undefined_flag_CXX='-berok'
  11444. # Determine the default libpath from the value encoded in an empty
  11445. # executable.
  11446. cat >conftest.$ac_ext <<_ACEOF
  11447. /* confdefs.h. */
  11448. _ACEOF
  11449. cat confdefs.h >>conftest.$ac_ext
  11450. cat >>conftest.$ac_ext <<_ACEOF
  11451. /* end confdefs.h. */
  11452. int
  11453. main ()
  11454. {
  11455. ;
  11456. return 0;
  11457. }
  11458. _ACEOF
  11459. rm -f conftest.$ac_objext conftest$ac_exeext
  11460. if { (ac_try="$ac_link"
  11461. case "(($ac_try" in
  11462. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11463. *) ac_try_echo=$ac_try;;
  11464. esac
  11465. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11466. $as_echo "$ac_try_echo") >&5
  11467. (eval "$ac_link") 2>conftest.er1
  11468. ac_status=$?
  11469. grep -v '^ *+' conftest.er1 >conftest.err
  11470. rm -f conftest.er1
  11471. cat conftest.err >&5
  11472. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11473. (exit $ac_status); } && {
  11474. test -z "$ac_cxx_werror_flag" ||
  11475. test ! -s conftest.err
  11476. } && test -s conftest$ac_exeext && {
  11477. test "$cross_compiling" = yes ||
  11478. $as_test_x conftest$ac_exeext
  11479. }; then
  11480. lt_aix_libpath_sed='
  11481. /Import File Strings/,/^$/ {
  11482. /^0/ {
  11483. s/^0 *\(.*\)$/\1/
  11484. p
  11485. }
  11486. }'
  11487. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11488. # Check for a 64-bit object if we didn't find anything.
  11489. if test -z "$aix_libpath"; then
  11490. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11491. fi
  11492. else
  11493. $as_echo "$as_me: failed program was:" >&5
  11494. sed 's/^/| /' conftest.$ac_ext >&5
  11495. fi
  11496. rm -rf conftest.dSYM
  11497. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11498. conftest$ac_exeext conftest.$ac_ext
  11499. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11500. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11501. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  11502. else
  11503. if test "$host_cpu" = ia64; then
  11504. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11505. allow_undefined_flag_CXX="-z nodefs"
  11506. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  11507. else
  11508. # Determine the default libpath from the value encoded in an
  11509. # empty executable.
  11510. cat >conftest.$ac_ext <<_ACEOF
  11511. /* confdefs.h. */
  11512. _ACEOF
  11513. cat confdefs.h >>conftest.$ac_ext
  11514. cat >>conftest.$ac_ext <<_ACEOF
  11515. /* end confdefs.h. */
  11516. int
  11517. main ()
  11518. {
  11519. ;
  11520. return 0;
  11521. }
  11522. _ACEOF
  11523. rm -f conftest.$ac_objext conftest$ac_exeext
  11524. if { (ac_try="$ac_link"
  11525. case "(($ac_try" in
  11526. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11527. *) ac_try_echo=$ac_try;;
  11528. esac
  11529. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11530. $as_echo "$ac_try_echo") >&5
  11531. (eval "$ac_link") 2>conftest.er1
  11532. ac_status=$?
  11533. grep -v '^ *+' conftest.er1 >conftest.err
  11534. rm -f conftest.er1
  11535. cat conftest.err >&5
  11536. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11537. (exit $ac_status); } && {
  11538. test -z "$ac_cxx_werror_flag" ||
  11539. test ! -s conftest.err
  11540. } && test -s conftest$ac_exeext && {
  11541. test "$cross_compiling" = yes ||
  11542. $as_test_x conftest$ac_exeext
  11543. }; then
  11544. lt_aix_libpath_sed='
  11545. /Import File Strings/,/^$/ {
  11546. /^0/ {
  11547. s/^0 *\(.*\)$/\1/
  11548. p
  11549. }
  11550. }'
  11551. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11552. # Check for a 64-bit object if we didn't find anything.
  11553. if test -z "$aix_libpath"; then
  11554. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11555. fi
  11556. else
  11557. $as_echo "$as_me: failed program was:" >&5
  11558. sed 's/^/| /' conftest.$ac_ext >&5
  11559. fi
  11560. rm -rf conftest.dSYM
  11561. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11562. conftest$ac_exeext conftest.$ac_ext
  11563. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11564. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11565. # Warning - without using the other run time loading flags,
  11566. # -berok will link without error, but may produce a broken library.
  11567. no_undefined_flag_CXX=' ${wl}-bernotok'
  11568. allow_undefined_flag_CXX=' ${wl}-berok'
  11569. # Exported symbols can be pulled into shared objects from archives
  11570. whole_archive_flag_spec_CXX='$convenience'
  11571. archive_cmds_need_lc_CXX=yes
  11572. # This is similar to how AIX traditionally builds its shared
  11573. # libraries.
  11574. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  11575. fi
  11576. fi
  11577. ;;
  11578. beos*)
  11579. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11580. allow_undefined_flag_CXX=unsupported
  11581. # Joseph Beckenbach <[email protected]> says some releases of gcc
  11582. # support --undefined. This deserves some investigation. FIXME
  11583. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11584. else
  11585. ld_shlibs_CXX=no
  11586. fi
  11587. ;;
  11588. chorus*)
  11589. case $cc_basename in
  11590. *)
  11591. # FIXME: insert proper C++ library support
  11592. ld_shlibs_CXX=no
  11593. ;;
  11594. esac
  11595. ;;
  11596. cygwin* | mingw* | pw32* | cegcc*)
  11597. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11598. # as there is no search path for DLLs.
  11599. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11600. allow_undefined_flag_CXX=unsupported
  11601. always_export_symbols_CXX=no
  11602. enable_shared_with_static_runtimes_CXX=yes
  11603. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11604. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11605. # If the export-symbols file already is a .def file (1st line
  11606. # is EXPORTS), use it as is; otherwise, prepend...
  11607. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11608. cp $export_symbols $output_objdir/$soname.def;
  11609. else
  11610. echo EXPORTS > $output_objdir/$soname.def;
  11611. cat $export_symbols >> $output_objdir/$soname.def;
  11612. fi~
  11613. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11614. else
  11615. ld_shlibs_CXX=no
  11616. fi
  11617. ;;
  11618. darwin* | rhapsody*)
  11619. archive_cmds_need_lc_CXX=no
  11620. hardcode_direct_CXX=no
  11621. hardcode_automatic_CXX=yes
  11622. hardcode_shlibpath_var_CXX=unsupported
  11623. whole_archive_flag_spec_CXX=''
  11624. link_all_deplibs_CXX=yes
  11625. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11626. case $cc_basename in
  11627. ifort*) _lt_dar_can_shared=yes ;;
  11628. *) _lt_dar_can_shared=$GCC ;;
  11629. esac
  11630. if test "$_lt_dar_can_shared" = "yes"; then
  11631. output_verbose_link_cmd=echo
  11632. archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  11633. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11634. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  11635. module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  11636. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11637. archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  11638. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  11639. fi
  11640. else
  11641. ld_shlibs_CXX=no
  11642. fi
  11643. ;;
  11644. dgux*)
  11645. case $cc_basename in
  11646. ec++*)
  11647. # FIXME: insert proper C++ library support
  11648. ld_shlibs_CXX=no
  11649. ;;
  11650. ghcx*)
  11651. # Green Hills C++ Compiler
  11652. # FIXME: insert proper C++ library support
  11653. ld_shlibs_CXX=no
  11654. ;;
  11655. *)
  11656. # FIXME: insert proper C++ library support
  11657. ld_shlibs_CXX=no
  11658. ;;
  11659. esac
  11660. ;;
  11661. freebsd[12]*)
  11662. # C++ shared libraries reported to be fairly broken before
  11663. # switch to ELF
  11664. ld_shlibs_CXX=no
  11665. ;;
  11666. freebsd-elf*)
  11667. archive_cmds_need_lc_CXX=no
  11668. ;;
  11669. freebsd* | dragonfly*)
  11670. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11671. # conventions
  11672. ld_shlibs_CXX=yes
  11673. ;;
  11674. gnu*)
  11675. ;;
  11676. hpux9*)
  11677. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11678. hardcode_libdir_separator_CXX=:
  11679. export_dynamic_flag_spec_CXX='${wl}-E'
  11680. hardcode_direct_CXX=yes
  11681. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11682. # but as the default
  11683. # location of the library.
  11684. case $cc_basename in
  11685. CC*)
  11686. # FIXME: insert proper C++ library support
  11687. ld_shlibs_CXX=no
  11688. ;;
  11689. aCC*)
  11690. 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'
  11691. # Commands to make compiler produce verbose output that lists
  11692. # what "hidden" libraries, object files and flags are used when
  11693. # linking a shared library.
  11694. #
  11695. # There doesn't appear to be a way to prevent this compiler from
  11696. # explicitly linking system object files so we need to strip them
  11697. # from the output so that they don't get included in the library
  11698. # dependencies.
  11699. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  11700. ;;
  11701. *)
  11702. if test "$GXX" = yes; then
  11703. 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'
  11704. else
  11705. # FIXME: insert proper C++ library support
  11706. ld_shlibs_CXX=no
  11707. fi
  11708. ;;
  11709. esac
  11710. ;;
  11711. hpux10*|hpux11*)
  11712. if test $with_gnu_ld = no; then
  11713. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11714. hardcode_libdir_separator_CXX=:
  11715. case $host_cpu in
  11716. hppa*64*|ia64*)
  11717. ;;
  11718. *)
  11719. export_dynamic_flag_spec_CXX='${wl}-E'
  11720. ;;
  11721. esac
  11722. fi
  11723. case $host_cpu in
  11724. hppa*64*|ia64*)
  11725. hardcode_direct_CXX=no
  11726. hardcode_shlibpath_var_CXX=no
  11727. ;;
  11728. *)
  11729. hardcode_direct_CXX=yes
  11730. hardcode_direct_absolute_CXX=yes
  11731. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11732. # but as the default
  11733. # location of the library.
  11734. ;;
  11735. esac
  11736. case $cc_basename in
  11737. CC*)
  11738. # FIXME: insert proper C++ library support
  11739. ld_shlibs_CXX=no
  11740. ;;
  11741. aCC*)
  11742. case $host_cpu in
  11743. hppa*64*)
  11744. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11745. ;;
  11746. ia64*)
  11747. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11748. ;;
  11749. *)
  11750. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11751. ;;
  11752. esac
  11753. # Commands to make compiler produce verbose output that lists
  11754. # what "hidden" libraries, object files and flags are used when
  11755. # linking a shared library.
  11756. #
  11757. # There doesn't appear to be a way to prevent this compiler from
  11758. # explicitly linking system object files so we need to strip them
  11759. # from the output so that they don't get included in the library
  11760. # dependencies.
  11761. 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 "X$list" | $Xsed'
  11762. ;;
  11763. *)
  11764. if test "$GXX" = yes; then
  11765. if test $with_gnu_ld = no; then
  11766. case $host_cpu in
  11767. hppa*64*)
  11768. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11769. ;;
  11770. ia64*)
  11771. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11772. ;;
  11773. *)
  11774. 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'
  11775. ;;
  11776. esac
  11777. fi
  11778. else
  11779. # FIXME: insert proper C++ library support
  11780. ld_shlibs_CXX=no
  11781. fi
  11782. ;;
  11783. esac
  11784. ;;
  11785. interix[3-9]*)
  11786. hardcode_direct_CXX=no
  11787. hardcode_shlibpath_var_CXX=no
  11788. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11789. export_dynamic_flag_spec_CXX='${wl}-E'
  11790. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11791. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11792. # default) and relocated if they conflict, which is a slow very memory
  11793. # consuming and fragmenting process. To avoid this, we pick a random,
  11794. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11795. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11796. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  11797. archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  11798. ;;
  11799. irix5* | irix6*)
  11800. case $cc_basename in
  11801. CC*)
  11802. # SGI C++
  11803. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  11804. # Archives containing C++ object files must be created using
  11805. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11806. # necessary to make sure instantiated templates are included
  11807. # in the archive.
  11808. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11809. ;;
  11810. *)
  11811. if test "$GXX" = yes; then
  11812. if test "$with_gnu_ld" = no; then
  11813. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11814. else
  11815. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
  11816. fi
  11817. fi
  11818. link_all_deplibs_CXX=yes
  11819. ;;
  11820. esac
  11821. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11822. hardcode_libdir_separator_CXX=:
  11823. inherit_rpath_CXX=yes
  11824. ;;
  11825. linux* | k*bsd*-gnu)
  11826. case $cc_basename in
  11827. KCC*)
  11828. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11829. # KCC will only create a shared library if the output file
  11830. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11831. # to its proper name (with version) after linking.
  11832. 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'
  11833. 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'
  11834. # Commands to make compiler produce verbose output that lists
  11835. # what "hidden" libraries, object files and flags are used when
  11836. # linking a shared library.
  11837. #
  11838. # There doesn't appear to be a way to prevent this compiler from
  11839. # explicitly linking system object files so we need to strip them
  11840. # from the output so that they don't get included in the library
  11841. # dependencies.
  11842. 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 "X$list" | $Xsed'
  11843. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11844. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11845. # Archives containing C++ object files must be created using
  11846. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11847. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11848. ;;
  11849. icpc* | ecpc* )
  11850. # Intel C++
  11851. with_gnu_ld=yes
  11852. # version 8.0 and above of icpc choke on multiply defined symbols
  11853. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11854. # earlier do not add the objects themselves.
  11855. case `$CC -V 2>&1` in
  11856. *"Version 7."*)
  11857. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11858. 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'
  11859. ;;
  11860. *) # Version 8.0 or newer
  11861. tmp_idyn=
  11862. case $host_cpu in
  11863. ia64*) tmp_idyn=' -i_dynamic';;
  11864. esac
  11865. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11866. 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'
  11867. ;;
  11868. esac
  11869. archive_cmds_need_lc_CXX=no
  11870. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11871. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11872. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11873. ;;
  11874. pgCC* | pgcpp*)
  11875. # Portland Group C++ compiler
  11876. case `$CC -V` in
  11877. *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
  11878. prelink_cmds_CXX='tpldir=Template.dir~
  11879. rm -rf $tpldir~
  11880. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11881. compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  11882. old_archive_cmds_CXX='tpldir=Template.dir~
  11883. rm -rf $tpldir~
  11884. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11885. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  11886. $RANLIB $oldlib'
  11887. archive_cmds_CXX='tpldir=Template.dir~
  11888. rm -rf $tpldir~
  11889. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11890. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11891. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11892. rm -rf $tpldir~
  11893. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11894. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11895. ;;
  11896. *) # Version 6 will use weak symbols
  11897. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11898. 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'
  11899. ;;
  11900. esac
  11901. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11902. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11903. 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'
  11904. ;;
  11905. cxx*)
  11906. # Compaq C++
  11907. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11908. 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'
  11909. runpath_var=LD_RUN_PATH
  11910. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11911. hardcode_libdir_separator_CXX=:
  11912. # Commands to make compiler produce verbose output that lists
  11913. # what "hidden" libraries, object files and flags are used when
  11914. # linking a shared library.
  11915. #
  11916. # There doesn't appear to be a way to prevent this compiler from
  11917. # explicitly linking system object files so we need to strip them
  11918. # from the output so that they don't get included in the library
  11919. # dependencies.
  11920. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
  11921. ;;
  11922. xl*)
  11923. # IBM XL 8.0 on PPC, with GNU ld
  11924. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11925. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11926. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11927. if test "x$supports_anon_versioning" = xyes; then
  11928. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11929. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11930. echo "local: *; };" >> $output_objdir/$libname.ver~
  11931. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11932. fi
  11933. ;;
  11934. *)
  11935. case `$CC -V 2>&1 | sed 5q` in
  11936. *Sun\ C*)
  11937. # Sun C++ 5.9
  11938. no_undefined_flag_CXX=' -zdefs'
  11939. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11940. archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  11941. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11942. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  11943. compiler_needs_object_CXX=yes
  11944. # Not sure whether something based on
  11945. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11946. # would be better.
  11947. output_verbose_link_cmd='echo'
  11948. # Archives containing C++ object files must be created using
  11949. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11950. # necessary to make sure instantiated templates are included
  11951. # in the archive.
  11952. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11953. ;;
  11954. esac
  11955. ;;
  11956. esac
  11957. ;;
  11958. lynxos*)
  11959. # FIXME: insert proper C++ library support
  11960. ld_shlibs_CXX=no
  11961. ;;
  11962. m88k*)
  11963. # FIXME: insert proper C++ library support
  11964. ld_shlibs_CXX=no
  11965. ;;
  11966. mvs*)
  11967. case $cc_basename in
  11968. cxx*)
  11969. # FIXME: insert proper C++ library support
  11970. ld_shlibs_CXX=no
  11971. ;;
  11972. *)
  11973. # FIXME: insert proper C++ library support
  11974. ld_shlibs_CXX=no
  11975. ;;
  11976. esac
  11977. ;;
  11978. netbsd*)
  11979. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11980. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11981. wlarc=
  11982. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11983. hardcode_direct_CXX=yes
  11984. hardcode_shlibpath_var_CXX=no
  11985. fi
  11986. # Workaround some broken pre-1.5 toolchains
  11987. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11988. ;;
  11989. *nto* | *qnx*)
  11990. ld_shlibs_CXX=yes
  11991. ;;
  11992. openbsd2*)
  11993. # C++ shared libraries are fairly broken
  11994. ld_shlibs_CXX=no
  11995. ;;
  11996. openbsd*)
  11997. if test -f /usr/libexec/ld.so; then
  11998. hardcode_direct_CXX=yes
  11999. hardcode_shlibpath_var_CXX=no
  12000. hardcode_direct_absolute_CXX=yes
  12001. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12002. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12003. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12004. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  12005. export_dynamic_flag_spec_CXX='${wl}-E'
  12006. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12007. fi
  12008. output_verbose_link_cmd=echo
  12009. else
  12010. ld_shlibs_CXX=no
  12011. fi
  12012. ;;
  12013. osf3* | osf4* | osf5*)
  12014. case $cc_basename in
  12015. KCC*)
  12016. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12017. # KCC will only create a shared library if the output file
  12018. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12019. # to its proper name (with version) after linking.
  12020. 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'
  12021. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12022. hardcode_libdir_separator_CXX=:
  12023. # Archives containing C++ object files must be created using
  12024. # the KAI C++ compiler.
  12025. case $host in
  12026. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  12027. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  12028. esac
  12029. ;;
  12030. RCC*)
  12031. # Rational C++ 2.4.1
  12032. # FIXME: insert proper C++ library support
  12033. ld_shlibs_CXX=no
  12034. ;;
  12035. cxx*)
  12036. case $host in
  12037. osf3*)
  12038. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  12039. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  12040. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12041. ;;
  12042. *)
  12043. allow_undefined_flag_CXX=' -expect_unresolved \*'
  12044. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  12045. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  12046. echo "-hidden">> $lib.exp~
  12047. $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
  12048. $RM $lib.exp'
  12049. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12050. ;;
  12051. esac
  12052. hardcode_libdir_separator_CXX=:
  12053. # Commands to make compiler produce verbose output that lists
  12054. # what "hidden" libraries, object files and flags are used when
  12055. # linking a shared library.
  12056. #
  12057. # There doesn't appear to be a way to prevent this compiler from
  12058. # explicitly linking system object files so we need to strip them
  12059. # from the output so that they don't get included in the library
  12060. # dependencies.
  12061. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
  12062. ;;
  12063. *)
  12064. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12065. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  12066. case $host in
  12067. osf3*)
  12068. 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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12069. ;;
  12070. *)
  12071. 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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12072. ;;
  12073. esac
  12074. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12075. hardcode_libdir_separator_CXX=:
  12076. # Commands to make compiler produce verbose output that lists
  12077. # what "hidden" libraries, object files and flags are used when
  12078. # linking a shared library.
  12079. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  12080. else
  12081. # FIXME: insert proper C++ library support
  12082. ld_shlibs_CXX=no
  12083. fi
  12084. ;;
  12085. esac
  12086. ;;
  12087. psos*)
  12088. # FIXME: insert proper C++ library support
  12089. ld_shlibs_CXX=no
  12090. ;;
  12091. sunos4*)
  12092. case $cc_basename in
  12093. CC*)
  12094. # Sun C++ 4.x
  12095. # FIXME: insert proper C++ library support
  12096. ld_shlibs_CXX=no
  12097. ;;
  12098. lcc*)
  12099. # Lucid
  12100. # FIXME: insert proper C++ library support
  12101. ld_shlibs_CXX=no
  12102. ;;
  12103. *)
  12104. # FIXME: insert proper C++ library support
  12105. ld_shlibs_CXX=no
  12106. ;;
  12107. esac
  12108. ;;
  12109. solaris*)
  12110. case $cc_basename in
  12111. CC*)
  12112. # Sun C++ 4.2, 5.x and Centerline C++
  12113. archive_cmds_need_lc_CXX=yes
  12114. no_undefined_flag_CXX=' -zdefs'
  12115. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12116. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12117. $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12118. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12119. hardcode_shlibpath_var_CXX=no
  12120. case $host_os in
  12121. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12122. *)
  12123. # The compiler driver will combine and reorder linker options,
  12124. # but understands `-z linker_flag'.
  12125. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12126. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  12127. ;;
  12128. esac
  12129. link_all_deplibs_CXX=yes
  12130. output_verbose_link_cmd='echo'
  12131. # Archives containing C++ object files must be created using
  12132. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12133. # necessary to make sure instantiated templates are included
  12134. # in the archive.
  12135. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12136. ;;
  12137. gcx*)
  12138. # Green Hills C++ Compiler
  12139. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12140. # The C++ compiler must be used to create the archive.
  12141. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12142. ;;
  12143. *)
  12144. # GNU C++ compiler with Solaris linker
  12145. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12146. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  12147. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12148. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12149. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12150. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12151. # Commands to make compiler produce verbose output that lists
  12152. # what "hidden" libraries, object files and flags are used when
  12153. # linking a shared library.
  12154. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  12155. else
  12156. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  12157. # platform.
  12158. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12159. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12160. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12161. # Commands to make compiler produce verbose output that lists
  12162. # what "hidden" libraries, object files and flags are used when
  12163. # linking a shared library.
  12164. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  12165. fi
  12166. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  12167. case $host_os in
  12168. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12169. *)
  12170. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  12171. ;;
  12172. esac
  12173. fi
  12174. ;;
  12175. esac
  12176. ;;
  12177. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12178. no_undefined_flag_CXX='${wl}-z,text'
  12179. archive_cmds_need_lc_CXX=no
  12180. hardcode_shlibpath_var_CXX=no
  12181. runpath_var='LD_RUN_PATH'
  12182. case $cc_basename in
  12183. CC*)
  12184. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12185. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12186. ;;
  12187. *)
  12188. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12189. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12190. ;;
  12191. esac
  12192. ;;
  12193. sysv5* | sco3.2v5* | sco5v6*)
  12194. # Note: We can NOT use -z defs as we might desire, because we do not
  12195. # link with -lc, and that would cause any symbols used from libc to
  12196. # always be unresolved, which means just about no library would
  12197. # ever link correctly. If we're not using GNU ld we use -z text
  12198. # though, which does catch some bad symbols but isn't as heavy-handed
  12199. # as -z defs.
  12200. no_undefined_flag_CXX='${wl}-z,text'
  12201. allow_undefined_flag_CXX='${wl}-z,nodefs'
  12202. archive_cmds_need_lc_CXX=no
  12203. hardcode_shlibpath_var_CXX=no
  12204. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  12205. hardcode_libdir_separator_CXX=':'
  12206. link_all_deplibs_CXX=yes
  12207. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  12208. runpath_var='LD_RUN_PATH'
  12209. case $cc_basename in
  12210. CC*)
  12211. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12212. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12213. ;;
  12214. *)
  12215. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12216. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12217. ;;
  12218. esac
  12219. ;;
  12220. tandem*)
  12221. case $cc_basename in
  12222. NCC*)
  12223. # NonStop-UX NCC 3.20
  12224. # FIXME: insert proper C++ library support
  12225. ld_shlibs_CXX=no
  12226. ;;
  12227. *)
  12228. # FIXME: insert proper C++ library support
  12229. ld_shlibs_CXX=no
  12230. ;;
  12231. esac
  12232. ;;
  12233. vxworks*)
  12234. # FIXME: insert proper C++ library support
  12235. ld_shlibs_CXX=no
  12236. ;;
  12237. *)
  12238. # FIXME: insert proper C++ library support
  12239. ld_shlibs_CXX=no
  12240. ;;
  12241. esac
  12242. { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  12243. $as_echo "$ld_shlibs_CXX" >&6; }
  12244. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12245. GCC_CXX="$GXX"
  12246. LD_CXX="$LD"
  12247. ## CAVEAT EMPTOR:
  12248. ## There is no encapsulation within the following macros, do not change
  12249. ## the running order or otherwise move them around unless you know exactly
  12250. ## what you are doing...
  12251. # Dependencies to place before and after the object being linked:
  12252. predep_objects_CXX=
  12253. postdep_objects_CXX=
  12254. predeps_CXX=
  12255. postdeps_CXX=
  12256. compiler_lib_search_path_CXX=
  12257. cat > conftest.$ac_ext <<_LT_EOF
  12258. class Foo
  12259. {
  12260. public:
  12261. Foo (void) { a = 0; }
  12262. private:
  12263. int a;
  12264. };
  12265. _LT_EOF
  12266. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12267. (eval $ac_compile) 2>&5
  12268. ac_status=$?
  12269. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12270. (exit $ac_status); }; then
  12271. # Parse the compiler output and extract the necessary
  12272. # objects, libraries and library flags.
  12273. # Sentinel used to keep track of whether or not we are before
  12274. # the conftest object file.
  12275. pre_test_object_deps_done=no
  12276. for p in `eval "$output_verbose_link_cmd"`; do
  12277. case $p in
  12278. -L* | -R* | -l*)
  12279. # Some compilers place space between "-{L,R}" and the path.
  12280. # Remove the space.
  12281. if test $p = "-L" ||
  12282. test $p = "-R"; then
  12283. prev=$p
  12284. continue
  12285. else
  12286. prev=
  12287. fi
  12288. if test "$pre_test_object_deps_done" = no; then
  12289. case $p in
  12290. -L* | -R*)
  12291. # Internal compiler library paths should come after those
  12292. # provided the user. The postdeps already come after the
  12293. # user supplied libs so there is no need to process them.
  12294. if test -z "$compiler_lib_search_path_CXX"; then
  12295. compiler_lib_search_path_CXX="${prev}${p}"
  12296. else
  12297. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12298. fi
  12299. ;;
  12300. # The "-l" case would never come before the object being
  12301. # linked, so don't bother handling this case.
  12302. esac
  12303. else
  12304. if test -z "$postdeps_CXX"; then
  12305. postdeps_CXX="${prev}${p}"
  12306. else
  12307. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12308. fi
  12309. fi
  12310. ;;
  12311. *.$objext)
  12312. # This assumes that the test object file only shows up
  12313. # once in the compiler output.
  12314. if test "$p" = "conftest.$objext"; then
  12315. pre_test_object_deps_done=yes
  12316. continue
  12317. fi
  12318. if test "$pre_test_object_deps_done" = no; then
  12319. if test -z "$predep_objects_CXX"; then
  12320. predep_objects_CXX="$p"
  12321. else
  12322. predep_objects_CXX="$predep_objects_CXX $p"
  12323. fi
  12324. else
  12325. if test -z "$postdep_objects_CXX"; then
  12326. postdep_objects_CXX="$p"
  12327. else
  12328. postdep_objects_CXX="$postdep_objects_CXX $p"
  12329. fi
  12330. fi
  12331. ;;
  12332. *) ;; # Ignore the rest.
  12333. esac
  12334. done
  12335. # Clean up.
  12336. rm -f a.out a.exe
  12337. else
  12338. echo "libtool.m4: error: problem compiling CXX test program"
  12339. fi
  12340. $RM -f confest.$objext
  12341. # PORTME: override above test on systems where it is broken
  12342. case $host_os in
  12343. interix[3-9]*)
  12344. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12345. # hack all around it, let's just trust "g++" to DTRT.
  12346. predep_objects_CXX=
  12347. postdep_objects_CXX=
  12348. postdeps_CXX=
  12349. ;;
  12350. linux*)
  12351. case `$CC -V 2>&1 | sed 5q` in
  12352. *Sun\ C*)
  12353. # Sun C++ 5.9
  12354. # The more standards-conforming stlport4 library is
  12355. # incompatible with the Cstd library. Avoid specifying
  12356. # it if it's in CXXFLAGS. Ignore libCrun as
  12357. # -library=stlport4 depends on it.
  12358. case " $CXX $CXXFLAGS " in
  12359. *" -library=stlport4 "*)
  12360. solaris_use_stlport4=yes
  12361. ;;
  12362. esac
  12363. if test "$solaris_use_stlport4" != yes; then
  12364. postdeps_CXX='-library=Cstd -library=Crun'
  12365. fi
  12366. ;;
  12367. esac
  12368. ;;
  12369. solaris*)
  12370. case $cc_basename in
  12371. CC*)
  12372. # The more standards-conforming stlport4 library is
  12373. # incompatible with the Cstd library. Avoid specifying
  12374. # it if it's in CXXFLAGS. Ignore libCrun as
  12375. # -library=stlport4 depends on it.
  12376. case " $CXX $CXXFLAGS " in
  12377. *" -library=stlport4 "*)
  12378. solaris_use_stlport4=yes
  12379. ;;
  12380. esac
  12381. # Adding this requires a known-good setup of shared libraries for
  12382. # Sun compiler versions before 5.6, else PIC objects from an old
  12383. # archive will be linked into the output, leading to subtle bugs.
  12384. if test "$solaris_use_stlport4" != yes; then
  12385. postdeps_CXX='-library=Cstd -library=Crun'
  12386. fi
  12387. ;;
  12388. esac
  12389. ;;
  12390. esac
  12391. case " $postdeps_CXX " in
  12392. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12393. esac
  12394. compiler_lib_search_dirs_CXX=
  12395. if test -n "${compiler_lib_search_path_CXX}"; then
  12396. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12397. fi
  12398. lt_prog_compiler_wl_CXX=
  12399. lt_prog_compiler_pic_CXX=
  12400. lt_prog_compiler_static_CXX=
  12401. { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  12402. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12403. # C++ specific cases for pic, static, wl, etc.
  12404. if test "$GXX" = yes; then
  12405. lt_prog_compiler_wl_CXX='-Wl,'
  12406. lt_prog_compiler_static_CXX='-static'
  12407. case $host_os in
  12408. aix*)
  12409. # All AIX code is PIC.
  12410. if test "$host_cpu" = ia64; then
  12411. # AIX 5 now supports IA64 processor
  12412. lt_prog_compiler_static_CXX='-Bstatic'
  12413. fi
  12414. ;;
  12415. amigaos*)
  12416. case $host_cpu in
  12417. powerpc)
  12418. # see comment about AmigaOS4 .so support
  12419. lt_prog_compiler_pic_CXX='-fPIC'
  12420. ;;
  12421. m68k)
  12422. # FIXME: we need at least 68020 code to build shared libraries, but
  12423. # adding the `-m68020' flag to GCC prevents building anything better,
  12424. # like `-m68040'.
  12425. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12426. ;;
  12427. esac
  12428. ;;
  12429. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12430. # PIC is the default for these OSes.
  12431. ;;
  12432. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12433. # This hack is so that the source file can tell whether it is being
  12434. # built for inclusion in a dll (and should export symbols for example).
  12435. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12436. # (--disable-auto-import) libraries
  12437. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12438. ;;
  12439. darwin* | rhapsody*)
  12440. # PIC is the default on this platform
  12441. # Common symbols not allowed in MH_DYLIB files
  12442. lt_prog_compiler_pic_CXX='-fno-common'
  12443. ;;
  12444. *djgpp*)
  12445. # DJGPP does not support shared libraries at all
  12446. lt_prog_compiler_pic_CXX=
  12447. ;;
  12448. interix[3-9]*)
  12449. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12450. # Instead, we relocate shared libraries at runtime.
  12451. ;;
  12452. sysv4*MP*)
  12453. if test -d /usr/nec; then
  12454. lt_prog_compiler_pic_CXX=-Kconform_pic
  12455. fi
  12456. ;;
  12457. hpux*)
  12458. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12459. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12460. # sets the default TLS model and affects inlining.
  12461. case $host_cpu in
  12462. hppa*64*)
  12463. ;;
  12464. *)
  12465. lt_prog_compiler_pic_CXX='-fPIC'
  12466. ;;
  12467. esac
  12468. ;;
  12469. *qnx* | *nto*)
  12470. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12471. # it will coredump.
  12472. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12473. ;;
  12474. *)
  12475. lt_prog_compiler_pic_CXX='-fPIC'
  12476. ;;
  12477. esac
  12478. else
  12479. case $host_os in
  12480. aix[4-9]*)
  12481. # All AIX code is PIC.
  12482. if test "$host_cpu" = ia64; then
  12483. # AIX 5 now supports IA64 processor
  12484. lt_prog_compiler_static_CXX='-Bstatic'
  12485. else
  12486. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12487. fi
  12488. ;;
  12489. chorus*)
  12490. case $cc_basename in
  12491. cxch68*)
  12492. # Green Hills C++ Compiler
  12493. # _LT_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"
  12494. ;;
  12495. esac
  12496. ;;
  12497. dgux*)
  12498. case $cc_basename in
  12499. ec++*)
  12500. lt_prog_compiler_pic_CXX='-KPIC'
  12501. ;;
  12502. ghcx*)
  12503. # Green Hills C++ Compiler
  12504. lt_prog_compiler_pic_CXX='-pic'
  12505. ;;
  12506. *)
  12507. ;;
  12508. esac
  12509. ;;
  12510. freebsd* | dragonfly*)
  12511. # FreeBSD uses GNU C++
  12512. ;;
  12513. hpux9* | hpux10* | hpux11*)
  12514. case $cc_basename in
  12515. CC*)
  12516. lt_prog_compiler_wl_CXX='-Wl,'
  12517. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12518. if test "$host_cpu" != ia64; then
  12519. lt_prog_compiler_pic_CXX='+Z'
  12520. fi
  12521. ;;
  12522. aCC*)
  12523. lt_prog_compiler_wl_CXX='-Wl,'
  12524. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12525. case $host_cpu in
  12526. hppa*64*|ia64*)
  12527. # +Z the default
  12528. ;;
  12529. *)
  12530. lt_prog_compiler_pic_CXX='+Z'
  12531. ;;
  12532. esac
  12533. ;;
  12534. *)
  12535. ;;
  12536. esac
  12537. ;;
  12538. interix*)
  12539. # This is c89, which is MS Visual C++ (no shared libs)
  12540. # Anyone wants to do a port?
  12541. ;;
  12542. irix5* | irix6* | nonstopux*)
  12543. case $cc_basename in
  12544. CC*)
  12545. lt_prog_compiler_wl_CXX='-Wl,'
  12546. lt_prog_compiler_static_CXX='-non_shared'
  12547. # CC pic flag -KPIC is the default.
  12548. ;;
  12549. *)
  12550. ;;
  12551. esac
  12552. ;;
  12553. linux* | k*bsd*-gnu)
  12554. case $cc_basename in
  12555. KCC*)
  12556. # KAI C++ Compiler
  12557. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12558. lt_prog_compiler_pic_CXX='-fPIC'
  12559. ;;
  12560. ecpc* )
  12561. # old Intel C++ for x86_64 which still supported -KPIC.
  12562. lt_prog_compiler_wl_CXX='-Wl,'
  12563. lt_prog_compiler_pic_CXX='-KPIC'
  12564. lt_prog_compiler_static_CXX='-static'
  12565. ;;
  12566. icpc* )
  12567. # Intel C++, used to be incompatible with GCC.
  12568. # ICC 10 doesn't accept -KPIC any more.
  12569. lt_prog_compiler_wl_CXX='-Wl,'
  12570. lt_prog_compiler_pic_CXX='-fPIC'
  12571. lt_prog_compiler_static_CXX='-static'
  12572. ;;
  12573. pgCC* | pgcpp*)
  12574. # Portland Group C++ compiler
  12575. lt_prog_compiler_wl_CXX='-Wl,'
  12576. lt_prog_compiler_pic_CXX='-fpic'
  12577. lt_prog_compiler_static_CXX='-Bstatic'
  12578. ;;
  12579. cxx*)
  12580. # Compaq C++
  12581. # Make sure the PIC flag is empty. It appears that all Alpha
  12582. # Linux and Compaq Tru64 Unix objects are PIC.
  12583. lt_prog_compiler_pic_CXX=
  12584. lt_prog_compiler_static_CXX='-non_shared'
  12585. ;;
  12586. xlc* | xlC*)
  12587. # IBM XL 8.0 on PPC
  12588. lt_prog_compiler_wl_CXX='-Wl,'
  12589. lt_prog_compiler_pic_CXX='-qpic'
  12590. lt_prog_compiler_static_CXX='-qstaticlink'
  12591. ;;
  12592. *)
  12593. case `$CC -V 2>&1 | sed 5q` in
  12594. *Sun\ C*)
  12595. # Sun C++ 5.9
  12596. lt_prog_compiler_pic_CXX='-KPIC'
  12597. lt_prog_compiler_static_CXX='-Bstatic'
  12598. lt_prog_compiler_wl_CXX='-Qoption ld '
  12599. ;;
  12600. esac
  12601. ;;
  12602. esac
  12603. ;;
  12604. lynxos*)
  12605. ;;
  12606. m88k*)
  12607. ;;
  12608. mvs*)
  12609. case $cc_basename in
  12610. cxx*)
  12611. lt_prog_compiler_pic_CXX='-W c,exportall'
  12612. ;;
  12613. *)
  12614. ;;
  12615. esac
  12616. ;;
  12617. netbsd*)
  12618. ;;
  12619. *qnx* | *nto*)
  12620. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12621. # it will coredump.
  12622. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12623. ;;
  12624. osf3* | osf4* | osf5*)
  12625. case $cc_basename in
  12626. KCC*)
  12627. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12628. ;;
  12629. RCC*)
  12630. # Rational C++ 2.4.1
  12631. lt_prog_compiler_pic_CXX='-pic'
  12632. ;;
  12633. cxx*)
  12634. # Digital/Compaq C++
  12635. lt_prog_compiler_wl_CXX='-Wl,'
  12636. # Make sure the PIC flag is empty. It appears that all Alpha
  12637. # Linux and Compaq Tru64 Unix objects are PIC.
  12638. lt_prog_compiler_pic_CXX=
  12639. lt_prog_compiler_static_CXX='-non_shared'
  12640. ;;
  12641. *)
  12642. ;;
  12643. esac
  12644. ;;
  12645. psos*)
  12646. ;;
  12647. solaris*)
  12648. case $cc_basename in
  12649. CC*)
  12650. # Sun C++ 4.2, 5.x and Centerline C++
  12651. lt_prog_compiler_pic_CXX='-KPIC'
  12652. lt_prog_compiler_static_CXX='-Bstatic'
  12653. lt_prog_compiler_wl_CXX='-Qoption ld '
  12654. ;;
  12655. gcx*)
  12656. # Green Hills C++ Compiler
  12657. lt_prog_compiler_pic_CXX='-PIC'
  12658. ;;
  12659. *)
  12660. ;;
  12661. esac
  12662. ;;
  12663. sunos4*)
  12664. case $cc_basename in
  12665. CC*)
  12666. # Sun C++ 4.x
  12667. lt_prog_compiler_pic_CXX='-pic'
  12668. lt_prog_compiler_static_CXX='-Bstatic'
  12669. ;;
  12670. lcc*)
  12671. # Lucid
  12672. lt_prog_compiler_pic_CXX='-pic'
  12673. ;;
  12674. *)
  12675. ;;
  12676. esac
  12677. ;;
  12678. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12679. case $cc_basename in
  12680. CC*)
  12681. lt_prog_compiler_wl_CXX='-Wl,'
  12682. lt_prog_compiler_pic_CXX='-KPIC'
  12683. lt_prog_compiler_static_CXX='-Bstatic'
  12684. ;;
  12685. esac
  12686. ;;
  12687. tandem*)
  12688. case $cc_basename in
  12689. NCC*)
  12690. # NonStop-UX NCC 3.20
  12691. lt_prog_compiler_pic_CXX='-KPIC'
  12692. ;;
  12693. *)
  12694. ;;
  12695. esac
  12696. ;;
  12697. vxworks*)
  12698. ;;
  12699. *)
  12700. lt_prog_compiler_can_build_shared_CXX=no
  12701. ;;
  12702. esac
  12703. fi
  12704. case $host_os in
  12705. # For platforms which do not support PIC, -DPIC is meaningless:
  12706. *djgpp*)
  12707. lt_prog_compiler_pic_CXX=
  12708. ;;
  12709. *)
  12710. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12711. ;;
  12712. esac
  12713. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  12714. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  12715. #
  12716. # Check to make sure the PIC flag actually works.
  12717. #
  12718. if test -n "$lt_prog_compiler_pic_CXX"; then
  12719. { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12720. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12721. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
  12722. $as_echo_n "(cached) " >&6
  12723. else
  12724. lt_cv_prog_compiler_pic_works_CXX=no
  12725. ac_outfile=conftest.$ac_objext
  12726. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12727. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12728. # Insert the option either (1) after the last *FLAGS variable, or
  12729. # (2) before a word containing "conftest.", or (3) at the end.
  12730. # Note that $ac_compile itself does not contain backslashes and begins
  12731. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12732. # The option is referenced via a variable to avoid confusing sed.
  12733. lt_compile=`echo "$ac_compile" | $SED \
  12734. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12735. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12736. -e 's:$: $lt_compiler_flag:'`
  12737. (eval echo "\"\$as_me:14683: $lt_compile\"" >&5)
  12738. (eval "$lt_compile" 2>conftest.err)
  12739. ac_status=$?
  12740. cat conftest.err >&5
  12741. echo "$as_me:14687: \$? = $ac_status" >&5
  12742. if (exit $ac_status) && test -s "$ac_outfile"; then
  12743. # The compiler can only warn and ignore the option if not recognized
  12744. # So say no if there are warnings other than the usual output.
  12745. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  12746. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12747. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12748. lt_cv_prog_compiler_pic_works_CXX=yes
  12749. fi
  12750. fi
  12751. $RM conftest*
  12752. fi
  12753. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12754. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12755. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12756. case $lt_prog_compiler_pic_CXX in
  12757. "" | " "*) ;;
  12758. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12759. esac
  12760. else
  12761. lt_prog_compiler_pic_CXX=
  12762. lt_prog_compiler_can_build_shared_CXX=no
  12763. fi
  12764. fi
  12765. #
  12766. # Check to make sure the static flag actually works.
  12767. #
  12768. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12769. { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12770. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12771. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
  12772. $as_echo_n "(cached) " >&6
  12773. else
  12774. lt_cv_prog_compiler_static_works_CXX=no
  12775. save_LDFLAGS="$LDFLAGS"
  12776. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12777. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12778. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12779. # The linker can only warn and ignore the option if not recognized
  12780. # So say no if there are warnings
  12781. if test -s conftest.err; then
  12782. # Append any errors to the config.log.
  12783. cat conftest.err 1>&5
  12784. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  12785. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12786. if diff conftest.exp conftest.er2 >/dev/null; then
  12787. lt_cv_prog_compiler_static_works_CXX=yes
  12788. fi
  12789. else
  12790. lt_cv_prog_compiler_static_works_CXX=yes
  12791. fi
  12792. fi
  12793. $RM -r conftest*
  12794. LDFLAGS="$save_LDFLAGS"
  12795. fi
  12796. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12797. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12798. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12799. :
  12800. else
  12801. lt_prog_compiler_static_CXX=
  12802. fi
  12803. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12804. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12805. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  12806. $as_echo_n "(cached) " >&6
  12807. else
  12808. lt_cv_prog_compiler_c_o_CXX=no
  12809. $RM -r conftest 2>/dev/null
  12810. mkdir conftest
  12811. cd conftest
  12812. mkdir out
  12813. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12814. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12815. # Insert the option either (1) after the last *FLAGS variable, or
  12816. # (2) before a word containing "conftest.", or (3) at the end.
  12817. # Note that $ac_compile itself does not contain backslashes and begins
  12818. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12819. lt_compile=`echo "$ac_compile" | $SED \
  12820. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12821. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12822. -e 's:$: $lt_compiler_flag:'`
  12823. (eval echo "\"\$as_me:14782: $lt_compile\"" >&5)
  12824. (eval "$lt_compile" 2>out/conftest.err)
  12825. ac_status=$?
  12826. cat out/conftest.err >&5
  12827. echo "$as_me:14786: \$? = $ac_status" >&5
  12828. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12829. then
  12830. # The compiler can only warn and ignore the option if not recognized
  12831. # So say no if there are warnings
  12832. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12833. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12834. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12835. lt_cv_prog_compiler_c_o_CXX=yes
  12836. fi
  12837. fi
  12838. chmod u+w . 2>&5
  12839. $RM conftest*
  12840. # SGI C++ compiler will create directory out/ii_files/ for
  12841. # template instantiation
  12842. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12843. $RM out/* && rmdir out
  12844. cd ..
  12845. $RM -r conftest
  12846. $RM conftest*
  12847. fi
  12848. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12849. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12850. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12851. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12852. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  12853. $as_echo_n "(cached) " >&6
  12854. else
  12855. lt_cv_prog_compiler_c_o_CXX=no
  12856. $RM -r conftest 2>/dev/null
  12857. mkdir conftest
  12858. cd conftest
  12859. mkdir out
  12860. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12861. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12862. # Insert the option either (1) after the last *FLAGS variable, or
  12863. # (2) before a word containing "conftest.", or (3) at the end.
  12864. # Note that $ac_compile itself does not contain backslashes and begins
  12865. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12866. lt_compile=`echo "$ac_compile" | $SED \
  12867. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12868. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12869. -e 's:$: $lt_compiler_flag:'`
  12870. (eval echo "\"\$as_me:14834: $lt_compile\"" >&5)
  12871. (eval "$lt_compile" 2>out/conftest.err)
  12872. ac_status=$?
  12873. cat out/conftest.err >&5
  12874. echo "$as_me:14838: \$? = $ac_status" >&5
  12875. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12876. then
  12877. # The compiler can only warn and ignore the option if not recognized
  12878. # So say no if there are warnings
  12879. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12880. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12881. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12882. lt_cv_prog_compiler_c_o_CXX=yes
  12883. fi
  12884. fi
  12885. chmod u+w . 2>&5
  12886. $RM conftest*
  12887. # SGI C++ compiler will create directory out/ii_files/ for
  12888. # template instantiation
  12889. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12890. $RM out/* && rmdir out
  12891. cd ..
  12892. $RM -r conftest
  12893. $RM conftest*
  12894. fi
  12895. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12896. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12897. hard_links="nottested"
  12898. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12899. # do not overwrite the value of need_locks provided by the user
  12900. { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  12901. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12902. hard_links=yes
  12903. $RM conftest*
  12904. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12905. touch conftest.a
  12906. ln conftest.a conftest.b 2>&5 || hard_links=no
  12907. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12908. { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  12909. $as_echo "$hard_links" >&6; }
  12910. if test "$hard_links" = no; then
  12911. { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12912. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12913. need_locks=warn
  12914. fi
  12915. else
  12916. need_locks=no
  12917. fi
  12918. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12919. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12920. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12921. case $host_os in
  12922. aix[4-9]*)
  12923. # If we're using GNU nm, then we don't want the "-C" option.
  12924. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12925. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12926. 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'
  12927. else
  12928. 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'
  12929. fi
  12930. ;;
  12931. pw32*)
  12932. export_symbols_cmds_CXX="$ltdll_cmds"
  12933. ;;
  12934. cygwin* | mingw* | cegcc*)
  12935. 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'
  12936. ;;
  12937. *)
  12938. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12939. ;;
  12940. esac
  12941. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12942. { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  12943. $as_echo "$ld_shlibs_CXX" >&6; }
  12944. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12945. with_gnu_ld_CXX=$with_gnu_ld
  12946. #
  12947. # Do we need to explicitly link libc?
  12948. #
  12949. case "x$archive_cmds_need_lc_CXX" in
  12950. x|xyes)
  12951. # Assume -lc should be added
  12952. archive_cmds_need_lc_CXX=yes
  12953. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12954. case $archive_cmds_CXX in
  12955. *'~'*)
  12956. # FIXME: we may have to deal with multi-command sequences.
  12957. ;;
  12958. '$CC '*)
  12959. # Test whether the compiler implicitly links with -lc since on some
  12960. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12961. # to ld, don't add -lc before -lgcc.
  12962. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  12963. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12964. $RM conftest*
  12965. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12966. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12967. (eval $ac_compile) 2>&5
  12968. ac_status=$?
  12969. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12970. (exit $ac_status); } 2>conftest.err; then
  12971. soname=conftest
  12972. lib=conftest
  12973. libobjs=conftest.$ac_objext
  12974. deplibs=
  12975. wl=$lt_prog_compiler_wl_CXX
  12976. pic_flag=$lt_prog_compiler_pic_CXX
  12977. compiler_flags=-v
  12978. linker_flags=-v
  12979. verstring=
  12980. output_objdir=.
  12981. libname=conftest
  12982. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12983. allow_undefined_flag_CXX=
  12984. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
  12985. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12986. ac_status=$?
  12987. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12988. (exit $ac_status); }
  12989. then
  12990. archive_cmds_need_lc_CXX=no
  12991. else
  12992. archive_cmds_need_lc_CXX=yes
  12993. fi
  12994. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12995. else
  12996. cat conftest.err 1>&5
  12997. fi
  12998. $RM conftest*
  12999. { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  13000. $as_echo "$archive_cmds_need_lc_CXX" >&6; }
  13001. ;;
  13002. esac
  13003. fi
  13004. ;;
  13005. esac
  13006. { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  13007. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  13008. library_names_spec=
  13009. libname_spec='lib$name'
  13010. soname_spec=
  13011. shrext_cmds=".so"
  13012. postinstall_cmds=
  13013. postuninstall_cmds=
  13014. finish_cmds=
  13015. finish_eval=
  13016. shlibpath_var=
  13017. shlibpath_overrides_runpath=unknown
  13018. version_type=none
  13019. dynamic_linker="$host_os ld.so"
  13020. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13021. need_lib_prefix=unknown
  13022. hardcode_into_libs=no
  13023. # when you set need_version to no, make sure it does not cause -set_version
  13024. # flags to be left without arguments
  13025. need_version=unknown
  13026. case $host_os in
  13027. aix3*)
  13028. version_type=linux
  13029. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  13030. shlibpath_var=LIBPATH
  13031. # AIX 3 has no versioning support, so we append a major version to the name.
  13032. soname_spec='${libname}${release}${shared_ext}$major'
  13033. ;;
  13034. aix[4-9]*)
  13035. version_type=linux
  13036. need_lib_prefix=no
  13037. need_version=no
  13038. hardcode_into_libs=yes
  13039. if test "$host_cpu" = ia64; then
  13040. # AIX 5 supports IA64
  13041. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  13042. shlibpath_var=LD_LIBRARY_PATH
  13043. else
  13044. # With GCC up to 2.95.x, collect2 would create an import file
  13045. # for dependence libraries. The import file would start with
  13046. # the line `#! .'. This would cause the generated library to
  13047. # depend on `.', always an invalid library. This was fixed in
  13048. # development snapshots of GCC prior to 3.0.
  13049. case $host_os in
  13050. aix4 | aix4.[01] | aix4.[01].*)
  13051. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13052. echo ' yes '
  13053. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  13054. :
  13055. else
  13056. can_build_shared=no
  13057. fi
  13058. ;;
  13059. esac
  13060. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13061. # soname into executable. Probably we can add versioning support to
  13062. # collect2, so additional links can be useful in future.
  13063. if test "$aix_use_runtimelinking" = yes; then
  13064. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13065. # instead of lib<name>.a to let people know that these are not
  13066. # typical AIX shared libraries.
  13067. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13068. else
  13069. # We preserve .a as extension for shared libraries through AIX4.2
  13070. # and later when we are not doing run time linking.
  13071. library_names_spec='${libname}${release}.a $libname.a'
  13072. soname_spec='${libname}${release}${shared_ext}$major'
  13073. fi
  13074. shlibpath_var=LIBPATH
  13075. fi
  13076. ;;
  13077. amigaos*)
  13078. case $host_cpu in
  13079. powerpc)
  13080. # Since July 2007 AmigaOS4 officially supports .so libraries.
  13081. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13082. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13083. ;;
  13084. m68k)
  13085. library_names_spec='$libname.ixlibrary $libname.a'
  13086. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13087. 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'
  13088. ;;
  13089. esac
  13090. ;;
  13091. beos*)
  13092. library_names_spec='${libname}${shared_ext}'
  13093. dynamic_linker="$host_os ld.so"
  13094. shlibpath_var=LIBRARY_PATH
  13095. ;;
  13096. bsdi[45]*)
  13097. version_type=linux
  13098. need_version=no
  13099. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13100. soname_spec='${libname}${release}${shared_ext}$major'
  13101. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13102. shlibpath_var=LD_LIBRARY_PATH
  13103. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13104. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13105. # the default ld.so.conf also contains /usr/contrib/lib and
  13106. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13107. # libtool to hard-code these into programs
  13108. ;;
  13109. cygwin* | mingw* | pw32* | cegcc*)
  13110. version_type=windows
  13111. shrext_cmds=".dll"
  13112. need_version=no
  13113. need_lib_prefix=no
  13114. case $GCC,$host_os in
  13115. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  13116. library_names_spec='$libname.dll.a'
  13117. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13118. postinstall_cmds='base_file=`basename \${file}`~
  13119. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13120. dldir=$destdir/`dirname \$dlpath`~
  13121. test -d \$dldir || mkdir -p \$dldir~
  13122. $install_prog $dir/$dlname \$dldir/$dlname~
  13123. chmod a+x \$dldir/$dlname~
  13124. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13125. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13126. fi'
  13127. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13128. dlpath=$dir/\$dldll~
  13129. $RM \$dlpath'
  13130. shlibpath_overrides_runpath=yes
  13131. case $host_os in
  13132. cygwin*)
  13133. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13134. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13135. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  13136. ;;
  13137. mingw* | cegcc*)
  13138. # MinGW DLLs use traditional 'lib' prefix
  13139. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13140. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13141. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13142. # It is most probably a Windows format PATH printed by
  13143. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  13144. # path with ; separators, and with drive letters. We can handle the
  13145. # drive letters (cygwin fileutils understands them), so leave them,
  13146. # especially as we might pass files found there to a mingw objdump,
  13147. # which wouldn't understand a cygwinified path. Ahh.
  13148. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13149. else
  13150. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13151. fi
  13152. ;;
  13153. pw32*)
  13154. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13155. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13156. ;;
  13157. esac
  13158. ;;
  13159. *)
  13160. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13161. ;;
  13162. esac
  13163. dynamic_linker='Win32 ld.exe'
  13164. # FIXME: first we should search . and the directory the executable is in
  13165. shlibpath_var=PATH
  13166. ;;
  13167. darwin* | rhapsody*)
  13168. dynamic_linker="$host_os dyld"
  13169. version_type=darwin
  13170. need_lib_prefix=no
  13171. need_version=no
  13172. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13173. soname_spec='${libname}${release}${major}$shared_ext'
  13174. shlibpath_overrides_runpath=yes
  13175. shlibpath_var=DYLD_LIBRARY_PATH
  13176. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13177. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13178. ;;
  13179. dgux*)
  13180. version_type=linux
  13181. need_lib_prefix=no
  13182. need_version=no
  13183. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13184. soname_spec='${libname}${release}${shared_ext}$major'
  13185. shlibpath_var=LD_LIBRARY_PATH
  13186. ;;
  13187. freebsd1*)
  13188. dynamic_linker=no
  13189. ;;
  13190. freebsd* | dragonfly*)
  13191. # DragonFly does not have aout. When/if they implement a new
  13192. # versioning mechanism, adjust this.
  13193. if test -x /usr/bin/objformat; then
  13194. objformat=`/usr/bin/objformat`
  13195. else
  13196. case $host_os in
  13197. freebsd[123]*) objformat=aout ;;
  13198. *) objformat=elf ;;
  13199. esac
  13200. fi
  13201. version_type=freebsd-$objformat
  13202. case $version_type in
  13203. freebsd-elf*)
  13204. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13205. need_version=no
  13206. need_lib_prefix=no
  13207. ;;
  13208. freebsd-*)
  13209. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13210. need_version=yes
  13211. ;;
  13212. esac
  13213. shlibpath_var=LD_LIBRARY_PATH
  13214. case $host_os in
  13215. freebsd2*)
  13216. shlibpath_overrides_runpath=yes
  13217. ;;
  13218. freebsd3.[01]* | freebsdelf3.[01]*)
  13219. shlibpath_overrides_runpath=yes
  13220. hardcode_into_libs=yes
  13221. ;;
  13222. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13223. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13224. shlibpath_overrides_runpath=no
  13225. hardcode_into_libs=yes
  13226. ;;
  13227. *) # from 4.6 on, and DragonFly
  13228. shlibpath_overrides_runpath=yes
  13229. hardcode_into_libs=yes
  13230. ;;
  13231. esac
  13232. ;;
  13233. gnu*)
  13234. version_type=linux
  13235. need_lib_prefix=no
  13236. need_version=no
  13237. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13238. soname_spec='${libname}${release}${shared_ext}$major'
  13239. shlibpath_var=LD_LIBRARY_PATH
  13240. hardcode_into_libs=yes
  13241. ;;
  13242. hpux9* | hpux10* | hpux11*)
  13243. # Give a soname corresponding to the major version so that dld.sl refuses to
  13244. # link against other versions.
  13245. version_type=sunos
  13246. need_lib_prefix=no
  13247. need_version=no
  13248. case $host_cpu in
  13249. ia64*)
  13250. shrext_cmds='.so'
  13251. hardcode_into_libs=yes
  13252. dynamic_linker="$host_os dld.so"
  13253. shlibpath_var=LD_LIBRARY_PATH
  13254. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13255. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13256. soname_spec='${libname}${release}${shared_ext}$major'
  13257. if test "X$HPUX_IA64_MODE" = X32; then
  13258. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13259. else
  13260. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13261. fi
  13262. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13263. ;;
  13264. hppa*64*)
  13265. shrext_cmds='.sl'
  13266. hardcode_into_libs=yes
  13267. dynamic_linker="$host_os dld.sl"
  13268. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13269. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13270. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13271. soname_spec='${libname}${release}${shared_ext}$major'
  13272. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13273. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13274. ;;
  13275. *)
  13276. shrext_cmds='.sl'
  13277. dynamic_linker="$host_os dld.sl"
  13278. shlibpath_var=SHLIB_PATH
  13279. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13280. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13281. soname_spec='${libname}${release}${shared_ext}$major'
  13282. ;;
  13283. esac
  13284. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  13285. postinstall_cmds='chmod 555 $lib'
  13286. ;;
  13287. interix[3-9]*)
  13288. version_type=linux
  13289. need_lib_prefix=no
  13290. need_version=no
  13291. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13292. soname_spec='${libname}${release}${shared_ext}$major'
  13293. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13294. shlibpath_var=LD_LIBRARY_PATH
  13295. shlibpath_overrides_runpath=no
  13296. hardcode_into_libs=yes
  13297. ;;
  13298. irix5* | irix6* | nonstopux*)
  13299. case $host_os in
  13300. nonstopux*) version_type=nonstopux ;;
  13301. *)
  13302. if test "$lt_cv_prog_gnu_ld" = yes; then
  13303. version_type=linux
  13304. else
  13305. version_type=irix
  13306. fi ;;
  13307. esac
  13308. need_lib_prefix=no
  13309. need_version=no
  13310. soname_spec='${libname}${release}${shared_ext}$major'
  13311. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13312. case $host_os in
  13313. irix5* | nonstopux*)
  13314. libsuff= shlibsuff=
  13315. ;;
  13316. *)
  13317. case $LD in # libtool.m4 will add one of these switches to LD
  13318. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13319. libsuff= shlibsuff= libmagic=32-bit;;
  13320. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13321. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13322. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13323. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13324. *) libsuff= shlibsuff= libmagic=never-match;;
  13325. esac
  13326. ;;
  13327. esac
  13328. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13329. shlibpath_overrides_runpath=no
  13330. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13331. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13332. hardcode_into_libs=yes
  13333. ;;
  13334. # No shared lib support for Linux oldld, aout, or coff.
  13335. linux*oldld* | linux*aout* | linux*coff*)
  13336. dynamic_linker=no
  13337. ;;
  13338. # This must be Linux ELF.
  13339. linux* | k*bsd*-gnu)
  13340. version_type=linux
  13341. need_lib_prefix=no
  13342. need_version=no
  13343. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13344. soname_spec='${libname}${release}${shared_ext}$major'
  13345. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13346. shlibpath_var=LD_LIBRARY_PATH
  13347. shlibpath_overrides_runpath=no
  13348. # Some binutils ld are patched to set DT_RUNPATH
  13349. save_LDFLAGS=$LDFLAGS
  13350. save_libdir=$libdir
  13351. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13352. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13353. cat >conftest.$ac_ext <<_ACEOF
  13354. /* confdefs.h. */
  13355. _ACEOF
  13356. cat confdefs.h >>conftest.$ac_ext
  13357. cat >>conftest.$ac_ext <<_ACEOF
  13358. /* end confdefs.h. */
  13359. int
  13360. main ()
  13361. {
  13362. ;
  13363. return 0;
  13364. }
  13365. _ACEOF
  13366. rm -f conftest.$ac_objext conftest$ac_exeext
  13367. if { (ac_try="$ac_link"
  13368. case "(($ac_try" in
  13369. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13370. *) ac_try_echo=$ac_try;;
  13371. esac
  13372. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13373. $as_echo "$ac_try_echo") >&5
  13374. (eval "$ac_link") 2>conftest.er1
  13375. ac_status=$?
  13376. grep -v '^ *+' conftest.er1 >conftest.err
  13377. rm -f conftest.er1
  13378. cat conftest.err >&5
  13379. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13380. (exit $ac_status); } && {
  13381. test -z "$ac_cxx_werror_flag" ||
  13382. test ! -s conftest.err
  13383. } && test -s conftest$ac_exeext && {
  13384. test "$cross_compiling" = yes ||
  13385. $as_test_x conftest$ac_exeext
  13386. }; then
  13387. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
  13388. shlibpath_overrides_runpath=yes
  13389. fi
  13390. else
  13391. $as_echo "$as_me: failed program was:" >&5
  13392. sed 's/^/| /' conftest.$ac_ext >&5
  13393. fi
  13394. rm -rf conftest.dSYM
  13395. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13396. conftest$ac_exeext conftest.$ac_ext
  13397. LDFLAGS=$save_LDFLAGS
  13398. libdir=$save_libdir
  13399. # This implies no fast_install, which is unacceptable.
  13400. # Some rework will be needed to allow for fast_install
  13401. # before this can be enabled.
  13402. hardcode_into_libs=yes
  13403. # Add ABI-specific directories to the system library path.
  13404. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  13405. # Append ld.so.conf contents to the search path
  13406. if test -f /etc/ld.so.conf; then
  13407. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  13408. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  13409. fi
  13410. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13411. # powerpc, because MkLinux only supported shared libraries with the
  13412. # GNU dynamic linker. Since this was broken with cross compilers,
  13413. # most powerpc-linux boxes support dynamic linking these days and
  13414. # people can always --disable-shared, the test was removed, and we
  13415. # assume the GNU/Linux dynamic linker is in use.
  13416. dynamic_linker='GNU/Linux ld.so'
  13417. ;;
  13418. netbsd*)
  13419. version_type=sunos
  13420. need_lib_prefix=no
  13421. need_version=no
  13422. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13423. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13424. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13425. dynamic_linker='NetBSD (a.out) ld.so'
  13426. else
  13427. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13428. soname_spec='${libname}${release}${shared_ext}$major'
  13429. dynamic_linker='NetBSD ld.elf_so'
  13430. fi
  13431. shlibpath_var=LD_LIBRARY_PATH
  13432. shlibpath_overrides_runpath=yes
  13433. hardcode_into_libs=yes
  13434. ;;
  13435. newsos6)
  13436. version_type=linux
  13437. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13438. shlibpath_var=LD_LIBRARY_PATH
  13439. shlibpath_overrides_runpath=yes
  13440. ;;
  13441. *nto* | *qnx*)
  13442. version_type=qnx
  13443. need_lib_prefix=no
  13444. need_version=no
  13445. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13446. soname_spec='${libname}${release}${shared_ext}$major'
  13447. shlibpath_var=LD_LIBRARY_PATH
  13448. shlibpath_overrides_runpath=no
  13449. hardcode_into_libs=yes
  13450. dynamic_linker='ldqnx.so'
  13451. ;;
  13452. openbsd*)
  13453. version_type=sunos
  13454. sys_lib_dlsearch_path_spec="/usr/lib"
  13455. need_lib_prefix=no
  13456. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13457. case $host_os in
  13458. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13459. *) need_version=no ;;
  13460. esac
  13461. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13462. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13463. shlibpath_var=LD_LIBRARY_PATH
  13464. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13465. case $host_os in
  13466. openbsd2.[89] | openbsd2.[89].*)
  13467. shlibpath_overrides_runpath=no
  13468. ;;
  13469. *)
  13470. shlibpath_overrides_runpath=yes
  13471. ;;
  13472. esac
  13473. else
  13474. shlibpath_overrides_runpath=yes
  13475. fi
  13476. ;;
  13477. os2*)
  13478. libname_spec='$name'
  13479. shrext_cmds=".dll"
  13480. need_lib_prefix=no
  13481. library_names_spec='$libname${shared_ext} $libname.a'
  13482. dynamic_linker='OS/2 ld.exe'
  13483. shlibpath_var=LIBPATH
  13484. ;;
  13485. osf3* | osf4* | osf5*)
  13486. version_type=osf
  13487. need_lib_prefix=no
  13488. need_version=no
  13489. soname_spec='${libname}${release}${shared_ext}$major'
  13490. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13491. shlibpath_var=LD_LIBRARY_PATH
  13492. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13493. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13494. ;;
  13495. rdos*)
  13496. dynamic_linker=no
  13497. ;;
  13498. solaris*)
  13499. version_type=linux
  13500. need_lib_prefix=no
  13501. need_version=no
  13502. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13503. soname_spec='${libname}${release}${shared_ext}$major'
  13504. shlibpath_var=LD_LIBRARY_PATH
  13505. shlibpath_overrides_runpath=yes
  13506. hardcode_into_libs=yes
  13507. # ldd complains unless libraries are executable
  13508. postinstall_cmds='chmod +x $lib'
  13509. ;;
  13510. sunos4*)
  13511. version_type=sunos
  13512. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13513. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13514. shlibpath_var=LD_LIBRARY_PATH
  13515. shlibpath_overrides_runpath=yes
  13516. if test "$with_gnu_ld" = yes; then
  13517. need_lib_prefix=no
  13518. fi
  13519. need_version=yes
  13520. ;;
  13521. sysv4 | sysv4.3*)
  13522. version_type=linux
  13523. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13524. soname_spec='${libname}${release}${shared_ext}$major'
  13525. shlibpath_var=LD_LIBRARY_PATH
  13526. case $host_vendor in
  13527. sni)
  13528. shlibpath_overrides_runpath=no
  13529. need_lib_prefix=no
  13530. runpath_var=LD_RUN_PATH
  13531. ;;
  13532. siemens)
  13533. need_lib_prefix=no
  13534. ;;
  13535. motorola)
  13536. need_lib_prefix=no
  13537. need_version=no
  13538. shlibpath_overrides_runpath=no
  13539. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13540. ;;
  13541. esac
  13542. ;;
  13543. sysv4*MP*)
  13544. if test -d /usr/nec ;then
  13545. version_type=linux
  13546. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13547. soname_spec='$libname${shared_ext}.$major'
  13548. shlibpath_var=LD_LIBRARY_PATH
  13549. fi
  13550. ;;
  13551. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13552. version_type=freebsd-elf
  13553. need_lib_prefix=no
  13554. need_version=no
  13555. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13556. soname_spec='${libname}${release}${shared_ext}$major'
  13557. shlibpath_var=LD_LIBRARY_PATH
  13558. shlibpath_overrides_runpath=yes
  13559. hardcode_into_libs=yes
  13560. if test "$with_gnu_ld" = yes; then
  13561. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13562. else
  13563. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13564. case $host_os in
  13565. sco3.2v5*)
  13566. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13567. ;;
  13568. esac
  13569. fi
  13570. sys_lib_dlsearch_path_spec='/usr/lib'
  13571. ;;
  13572. tpf*)
  13573. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13574. version_type=linux
  13575. need_lib_prefix=no
  13576. need_version=no
  13577. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13578. shlibpath_var=LD_LIBRARY_PATH
  13579. shlibpath_overrides_runpath=no
  13580. hardcode_into_libs=yes
  13581. ;;
  13582. uts4*)
  13583. version_type=linux
  13584. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13585. soname_spec='${libname}${release}${shared_ext}$major'
  13586. shlibpath_var=LD_LIBRARY_PATH
  13587. ;;
  13588. *)
  13589. dynamic_linker=no
  13590. ;;
  13591. esac
  13592. { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  13593. $as_echo "$dynamic_linker" >&6; }
  13594. test "$dynamic_linker" = no && can_build_shared=no
  13595. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13596. if test "$GCC" = yes; then
  13597. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13598. fi
  13599. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13600. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13601. fi
  13602. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13603. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13604. fi
  13605. { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  13606. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13607. hardcode_action_CXX=
  13608. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13609. test -n "$runpath_var_CXX" ||
  13610. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13611. # We can hardcode non-existent directories.
  13612. if test "$hardcode_direct_CXX" != no &&
  13613. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13614. # have to relink, otherwise we might link with an installed library
  13615. # when we should be linking with a yet-to-be-installed one
  13616. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13617. test "$hardcode_minus_L_CXX" != no; then
  13618. # Linking always hardcodes the temporary library directory.
  13619. hardcode_action_CXX=relink
  13620. else
  13621. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13622. hardcode_action_CXX=immediate
  13623. fi
  13624. else
  13625. # We cannot hardcode anything, or else we can only hardcode existing
  13626. # directories.
  13627. hardcode_action_CXX=unsupported
  13628. fi
  13629. { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  13630. $as_echo "$hardcode_action_CXX" >&6; }
  13631. if test "$hardcode_action_CXX" = relink ||
  13632. test "$inherit_rpath_CXX" = yes; then
  13633. # Fast installation is not supported
  13634. enable_fast_install=no
  13635. elif test "$shlibpath_overrides_runpath" = yes ||
  13636. test "$enable_shared" = no; then
  13637. # Fast installation is not necessary
  13638. enable_fast_install=needless
  13639. fi
  13640. fi # test -n "$compiler"
  13641. CC=$lt_save_CC
  13642. LDCXX=$LD
  13643. LD=$lt_save_LD
  13644. GCC=$lt_save_GCC
  13645. with_gnu_ld=$lt_save_with_gnu_ld
  13646. lt_cv_path_LDCXX=$lt_cv_path_LD
  13647. lt_cv_path_LD=$lt_save_path_LD
  13648. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13649. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13650. fi # test "$_lt_caught_CXX_error" != yes
  13651. ac_ext=c
  13652. ac_cpp='$CPP $CPPFLAGS'
  13653. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13654. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13655. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13656. ac_config_commands="$ac_config_commands libtool"
  13657. # Only expand once:
  13658. # Checks for header files.
  13659. ac_header_dirent=no
  13660. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  13661. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  13662. { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  13663. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  13664. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13665. $as_echo_n "(cached) " >&6
  13666. else
  13667. cat >conftest.$ac_ext <<_ACEOF
  13668. /* confdefs.h. */
  13669. _ACEOF
  13670. cat confdefs.h >>conftest.$ac_ext
  13671. cat >>conftest.$ac_ext <<_ACEOF
  13672. /* end confdefs.h. */
  13673. #include <sys/types.h>
  13674. #include <$ac_hdr>
  13675. int
  13676. main ()
  13677. {
  13678. if ((DIR *) 0)
  13679. return 0;
  13680. ;
  13681. return 0;
  13682. }
  13683. _ACEOF
  13684. rm -f conftest.$ac_objext
  13685. if { (ac_try="$ac_compile"
  13686. case "(($ac_try" in
  13687. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13688. *) ac_try_echo=$ac_try;;
  13689. esac
  13690. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13691. $as_echo "$ac_try_echo") >&5
  13692. (eval "$ac_compile") 2>conftest.er1
  13693. ac_status=$?
  13694. grep -v '^ *+' conftest.er1 >conftest.err
  13695. rm -f conftest.er1
  13696. cat conftest.err >&5
  13697. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13698. (exit $ac_status); } && {
  13699. test -z "$ac_c_werror_flag" ||
  13700. test ! -s conftest.err
  13701. } && test -s conftest.$ac_objext; then
  13702. eval "$as_ac_Header=yes"
  13703. else
  13704. $as_echo "$as_me: failed program was:" >&5
  13705. sed 's/^/| /' conftest.$ac_ext >&5
  13706. eval "$as_ac_Header=no"
  13707. fi
  13708. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13709. fi
  13710. ac_res=`eval 'as_val=${'$as_ac_Header'}
  13711. $as_echo "$as_val"'`
  13712. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13713. $as_echo "$ac_res" >&6; }
  13714. as_val=`eval 'as_val=${'$as_ac_Header'}
  13715. $as_echo "$as_val"'`
  13716. if test "x$as_val" = x""yes; then
  13717. cat >>confdefs.h <<_ACEOF
  13718. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  13719. _ACEOF
  13720. ac_header_dirent=$ac_hdr; break
  13721. fi
  13722. done
  13723. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  13724. if test $ac_header_dirent = dirent.h; then
  13725. { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
  13726. $as_echo_n "checking for library containing opendir... " >&6; }
  13727. if test "${ac_cv_search_opendir+set}" = set; then
  13728. $as_echo_n "(cached) " >&6
  13729. else
  13730. ac_func_search_save_LIBS=$LIBS
  13731. cat >conftest.$ac_ext <<_ACEOF
  13732. /* confdefs.h. */
  13733. _ACEOF
  13734. cat confdefs.h >>conftest.$ac_ext
  13735. cat >>conftest.$ac_ext <<_ACEOF
  13736. /* end confdefs.h. */
  13737. /* Override any GCC internal prototype to avoid an error.
  13738. Use char because int might match the return type of a GCC
  13739. builtin and then its argument prototype would still apply. */
  13740. #ifdef __cplusplus
  13741. extern "C"
  13742. #endif
  13743. char opendir ();
  13744. int
  13745. main ()
  13746. {
  13747. return opendir ();
  13748. ;
  13749. return 0;
  13750. }
  13751. _ACEOF
  13752. for ac_lib in '' dir; do
  13753. if test -z "$ac_lib"; then
  13754. ac_res="none required"
  13755. else
  13756. ac_res=-l$ac_lib
  13757. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13758. fi
  13759. rm -f conftest.$ac_objext conftest$ac_exeext
  13760. if { (ac_try="$ac_link"
  13761. case "(($ac_try" in
  13762. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13763. *) ac_try_echo=$ac_try;;
  13764. esac
  13765. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13766. $as_echo "$ac_try_echo") >&5
  13767. (eval "$ac_link") 2>conftest.er1
  13768. ac_status=$?
  13769. grep -v '^ *+' conftest.er1 >conftest.err
  13770. rm -f conftest.er1
  13771. cat conftest.err >&5
  13772. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13773. (exit $ac_status); } && {
  13774. test -z "$ac_c_werror_flag" ||
  13775. test ! -s conftest.err
  13776. } && test -s conftest$ac_exeext && {
  13777. test "$cross_compiling" = yes ||
  13778. $as_test_x conftest$ac_exeext
  13779. }; then
  13780. ac_cv_search_opendir=$ac_res
  13781. else
  13782. $as_echo "$as_me: failed program was:" >&5
  13783. sed 's/^/| /' conftest.$ac_ext >&5
  13784. fi
  13785. rm -rf conftest.dSYM
  13786. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13787. conftest$ac_exeext
  13788. if test "${ac_cv_search_opendir+set}" = set; then
  13789. break
  13790. fi
  13791. done
  13792. if test "${ac_cv_search_opendir+set}" = set; then
  13793. :
  13794. else
  13795. ac_cv_search_opendir=no
  13796. fi
  13797. rm conftest.$ac_ext
  13798. LIBS=$ac_func_search_save_LIBS
  13799. fi
  13800. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  13801. $as_echo "$ac_cv_search_opendir" >&6; }
  13802. ac_res=$ac_cv_search_opendir
  13803. if test "$ac_res" != no; then
  13804. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13805. fi
  13806. else
  13807. { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
  13808. $as_echo_n "checking for library containing opendir... " >&6; }
  13809. if test "${ac_cv_search_opendir+set}" = set; then
  13810. $as_echo_n "(cached) " >&6
  13811. else
  13812. ac_func_search_save_LIBS=$LIBS
  13813. cat >conftest.$ac_ext <<_ACEOF
  13814. /* confdefs.h. */
  13815. _ACEOF
  13816. cat confdefs.h >>conftest.$ac_ext
  13817. cat >>conftest.$ac_ext <<_ACEOF
  13818. /* end confdefs.h. */
  13819. /* Override any GCC internal prototype to avoid an error.
  13820. Use char because int might match the return type of a GCC
  13821. builtin and then its argument prototype would still apply. */
  13822. #ifdef __cplusplus
  13823. extern "C"
  13824. #endif
  13825. char opendir ();
  13826. int
  13827. main ()
  13828. {
  13829. return opendir ();
  13830. ;
  13831. return 0;
  13832. }
  13833. _ACEOF
  13834. for ac_lib in '' x; do
  13835. if test -z "$ac_lib"; then
  13836. ac_res="none required"
  13837. else
  13838. ac_res=-l$ac_lib
  13839. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13840. fi
  13841. rm -f conftest.$ac_objext conftest$ac_exeext
  13842. if { (ac_try="$ac_link"
  13843. case "(($ac_try" in
  13844. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13845. *) ac_try_echo=$ac_try;;
  13846. esac
  13847. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13848. $as_echo "$ac_try_echo") >&5
  13849. (eval "$ac_link") 2>conftest.er1
  13850. ac_status=$?
  13851. grep -v '^ *+' conftest.er1 >conftest.err
  13852. rm -f conftest.er1
  13853. cat conftest.err >&5
  13854. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13855. (exit $ac_status); } && {
  13856. test -z "$ac_c_werror_flag" ||
  13857. test ! -s conftest.err
  13858. } && test -s conftest$ac_exeext && {
  13859. test "$cross_compiling" = yes ||
  13860. $as_test_x conftest$ac_exeext
  13861. }; then
  13862. ac_cv_search_opendir=$ac_res
  13863. else
  13864. $as_echo "$as_me: failed program was:" >&5
  13865. sed 's/^/| /' conftest.$ac_ext >&5
  13866. fi
  13867. rm -rf conftest.dSYM
  13868. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13869. conftest$ac_exeext
  13870. if test "${ac_cv_search_opendir+set}" = set; then
  13871. break
  13872. fi
  13873. done
  13874. if test "${ac_cv_search_opendir+set}" = set; then
  13875. :
  13876. else
  13877. ac_cv_search_opendir=no
  13878. fi
  13879. rm conftest.$ac_ext
  13880. LIBS=$ac_func_search_save_LIBS
  13881. fi
  13882. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  13883. $as_echo "$ac_cv_search_opendir" >&6; }
  13884. ac_res=$ac_cv_search_opendir
  13885. if test "$ac_res" != no; then
  13886. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13887. fi
  13888. fi
  13889. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  13890. $as_echo_n "checking for ANSI C header files... " >&6; }
  13891. if test "${ac_cv_header_stdc+set}" = set; then
  13892. $as_echo_n "(cached) " >&6
  13893. else
  13894. cat >conftest.$ac_ext <<_ACEOF
  13895. /* confdefs.h. */
  13896. _ACEOF
  13897. cat confdefs.h >>conftest.$ac_ext
  13898. cat >>conftest.$ac_ext <<_ACEOF
  13899. /* end confdefs.h. */
  13900. #include <stdlib.h>
  13901. #include <stdarg.h>
  13902. #include <string.h>
  13903. #include <float.h>
  13904. int
  13905. main ()
  13906. {
  13907. ;
  13908. return 0;
  13909. }
  13910. _ACEOF
  13911. rm -f conftest.$ac_objext
  13912. if { (ac_try="$ac_compile"
  13913. case "(($ac_try" in
  13914. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13915. *) ac_try_echo=$ac_try;;
  13916. esac
  13917. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13918. $as_echo "$ac_try_echo") >&5
  13919. (eval "$ac_compile") 2>conftest.er1
  13920. ac_status=$?
  13921. grep -v '^ *+' conftest.er1 >conftest.err
  13922. rm -f conftest.er1
  13923. cat conftest.err >&5
  13924. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13925. (exit $ac_status); } && {
  13926. test -z "$ac_c_werror_flag" ||
  13927. test ! -s conftest.err
  13928. } && test -s conftest.$ac_objext; then
  13929. ac_cv_header_stdc=yes
  13930. else
  13931. $as_echo "$as_me: failed program was:" >&5
  13932. sed 's/^/| /' conftest.$ac_ext >&5
  13933. ac_cv_header_stdc=no
  13934. fi
  13935. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13936. if test $ac_cv_header_stdc = yes; then
  13937. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13938. cat >conftest.$ac_ext <<_ACEOF
  13939. /* confdefs.h. */
  13940. _ACEOF
  13941. cat confdefs.h >>conftest.$ac_ext
  13942. cat >>conftest.$ac_ext <<_ACEOF
  13943. /* end confdefs.h. */
  13944. #include <string.h>
  13945. _ACEOF
  13946. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13947. $EGREP "memchr" >/dev/null 2>&1; then
  13948. :
  13949. else
  13950. ac_cv_header_stdc=no
  13951. fi
  13952. rm -f conftest*
  13953. fi
  13954. if test $ac_cv_header_stdc = yes; then
  13955. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13956. cat >conftest.$ac_ext <<_ACEOF
  13957. /* confdefs.h. */
  13958. _ACEOF
  13959. cat confdefs.h >>conftest.$ac_ext
  13960. cat >>conftest.$ac_ext <<_ACEOF
  13961. /* end confdefs.h. */
  13962. #include <stdlib.h>
  13963. _ACEOF
  13964. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13965. $EGREP "free" >/dev/null 2>&1; then
  13966. :
  13967. else
  13968. ac_cv_header_stdc=no
  13969. fi
  13970. rm -f conftest*
  13971. fi
  13972. if test $ac_cv_header_stdc = yes; then
  13973. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13974. if test "$cross_compiling" = yes; then
  13975. :
  13976. else
  13977. cat >conftest.$ac_ext <<_ACEOF
  13978. /* confdefs.h. */
  13979. _ACEOF
  13980. cat confdefs.h >>conftest.$ac_ext
  13981. cat >>conftest.$ac_ext <<_ACEOF
  13982. /* end confdefs.h. */
  13983. #include <ctype.h>
  13984. #include <stdlib.h>
  13985. #if ((' ' & 0x0FF) == 0x020)
  13986. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13987. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13988. #else
  13989. # define ISLOWER(c) \
  13990. (('a' <= (c) && (c) <= 'i') \
  13991. || ('j' <= (c) && (c) <= 'r') \
  13992. || ('s' <= (c) && (c) <= 'z'))
  13993. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13994. #endif
  13995. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13996. int
  13997. main ()
  13998. {
  13999. int i;
  14000. for (i = 0; i < 256; i++)
  14001. if (XOR (islower (i), ISLOWER (i))
  14002. || toupper (i) != TOUPPER (i))
  14003. return 2;
  14004. return 0;
  14005. }
  14006. _ACEOF
  14007. rm -f conftest$ac_exeext
  14008. if { (ac_try="$ac_link"
  14009. case "(($ac_try" in
  14010. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14011. *) ac_try_echo=$ac_try;;
  14012. esac
  14013. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14014. $as_echo "$ac_try_echo") >&5
  14015. (eval "$ac_link") 2>&5
  14016. ac_status=$?
  14017. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14018. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14019. { (case "(($ac_try" in
  14020. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14021. *) ac_try_echo=$ac_try;;
  14022. esac
  14023. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14024. $as_echo "$ac_try_echo") >&5
  14025. (eval "$ac_try") 2>&5
  14026. ac_status=$?
  14027. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14028. (exit $ac_status); }; }; then
  14029. :
  14030. else
  14031. $as_echo "$as_me: program exited with status $ac_status" >&5
  14032. $as_echo "$as_me: failed program was:" >&5
  14033. sed 's/^/| /' conftest.$ac_ext >&5
  14034. ( exit $ac_status )
  14035. ac_cv_header_stdc=no
  14036. fi
  14037. rm -rf conftest.dSYM
  14038. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14039. fi
  14040. fi
  14041. fi
  14042. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  14043. $as_echo "$ac_cv_header_stdc" >&6; }
  14044. if test $ac_cv_header_stdc = yes; then
  14045. cat >>confdefs.h <<\_ACEOF
  14046. #define STDC_HEADERS 1
  14047. _ACEOF
  14048. fi
  14049. { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  14050. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  14051. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  14052. $as_echo_n "(cached) " >&6
  14053. else
  14054. cat >conftest.$ac_ext <<_ACEOF
  14055. /* confdefs.h. */
  14056. _ACEOF
  14057. cat confdefs.h >>conftest.$ac_ext
  14058. cat >>conftest.$ac_ext <<_ACEOF
  14059. /* end confdefs.h. */
  14060. #include <sys/types.h>
  14061. #include <sys/wait.h>
  14062. #ifndef WEXITSTATUS
  14063. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  14064. #endif
  14065. #ifndef WIFEXITED
  14066. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  14067. #endif
  14068. int
  14069. main ()
  14070. {
  14071. int s;
  14072. wait (&s);
  14073. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  14074. ;
  14075. return 0;
  14076. }
  14077. _ACEOF
  14078. rm -f conftest.$ac_objext
  14079. if { (ac_try="$ac_compile"
  14080. case "(($ac_try" in
  14081. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14082. *) ac_try_echo=$ac_try;;
  14083. esac
  14084. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14085. $as_echo "$ac_try_echo") >&5
  14086. (eval "$ac_compile") 2>conftest.er1
  14087. ac_status=$?
  14088. grep -v '^ *+' conftest.er1 >conftest.err
  14089. rm -f conftest.er1
  14090. cat conftest.err >&5
  14091. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14092. (exit $ac_status); } && {
  14093. test -z "$ac_c_werror_flag" ||
  14094. test ! -s conftest.err
  14095. } && test -s conftest.$ac_objext; then
  14096. ac_cv_header_sys_wait_h=yes
  14097. else
  14098. $as_echo "$as_me: failed program was:" >&5
  14099. sed 's/^/| /' conftest.$ac_ext >&5
  14100. ac_cv_header_sys_wait_h=no
  14101. fi
  14102. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14103. fi
  14104. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  14105. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  14106. if test $ac_cv_header_sys_wait_h = yes; then
  14107. cat >>confdefs.h <<\_ACEOF
  14108. #define HAVE_SYS_WAIT_H 1
  14109. _ACEOF
  14110. fi
  14111. for ac_header in arpa/inet.h fcntl.h malloc.h netdb.h netinet/in.h stdlib.h string.h strings.h sys/file.h sys/socket.h sys/time.h unistd.h inttypes.h
  14112. do
  14113. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14114. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14115. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  14116. $as_echo_n "checking for $ac_header... " >&6; }
  14117. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14118. $as_echo_n "(cached) " >&6
  14119. fi
  14120. ac_res=`eval 'as_val=${'$as_ac_Header'}
  14121. $as_echo "$as_val"'`
  14122. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14123. $as_echo "$ac_res" >&6; }
  14124. else
  14125. # Is the header compilable?
  14126. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14127. $as_echo_n "checking $ac_header usability... " >&6; }
  14128. cat >conftest.$ac_ext <<_ACEOF
  14129. /* confdefs.h. */
  14130. _ACEOF
  14131. cat confdefs.h >>conftest.$ac_ext
  14132. cat >>conftest.$ac_ext <<_ACEOF
  14133. /* end confdefs.h. */
  14134. $ac_includes_default
  14135. #include <$ac_header>
  14136. _ACEOF
  14137. rm -f conftest.$ac_objext
  14138. if { (ac_try="$ac_compile"
  14139. case "(($ac_try" in
  14140. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14141. *) ac_try_echo=$ac_try;;
  14142. esac
  14143. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14144. $as_echo "$ac_try_echo") >&5
  14145. (eval "$ac_compile") 2>conftest.er1
  14146. ac_status=$?
  14147. grep -v '^ *+' conftest.er1 >conftest.err
  14148. rm -f conftest.er1
  14149. cat conftest.err >&5
  14150. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14151. (exit $ac_status); } && {
  14152. test -z "$ac_c_werror_flag" ||
  14153. test ! -s conftest.err
  14154. } && test -s conftest.$ac_objext; then
  14155. ac_header_compiler=yes
  14156. else
  14157. $as_echo "$as_me: failed program was:" >&5
  14158. sed 's/^/| /' conftest.$ac_ext >&5
  14159. ac_header_compiler=no
  14160. fi
  14161. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14162. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14163. $as_echo "$ac_header_compiler" >&6; }
  14164. # Is the header present?
  14165. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14166. $as_echo_n "checking $ac_header presence... " >&6; }
  14167. cat >conftest.$ac_ext <<_ACEOF
  14168. /* confdefs.h. */
  14169. _ACEOF
  14170. cat confdefs.h >>conftest.$ac_ext
  14171. cat >>conftest.$ac_ext <<_ACEOF
  14172. /* end confdefs.h. */
  14173. #include <$ac_header>
  14174. _ACEOF
  14175. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14176. case "(($ac_try" in
  14177. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14178. *) ac_try_echo=$ac_try;;
  14179. esac
  14180. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14181. $as_echo "$ac_try_echo") >&5
  14182. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14183. ac_status=$?
  14184. grep -v '^ *+' conftest.er1 >conftest.err
  14185. rm -f conftest.er1
  14186. cat conftest.err >&5
  14187. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14188. (exit $ac_status); } >/dev/null && {
  14189. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  14190. test ! -s conftest.err
  14191. }; then
  14192. ac_header_preproc=yes
  14193. else
  14194. $as_echo "$as_me: failed program was:" >&5
  14195. sed 's/^/| /' conftest.$ac_ext >&5
  14196. ac_header_preproc=no
  14197. fi
  14198. rm -f conftest.err conftest.$ac_ext
  14199. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14200. $as_echo "$ac_header_preproc" >&6; }
  14201. # So? What about this header?
  14202. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  14203. yes:no: )
  14204. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14205. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14206. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14207. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14208. ac_header_preproc=yes
  14209. ;;
  14210. no:yes:* )
  14211. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14212. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14213. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14214. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14215. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14216. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14217. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14218. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14219. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14220. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14221. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14222. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14223. ( cat <<\_ASBOX
  14224. ## ------------------------------------------ ##
  14225. ## Report this to http://bugzilla.redhat.com/ ##
  14226. ## ------------------------------------------ ##
  14227. _ASBOX
  14228. ) | sed "s/^/$as_me: WARNING: /" >&2
  14229. ;;
  14230. esac
  14231. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  14232. $as_echo_n "checking for $ac_header... " >&6; }
  14233. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14234. $as_echo_n "(cached) " >&6
  14235. else
  14236. eval "$as_ac_Header=\$ac_header_preproc"
  14237. fi
  14238. ac_res=`eval 'as_val=${'$as_ac_Header'}
  14239. $as_echo "$as_val"'`
  14240. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14241. $as_echo "$ac_res" >&6; }
  14242. fi
  14243. as_val=`eval 'as_val=${'$as_ac_Header'}
  14244. $as_echo "$as_val"'`
  14245. if test "x$as_val" = x""yes; then
  14246. cat >>confdefs.h <<_ACEOF
  14247. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14248. _ACEOF
  14249. fi
  14250. done
  14251. # Checks for typedefs, structures, and compiler characteristics.
  14252. { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  14253. $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
  14254. if test "${ac_cv_header_stat_broken+set}" = set; then
  14255. $as_echo_n "(cached) " >&6
  14256. else
  14257. cat >conftest.$ac_ext <<_ACEOF
  14258. /* confdefs.h. */
  14259. _ACEOF
  14260. cat confdefs.h >>conftest.$ac_ext
  14261. cat >>conftest.$ac_ext <<_ACEOF
  14262. /* end confdefs.h. */
  14263. #include <sys/types.h>
  14264. #include <sys/stat.h>
  14265. #if defined S_ISBLK && defined S_IFDIR
  14266. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  14267. #endif
  14268. #if defined S_ISBLK && defined S_IFCHR
  14269. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  14270. #endif
  14271. #if defined S_ISLNK && defined S_IFREG
  14272. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  14273. #endif
  14274. #if defined S_ISSOCK && defined S_IFREG
  14275. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  14276. #endif
  14277. _ACEOF
  14278. rm -f conftest.$ac_objext
  14279. if { (ac_try="$ac_compile"
  14280. case "(($ac_try" in
  14281. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14282. *) ac_try_echo=$ac_try;;
  14283. esac
  14284. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14285. $as_echo "$ac_try_echo") >&5
  14286. (eval "$ac_compile") 2>conftest.er1
  14287. ac_status=$?
  14288. grep -v '^ *+' conftest.er1 >conftest.err
  14289. rm -f conftest.er1
  14290. cat conftest.err >&5
  14291. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14292. (exit $ac_status); } && {
  14293. test -z "$ac_c_werror_flag" ||
  14294. test ! -s conftest.err
  14295. } && test -s conftest.$ac_objext; then
  14296. ac_cv_header_stat_broken=no
  14297. else
  14298. $as_echo "$as_me: failed program was:" >&5
  14299. sed 's/^/| /' conftest.$ac_ext >&5
  14300. ac_cv_header_stat_broken=yes
  14301. fi
  14302. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14303. fi
  14304. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  14305. $as_echo "$ac_cv_header_stat_broken" >&6; }
  14306. if test $ac_cv_header_stat_broken = yes; then
  14307. cat >>confdefs.h <<\_ACEOF
  14308. #define STAT_MACROS_BROKEN 1
  14309. _ACEOF
  14310. fi
  14311. { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  14312. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  14313. if test "${ac_cv_c_const+set}" = set; then
  14314. $as_echo_n "(cached) " >&6
  14315. else
  14316. cat >conftest.$ac_ext <<_ACEOF
  14317. /* confdefs.h. */
  14318. _ACEOF
  14319. cat confdefs.h >>conftest.$ac_ext
  14320. cat >>conftest.$ac_ext <<_ACEOF
  14321. /* end confdefs.h. */
  14322. int
  14323. main ()
  14324. {
  14325. /* FIXME: Include the comments suggested by Paul. */
  14326. #ifndef __cplusplus
  14327. /* Ultrix mips cc rejects this. */
  14328. typedef int charset[2];
  14329. const charset cs;
  14330. /* SunOS 4.1.1 cc rejects this. */
  14331. char const *const *pcpcc;
  14332. char **ppc;
  14333. /* NEC SVR4.0.2 mips cc rejects this. */
  14334. struct point {int x, y;};
  14335. static struct point const zero = {0,0};
  14336. /* AIX XL C 1.02.0.0 rejects this.
  14337. It does not let you subtract one const X* pointer from another in
  14338. an arm of an if-expression whose if-part is not a constant
  14339. expression */
  14340. const char *g = "string";
  14341. pcpcc = &g + (g ? g-g : 0);
  14342. /* HPUX 7.0 cc rejects these. */
  14343. ++pcpcc;
  14344. ppc = (char**) pcpcc;
  14345. pcpcc = (char const *const *) ppc;
  14346. { /* SCO 3.2v4 cc rejects this. */
  14347. char *t;
  14348. char const *s = 0 ? (char *) 0 : (char const *) 0;
  14349. *t++ = 0;
  14350. if (s) return 0;
  14351. }
  14352. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  14353. int x[] = {25, 17};
  14354. const int *foo = &x[0];
  14355. ++foo;
  14356. }
  14357. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  14358. typedef const int *iptr;
  14359. iptr p = 0;
  14360. ++p;
  14361. }
  14362. { /* AIX XL C 1.02.0.0 rejects this saying
  14363. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  14364. struct s { int j; const int *ap[3]; };
  14365. struct s *b; b->j = 5;
  14366. }
  14367. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  14368. const int foo = 10;
  14369. if (!foo) return 0;
  14370. }
  14371. return !cs[0] && !zero.x;
  14372. #endif
  14373. ;
  14374. return 0;
  14375. }
  14376. _ACEOF
  14377. rm -f conftest.$ac_objext
  14378. if { (ac_try="$ac_compile"
  14379. case "(($ac_try" in
  14380. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14381. *) ac_try_echo=$ac_try;;
  14382. esac
  14383. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14384. $as_echo "$ac_try_echo") >&5
  14385. (eval "$ac_compile") 2>conftest.er1
  14386. ac_status=$?
  14387. grep -v '^ *+' conftest.er1 >conftest.err
  14388. rm -f conftest.er1
  14389. cat conftest.err >&5
  14390. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14391. (exit $ac_status); } && {
  14392. test -z "$ac_c_werror_flag" ||
  14393. test ! -s conftest.err
  14394. } && test -s conftest.$ac_objext; then
  14395. ac_cv_c_const=yes
  14396. else
  14397. $as_echo "$as_me: failed program was:" >&5
  14398. sed 's/^/| /' conftest.$ac_ext >&5
  14399. ac_cv_c_const=no
  14400. fi
  14401. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14402. fi
  14403. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  14404. $as_echo "$ac_cv_c_const" >&6; }
  14405. if test $ac_cv_c_const = no; then
  14406. cat >>confdefs.h <<\_ACEOF
  14407. #define const /**/
  14408. _ACEOF
  14409. fi
  14410. { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  14411. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  14412. if test "${ac_cv_header_stdbool_h+set}" = set; then
  14413. $as_echo_n "(cached) " >&6
  14414. else
  14415. cat >conftest.$ac_ext <<_ACEOF
  14416. /* confdefs.h. */
  14417. _ACEOF
  14418. cat confdefs.h >>conftest.$ac_ext
  14419. cat >>conftest.$ac_ext <<_ACEOF
  14420. /* end confdefs.h. */
  14421. #include <stdbool.h>
  14422. #ifndef bool
  14423. "error: bool is not defined"
  14424. #endif
  14425. #ifndef false
  14426. "error: false is not defined"
  14427. #endif
  14428. #if false
  14429. "error: false is not 0"
  14430. #endif
  14431. #ifndef true
  14432. "error: true is not defined"
  14433. #endif
  14434. #if true != 1
  14435. "error: true is not 1"
  14436. #endif
  14437. #ifndef __bool_true_false_are_defined
  14438. "error: __bool_true_false_are_defined is not defined"
  14439. #endif
  14440. struct s { _Bool s: 1; _Bool t; } s;
  14441. char a[true == 1 ? 1 : -1];
  14442. char b[false == 0 ? 1 : -1];
  14443. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  14444. char d[(bool) 0.5 == true ? 1 : -1];
  14445. bool e = &s;
  14446. char f[(_Bool) 0.0 == false ? 1 : -1];
  14447. char g[true];
  14448. char h[sizeof (_Bool)];
  14449. char i[sizeof s.t];
  14450. enum { j = false, k = true, l = false * true, m = true * 256 };
  14451. /* The following fails for
  14452. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  14453. _Bool n[m];
  14454. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  14455. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  14456. # if defined __xlc__ || defined __GNUC__
  14457. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  14458. reported by James Lemley on 2005-10-05; see
  14459. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  14460. This test is not quite right, since xlc is allowed to
  14461. reject this program, as the initializer for xlcbug is
  14462. not one of the forms that C requires support for.
  14463. However, doing the test right would require a runtime
  14464. test, and that would make cross-compilation harder.
  14465. Let us hope that IBM fixes the xlc bug, and also adds
  14466. support for this kind of constant expression. In the
  14467. meantime, this test will reject xlc, which is OK, since
  14468. our stdbool.h substitute should suffice. We also test
  14469. this with GCC, where it should work, to detect more
  14470. quickly whether someone messes up the test in the
  14471. future. */
  14472. char digs[] = "0123456789";
  14473. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  14474. # endif
  14475. /* Catch a bug in an HP-UX C compiler. See
  14476. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  14477. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  14478. */
  14479. _Bool q = true;
  14480. _Bool *pq = &q;
  14481. int
  14482. main ()
  14483. {
  14484. *pq |= q;
  14485. *pq |= ! q;
  14486. /* Refer to every declared value, to avoid compiler optimizations. */
  14487. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  14488. + !m + !n + !o + !p + !q + !pq);
  14489. ;
  14490. return 0;
  14491. }
  14492. _ACEOF
  14493. rm -f conftest.$ac_objext
  14494. if { (ac_try="$ac_compile"
  14495. case "(($ac_try" in
  14496. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14497. *) ac_try_echo=$ac_try;;
  14498. esac
  14499. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14500. $as_echo "$ac_try_echo") >&5
  14501. (eval "$ac_compile") 2>conftest.er1
  14502. ac_status=$?
  14503. grep -v '^ *+' conftest.er1 >conftest.err
  14504. rm -f conftest.er1
  14505. cat conftest.err >&5
  14506. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14507. (exit $ac_status); } && {
  14508. test -z "$ac_c_werror_flag" ||
  14509. test ! -s conftest.err
  14510. } && test -s conftest.$ac_objext; then
  14511. ac_cv_header_stdbool_h=yes
  14512. else
  14513. $as_echo "$as_me: failed program was:" >&5
  14514. sed 's/^/| /' conftest.$ac_ext >&5
  14515. ac_cv_header_stdbool_h=no
  14516. fi
  14517. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14518. fi
  14519. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  14520. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  14521. { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
  14522. $as_echo_n "checking for _Bool... " >&6; }
  14523. if test "${ac_cv_type__Bool+set}" = set; then
  14524. $as_echo_n "(cached) " >&6
  14525. else
  14526. ac_cv_type__Bool=no
  14527. cat >conftest.$ac_ext <<_ACEOF
  14528. /* confdefs.h. */
  14529. _ACEOF
  14530. cat confdefs.h >>conftest.$ac_ext
  14531. cat >>conftest.$ac_ext <<_ACEOF
  14532. /* end confdefs.h. */
  14533. $ac_includes_default
  14534. int
  14535. main ()
  14536. {
  14537. if (sizeof (_Bool))
  14538. return 0;
  14539. ;
  14540. return 0;
  14541. }
  14542. _ACEOF
  14543. rm -f conftest.$ac_objext
  14544. if { (ac_try="$ac_compile"
  14545. case "(($ac_try" in
  14546. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14547. *) ac_try_echo=$ac_try;;
  14548. esac
  14549. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14550. $as_echo "$ac_try_echo") >&5
  14551. (eval "$ac_compile") 2>conftest.er1
  14552. ac_status=$?
  14553. grep -v '^ *+' conftest.er1 >conftest.err
  14554. rm -f conftest.er1
  14555. cat conftest.err >&5
  14556. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14557. (exit $ac_status); } && {
  14558. test -z "$ac_c_werror_flag" ||
  14559. test ! -s conftest.err
  14560. } && test -s conftest.$ac_objext; then
  14561. cat >conftest.$ac_ext <<_ACEOF
  14562. /* confdefs.h. */
  14563. _ACEOF
  14564. cat confdefs.h >>conftest.$ac_ext
  14565. cat >>conftest.$ac_ext <<_ACEOF
  14566. /* end confdefs.h. */
  14567. $ac_includes_default
  14568. int
  14569. main ()
  14570. {
  14571. if (sizeof ((_Bool)))
  14572. return 0;
  14573. ;
  14574. return 0;
  14575. }
  14576. _ACEOF
  14577. rm -f conftest.$ac_objext
  14578. if { (ac_try="$ac_compile"
  14579. case "(($ac_try" in
  14580. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14581. *) ac_try_echo=$ac_try;;
  14582. esac
  14583. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14584. $as_echo "$ac_try_echo") >&5
  14585. (eval "$ac_compile") 2>conftest.er1
  14586. ac_status=$?
  14587. grep -v '^ *+' conftest.er1 >conftest.err
  14588. rm -f conftest.er1
  14589. cat conftest.err >&5
  14590. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14591. (exit $ac_status); } && {
  14592. test -z "$ac_c_werror_flag" ||
  14593. test ! -s conftest.err
  14594. } && test -s conftest.$ac_objext; then
  14595. :
  14596. else
  14597. $as_echo "$as_me: failed program was:" >&5
  14598. sed 's/^/| /' conftest.$ac_ext >&5
  14599. ac_cv_type__Bool=yes
  14600. fi
  14601. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14602. else
  14603. $as_echo "$as_me: failed program was:" >&5
  14604. sed 's/^/| /' conftest.$ac_ext >&5
  14605. fi
  14606. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14607. fi
  14608. { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  14609. $as_echo "$ac_cv_type__Bool" >&6; }
  14610. if test "x$ac_cv_type__Bool" = x""yes; then
  14611. cat >>confdefs.h <<_ACEOF
  14612. #define HAVE__BOOL 1
  14613. _ACEOF
  14614. fi
  14615. if test $ac_cv_header_stdbool_h = yes; then
  14616. cat >>confdefs.h <<\_ACEOF
  14617. #define HAVE_STDBOOL_H 1
  14618. _ACEOF
  14619. fi
  14620. { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  14621. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  14622. if test "${ac_cv_type_uid_t+set}" = set; then
  14623. $as_echo_n "(cached) " >&6
  14624. else
  14625. cat >conftest.$ac_ext <<_ACEOF
  14626. /* confdefs.h. */
  14627. _ACEOF
  14628. cat confdefs.h >>conftest.$ac_ext
  14629. cat >>conftest.$ac_ext <<_ACEOF
  14630. /* end confdefs.h. */
  14631. #include <sys/types.h>
  14632. _ACEOF
  14633. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14634. $EGREP "uid_t" >/dev/null 2>&1; then
  14635. ac_cv_type_uid_t=yes
  14636. else
  14637. ac_cv_type_uid_t=no
  14638. fi
  14639. rm -f conftest*
  14640. fi
  14641. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  14642. $as_echo "$ac_cv_type_uid_t" >&6; }
  14643. if test $ac_cv_type_uid_t = no; then
  14644. cat >>confdefs.h <<\_ACEOF
  14645. #define uid_t int
  14646. _ACEOF
  14647. cat >>confdefs.h <<\_ACEOF
  14648. #define gid_t int
  14649. _ACEOF
  14650. fi
  14651. { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
  14652. $as_echo_n "checking for pid_t... " >&6; }
  14653. if test "${ac_cv_type_pid_t+set}" = set; then
  14654. $as_echo_n "(cached) " >&6
  14655. else
  14656. ac_cv_type_pid_t=no
  14657. cat >conftest.$ac_ext <<_ACEOF
  14658. /* confdefs.h. */
  14659. _ACEOF
  14660. cat confdefs.h >>conftest.$ac_ext
  14661. cat >>conftest.$ac_ext <<_ACEOF
  14662. /* end confdefs.h. */
  14663. $ac_includes_default
  14664. int
  14665. main ()
  14666. {
  14667. if (sizeof (pid_t))
  14668. return 0;
  14669. ;
  14670. return 0;
  14671. }
  14672. _ACEOF
  14673. rm -f conftest.$ac_objext
  14674. if { (ac_try="$ac_compile"
  14675. case "(($ac_try" in
  14676. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14677. *) ac_try_echo=$ac_try;;
  14678. esac
  14679. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14680. $as_echo "$ac_try_echo") >&5
  14681. (eval "$ac_compile") 2>conftest.er1
  14682. ac_status=$?
  14683. grep -v '^ *+' conftest.er1 >conftest.err
  14684. rm -f conftest.er1
  14685. cat conftest.err >&5
  14686. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14687. (exit $ac_status); } && {
  14688. test -z "$ac_c_werror_flag" ||
  14689. test ! -s conftest.err
  14690. } && test -s conftest.$ac_objext; then
  14691. cat >conftest.$ac_ext <<_ACEOF
  14692. /* confdefs.h. */
  14693. _ACEOF
  14694. cat confdefs.h >>conftest.$ac_ext
  14695. cat >>conftest.$ac_ext <<_ACEOF
  14696. /* end confdefs.h. */
  14697. $ac_includes_default
  14698. int
  14699. main ()
  14700. {
  14701. if (sizeof ((pid_t)))
  14702. return 0;
  14703. ;
  14704. return 0;
  14705. }
  14706. _ACEOF
  14707. rm -f conftest.$ac_objext
  14708. if { (ac_try="$ac_compile"
  14709. case "(($ac_try" in
  14710. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14711. *) ac_try_echo=$ac_try;;
  14712. esac
  14713. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14714. $as_echo "$ac_try_echo") >&5
  14715. (eval "$ac_compile") 2>conftest.er1
  14716. ac_status=$?
  14717. grep -v '^ *+' conftest.er1 >conftest.err
  14718. rm -f conftest.er1
  14719. cat conftest.err >&5
  14720. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14721. (exit $ac_status); } && {
  14722. test -z "$ac_c_werror_flag" ||
  14723. test ! -s conftest.err
  14724. } && test -s conftest.$ac_objext; then
  14725. :
  14726. else
  14727. $as_echo "$as_me: failed program was:" >&5
  14728. sed 's/^/| /' conftest.$ac_ext >&5
  14729. ac_cv_type_pid_t=yes
  14730. fi
  14731. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14732. else
  14733. $as_echo "$as_me: failed program was:" >&5
  14734. sed 's/^/| /' conftest.$ac_ext >&5
  14735. fi
  14736. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14737. fi
  14738. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  14739. $as_echo "$ac_cv_type_pid_t" >&6; }
  14740. if test "x$ac_cv_type_pid_t" = x""yes; then
  14741. :
  14742. else
  14743. cat >>confdefs.h <<_ACEOF
  14744. #define pid_t int
  14745. _ACEOF
  14746. fi
  14747. { $as_echo "$as_me:$LINENO: checking for size_t" >&5
  14748. $as_echo_n "checking for size_t... " >&6; }
  14749. if test "${ac_cv_type_size_t+set}" = set; then
  14750. $as_echo_n "(cached) " >&6
  14751. else
  14752. ac_cv_type_size_t=no
  14753. cat >conftest.$ac_ext <<_ACEOF
  14754. /* confdefs.h. */
  14755. _ACEOF
  14756. cat confdefs.h >>conftest.$ac_ext
  14757. cat >>conftest.$ac_ext <<_ACEOF
  14758. /* end confdefs.h. */
  14759. $ac_includes_default
  14760. int
  14761. main ()
  14762. {
  14763. if (sizeof (size_t))
  14764. return 0;
  14765. ;
  14766. return 0;
  14767. }
  14768. _ACEOF
  14769. rm -f conftest.$ac_objext
  14770. if { (ac_try="$ac_compile"
  14771. case "(($ac_try" in
  14772. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14773. *) ac_try_echo=$ac_try;;
  14774. esac
  14775. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14776. $as_echo "$ac_try_echo") >&5
  14777. (eval "$ac_compile") 2>conftest.er1
  14778. ac_status=$?
  14779. grep -v '^ *+' conftest.er1 >conftest.err
  14780. rm -f conftest.er1
  14781. cat conftest.err >&5
  14782. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14783. (exit $ac_status); } && {
  14784. test -z "$ac_c_werror_flag" ||
  14785. test ! -s conftest.err
  14786. } && test -s conftest.$ac_objext; then
  14787. cat >conftest.$ac_ext <<_ACEOF
  14788. /* confdefs.h. */
  14789. _ACEOF
  14790. cat confdefs.h >>conftest.$ac_ext
  14791. cat >>conftest.$ac_ext <<_ACEOF
  14792. /* end confdefs.h. */
  14793. $ac_includes_default
  14794. int
  14795. main ()
  14796. {
  14797. if (sizeof ((size_t)))
  14798. return 0;
  14799. ;
  14800. return 0;
  14801. }
  14802. _ACEOF
  14803. rm -f conftest.$ac_objext
  14804. if { (ac_try="$ac_compile"
  14805. case "(($ac_try" in
  14806. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14807. *) ac_try_echo=$ac_try;;
  14808. esac
  14809. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14810. $as_echo "$ac_try_echo") >&5
  14811. (eval "$ac_compile") 2>conftest.er1
  14812. ac_status=$?
  14813. grep -v '^ *+' conftest.er1 >conftest.err
  14814. rm -f conftest.er1
  14815. cat conftest.err >&5
  14816. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14817. (exit $ac_status); } && {
  14818. test -z "$ac_c_werror_flag" ||
  14819. test ! -s conftest.err
  14820. } && test -s conftest.$ac_objext; then
  14821. :
  14822. else
  14823. $as_echo "$as_me: failed program was:" >&5
  14824. sed 's/^/| /' conftest.$ac_ext >&5
  14825. ac_cv_type_size_t=yes
  14826. fi
  14827. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14828. else
  14829. $as_echo "$as_me: failed program was:" >&5
  14830. sed 's/^/| /' conftest.$ac_ext >&5
  14831. fi
  14832. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14833. fi
  14834. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  14835. $as_echo "$ac_cv_type_size_t" >&6; }
  14836. if test "x$ac_cv_type_size_t" = x""yes; then
  14837. :
  14838. else
  14839. cat >>confdefs.h <<_ACEOF
  14840. #define size_t unsigned int
  14841. _ACEOF
  14842. fi
  14843. { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  14844. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  14845. if test "${ac_cv_header_time+set}" = set; then
  14846. $as_echo_n "(cached) " >&6
  14847. else
  14848. cat >conftest.$ac_ext <<_ACEOF
  14849. /* confdefs.h. */
  14850. _ACEOF
  14851. cat confdefs.h >>conftest.$ac_ext
  14852. cat >>conftest.$ac_ext <<_ACEOF
  14853. /* end confdefs.h. */
  14854. #include <sys/types.h>
  14855. #include <sys/time.h>
  14856. #include <time.h>
  14857. int
  14858. main ()
  14859. {
  14860. if ((struct tm *) 0)
  14861. return 0;
  14862. ;
  14863. return 0;
  14864. }
  14865. _ACEOF
  14866. rm -f conftest.$ac_objext
  14867. if { (ac_try="$ac_compile"
  14868. case "(($ac_try" in
  14869. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14870. *) ac_try_echo=$ac_try;;
  14871. esac
  14872. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14873. $as_echo "$ac_try_echo") >&5
  14874. (eval "$ac_compile") 2>conftest.er1
  14875. ac_status=$?
  14876. grep -v '^ *+' conftest.er1 >conftest.err
  14877. rm -f conftest.er1
  14878. cat conftest.err >&5
  14879. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14880. (exit $ac_status); } && {
  14881. test -z "$ac_c_werror_flag" ||
  14882. test ! -s conftest.err
  14883. } && test -s conftest.$ac_objext; then
  14884. ac_cv_header_time=yes
  14885. else
  14886. $as_echo "$as_me: failed program was:" >&5
  14887. sed 's/^/| /' conftest.$ac_ext >&5
  14888. ac_cv_header_time=no
  14889. fi
  14890. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14891. fi
  14892. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  14893. $as_echo "$ac_cv_header_time" >&6; }
  14894. if test $ac_cv_header_time = yes; then
  14895. cat >>confdefs.h <<\_ACEOF
  14896. #define TIME_WITH_SYS_TIME 1
  14897. _ACEOF
  14898. fi
  14899. { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  14900. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  14901. if test "${ac_cv_struct_tm+set}" = set; then
  14902. $as_echo_n "(cached) " >&6
  14903. else
  14904. cat >conftest.$ac_ext <<_ACEOF
  14905. /* confdefs.h. */
  14906. _ACEOF
  14907. cat confdefs.h >>conftest.$ac_ext
  14908. cat >>conftest.$ac_ext <<_ACEOF
  14909. /* end confdefs.h. */
  14910. #include <sys/types.h>
  14911. #include <time.h>
  14912. int
  14913. main ()
  14914. {
  14915. struct tm tm;
  14916. int *p = &tm.tm_sec;
  14917. return !p;
  14918. ;
  14919. return 0;
  14920. }
  14921. _ACEOF
  14922. rm -f conftest.$ac_objext
  14923. if { (ac_try="$ac_compile"
  14924. case "(($ac_try" in
  14925. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14926. *) ac_try_echo=$ac_try;;
  14927. esac
  14928. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14929. $as_echo "$ac_try_echo") >&5
  14930. (eval "$ac_compile") 2>conftest.er1
  14931. ac_status=$?
  14932. grep -v '^ *+' conftest.er1 >conftest.err
  14933. rm -f conftest.er1
  14934. cat conftest.err >&5
  14935. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14936. (exit $ac_status); } && {
  14937. test -z "$ac_c_werror_flag" ||
  14938. test ! -s conftest.err
  14939. } && test -s conftest.$ac_objext; then
  14940. ac_cv_struct_tm=time.h
  14941. else
  14942. $as_echo "$as_me: failed program was:" >&5
  14943. sed 's/^/| /' conftest.$ac_ext >&5
  14944. ac_cv_struct_tm=sys/time.h
  14945. fi
  14946. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14947. fi
  14948. { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  14949. $as_echo "$ac_cv_struct_tm" >&6; }
  14950. if test $ac_cv_struct_tm = sys/time.h; then
  14951. cat >>confdefs.h <<\_ACEOF
  14952. #define TM_IN_SYS_TIME 1
  14953. _ACEOF
  14954. fi
  14955. # Checks for library functions.
  14956. for ac_header in unistd.h
  14957. do
  14958. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14959. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14960. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  14961. $as_echo_n "checking for $ac_header... " >&6; }
  14962. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14963. $as_echo_n "(cached) " >&6
  14964. fi
  14965. ac_res=`eval 'as_val=${'$as_ac_Header'}
  14966. $as_echo "$as_val"'`
  14967. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14968. $as_echo "$ac_res" >&6; }
  14969. else
  14970. # Is the header compilable?
  14971. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14972. $as_echo_n "checking $ac_header usability... " >&6; }
  14973. cat >conftest.$ac_ext <<_ACEOF
  14974. /* confdefs.h. */
  14975. _ACEOF
  14976. cat confdefs.h >>conftest.$ac_ext
  14977. cat >>conftest.$ac_ext <<_ACEOF
  14978. /* end confdefs.h. */
  14979. $ac_includes_default
  14980. #include <$ac_header>
  14981. _ACEOF
  14982. rm -f conftest.$ac_objext
  14983. if { (ac_try="$ac_compile"
  14984. case "(($ac_try" in
  14985. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14986. *) ac_try_echo=$ac_try;;
  14987. esac
  14988. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14989. $as_echo "$ac_try_echo") >&5
  14990. (eval "$ac_compile") 2>conftest.er1
  14991. ac_status=$?
  14992. grep -v '^ *+' conftest.er1 >conftest.err
  14993. rm -f conftest.er1
  14994. cat conftest.err >&5
  14995. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14996. (exit $ac_status); } && {
  14997. test -z "$ac_c_werror_flag" ||
  14998. test ! -s conftest.err
  14999. } && test -s conftest.$ac_objext; then
  15000. ac_header_compiler=yes
  15001. else
  15002. $as_echo "$as_me: failed program was:" >&5
  15003. sed 's/^/| /' conftest.$ac_ext >&5
  15004. ac_header_compiler=no
  15005. fi
  15006. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15007. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15008. $as_echo "$ac_header_compiler" >&6; }
  15009. # Is the header present?
  15010. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15011. $as_echo_n "checking $ac_header presence... " >&6; }
  15012. cat >conftest.$ac_ext <<_ACEOF
  15013. /* confdefs.h. */
  15014. _ACEOF
  15015. cat confdefs.h >>conftest.$ac_ext
  15016. cat >>conftest.$ac_ext <<_ACEOF
  15017. /* end confdefs.h. */
  15018. #include <$ac_header>
  15019. _ACEOF
  15020. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15021. case "(($ac_try" in
  15022. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15023. *) ac_try_echo=$ac_try;;
  15024. esac
  15025. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15026. $as_echo "$ac_try_echo") >&5
  15027. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15028. ac_status=$?
  15029. grep -v '^ *+' conftest.er1 >conftest.err
  15030. rm -f conftest.er1
  15031. cat conftest.err >&5
  15032. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15033. (exit $ac_status); } >/dev/null && {
  15034. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  15035. test ! -s conftest.err
  15036. }; then
  15037. ac_header_preproc=yes
  15038. else
  15039. $as_echo "$as_me: failed program was:" >&5
  15040. sed 's/^/| /' conftest.$ac_ext >&5
  15041. ac_header_preproc=no
  15042. fi
  15043. rm -f conftest.err conftest.$ac_ext
  15044. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15045. $as_echo "$ac_header_preproc" >&6; }
  15046. # So? What about this header?
  15047. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  15048. yes:no: )
  15049. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15050. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15051. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15052. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15053. ac_header_preproc=yes
  15054. ;;
  15055. no:yes:* )
  15056. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15057. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15058. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15059. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15060. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15061. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15062. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15063. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15064. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15065. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15066. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15067. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15068. ( cat <<\_ASBOX
  15069. ## ------------------------------------------ ##
  15070. ## Report this to http://bugzilla.redhat.com/ ##
  15071. ## ------------------------------------------ ##
  15072. _ASBOX
  15073. ) | sed "s/^/$as_me: WARNING: /" >&2
  15074. ;;
  15075. esac
  15076. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15077. $as_echo_n "checking for $ac_header... " >&6; }
  15078. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15079. $as_echo_n "(cached) " >&6
  15080. else
  15081. eval "$as_ac_Header=\$ac_header_preproc"
  15082. fi
  15083. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15084. $as_echo "$as_val"'`
  15085. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15086. $as_echo "$ac_res" >&6; }
  15087. fi
  15088. as_val=`eval 'as_val=${'$as_ac_Header'}
  15089. $as_echo "$as_val"'`
  15090. if test "x$as_val" = x""yes; then
  15091. cat >>confdefs.h <<_ACEOF
  15092. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15093. _ACEOF
  15094. fi
  15095. done
  15096. { $as_echo "$as_me:$LINENO: checking for working chown" >&5
  15097. $as_echo_n "checking for working chown... " >&6; }
  15098. if test "${ac_cv_func_chown_works+set}" = set; then
  15099. $as_echo_n "(cached) " >&6
  15100. else
  15101. if test "$cross_compiling" = yes; then
  15102. ac_cv_func_chown_works=no
  15103. else
  15104. cat >conftest.$ac_ext <<_ACEOF
  15105. /* confdefs.h. */
  15106. _ACEOF
  15107. cat confdefs.h >>conftest.$ac_ext
  15108. cat >>conftest.$ac_ext <<_ACEOF
  15109. /* end confdefs.h. */
  15110. $ac_includes_default
  15111. #include <fcntl.h>
  15112. int
  15113. main ()
  15114. {
  15115. char *f = "conftest.chown";
  15116. struct stat before, after;
  15117. if (creat (f, 0600) < 0)
  15118. return 1;
  15119. if (stat (f, &before) < 0)
  15120. return 1;
  15121. if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
  15122. return 1;
  15123. if (stat (f, &after) < 0)
  15124. return 1;
  15125. return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
  15126. ;
  15127. return 0;
  15128. }
  15129. _ACEOF
  15130. rm -f conftest$ac_exeext
  15131. if { (ac_try="$ac_link"
  15132. case "(($ac_try" in
  15133. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15134. *) ac_try_echo=$ac_try;;
  15135. esac
  15136. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15137. $as_echo "$ac_try_echo") >&5
  15138. (eval "$ac_link") 2>&5
  15139. ac_status=$?
  15140. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15141. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15142. { (case "(($ac_try" in
  15143. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15144. *) ac_try_echo=$ac_try;;
  15145. esac
  15146. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15147. $as_echo "$ac_try_echo") >&5
  15148. (eval "$ac_try") 2>&5
  15149. ac_status=$?
  15150. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15151. (exit $ac_status); }; }; then
  15152. ac_cv_func_chown_works=yes
  15153. else
  15154. $as_echo "$as_me: program exited with status $ac_status" >&5
  15155. $as_echo "$as_me: failed program was:" >&5
  15156. sed 's/^/| /' conftest.$ac_ext >&5
  15157. ( exit $ac_status )
  15158. ac_cv_func_chown_works=no
  15159. fi
  15160. rm -rf conftest.dSYM
  15161. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15162. fi
  15163. rm -f conftest.chown
  15164. fi
  15165. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
  15166. $as_echo "$ac_cv_func_chown_works" >&6; }
  15167. if test $ac_cv_func_chown_works = yes; then
  15168. cat >>confdefs.h <<\_ACEOF
  15169. #define HAVE_CHOWN 1
  15170. _ACEOF
  15171. fi
  15172. { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
  15173. $as_echo_n "checking whether closedir returns void... " >&6; }
  15174. if test "${ac_cv_func_closedir_void+set}" = set; then
  15175. $as_echo_n "(cached) " >&6
  15176. else
  15177. if test "$cross_compiling" = yes; then
  15178. ac_cv_func_closedir_void=yes
  15179. else
  15180. cat >conftest.$ac_ext <<_ACEOF
  15181. /* confdefs.h. */
  15182. _ACEOF
  15183. cat confdefs.h >>conftest.$ac_ext
  15184. cat >>conftest.$ac_ext <<_ACEOF
  15185. /* end confdefs.h. */
  15186. $ac_includes_default
  15187. #include <$ac_header_dirent>
  15188. #ifndef __cplusplus
  15189. int closedir ();
  15190. #endif
  15191. int
  15192. main ()
  15193. {
  15194. return closedir (opendir (".")) != 0;
  15195. ;
  15196. return 0;
  15197. }
  15198. _ACEOF
  15199. rm -f conftest$ac_exeext
  15200. if { (ac_try="$ac_link"
  15201. case "(($ac_try" in
  15202. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15203. *) ac_try_echo=$ac_try;;
  15204. esac
  15205. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15206. $as_echo "$ac_try_echo") >&5
  15207. (eval "$ac_link") 2>&5
  15208. ac_status=$?
  15209. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15210. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15211. { (case "(($ac_try" in
  15212. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15213. *) ac_try_echo=$ac_try;;
  15214. esac
  15215. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15216. $as_echo "$ac_try_echo") >&5
  15217. (eval "$ac_try") 2>&5
  15218. ac_status=$?
  15219. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15220. (exit $ac_status); }; }; then
  15221. ac_cv_func_closedir_void=no
  15222. else
  15223. $as_echo "$as_me: program exited with status $ac_status" >&5
  15224. $as_echo "$as_me: failed program was:" >&5
  15225. sed 's/^/| /' conftest.$ac_ext >&5
  15226. ( exit $ac_status )
  15227. ac_cv_func_closedir_void=yes
  15228. fi
  15229. rm -rf conftest.dSYM
  15230. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15231. fi
  15232. fi
  15233. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
  15234. $as_echo "$ac_cv_func_closedir_void" >&6; }
  15235. if test $ac_cv_func_closedir_void = yes; then
  15236. cat >>confdefs.h <<\_ACEOF
  15237. #define CLOSEDIR_VOID 1
  15238. _ACEOF
  15239. fi
  15240. { $as_echo "$as_me:$LINENO: checking for error_at_line" >&5
  15241. $as_echo_n "checking for error_at_line... " >&6; }
  15242. if test "${ac_cv_lib_error_at_line+set}" = set; then
  15243. $as_echo_n "(cached) " >&6
  15244. else
  15245. cat >conftest.$ac_ext <<_ACEOF
  15246. /* confdefs.h. */
  15247. _ACEOF
  15248. cat confdefs.h >>conftest.$ac_ext
  15249. cat >>conftest.$ac_ext <<_ACEOF
  15250. /* end confdefs.h. */
  15251. #include <error.h>
  15252. int
  15253. main ()
  15254. {
  15255. error_at_line (0, 0, "", 0, "an error occurred");
  15256. ;
  15257. return 0;
  15258. }
  15259. _ACEOF
  15260. rm -f conftest.$ac_objext conftest$ac_exeext
  15261. if { (ac_try="$ac_link"
  15262. case "(($ac_try" in
  15263. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15264. *) ac_try_echo=$ac_try;;
  15265. esac
  15266. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15267. $as_echo "$ac_try_echo") >&5
  15268. (eval "$ac_link") 2>conftest.er1
  15269. ac_status=$?
  15270. grep -v '^ *+' conftest.er1 >conftest.err
  15271. rm -f conftest.er1
  15272. cat conftest.err >&5
  15273. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15274. (exit $ac_status); } && {
  15275. test -z "$ac_c_werror_flag" ||
  15276. test ! -s conftest.err
  15277. } && test -s conftest$ac_exeext && {
  15278. test "$cross_compiling" = yes ||
  15279. $as_test_x conftest$ac_exeext
  15280. }; then
  15281. ac_cv_lib_error_at_line=yes
  15282. else
  15283. $as_echo "$as_me: failed program was:" >&5
  15284. sed 's/^/| /' conftest.$ac_ext >&5
  15285. ac_cv_lib_error_at_line=no
  15286. fi
  15287. rm -rf conftest.dSYM
  15288. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15289. conftest$ac_exeext conftest.$ac_ext
  15290. fi
  15291. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  15292. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  15293. if test $ac_cv_lib_error_at_line = no; then
  15294. case " $LIBOBJS " in
  15295. *" error.$ac_objext "* ) ;;
  15296. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  15297. ;;
  15298. esac
  15299. fi
  15300. for ac_header in vfork.h
  15301. do
  15302. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15303. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15304. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15305. $as_echo_n "checking for $ac_header... " >&6; }
  15306. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15307. $as_echo_n "(cached) " >&6
  15308. fi
  15309. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15310. $as_echo "$as_val"'`
  15311. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15312. $as_echo "$ac_res" >&6; }
  15313. else
  15314. # Is the header compilable?
  15315. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15316. $as_echo_n "checking $ac_header usability... " >&6; }
  15317. cat >conftest.$ac_ext <<_ACEOF
  15318. /* confdefs.h. */
  15319. _ACEOF
  15320. cat confdefs.h >>conftest.$ac_ext
  15321. cat >>conftest.$ac_ext <<_ACEOF
  15322. /* end confdefs.h. */
  15323. $ac_includes_default
  15324. #include <$ac_header>
  15325. _ACEOF
  15326. rm -f conftest.$ac_objext
  15327. if { (ac_try="$ac_compile"
  15328. case "(($ac_try" in
  15329. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15330. *) ac_try_echo=$ac_try;;
  15331. esac
  15332. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15333. $as_echo "$ac_try_echo") >&5
  15334. (eval "$ac_compile") 2>conftest.er1
  15335. ac_status=$?
  15336. grep -v '^ *+' conftest.er1 >conftest.err
  15337. rm -f conftest.er1
  15338. cat conftest.err >&5
  15339. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15340. (exit $ac_status); } && {
  15341. test -z "$ac_c_werror_flag" ||
  15342. test ! -s conftest.err
  15343. } && test -s conftest.$ac_objext; then
  15344. ac_header_compiler=yes
  15345. else
  15346. $as_echo "$as_me: failed program was:" >&5
  15347. sed 's/^/| /' conftest.$ac_ext >&5
  15348. ac_header_compiler=no
  15349. fi
  15350. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15351. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15352. $as_echo "$ac_header_compiler" >&6; }
  15353. # Is the header present?
  15354. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15355. $as_echo_n "checking $ac_header presence... " >&6; }
  15356. cat >conftest.$ac_ext <<_ACEOF
  15357. /* confdefs.h. */
  15358. _ACEOF
  15359. cat confdefs.h >>conftest.$ac_ext
  15360. cat >>conftest.$ac_ext <<_ACEOF
  15361. /* end confdefs.h. */
  15362. #include <$ac_header>
  15363. _ACEOF
  15364. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15365. case "(($ac_try" in
  15366. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15367. *) ac_try_echo=$ac_try;;
  15368. esac
  15369. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15370. $as_echo "$ac_try_echo") >&5
  15371. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15372. ac_status=$?
  15373. grep -v '^ *+' conftest.er1 >conftest.err
  15374. rm -f conftest.er1
  15375. cat conftest.err >&5
  15376. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15377. (exit $ac_status); } >/dev/null && {
  15378. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  15379. test ! -s conftest.err
  15380. }; then
  15381. ac_header_preproc=yes
  15382. else
  15383. $as_echo "$as_me: failed program was:" >&5
  15384. sed 's/^/| /' conftest.$ac_ext >&5
  15385. ac_header_preproc=no
  15386. fi
  15387. rm -f conftest.err conftest.$ac_ext
  15388. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15389. $as_echo "$ac_header_preproc" >&6; }
  15390. # So? What about this header?
  15391. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  15392. yes:no: )
  15393. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15394. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15395. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15396. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15397. ac_header_preproc=yes
  15398. ;;
  15399. no:yes:* )
  15400. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15401. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15402. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15403. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15404. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15405. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15406. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15407. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15408. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15409. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15410. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15411. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15412. ( cat <<\_ASBOX
  15413. ## ------------------------------------------ ##
  15414. ## Report this to http://bugzilla.redhat.com/ ##
  15415. ## ------------------------------------------ ##
  15416. _ASBOX
  15417. ) | sed "s/^/$as_me: WARNING: /" >&2
  15418. ;;
  15419. esac
  15420. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15421. $as_echo_n "checking for $ac_header... " >&6; }
  15422. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15423. $as_echo_n "(cached) " >&6
  15424. else
  15425. eval "$as_ac_Header=\$ac_header_preproc"
  15426. fi
  15427. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15428. $as_echo "$as_val"'`
  15429. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15430. $as_echo "$ac_res" >&6; }
  15431. fi
  15432. as_val=`eval 'as_val=${'$as_ac_Header'}
  15433. $as_echo "$as_val"'`
  15434. if test "x$as_val" = x""yes; then
  15435. cat >>confdefs.h <<_ACEOF
  15436. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15437. _ACEOF
  15438. fi
  15439. done
  15440. for ac_func in fork vfork
  15441. do
  15442. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15443. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  15444. $as_echo_n "checking for $ac_func... " >&6; }
  15445. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  15446. $as_echo_n "(cached) " >&6
  15447. else
  15448. cat >conftest.$ac_ext <<_ACEOF
  15449. /* confdefs.h. */
  15450. _ACEOF
  15451. cat confdefs.h >>conftest.$ac_ext
  15452. cat >>conftest.$ac_ext <<_ACEOF
  15453. /* end confdefs.h. */
  15454. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  15455. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15456. #define $ac_func innocuous_$ac_func
  15457. /* System header to define __stub macros and hopefully few prototypes,
  15458. which can conflict with char $ac_func (); below.
  15459. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15460. <limits.h> exists even on freestanding compilers. */
  15461. #ifdef __STDC__
  15462. # include <limits.h>
  15463. #else
  15464. # include <assert.h>
  15465. #endif
  15466. #undef $ac_func
  15467. /* Override any GCC internal prototype to avoid an error.
  15468. Use char because int might match the return type of a GCC
  15469. builtin and then its argument prototype would still apply. */
  15470. #ifdef __cplusplus
  15471. extern "C"
  15472. #endif
  15473. char $ac_func ();
  15474. /* The GNU C library defines this for functions which it implements
  15475. to always fail with ENOSYS. Some functions are actually named
  15476. something starting with __ and the normal name is an alias. */
  15477. #if defined __stub_$ac_func || defined __stub___$ac_func
  15478. choke me
  15479. #endif
  15480. int
  15481. main ()
  15482. {
  15483. return $ac_func ();
  15484. ;
  15485. return 0;
  15486. }
  15487. _ACEOF
  15488. rm -f conftest.$ac_objext conftest$ac_exeext
  15489. if { (ac_try="$ac_link"
  15490. case "(($ac_try" in
  15491. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15492. *) ac_try_echo=$ac_try;;
  15493. esac
  15494. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15495. $as_echo "$ac_try_echo") >&5
  15496. (eval "$ac_link") 2>conftest.er1
  15497. ac_status=$?
  15498. grep -v '^ *+' conftest.er1 >conftest.err
  15499. rm -f conftest.er1
  15500. cat conftest.err >&5
  15501. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15502. (exit $ac_status); } && {
  15503. test -z "$ac_c_werror_flag" ||
  15504. test ! -s conftest.err
  15505. } && test -s conftest$ac_exeext && {
  15506. test "$cross_compiling" = yes ||
  15507. $as_test_x conftest$ac_exeext
  15508. }; then
  15509. eval "$as_ac_var=yes"
  15510. else
  15511. $as_echo "$as_me: failed program was:" >&5
  15512. sed 's/^/| /' conftest.$ac_ext >&5
  15513. eval "$as_ac_var=no"
  15514. fi
  15515. rm -rf conftest.dSYM
  15516. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15517. conftest$ac_exeext conftest.$ac_ext
  15518. fi
  15519. ac_res=`eval 'as_val=${'$as_ac_var'}
  15520. $as_echo "$as_val"'`
  15521. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15522. $as_echo "$ac_res" >&6; }
  15523. as_val=`eval 'as_val=${'$as_ac_var'}
  15524. $as_echo "$as_val"'`
  15525. if test "x$as_val" = x""yes; then
  15526. cat >>confdefs.h <<_ACEOF
  15527. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15528. _ACEOF
  15529. fi
  15530. done
  15531. if test "x$ac_cv_func_fork" = xyes; then
  15532. { $as_echo "$as_me:$LINENO: checking for working fork" >&5
  15533. $as_echo_n "checking for working fork... " >&6; }
  15534. if test "${ac_cv_func_fork_works+set}" = set; then
  15535. $as_echo_n "(cached) " >&6
  15536. else
  15537. if test "$cross_compiling" = yes; then
  15538. ac_cv_func_fork_works=cross
  15539. else
  15540. cat >conftest.$ac_ext <<_ACEOF
  15541. /* confdefs.h. */
  15542. _ACEOF
  15543. cat confdefs.h >>conftest.$ac_ext
  15544. cat >>conftest.$ac_ext <<_ACEOF
  15545. /* end confdefs.h. */
  15546. $ac_includes_default
  15547. int
  15548. main ()
  15549. {
  15550. /* By Ruediger Kuhlmann. */
  15551. return fork () < 0;
  15552. ;
  15553. return 0;
  15554. }
  15555. _ACEOF
  15556. rm -f conftest$ac_exeext
  15557. if { (ac_try="$ac_link"
  15558. case "(($ac_try" in
  15559. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15560. *) ac_try_echo=$ac_try;;
  15561. esac
  15562. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15563. $as_echo "$ac_try_echo") >&5
  15564. (eval "$ac_link") 2>&5
  15565. ac_status=$?
  15566. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15567. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15568. { (case "(($ac_try" in
  15569. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15570. *) ac_try_echo=$ac_try;;
  15571. esac
  15572. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15573. $as_echo "$ac_try_echo") >&5
  15574. (eval "$ac_try") 2>&5
  15575. ac_status=$?
  15576. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15577. (exit $ac_status); }; }; then
  15578. ac_cv_func_fork_works=yes
  15579. else
  15580. $as_echo "$as_me: program exited with status $ac_status" >&5
  15581. $as_echo "$as_me: failed program was:" >&5
  15582. sed 's/^/| /' conftest.$ac_ext >&5
  15583. ( exit $ac_status )
  15584. ac_cv_func_fork_works=no
  15585. fi
  15586. rm -rf conftest.dSYM
  15587. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15588. fi
  15589. fi
  15590. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  15591. $as_echo "$ac_cv_func_fork_works" >&6; }
  15592. else
  15593. ac_cv_func_fork_works=$ac_cv_func_fork
  15594. fi
  15595. if test "x$ac_cv_func_fork_works" = xcross; then
  15596. case $host in
  15597. *-*-amigaos* | *-*-msdosdjgpp*)
  15598. # Override, as these systems have only a dummy fork() stub
  15599. ac_cv_func_fork_works=no
  15600. ;;
  15601. *)
  15602. ac_cv_func_fork_works=yes
  15603. ;;
  15604. esac
  15605. { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  15606. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  15607. fi
  15608. ac_cv_func_vfork_works=$ac_cv_func_vfork
  15609. if test "x$ac_cv_func_vfork" = xyes; then
  15610. { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
  15611. $as_echo_n "checking for working vfork... " >&6; }
  15612. if test "${ac_cv_func_vfork_works+set}" = set; then
  15613. $as_echo_n "(cached) " >&6
  15614. else
  15615. if test "$cross_compiling" = yes; then
  15616. ac_cv_func_vfork_works=cross
  15617. else
  15618. cat >conftest.$ac_ext <<_ACEOF
  15619. /* confdefs.h. */
  15620. _ACEOF
  15621. cat confdefs.h >>conftest.$ac_ext
  15622. cat >>conftest.$ac_ext <<_ACEOF
  15623. /* end confdefs.h. */
  15624. /* Thanks to Paul Eggert for this test. */
  15625. $ac_includes_default
  15626. #include <sys/wait.h>
  15627. #ifdef HAVE_VFORK_H
  15628. # include <vfork.h>
  15629. #endif
  15630. /* On some sparc systems, changes by the child to local and incoming
  15631. argument registers are propagated back to the parent. The compiler
  15632. is told about this with #include <vfork.h>, but some compilers
  15633. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  15634. static variable whose address is put into a register that is
  15635. clobbered by the vfork. */
  15636. static void
  15637. #ifdef __cplusplus
  15638. sparc_address_test (int arg)
  15639. # else
  15640. sparc_address_test (arg) int arg;
  15641. #endif
  15642. {
  15643. static pid_t child;
  15644. if (!child) {
  15645. child = vfork ();
  15646. if (child < 0) {
  15647. perror ("vfork");
  15648. _exit(2);
  15649. }
  15650. if (!child) {
  15651. arg = getpid();
  15652. write(-1, "", 0);
  15653. _exit (arg);
  15654. }
  15655. }
  15656. }
  15657. int
  15658. main ()
  15659. {
  15660. pid_t parent = getpid ();
  15661. pid_t child;
  15662. sparc_address_test (0);
  15663. child = vfork ();
  15664. if (child == 0) {
  15665. /* Here is another test for sparc vfork register problems. This
  15666. test uses lots of local variables, at least as many local
  15667. variables as main has allocated so far including compiler
  15668. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  15669. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  15670. reuse the register of parent for one of the local variables,
  15671. since it will think that parent can't possibly be used any more
  15672. in this routine. Assigning to the local variable will thus
  15673. munge parent in the parent process. */
  15674. pid_t
  15675. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  15676. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  15677. /* Convince the compiler that p..p7 are live; otherwise, it might
  15678. use the same hardware register for all 8 local variables. */
  15679. if (p != p1 || p != p2 || p != p3 || p != p4
  15680. || p != p5 || p != p6 || p != p7)
  15681. _exit(1);
  15682. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  15683. from child file descriptors. If the child closes a descriptor
  15684. before it execs or exits, this munges the parent's descriptor
  15685. as well. Test for this by closing stdout in the child. */
  15686. _exit(close(fileno(stdout)) != 0);
  15687. } else {
  15688. int status;
  15689. struct stat st;
  15690. while (wait(&status) != child)
  15691. ;
  15692. return (
  15693. /* Was there some problem with vforking? */
  15694. child < 0
  15695. /* Did the child fail? (This shouldn't happen.) */
  15696. || status
  15697. /* Did the vfork/compiler bug occur? */
  15698. || parent != getpid()
  15699. /* Did the file descriptor bug occur? */
  15700. || fstat(fileno(stdout), &st) != 0
  15701. );
  15702. }
  15703. }
  15704. _ACEOF
  15705. rm -f conftest$ac_exeext
  15706. if { (ac_try="$ac_link"
  15707. case "(($ac_try" in
  15708. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15709. *) ac_try_echo=$ac_try;;
  15710. esac
  15711. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15712. $as_echo "$ac_try_echo") >&5
  15713. (eval "$ac_link") 2>&5
  15714. ac_status=$?
  15715. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15716. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15717. { (case "(($ac_try" in
  15718. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15719. *) ac_try_echo=$ac_try;;
  15720. esac
  15721. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15722. $as_echo "$ac_try_echo") >&5
  15723. (eval "$ac_try") 2>&5
  15724. ac_status=$?
  15725. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15726. (exit $ac_status); }; }; then
  15727. ac_cv_func_vfork_works=yes
  15728. else
  15729. $as_echo "$as_me: program exited with status $ac_status" >&5
  15730. $as_echo "$as_me: failed program was:" >&5
  15731. sed 's/^/| /' conftest.$ac_ext >&5
  15732. ( exit $ac_status )
  15733. ac_cv_func_vfork_works=no
  15734. fi
  15735. rm -rf conftest.dSYM
  15736. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15737. fi
  15738. fi
  15739. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  15740. $as_echo "$ac_cv_func_vfork_works" >&6; }
  15741. fi;
  15742. if test "x$ac_cv_func_fork_works" = xcross; then
  15743. ac_cv_func_vfork_works=$ac_cv_func_vfork
  15744. { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  15745. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  15746. fi
  15747. if test "x$ac_cv_func_vfork_works" = xyes; then
  15748. cat >>confdefs.h <<\_ACEOF
  15749. #define HAVE_WORKING_VFORK 1
  15750. _ACEOF
  15751. else
  15752. cat >>confdefs.h <<\_ACEOF
  15753. #define vfork fork
  15754. _ACEOF
  15755. fi
  15756. if test "x$ac_cv_func_fork_works" = xyes; then
  15757. cat >>confdefs.h <<\_ACEOF
  15758. #define HAVE_WORKING_FORK 1
  15759. _ACEOF
  15760. fi
  15761. { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  15762. $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
  15763. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  15764. $as_echo_n "(cached) " >&6
  15765. else
  15766. rm -f conftest.sym conftest.file
  15767. echo >conftest.file
  15768. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  15769. if test "$cross_compiling" = yes; then
  15770. ac_cv_func_lstat_dereferences_slashed_symlink=no
  15771. else
  15772. cat >conftest.$ac_ext <<_ACEOF
  15773. /* confdefs.h. */
  15774. _ACEOF
  15775. cat confdefs.h >>conftest.$ac_ext
  15776. cat >>conftest.$ac_ext <<_ACEOF
  15777. /* end confdefs.h. */
  15778. $ac_includes_default
  15779. int
  15780. main ()
  15781. {
  15782. struct stat sbuf;
  15783. /* Linux will dereference the symlink and fail.
  15784. That is better in the sense that it means we will not
  15785. have to compile and use the lstat wrapper. */
  15786. return lstat ("conftest.sym/", &sbuf) == 0;
  15787. ;
  15788. return 0;
  15789. }
  15790. _ACEOF
  15791. rm -f conftest$ac_exeext
  15792. if { (ac_try="$ac_link"
  15793. case "(($ac_try" in
  15794. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15795. *) ac_try_echo=$ac_try;;
  15796. esac
  15797. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15798. $as_echo "$ac_try_echo") >&5
  15799. (eval "$ac_link") 2>&5
  15800. ac_status=$?
  15801. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15802. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15803. { (case "(($ac_try" in
  15804. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15805. *) ac_try_echo=$ac_try;;
  15806. esac
  15807. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15808. $as_echo "$ac_try_echo") >&5
  15809. (eval "$ac_try") 2>&5
  15810. ac_status=$?
  15811. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15812. (exit $ac_status); }; }; then
  15813. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  15814. else
  15815. $as_echo "$as_me: program exited with status $ac_status" >&5
  15816. $as_echo "$as_me: failed program was:" >&5
  15817. sed 's/^/| /' conftest.$ac_ext >&5
  15818. ( exit $ac_status )
  15819. ac_cv_func_lstat_dereferences_slashed_symlink=no
  15820. fi
  15821. rm -rf conftest.dSYM
  15822. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15823. fi
  15824. else
  15825. # If the `ln -s' command failed, then we probably don't even
  15826. # have an lstat function.
  15827. ac_cv_func_lstat_dereferences_slashed_symlink=no
  15828. fi
  15829. rm -f conftest.sym conftest.file
  15830. fi
  15831. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  15832. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  15833. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  15834. cat >>confdefs.h <<_ACEOF
  15835. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  15836. _ACEOF
  15837. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  15838. case " $LIBOBJS " in
  15839. *" lstat.$ac_objext "* ) ;;
  15840. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  15841. ;;
  15842. esac
  15843. fi
  15844. { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  15845. $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
  15846. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  15847. $as_echo_n "(cached) " >&6
  15848. else
  15849. if test "$cross_compiling" = yes; then
  15850. ac_cv_func_lstat_empty_string_bug=yes
  15851. else
  15852. cat >conftest.$ac_ext <<_ACEOF
  15853. /* confdefs.h. */
  15854. _ACEOF
  15855. cat confdefs.h >>conftest.$ac_ext
  15856. cat >>conftest.$ac_ext <<_ACEOF
  15857. /* end confdefs.h. */
  15858. $ac_includes_default
  15859. int
  15860. main ()
  15861. {
  15862. struct stat sbuf;
  15863. return lstat ("", &sbuf) == 0;
  15864. ;
  15865. return 0;
  15866. }
  15867. _ACEOF
  15868. rm -f conftest$ac_exeext
  15869. if { (ac_try="$ac_link"
  15870. case "(($ac_try" in
  15871. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15872. *) ac_try_echo=$ac_try;;
  15873. esac
  15874. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15875. $as_echo "$ac_try_echo") >&5
  15876. (eval "$ac_link") 2>&5
  15877. ac_status=$?
  15878. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15879. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15880. { (case "(($ac_try" in
  15881. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15882. *) ac_try_echo=$ac_try;;
  15883. esac
  15884. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15885. $as_echo "$ac_try_echo") >&5
  15886. (eval "$ac_try") 2>&5
  15887. ac_status=$?
  15888. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15889. (exit $ac_status); }; }; then
  15890. ac_cv_func_lstat_empty_string_bug=no
  15891. else
  15892. $as_echo "$as_me: program exited with status $ac_status" >&5
  15893. $as_echo "$as_me: failed program was:" >&5
  15894. sed 's/^/| /' conftest.$ac_ext >&5
  15895. ( exit $ac_status )
  15896. ac_cv_func_lstat_empty_string_bug=yes
  15897. fi
  15898. rm -rf conftest.dSYM
  15899. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15900. fi
  15901. fi
  15902. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  15903. $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
  15904. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  15905. case " $LIBOBJS " in
  15906. *" lstat.$ac_objext "* ) ;;
  15907. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  15908. ;;
  15909. esac
  15910. cat >>confdefs.h <<_ACEOF
  15911. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  15912. _ACEOF
  15913. fi
  15914. { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  15915. $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
  15916. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  15917. $as_echo_n "(cached) " >&6
  15918. else
  15919. rm -f conftest.sym conftest.file
  15920. echo >conftest.file
  15921. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  15922. if test "$cross_compiling" = yes; then
  15923. ac_cv_func_lstat_dereferences_slashed_symlink=no
  15924. else
  15925. cat >conftest.$ac_ext <<_ACEOF
  15926. /* confdefs.h. */
  15927. _ACEOF
  15928. cat confdefs.h >>conftest.$ac_ext
  15929. cat >>conftest.$ac_ext <<_ACEOF
  15930. /* end confdefs.h. */
  15931. $ac_includes_default
  15932. int
  15933. main ()
  15934. {
  15935. struct stat sbuf;
  15936. /* Linux will dereference the symlink and fail.
  15937. That is better in the sense that it means we will not
  15938. have to compile and use the lstat wrapper. */
  15939. return lstat ("conftest.sym/", &sbuf) == 0;
  15940. ;
  15941. return 0;
  15942. }
  15943. _ACEOF
  15944. rm -f conftest$ac_exeext
  15945. if { (ac_try="$ac_link"
  15946. case "(($ac_try" in
  15947. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15948. *) ac_try_echo=$ac_try;;
  15949. esac
  15950. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15951. $as_echo "$ac_try_echo") >&5
  15952. (eval "$ac_link") 2>&5
  15953. ac_status=$?
  15954. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15955. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15956. { (case "(($ac_try" in
  15957. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15958. *) ac_try_echo=$ac_try;;
  15959. esac
  15960. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15961. $as_echo "$ac_try_echo") >&5
  15962. (eval "$ac_try") 2>&5
  15963. ac_status=$?
  15964. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15965. (exit $ac_status); }; }; then
  15966. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  15967. else
  15968. $as_echo "$as_me: program exited with status $ac_status" >&5
  15969. $as_echo "$as_me: failed program was:" >&5
  15970. sed 's/^/| /' conftest.$ac_ext >&5
  15971. ( exit $ac_status )
  15972. ac_cv_func_lstat_dereferences_slashed_symlink=no
  15973. fi
  15974. rm -rf conftest.dSYM
  15975. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15976. fi
  15977. else
  15978. # If the `ln -s' command failed, then we probably don't even
  15979. # have an lstat function.
  15980. ac_cv_func_lstat_dereferences_slashed_symlink=no
  15981. fi
  15982. rm -f conftest.sym conftest.file
  15983. fi
  15984. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  15985. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  15986. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  15987. cat >>confdefs.h <<_ACEOF
  15988. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  15989. _ACEOF
  15990. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  15991. case " $LIBOBJS " in
  15992. *" lstat.$ac_objext "* ) ;;
  15993. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  15994. ;;
  15995. esac
  15996. fi
  15997. for ac_header in stdlib.h
  15998. do
  15999. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16000. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16001. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  16002. $as_echo_n "checking for $ac_header... " >&6; }
  16003. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16004. $as_echo_n "(cached) " >&6
  16005. fi
  16006. ac_res=`eval 'as_val=${'$as_ac_Header'}
  16007. $as_echo "$as_val"'`
  16008. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16009. $as_echo "$ac_res" >&6; }
  16010. else
  16011. # Is the header compilable?
  16012. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16013. $as_echo_n "checking $ac_header usability... " >&6; }
  16014. cat >conftest.$ac_ext <<_ACEOF
  16015. /* confdefs.h. */
  16016. _ACEOF
  16017. cat confdefs.h >>conftest.$ac_ext
  16018. cat >>conftest.$ac_ext <<_ACEOF
  16019. /* end confdefs.h. */
  16020. $ac_includes_default
  16021. #include <$ac_header>
  16022. _ACEOF
  16023. rm -f conftest.$ac_objext
  16024. if { (ac_try="$ac_compile"
  16025. case "(($ac_try" in
  16026. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16027. *) ac_try_echo=$ac_try;;
  16028. esac
  16029. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16030. $as_echo "$ac_try_echo") >&5
  16031. (eval "$ac_compile") 2>conftest.er1
  16032. ac_status=$?
  16033. grep -v '^ *+' conftest.er1 >conftest.err
  16034. rm -f conftest.er1
  16035. cat conftest.err >&5
  16036. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16037. (exit $ac_status); } && {
  16038. test -z "$ac_c_werror_flag" ||
  16039. test ! -s conftest.err
  16040. } && test -s conftest.$ac_objext; then
  16041. ac_header_compiler=yes
  16042. else
  16043. $as_echo "$as_me: failed program was:" >&5
  16044. sed 's/^/| /' conftest.$ac_ext >&5
  16045. ac_header_compiler=no
  16046. fi
  16047. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16048. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16049. $as_echo "$ac_header_compiler" >&6; }
  16050. # Is the header present?
  16051. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16052. $as_echo_n "checking $ac_header presence... " >&6; }
  16053. cat >conftest.$ac_ext <<_ACEOF
  16054. /* confdefs.h. */
  16055. _ACEOF
  16056. cat confdefs.h >>conftest.$ac_ext
  16057. cat >>conftest.$ac_ext <<_ACEOF
  16058. /* end confdefs.h. */
  16059. #include <$ac_header>
  16060. _ACEOF
  16061. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16062. case "(($ac_try" in
  16063. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16064. *) ac_try_echo=$ac_try;;
  16065. esac
  16066. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16067. $as_echo "$ac_try_echo") >&5
  16068. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16069. ac_status=$?
  16070. grep -v '^ *+' conftest.er1 >conftest.err
  16071. rm -f conftest.er1
  16072. cat conftest.err >&5
  16073. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16074. (exit $ac_status); } >/dev/null && {
  16075. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  16076. test ! -s conftest.err
  16077. }; then
  16078. ac_header_preproc=yes
  16079. else
  16080. $as_echo "$as_me: failed program was:" >&5
  16081. sed 's/^/| /' conftest.$ac_ext >&5
  16082. ac_header_preproc=no
  16083. fi
  16084. rm -f conftest.err conftest.$ac_ext
  16085. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16086. $as_echo "$ac_header_preproc" >&6; }
  16087. # So? What about this header?
  16088. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  16089. yes:no: )
  16090. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16091. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16092. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16093. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16094. ac_header_preproc=yes
  16095. ;;
  16096. no:yes:* )
  16097. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16098. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16099. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16100. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16101. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16102. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16103. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16104. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16105. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16106. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16107. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16108. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16109. ( cat <<\_ASBOX
  16110. ## ------------------------------------------ ##
  16111. ## Report this to http://bugzilla.redhat.com/ ##
  16112. ## ------------------------------------------ ##
  16113. _ASBOX
  16114. ) | sed "s/^/$as_me: WARNING: /" >&2
  16115. ;;
  16116. esac
  16117. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  16118. $as_echo_n "checking for $ac_header... " >&6; }
  16119. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16120. $as_echo_n "(cached) " >&6
  16121. else
  16122. eval "$as_ac_Header=\$ac_header_preproc"
  16123. fi
  16124. ac_res=`eval 'as_val=${'$as_ac_Header'}
  16125. $as_echo "$as_val"'`
  16126. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16127. $as_echo "$ac_res" >&6; }
  16128. fi
  16129. as_val=`eval 'as_val=${'$as_ac_Header'}
  16130. $as_echo "$as_val"'`
  16131. if test "x$as_val" = x""yes; then
  16132. cat >>confdefs.h <<_ACEOF
  16133. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16134. _ACEOF
  16135. fi
  16136. done
  16137. { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  16138. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  16139. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  16140. $as_echo_n "(cached) " >&6
  16141. else
  16142. if test "$cross_compiling" = yes; then
  16143. ac_cv_func_malloc_0_nonnull=no
  16144. else
  16145. cat >conftest.$ac_ext <<_ACEOF
  16146. /* confdefs.h. */
  16147. _ACEOF
  16148. cat confdefs.h >>conftest.$ac_ext
  16149. cat >>conftest.$ac_ext <<_ACEOF
  16150. /* end confdefs.h. */
  16151. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  16152. # include <stdlib.h>
  16153. #else
  16154. char *malloc ();
  16155. #endif
  16156. int
  16157. main ()
  16158. {
  16159. return ! malloc (0);
  16160. ;
  16161. return 0;
  16162. }
  16163. _ACEOF
  16164. rm -f conftest$ac_exeext
  16165. if { (ac_try="$ac_link"
  16166. case "(($ac_try" in
  16167. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16168. *) ac_try_echo=$ac_try;;
  16169. esac
  16170. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16171. $as_echo "$ac_try_echo") >&5
  16172. (eval "$ac_link") 2>&5
  16173. ac_status=$?
  16174. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16175. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16176. { (case "(($ac_try" in
  16177. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16178. *) ac_try_echo=$ac_try;;
  16179. esac
  16180. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16181. $as_echo "$ac_try_echo") >&5
  16182. (eval "$ac_try") 2>&5
  16183. ac_status=$?
  16184. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16185. (exit $ac_status); }; }; then
  16186. ac_cv_func_malloc_0_nonnull=yes
  16187. else
  16188. $as_echo "$as_me: program exited with status $ac_status" >&5
  16189. $as_echo "$as_me: failed program was:" >&5
  16190. sed 's/^/| /' conftest.$ac_ext >&5
  16191. ( exit $ac_status )
  16192. ac_cv_func_malloc_0_nonnull=no
  16193. fi
  16194. rm -rf conftest.dSYM
  16195. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16196. fi
  16197. fi
  16198. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  16199. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  16200. if test $ac_cv_func_malloc_0_nonnull = yes; then
  16201. cat >>confdefs.h <<\_ACEOF
  16202. #define HAVE_MALLOC 1
  16203. _ACEOF
  16204. else
  16205. cat >>confdefs.h <<\_ACEOF
  16206. #define HAVE_MALLOC 0
  16207. _ACEOF
  16208. case " $LIBOBJS " in
  16209. *" malloc.$ac_objext "* ) ;;
  16210. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  16211. ;;
  16212. esac
  16213. cat >>confdefs.h <<\_ACEOF
  16214. #define malloc rpl_malloc
  16215. _ACEOF
  16216. fi
  16217. { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
  16218. $as_echo_n "checking for working memcmp... " >&6; }
  16219. if test "${ac_cv_func_memcmp_working+set}" = set; then
  16220. $as_echo_n "(cached) " >&6
  16221. else
  16222. if test "$cross_compiling" = yes; then
  16223. ac_cv_func_memcmp_working=no
  16224. else
  16225. cat >conftest.$ac_ext <<_ACEOF
  16226. /* confdefs.h. */
  16227. _ACEOF
  16228. cat confdefs.h >>conftest.$ac_ext
  16229. cat >>conftest.$ac_ext <<_ACEOF
  16230. /* end confdefs.h. */
  16231. $ac_includes_default
  16232. int
  16233. main ()
  16234. {
  16235. /* Some versions of memcmp are not 8-bit clean. */
  16236. char c0 = '\100', c1 = '\200', c2 = '\201';
  16237. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  16238. return 1;
  16239. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  16240. or more and with at least one buffer not starting on a 4-byte boundary.
  16241. William Lewis provided this test program. */
  16242. {
  16243. char foo[21];
  16244. char bar[21];
  16245. int i;
  16246. for (i = 0; i < 4; i++)
  16247. {
  16248. char *a = foo + i;
  16249. char *b = bar + i;
  16250. strcpy (a, "--------01111111");
  16251. strcpy (b, "--------10000000");
  16252. if (memcmp (a, b, 16) >= 0)
  16253. return 1;
  16254. }
  16255. return 0;
  16256. }
  16257. ;
  16258. return 0;
  16259. }
  16260. _ACEOF
  16261. rm -f conftest$ac_exeext
  16262. if { (ac_try="$ac_link"
  16263. case "(($ac_try" in
  16264. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16265. *) ac_try_echo=$ac_try;;
  16266. esac
  16267. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16268. $as_echo "$ac_try_echo") >&5
  16269. (eval "$ac_link") 2>&5
  16270. ac_status=$?
  16271. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16272. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16273. { (case "(($ac_try" in
  16274. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16275. *) ac_try_echo=$ac_try;;
  16276. esac
  16277. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16278. $as_echo "$ac_try_echo") >&5
  16279. (eval "$ac_try") 2>&5
  16280. ac_status=$?
  16281. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16282. (exit $ac_status); }; }; then
  16283. ac_cv_func_memcmp_working=yes
  16284. else
  16285. $as_echo "$as_me: program exited with status $ac_status" >&5
  16286. $as_echo "$as_me: failed program was:" >&5
  16287. sed 's/^/| /' conftest.$ac_ext >&5
  16288. ( exit $ac_status )
  16289. ac_cv_func_memcmp_working=no
  16290. fi
  16291. rm -rf conftest.dSYM
  16292. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16293. fi
  16294. fi
  16295. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  16296. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  16297. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  16298. *" memcmp.$ac_objext "* ) ;;
  16299. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  16300. ;;
  16301. esac
  16302. for ac_header in stdlib.h unistd.h
  16303. do
  16304. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16305. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16306. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  16307. $as_echo_n "checking for $ac_header... " >&6; }
  16308. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16309. $as_echo_n "(cached) " >&6
  16310. fi
  16311. ac_res=`eval 'as_val=${'$as_ac_Header'}
  16312. $as_echo "$as_val"'`
  16313. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16314. $as_echo "$ac_res" >&6; }
  16315. else
  16316. # Is the header compilable?
  16317. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16318. $as_echo_n "checking $ac_header usability... " >&6; }
  16319. cat >conftest.$ac_ext <<_ACEOF
  16320. /* confdefs.h. */
  16321. _ACEOF
  16322. cat confdefs.h >>conftest.$ac_ext
  16323. cat >>conftest.$ac_ext <<_ACEOF
  16324. /* end confdefs.h. */
  16325. $ac_includes_default
  16326. #include <$ac_header>
  16327. _ACEOF
  16328. rm -f conftest.$ac_objext
  16329. if { (ac_try="$ac_compile"
  16330. case "(($ac_try" in
  16331. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16332. *) ac_try_echo=$ac_try;;
  16333. esac
  16334. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16335. $as_echo "$ac_try_echo") >&5
  16336. (eval "$ac_compile") 2>conftest.er1
  16337. ac_status=$?
  16338. grep -v '^ *+' conftest.er1 >conftest.err
  16339. rm -f conftest.er1
  16340. cat conftest.err >&5
  16341. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16342. (exit $ac_status); } && {
  16343. test -z "$ac_c_werror_flag" ||
  16344. test ! -s conftest.err
  16345. } && test -s conftest.$ac_objext; then
  16346. ac_header_compiler=yes
  16347. else
  16348. $as_echo "$as_me: failed program was:" >&5
  16349. sed 's/^/| /' conftest.$ac_ext >&5
  16350. ac_header_compiler=no
  16351. fi
  16352. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16353. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16354. $as_echo "$ac_header_compiler" >&6; }
  16355. # Is the header present?
  16356. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16357. $as_echo_n "checking $ac_header presence... " >&6; }
  16358. cat >conftest.$ac_ext <<_ACEOF
  16359. /* confdefs.h. */
  16360. _ACEOF
  16361. cat confdefs.h >>conftest.$ac_ext
  16362. cat >>conftest.$ac_ext <<_ACEOF
  16363. /* end confdefs.h. */
  16364. #include <$ac_header>
  16365. _ACEOF
  16366. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16367. case "(($ac_try" in
  16368. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16369. *) ac_try_echo=$ac_try;;
  16370. esac
  16371. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16372. $as_echo "$ac_try_echo") >&5
  16373. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16374. ac_status=$?
  16375. grep -v '^ *+' conftest.er1 >conftest.err
  16376. rm -f conftest.er1
  16377. cat conftest.err >&5
  16378. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16379. (exit $ac_status); } >/dev/null && {
  16380. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  16381. test ! -s conftest.err
  16382. }; then
  16383. ac_header_preproc=yes
  16384. else
  16385. $as_echo "$as_me: failed program was:" >&5
  16386. sed 's/^/| /' conftest.$ac_ext >&5
  16387. ac_header_preproc=no
  16388. fi
  16389. rm -f conftest.err conftest.$ac_ext
  16390. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16391. $as_echo "$ac_header_preproc" >&6; }
  16392. # So? What about this header?
  16393. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  16394. yes:no: )
  16395. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16396. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16397. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16398. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16399. ac_header_preproc=yes
  16400. ;;
  16401. no:yes:* )
  16402. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16403. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16404. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16405. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16406. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16407. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16408. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16409. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16410. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16411. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16412. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16413. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16414. ( cat <<\_ASBOX
  16415. ## ------------------------------------------ ##
  16416. ## Report this to http://bugzilla.redhat.com/ ##
  16417. ## ------------------------------------------ ##
  16418. _ASBOX
  16419. ) | sed "s/^/$as_me: WARNING: /" >&2
  16420. ;;
  16421. esac
  16422. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  16423. $as_echo_n "checking for $ac_header... " >&6; }
  16424. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16425. $as_echo_n "(cached) " >&6
  16426. else
  16427. eval "$as_ac_Header=\$ac_header_preproc"
  16428. fi
  16429. ac_res=`eval 'as_val=${'$as_ac_Header'}
  16430. $as_echo "$as_val"'`
  16431. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16432. $as_echo "$ac_res" >&6; }
  16433. fi
  16434. as_val=`eval 'as_val=${'$as_ac_Header'}
  16435. $as_echo "$as_val"'`
  16436. if test "x$as_val" = x""yes; then
  16437. cat >>confdefs.h <<_ACEOF
  16438. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16439. _ACEOF
  16440. fi
  16441. done
  16442. for ac_func in getpagesize
  16443. do
  16444. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16445. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  16446. $as_echo_n "checking for $ac_func... " >&6; }
  16447. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16448. $as_echo_n "(cached) " >&6
  16449. else
  16450. cat >conftest.$ac_ext <<_ACEOF
  16451. /* confdefs.h. */
  16452. _ACEOF
  16453. cat confdefs.h >>conftest.$ac_ext
  16454. cat >>conftest.$ac_ext <<_ACEOF
  16455. /* end confdefs.h. */
  16456. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16457. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16458. #define $ac_func innocuous_$ac_func
  16459. /* System header to define __stub macros and hopefully few prototypes,
  16460. which can conflict with char $ac_func (); below.
  16461. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16462. <limits.h> exists even on freestanding compilers. */
  16463. #ifdef __STDC__
  16464. # include <limits.h>
  16465. #else
  16466. # include <assert.h>
  16467. #endif
  16468. #undef $ac_func
  16469. /* Override any GCC internal prototype to avoid an error.
  16470. Use char because int might match the return type of a GCC
  16471. builtin and then its argument prototype would still apply. */
  16472. #ifdef __cplusplus
  16473. extern "C"
  16474. #endif
  16475. char $ac_func ();
  16476. /* The GNU C library defines this for functions which it implements
  16477. to always fail with ENOSYS. Some functions are actually named
  16478. something starting with __ and the normal name is an alias. */
  16479. #if defined __stub_$ac_func || defined __stub___$ac_func
  16480. choke me
  16481. #endif
  16482. int
  16483. main ()
  16484. {
  16485. return $ac_func ();
  16486. ;
  16487. return 0;
  16488. }
  16489. _ACEOF
  16490. rm -f conftest.$ac_objext conftest$ac_exeext
  16491. if { (ac_try="$ac_link"
  16492. case "(($ac_try" in
  16493. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16494. *) ac_try_echo=$ac_try;;
  16495. esac
  16496. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16497. $as_echo "$ac_try_echo") >&5
  16498. (eval "$ac_link") 2>conftest.er1
  16499. ac_status=$?
  16500. grep -v '^ *+' conftest.er1 >conftest.err
  16501. rm -f conftest.er1
  16502. cat conftest.err >&5
  16503. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16504. (exit $ac_status); } && {
  16505. test -z "$ac_c_werror_flag" ||
  16506. test ! -s conftest.err
  16507. } && test -s conftest$ac_exeext && {
  16508. test "$cross_compiling" = yes ||
  16509. $as_test_x conftest$ac_exeext
  16510. }; then
  16511. eval "$as_ac_var=yes"
  16512. else
  16513. $as_echo "$as_me: failed program was:" >&5
  16514. sed 's/^/| /' conftest.$ac_ext >&5
  16515. eval "$as_ac_var=no"
  16516. fi
  16517. rm -rf conftest.dSYM
  16518. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16519. conftest$ac_exeext conftest.$ac_ext
  16520. fi
  16521. ac_res=`eval 'as_val=${'$as_ac_var'}
  16522. $as_echo "$as_val"'`
  16523. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16524. $as_echo "$ac_res" >&6; }
  16525. as_val=`eval 'as_val=${'$as_ac_var'}
  16526. $as_echo "$as_val"'`
  16527. if test "x$as_val" = x""yes; then
  16528. cat >>confdefs.h <<_ACEOF
  16529. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16530. _ACEOF
  16531. fi
  16532. done
  16533. { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
  16534. $as_echo_n "checking for working mmap... " >&6; }
  16535. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  16536. $as_echo_n "(cached) " >&6
  16537. else
  16538. if test "$cross_compiling" = yes; then
  16539. ac_cv_func_mmap_fixed_mapped=no
  16540. else
  16541. cat >conftest.$ac_ext <<_ACEOF
  16542. /* confdefs.h. */
  16543. _ACEOF
  16544. cat confdefs.h >>conftest.$ac_ext
  16545. cat >>conftest.$ac_ext <<_ACEOF
  16546. /* end confdefs.h. */
  16547. $ac_includes_default
  16548. /* malloc might have been renamed as rpl_malloc. */
  16549. #undef malloc
  16550. /* Thanks to Mike Haertel and Jim Avera for this test.
  16551. Here is a matrix of mmap possibilities:
  16552. mmap private not fixed
  16553. mmap private fixed at somewhere currently unmapped
  16554. mmap private fixed at somewhere already mapped
  16555. mmap shared not fixed
  16556. mmap shared fixed at somewhere currently unmapped
  16557. mmap shared fixed at somewhere already mapped
  16558. For private mappings, we should verify that changes cannot be read()
  16559. back from the file, nor mmap's back from the file at a different
  16560. address. (There have been systems where private was not correctly
  16561. implemented like the infamous i386 svr4.0, and systems where the
  16562. VM page cache was not coherent with the file system buffer cache
  16563. like early versions of FreeBSD and possibly contemporary NetBSD.)
  16564. For shared mappings, we should conversely verify that changes get
  16565. propagated back to all the places they're supposed to be.
  16566. Grep wants private fixed already mapped.
  16567. The main things grep needs to know about mmap are:
  16568. * does it exist and is it safe to write into the mmap'd area
  16569. * how to use it (BSD variants) */
  16570. #include <fcntl.h>
  16571. #include <sys/mman.h>
  16572. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  16573. char *malloc ();
  16574. #endif
  16575. /* This mess was copied from the GNU getpagesize.h. */
  16576. #ifndef HAVE_GETPAGESIZE
  16577. /* Assume that all systems that can run configure have sys/param.h. */
  16578. # ifndef HAVE_SYS_PARAM_H
  16579. # define HAVE_SYS_PARAM_H 1
  16580. # endif
  16581. # ifdef _SC_PAGESIZE
  16582. # define getpagesize() sysconf(_SC_PAGESIZE)
  16583. # else /* no _SC_PAGESIZE */
  16584. # ifdef HAVE_SYS_PARAM_H
  16585. # include <sys/param.h>
  16586. # ifdef EXEC_PAGESIZE
  16587. # define getpagesize() EXEC_PAGESIZE
  16588. # else /* no EXEC_PAGESIZE */
  16589. # ifdef NBPG
  16590. # define getpagesize() NBPG * CLSIZE
  16591. # ifndef CLSIZE
  16592. # define CLSIZE 1
  16593. # endif /* no CLSIZE */
  16594. # else /* no NBPG */
  16595. # ifdef NBPC
  16596. # define getpagesize() NBPC
  16597. # else /* no NBPC */
  16598. # ifdef PAGESIZE
  16599. # define getpagesize() PAGESIZE
  16600. # endif /* PAGESIZE */
  16601. # endif /* no NBPC */
  16602. # endif /* no NBPG */
  16603. # endif /* no EXEC_PAGESIZE */
  16604. # else /* no HAVE_SYS_PARAM_H */
  16605. # define getpagesize() 8192 /* punt totally */
  16606. # endif /* no HAVE_SYS_PARAM_H */
  16607. # endif /* no _SC_PAGESIZE */
  16608. #endif /* no HAVE_GETPAGESIZE */
  16609. int
  16610. main ()
  16611. {
  16612. char *data, *data2, *data3;
  16613. int i, pagesize;
  16614. int fd;
  16615. pagesize = getpagesize ();
  16616. /* First, make a file with some known garbage in it. */
  16617. data = (char *) malloc (pagesize);
  16618. if (!data)
  16619. return 1;
  16620. for (i = 0; i < pagesize; ++i)
  16621. *(data + i) = rand ();
  16622. umask (0);
  16623. fd = creat ("conftest.mmap", 0600);
  16624. if (fd < 0)
  16625. return 1;
  16626. if (write (fd, data, pagesize) != pagesize)
  16627. return 1;
  16628. close (fd);
  16629. /* Next, try to mmap the file at a fixed address which already has
  16630. something else allocated at it. If we can, also make sure that
  16631. we see the same garbage. */
  16632. fd = open ("conftest.mmap", O_RDWR);
  16633. if (fd < 0)
  16634. return 1;
  16635. data2 = (char *) malloc (2 * pagesize);
  16636. if (!data2)
  16637. return 1;
  16638. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  16639. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  16640. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  16641. return 1;
  16642. for (i = 0; i < pagesize; ++i)
  16643. if (*(data + i) != *(data2 + i))
  16644. return 1;
  16645. /* Finally, make sure that changes to the mapped area do not
  16646. percolate back to the file as seen by read(). (This is a bug on
  16647. some variants of i386 svr4.0.) */
  16648. for (i = 0; i < pagesize; ++i)
  16649. *(data2 + i) = *(data2 + i) + 1;
  16650. data3 = (char *) malloc (pagesize);
  16651. if (!data3)
  16652. return 1;
  16653. if (read (fd, data3, pagesize) != pagesize)
  16654. return 1;
  16655. for (i = 0; i < pagesize; ++i)
  16656. if (*(data + i) != *(data3 + i))
  16657. return 1;
  16658. close (fd);
  16659. return 0;
  16660. }
  16661. _ACEOF
  16662. rm -f conftest$ac_exeext
  16663. if { (ac_try="$ac_link"
  16664. case "(($ac_try" in
  16665. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16666. *) ac_try_echo=$ac_try;;
  16667. esac
  16668. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16669. $as_echo "$ac_try_echo") >&5
  16670. (eval "$ac_link") 2>&5
  16671. ac_status=$?
  16672. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16673. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16674. { (case "(($ac_try" in
  16675. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16676. *) ac_try_echo=$ac_try;;
  16677. esac
  16678. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16679. $as_echo "$ac_try_echo") >&5
  16680. (eval "$ac_try") 2>&5
  16681. ac_status=$?
  16682. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16683. (exit $ac_status); }; }; then
  16684. ac_cv_func_mmap_fixed_mapped=yes
  16685. else
  16686. $as_echo "$as_me: program exited with status $ac_status" >&5
  16687. $as_echo "$as_me: failed program was:" >&5
  16688. sed 's/^/| /' conftest.$ac_ext >&5
  16689. ( exit $ac_status )
  16690. ac_cv_func_mmap_fixed_mapped=no
  16691. fi
  16692. rm -rf conftest.dSYM
  16693. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16694. fi
  16695. fi
  16696. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  16697. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  16698. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  16699. cat >>confdefs.h <<\_ACEOF
  16700. #define HAVE_MMAP 1
  16701. _ACEOF
  16702. fi
  16703. rm -f conftest.mmap
  16704. { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  16705. $as_echo_n "checking return type of signal handlers... " >&6; }
  16706. if test "${ac_cv_type_signal+set}" = set; then
  16707. $as_echo_n "(cached) " >&6
  16708. else
  16709. cat >conftest.$ac_ext <<_ACEOF
  16710. /* confdefs.h. */
  16711. _ACEOF
  16712. cat confdefs.h >>conftest.$ac_ext
  16713. cat >>conftest.$ac_ext <<_ACEOF
  16714. /* end confdefs.h. */
  16715. #include <sys/types.h>
  16716. #include <signal.h>
  16717. int
  16718. main ()
  16719. {
  16720. return *(signal (0, 0)) (0) == 1;
  16721. ;
  16722. return 0;
  16723. }
  16724. _ACEOF
  16725. rm -f conftest.$ac_objext
  16726. if { (ac_try="$ac_compile"
  16727. case "(($ac_try" in
  16728. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16729. *) ac_try_echo=$ac_try;;
  16730. esac
  16731. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16732. $as_echo "$ac_try_echo") >&5
  16733. (eval "$ac_compile") 2>conftest.er1
  16734. ac_status=$?
  16735. grep -v '^ *+' conftest.er1 >conftest.err
  16736. rm -f conftest.er1
  16737. cat conftest.err >&5
  16738. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16739. (exit $ac_status); } && {
  16740. test -z "$ac_c_werror_flag" ||
  16741. test ! -s conftest.err
  16742. } && test -s conftest.$ac_objext; then
  16743. ac_cv_type_signal=int
  16744. else
  16745. $as_echo "$as_me: failed program was:" >&5
  16746. sed 's/^/| /' conftest.$ac_ext >&5
  16747. ac_cv_type_signal=void
  16748. fi
  16749. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16750. fi
  16751. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  16752. $as_echo "$ac_cv_type_signal" >&6; }
  16753. cat >>confdefs.h <<_ACEOF
  16754. #define RETSIGTYPE $ac_cv_type_signal
  16755. _ACEOF
  16756. { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  16757. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  16758. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  16759. $as_echo_n "(cached) " >&6
  16760. else
  16761. if test "$cross_compiling" = yes; then
  16762. ac_cv_func_stat_empty_string_bug=yes
  16763. else
  16764. cat >conftest.$ac_ext <<_ACEOF
  16765. /* confdefs.h. */
  16766. _ACEOF
  16767. cat confdefs.h >>conftest.$ac_ext
  16768. cat >>conftest.$ac_ext <<_ACEOF
  16769. /* end confdefs.h. */
  16770. $ac_includes_default
  16771. int
  16772. main ()
  16773. {
  16774. struct stat sbuf;
  16775. return stat ("", &sbuf) == 0;
  16776. ;
  16777. return 0;
  16778. }
  16779. _ACEOF
  16780. rm -f conftest$ac_exeext
  16781. if { (ac_try="$ac_link"
  16782. case "(($ac_try" in
  16783. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16784. *) ac_try_echo=$ac_try;;
  16785. esac
  16786. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16787. $as_echo "$ac_try_echo") >&5
  16788. (eval "$ac_link") 2>&5
  16789. ac_status=$?
  16790. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16791. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16792. { (case "(($ac_try" in
  16793. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16794. *) ac_try_echo=$ac_try;;
  16795. esac
  16796. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16797. $as_echo "$ac_try_echo") >&5
  16798. (eval "$ac_try") 2>&5
  16799. ac_status=$?
  16800. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16801. (exit $ac_status); }; }; then
  16802. ac_cv_func_stat_empty_string_bug=no
  16803. else
  16804. $as_echo "$as_me: program exited with status $ac_status" >&5
  16805. $as_echo "$as_me: failed program was:" >&5
  16806. sed 's/^/| /' conftest.$ac_ext >&5
  16807. ( exit $ac_status )
  16808. ac_cv_func_stat_empty_string_bug=yes
  16809. fi
  16810. rm -rf conftest.dSYM
  16811. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16812. fi
  16813. fi
  16814. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  16815. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  16816. if test $ac_cv_func_stat_empty_string_bug = yes; then
  16817. case " $LIBOBJS " in
  16818. *" stat.$ac_objext "* ) ;;
  16819. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  16820. ;;
  16821. esac
  16822. cat >>confdefs.h <<_ACEOF
  16823. #define HAVE_STAT_EMPTY_STRING_BUG 1
  16824. _ACEOF
  16825. fi
  16826. { $as_echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
  16827. $as_echo_n "checking whether strerror_r is declared... " >&6; }
  16828. if test "${ac_cv_have_decl_strerror_r+set}" = set; then
  16829. $as_echo_n "(cached) " >&6
  16830. else
  16831. cat >conftest.$ac_ext <<_ACEOF
  16832. /* confdefs.h. */
  16833. _ACEOF
  16834. cat confdefs.h >>conftest.$ac_ext
  16835. cat >>conftest.$ac_ext <<_ACEOF
  16836. /* end confdefs.h. */
  16837. $ac_includes_default
  16838. int
  16839. main ()
  16840. {
  16841. #ifndef strerror_r
  16842. (void) strerror_r;
  16843. #endif
  16844. ;
  16845. return 0;
  16846. }
  16847. _ACEOF
  16848. rm -f conftest.$ac_objext
  16849. if { (ac_try="$ac_compile"
  16850. case "(($ac_try" in
  16851. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16852. *) ac_try_echo=$ac_try;;
  16853. esac
  16854. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16855. $as_echo "$ac_try_echo") >&5
  16856. (eval "$ac_compile") 2>conftest.er1
  16857. ac_status=$?
  16858. grep -v '^ *+' conftest.er1 >conftest.err
  16859. rm -f conftest.er1
  16860. cat conftest.err >&5
  16861. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16862. (exit $ac_status); } && {
  16863. test -z "$ac_c_werror_flag" ||
  16864. test ! -s conftest.err
  16865. } && test -s conftest.$ac_objext; then
  16866. ac_cv_have_decl_strerror_r=yes
  16867. else
  16868. $as_echo "$as_me: failed program was:" >&5
  16869. sed 's/^/| /' conftest.$ac_ext >&5
  16870. ac_cv_have_decl_strerror_r=no
  16871. fi
  16872. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16873. fi
  16874. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
  16875. $as_echo "$ac_cv_have_decl_strerror_r" >&6; }
  16876. if test "x$ac_cv_have_decl_strerror_r" = x""yes; then
  16877. cat >>confdefs.h <<_ACEOF
  16878. #define HAVE_DECL_STRERROR_R 1
  16879. _ACEOF
  16880. else
  16881. cat >>confdefs.h <<_ACEOF
  16882. #define HAVE_DECL_STRERROR_R 0
  16883. _ACEOF
  16884. fi
  16885. for ac_func in strerror_r
  16886. do
  16887. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16888. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  16889. $as_echo_n "checking for $ac_func... " >&6; }
  16890. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16891. $as_echo_n "(cached) " >&6
  16892. else
  16893. cat >conftest.$ac_ext <<_ACEOF
  16894. /* confdefs.h. */
  16895. _ACEOF
  16896. cat confdefs.h >>conftest.$ac_ext
  16897. cat >>conftest.$ac_ext <<_ACEOF
  16898. /* end confdefs.h. */
  16899. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16900. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16901. #define $ac_func innocuous_$ac_func
  16902. /* System header to define __stub macros and hopefully few prototypes,
  16903. which can conflict with char $ac_func (); below.
  16904. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16905. <limits.h> exists even on freestanding compilers. */
  16906. #ifdef __STDC__
  16907. # include <limits.h>
  16908. #else
  16909. # include <assert.h>
  16910. #endif
  16911. #undef $ac_func
  16912. /* Override any GCC internal prototype to avoid an error.
  16913. Use char because int might match the return type of a GCC
  16914. builtin and then its argument prototype would still apply. */
  16915. #ifdef __cplusplus
  16916. extern "C"
  16917. #endif
  16918. char $ac_func ();
  16919. /* The GNU C library defines this for functions which it implements
  16920. to always fail with ENOSYS. Some functions are actually named
  16921. something starting with __ and the normal name is an alias. */
  16922. #if defined __stub_$ac_func || defined __stub___$ac_func
  16923. choke me
  16924. #endif
  16925. int
  16926. main ()
  16927. {
  16928. return $ac_func ();
  16929. ;
  16930. return 0;
  16931. }
  16932. _ACEOF
  16933. rm -f conftest.$ac_objext conftest$ac_exeext
  16934. if { (ac_try="$ac_link"
  16935. case "(($ac_try" in
  16936. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16937. *) ac_try_echo=$ac_try;;
  16938. esac
  16939. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16940. $as_echo "$ac_try_echo") >&5
  16941. (eval "$ac_link") 2>conftest.er1
  16942. ac_status=$?
  16943. grep -v '^ *+' conftest.er1 >conftest.err
  16944. rm -f conftest.er1
  16945. cat conftest.err >&5
  16946. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16947. (exit $ac_status); } && {
  16948. test -z "$ac_c_werror_flag" ||
  16949. test ! -s conftest.err
  16950. } && test -s conftest$ac_exeext && {
  16951. test "$cross_compiling" = yes ||
  16952. $as_test_x conftest$ac_exeext
  16953. }; then
  16954. eval "$as_ac_var=yes"
  16955. else
  16956. $as_echo "$as_me: failed program was:" >&5
  16957. sed 's/^/| /' conftest.$ac_ext >&5
  16958. eval "$as_ac_var=no"
  16959. fi
  16960. rm -rf conftest.dSYM
  16961. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16962. conftest$ac_exeext conftest.$ac_ext
  16963. fi
  16964. ac_res=`eval 'as_val=${'$as_ac_var'}
  16965. $as_echo "$as_val"'`
  16966. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16967. $as_echo "$ac_res" >&6; }
  16968. as_val=`eval 'as_val=${'$as_ac_var'}
  16969. $as_echo "$as_val"'`
  16970. if test "x$as_val" = x""yes; then
  16971. cat >>confdefs.h <<_ACEOF
  16972. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16973. _ACEOF
  16974. fi
  16975. done
  16976. { $as_echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
  16977. $as_echo_n "checking whether strerror_r returns char *... " >&6; }
  16978. if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
  16979. $as_echo_n "(cached) " >&6
  16980. else
  16981. ac_cv_func_strerror_r_char_p=no
  16982. if test $ac_cv_have_decl_strerror_r = yes; then
  16983. cat >conftest.$ac_ext <<_ACEOF
  16984. /* confdefs.h. */
  16985. _ACEOF
  16986. cat confdefs.h >>conftest.$ac_ext
  16987. cat >>conftest.$ac_ext <<_ACEOF
  16988. /* end confdefs.h. */
  16989. $ac_includes_default
  16990. int
  16991. main ()
  16992. {
  16993. char buf[100];
  16994. char x = *strerror_r (0, buf, sizeof buf);
  16995. char *p = strerror_r (0, buf, sizeof buf);
  16996. return !p || x;
  16997. ;
  16998. return 0;
  16999. }
  17000. _ACEOF
  17001. rm -f conftest.$ac_objext
  17002. if { (ac_try="$ac_compile"
  17003. case "(($ac_try" in
  17004. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17005. *) ac_try_echo=$ac_try;;
  17006. esac
  17007. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17008. $as_echo "$ac_try_echo") >&5
  17009. (eval "$ac_compile") 2>conftest.er1
  17010. ac_status=$?
  17011. grep -v '^ *+' conftest.er1 >conftest.err
  17012. rm -f conftest.er1
  17013. cat conftest.err >&5
  17014. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17015. (exit $ac_status); } && {
  17016. test -z "$ac_c_werror_flag" ||
  17017. test ! -s conftest.err
  17018. } && test -s conftest.$ac_objext; then
  17019. ac_cv_func_strerror_r_char_p=yes
  17020. else
  17021. $as_echo "$as_me: failed program was:" >&5
  17022. sed 's/^/| /' conftest.$ac_ext >&5
  17023. fi
  17024. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17025. else
  17026. # strerror_r is not declared. Choose between
  17027. # systems that have relatively inaccessible declarations for the
  17028. # function. BeOS and DEC UNIX 4.0 fall in this category, but the
  17029. # former has a strerror_r that returns char*, while the latter
  17030. # has a strerror_r that returns `int'.
  17031. # This test should segfault on the DEC system.
  17032. if test "$cross_compiling" = yes; then
  17033. :
  17034. else
  17035. cat >conftest.$ac_ext <<_ACEOF
  17036. /* confdefs.h. */
  17037. _ACEOF
  17038. cat confdefs.h >>conftest.$ac_ext
  17039. cat >>conftest.$ac_ext <<_ACEOF
  17040. /* end confdefs.h. */
  17041. $ac_includes_default
  17042. extern char *strerror_r ();
  17043. int
  17044. main ()
  17045. {
  17046. char buf[100];
  17047. char x = *strerror_r (0, buf, sizeof buf);
  17048. return ! isalpha (x);
  17049. ;
  17050. return 0;
  17051. }
  17052. _ACEOF
  17053. rm -f conftest$ac_exeext
  17054. if { (ac_try="$ac_link"
  17055. case "(($ac_try" in
  17056. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17057. *) ac_try_echo=$ac_try;;
  17058. esac
  17059. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17060. $as_echo "$ac_try_echo") >&5
  17061. (eval "$ac_link") 2>&5
  17062. ac_status=$?
  17063. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17064. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17065. { (case "(($ac_try" in
  17066. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17067. *) ac_try_echo=$ac_try;;
  17068. esac
  17069. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17070. $as_echo "$ac_try_echo") >&5
  17071. (eval "$ac_try") 2>&5
  17072. ac_status=$?
  17073. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17074. (exit $ac_status); }; }; then
  17075. ac_cv_func_strerror_r_char_p=yes
  17076. else
  17077. $as_echo "$as_me: program exited with status $ac_status" >&5
  17078. $as_echo "$as_me: failed program was:" >&5
  17079. sed 's/^/| /' conftest.$ac_ext >&5
  17080. fi
  17081. rm -rf conftest.dSYM
  17082. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17083. fi
  17084. fi
  17085. fi
  17086. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
  17087. $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
  17088. if test $ac_cv_func_strerror_r_char_p = yes; then
  17089. cat >>confdefs.h <<\_ACEOF
  17090. #define STRERROR_R_CHAR_P 1
  17091. _ACEOF
  17092. fi
  17093. for ac_func in strftime
  17094. do
  17095. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17096. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  17097. $as_echo_n "checking for $ac_func... " >&6; }
  17098. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17099. $as_echo_n "(cached) " >&6
  17100. else
  17101. cat >conftest.$ac_ext <<_ACEOF
  17102. /* confdefs.h. */
  17103. _ACEOF
  17104. cat confdefs.h >>conftest.$ac_ext
  17105. cat >>conftest.$ac_ext <<_ACEOF
  17106. /* end confdefs.h. */
  17107. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17108. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17109. #define $ac_func innocuous_$ac_func
  17110. /* System header to define __stub macros and hopefully few prototypes,
  17111. which can conflict with char $ac_func (); below.
  17112. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17113. <limits.h> exists even on freestanding compilers. */
  17114. #ifdef __STDC__
  17115. # include <limits.h>
  17116. #else
  17117. # include <assert.h>
  17118. #endif
  17119. #undef $ac_func
  17120. /* Override any GCC internal prototype to avoid an error.
  17121. Use char because int might match the return type of a GCC
  17122. builtin and then its argument prototype would still apply. */
  17123. #ifdef __cplusplus
  17124. extern "C"
  17125. #endif
  17126. char $ac_func ();
  17127. /* The GNU C library defines this for functions which it implements
  17128. to always fail with ENOSYS. Some functions are actually named
  17129. something starting with __ and the normal name is an alias. */
  17130. #if defined __stub_$ac_func || defined __stub___$ac_func
  17131. choke me
  17132. #endif
  17133. int
  17134. main ()
  17135. {
  17136. return $ac_func ();
  17137. ;
  17138. return 0;
  17139. }
  17140. _ACEOF
  17141. rm -f conftest.$ac_objext conftest$ac_exeext
  17142. if { (ac_try="$ac_link"
  17143. case "(($ac_try" in
  17144. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17145. *) ac_try_echo=$ac_try;;
  17146. esac
  17147. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17148. $as_echo "$ac_try_echo") >&5
  17149. (eval "$ac_link") 2>conftest.er1
  17150. ac_status=$?
  17151. grep -v '^ *+' conftest.er1 >conftest.err
  17152. rm -f conftest.er1
  17153. cat conftest.err >&5
  17154. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17155. (exit $ac_status); } && {
  17156. test -z "$ac_c_werror_flag" ||
  17157. test ! -s conftest.err
  17158. } && test -s conftest$ac_exeext && {
  17159. test "$cross_compiling" = yes ||
  17160. $as_test_x conftest$ac_exeext
  17161. }; then
  17162. eval "$as_ac_var=yes"
  17163. else
  17164. $as_echo "$as_me: failed program was:" >&5
  17165. sed 's/^/| /' conftest.$ac_ext >&5
  17166. eval "$as_ac_var=no"
  17167. fi
  17168. rm -rf conftest.dSYM
  17169. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17170. conftest$ac_exeext conftest.$ac_ext
  17171. fi
  17172. ac_res=`eval 'as_val=${'$as_ac_var'}
  17173. $as_echo "$as_val"'`
  17174. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17175. $as_echo "$ac_res" >&6; }
  17176. as_val=`eval 'as_val=${'$as_ac_var'}
  17177. $as_echo "$as_val"'`
  17178. if test "x$as_val" = x""yes; then
  17179. cat >>confdefs.h <<_ACEOF
  17180. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17181. _ACEOF
  17182. else
  17183. # strftime is in -lintl on SCO UNIX.
  17184. { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  17185. $as_echo_n "checking for strftime in -lintl... " >&6; }
  17186. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  17187. $as_echo_n "(cached) " >&6
  17188. else
  17189. ac_check_lib_save_LIBS=$LIBS
  17190. LIBS="-lintl $LIBS"
  17191. cat >conftest.$ac_ext <<_ACEOF
  17192. /* confdefs.h. */
  17193. _ACEOF
  17194. cat confdefs.h >>conftest.$ac_ext
  17195. cat >>conftest.$ac_ext <<_ACEOF
  17196. /* end confdefs.h. */
  17197. /* Override any GCC internal prototype to avoid an error.
  17198. Use char because int might match the return type of a GCC
  17199. builtin and then its argument prototype would still apply. */
  17200. #ifdef __cplusplus
  17201. extern "C"
  17202. #endif
  17203. char strftime ();
  17204. int
  17205. main ()
  17206. {
  17207. return strftime ();
  17208. ;
  17209. return 0;
  17210. }
  17211. _ACEOF
  17212. rm -f conftest.$ac_objext conftest$ac_exeext
  17213. if { (ac_try="$ac_link"
  17214. case "(($ac_try" in
  17215. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17216. *) ac_try_echo=$ac_try;;
  17217. esac
  17218. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17219. $as_echo "$ac_try_echo") >&5
  17220. (eval "$ac_link") 2>conftest.er1
  17221. ac_status=$?
  17222. grep -v '^ *+' conftest.er1 >conftest.err
  17223. rm -f conftest.er1
  17224. cat conftest.err >&5
  17225. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17226. (exit $ac_status); } && {
  17227. test -z "$ac_c_werror_flag" ||
  17228. test ! -s conftest.err
  17229. } && test -s conftest$ac_exeext && {
  17230. test "$cross_compiling" = yes ||
  17231. $as_test_x conftest$ac_exeext
  17232. }; then
  17233. ac_cv_lib_intl_strftime=yes
  17234. else
  17235. $as_echo "$as_me: failed program was:" >&5
  17236. sed 's/^/| /' conftest.$ac_ext >&5
  17237. ac_cv_lib_intl_strftime=no
  17238. fi
  17239. rm -rf conftest.dSYM
  17240. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17241. conftest$ac_exeext conftest.$ac_ext
  17242. LIBS=$ac_check_lib_save_LIBS
  17243. fi
  17244. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  17245. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  17246. if test "x$ac_cv_lib_intl_strftime" = x""yes; then
  17247. cat >>confdefs.h <<\_ACEOF
  17248. #define HAVE_STRFTIME 1
  17249. _ACEOF
  17250. LIBS="-lintl $LIBS"
  17251. fi
  17252. fi
  17253. done
  17254. for ac_func in vprintf
  17255. do
  17256. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17257. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  17258. $as_echo_n "checking for $ac_func... " >&6; }
  17259. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17260. $as_echo_n "(cached) " >&6
  17261. else
  17262. cat >conftest.$ac_ext <<_ACEOF
  17263. /* confdefs.h. */
  17264. _ACEOF
  17265. cat confdefs.h >>conftest.$ac_ext
  17266. cat >>conftest.$ac_ext <<_ACEOF
  17267. /* end confdefs.h. */
  17268. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17269. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17270. #define $ac_func innocuous_$ac_func
  17271. /* System header to define __stub macros and hopefully few prototypes,
  17272. which can conflict with char $ac_func (); below.
  17273. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17274. <limits.h> exists even on freestanding compilers. */
  17275. #ifdef __STDC__
  17276. # include <limits.h>
  17277. #else
  17278. # include <assert.h>
  17279. #endif
  17280. #undef $ac_func
  17281. /* Override any GCC internal prototype to avoid an error.
  17282. Use char because int might match the return type of a GCC
  17283. builtin and then its argument prototype would still apply. */
  17284. #ifdef __cplusplus
  17285. extern "C"
  17286. #endif
  17287. char $ac_func ();
  17288. /* The GNU C library defines this for functions which it implements
  17289. to always fail with ENOSYS. Some functions are actually named
  17290. something starting with __ and the normal name is an alias. */
  17291. #if defined __stub_$ac_func || defined __stub___$ac_func
  17292. choke me
  17293. #endif
  17294. int
  17295. main ()
  17296. {
  17297. return $ac_func ();
  17298. ;
  17299. return 0;
  17300. }
  17301. _ACEOF
  17302. rm -f conftest.$ac_objext conftest$ac_exeext
  17303. if { (ac_try="$ac_link"
  17304. case "(($ac_try" in
  17305. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17306. *) ac_try_echo=$ac_try;;
  17307. esac
  17308. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17309. $as_echo "$ac_try_echo") >&5
  17310. (eval "$ac_link") 2>conftest.er1
  17311. ac_status=$?
  17312. grep -v '^ *+' conftest.er1 >conftest.err
  17313. rm -f conftest.er1
  17314. cat conftest.err >&5
  17315. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17316. (exit $ac_status); } && {
  17317. test -z "$ac_c_werror_flag" ||
  17318. test ! -s conftest.err
  17319. } && test -s conftest$ac_exeext && {
  17320. test "$cross_compiling" = yes ||
  17321. $as_test_x conftest$ac_exeext
  17322. }; then
  17323. eval "$as_ac_var=yes"
  17324. else
  17325. $as_echo "$as_me: failed program was:" >&5
  17326. sed 's/^/| /' conftest.$ac_ext >&5
  17327. eval "$as_ac_var=no"
  17328. fi
  17329. rm -rf conftest.dSYM
  17330. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17331. conftest$ac_exeext conftest.$ac_ext
  17332. fi
  17333. ac_res=`eval 'as_val=${'$as_ac_var'}
  17334. $as_echo "$as_val"'`
  17335. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17336. $as_echo "$ac_res" >&6; }
  17337. as_val=`eval 'as_val=${'$as_ac_var'}
  17338. $as_echo "$as_val"'`
  17339. if test "x$as_val" = x""yes; then
  17340. cat >>confdefs.h <<_ACEOF
  17341. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17342. _ACEOF
  17343. { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
  17344. $as_echo_n "checking for _doprnt... " >&6; }
  17345. if test "${ac_cv_func__doprnt+set}" = set; then
  17346. $as_echo_n "(cached) " >&6
  17347. else
  17348. cat >conftest.$ac_ext <<_ACEOF
  17349. /* confdefs.h. */
  17350. _ACEOF
  17351. cat confdefs.h >>conftest.$ac_ext
  17352. cat >>conftest.$ac_ext <<_ACEOF
  17353. /* end confdefs.h. */
  17354. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  17355. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17356. #define _doprnt innocuous__doprnt
  17357. /* System header to define __stub macros and hopefully few prototypes,
  17358. which can conflict with char _doprnt (); below.
  17359. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17360. <limits.h> exists even on freestanding compilers. */
  17361. #ifdef __STDC__
  17362. # include <limits.h>
  17363. #else
  17364. # include <assert.h>
  17365. #endif
  17366. #undef _doprnt
  17367. /* Override any GCC internal prototype to avoid an error.
  17368. Use char because int might match the return type of a GCC
  17369. builtin and then its argument prototype would still apply. */
  17370. #ifdef __cplusplus
  17371. extern "C"
  17372. #endif
  17373. char _doprnt ();
  17374. /* The GNU C library defines this for functions which it implements
  17375. to always fail with ENOSYS. Some functions are actually named
  17376. something starting with __ and the normal name is an alias. */
  17377. #if defined __stub__doprnt || defined __stub____doprnt
  17378. choke me
  17379. #endif
  17380. int
  17381. main ()
  17382. {
  17383. return _doprnt ();
  17384. ;
  17385. return 0;
  17386. }
  17387. _ACEOF
  17388. rm -f conftest.$ac_objext conftest$ac_exeext
  17389. if { (ac_try="$ac_link"
  17390. case "(($ac_try" in
  17391. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17392. *) ac_try_echo=$ac_try;;
  17393. esac
  17394. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17395. $as_echo "$ac_try_echo") >&5
  17396. (eval "$ac_link") 2>conftest.er1
  17397. ac_status=$?
  17398. grep -v '^ *+' conftest.er1 >conftest.err
  17399. rm -f conftest.er1
  17400. cat conftest.err >&5
  17401. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17402. (exit $ac_status); } && {
  17403. test -z "$ac_c_werror_flag" ||
  17404. test ! -s conftest.err
  17405. } && test -s conftest$ac_exeext && {
  17406. test "$cross_compiling" = yes ||
  17407. $as_test_x conftest$ac_exeext
  17408. }; then
  17409. ac_cv_func__doprnt=yes
  17410. else
  17411. $as_echo "$as_me: failed program was:" >&5
  17412. sed 's/^/| /' conftest.$ac_ext >&5
  17413. ac_cv_func__doprnt=no
  17414. fi
  17415. rm -rf conftest.dSYM
  17416. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17417. conftest$ac_exeext conftest.$ac_ext
  17418. fi
  17419. { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  17420. $as_echo "$ac_cv_func__doprnt" >&6; }
  17421. if test "x$ac_cv_func__doprnt" = x""yes; then
  17422. cat >>confdefs.h <<\_ACEOF
  17423. #define HAVE_DOPRNT 1
  17424. _ACEOF
  17425. fi
  17426. fi
  17427. done
  17428. for ac_func in setrlimit endpwent ftruncate getcwd gethostbyname inet_ntoa localtime_r memmove memset mkdir munmap putenv rmdir socket strcasecmp strchr strcspn strdup strerror strncasecmp strpbrk strrchr strstr strtol tzset
  17429. do
  17430. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17431. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  17432. $as_echo_n "checking for $ac_func... " >&6; }
  17433. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17434. $as_echo_n "(cached) " >&6
  17435. else
  17436. cat >conftest.$ac_ext <<_ACEOF
  17437. /* confdefs.h. */
  17438. _ACEOF
  17439. cat confdefs.h >>conftest.$ac_ext
  17440. cat >>conftest.$ac_ext <<_ACEOF
  17441. /* end confdefs.h. */
  17442. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17443. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17444. #define $ac_func innocuous_$ac_func
  17445. /* System header to define __stub macros and hopefully few prototypes,
  17446. which can conflict with char $ac_func (); below.
  17447. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17448. <limits.h> exists even on freestanding compilers. */
  17449. #ifdef __STDC__
  17450. # include <limits.h>
  17451. #else
  17452. # include <assert.h>
  17453. #endif
  17454. #undef $ac_func
  17455. /* Override any GCC internal prototype to avoid an error.
  17456. Use char because int might match the return type of a GCC
  17457. builtin and then its argument prototype would still apply. */
  17458. #ifdef __cplusplus
  17459. extern "C"
  17460. #endif
  17461. char $ac_func ();
  17462. /* The GNU C library defines this for functions which it implements
  17463. to always fail with ENOSYS. Some functions are actually named
  17464. something starting with __ and the normal name is an alias. */
  17465. #if defined __stub_$ac_func || defined __stub___$ac_func
  17466. choke me
  17467. #endif
  17468. int
  17469. main ()
  17470. {
  17471. return $ac_func ();
  17472. ;
  17473. return 0;
  17474. }
  17475. _ACEOF
  17476. rm -f conftest.$ac_objext conftest$ac_exeext
  17477. if { (ac_try="$ac_link"
  17478. case "(($ac_try" in
  17479. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17480. *) ac_try_echo=$ac_try;;
  17481. esac
  17482. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17483. $as_echo "$ac_try_echo") >&5
  17484. (eval "$ac_link") 2>conftest.er1
  17485. ac_status=$?
  17486. grep -v '^ *+' conftest.er1 >conftest.err
  17487. rm -f conftest.er1
  17488. cat conftest.err >&5
  17489. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17490. (exit $ac_status); } && {
  17491. test -z "$ac_c_werror_flag" ||
  17492. test ! -s conftest.err
  17493. } && test -s conftest$ac_exeext && {
  17494. test "$cross_compiling" = yes ||
  17495. $as_test_x conftest$ac_exeext
  17496. }; then
  17497. eval "$as_ac_var=yes"
  17498. else
  17499. $as_echo "$as_me: failed program was:" >&5
  17500. sed 's/^/| /' conftest.$ac_ext >&5
  17501. eval "$as_ac_var=no"
  17502. fi
  17503. rm -rf conftest.dSYM
  17504. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17505. conftest$ac_exeext conftest.$ac_ext
  17506. fi
  17507. ac_res=`eval 'as_val=${'$as_ac_var'}
  17508. $as_echo "$as_val"'`
  17509. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17510. $as_echo "$ac_res" >&6; }
  17511. as_val=`eval 'as_val=${'$as_ac_var'}
  17512. $as_echo "$as_val"'`
  17513. if test "x$as_val" = x""yes; then
  17514. cat >>confdefs.h <<_ACEOF
  17515. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17516. _ACEOF
  17517. fi
  17518. done
  17519. { $as_echo "$as_me:$LINENO: checking for --enable-debug" >&5
  17520. $as_echo_n "checking for --enable-debug... " >&6; }
  17521. # Check whether --enable-debug was given.
  17522. if test "${enable_debug+set}" = set; then
  17523. enableval=$enable_debug;
  17524. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17525. $as_echo "yes" >&6; }
  17526. debug_defs="-DDEBUG -DMCC_DEBUG"
  17527. else
  17528. { $as_echo "$as_me:$LINENO: result: no" >&5
  17529. $as_echo "no" >&6; }
  17530. debug_defs=""
  17531. fi
  17532. # Used for legacy style packaging where we bundle all of the dependencies.
  17533. { $as_echo "$as_me:$LINENO: checking for --enable-bundle" >&5
  17534. $as_echo_n "checking for --enable-bundle... " >&6; }
  17535. # Check whether --enable-bundle was given.
  17536. if test "${enable_bundle+set}" = set; then
  17537. enableval=$enable_bundle;
  17538. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17539. $as_echo "yes" >&6; }
  17540. bundle="1";
  17541. else
  17542. { $as_echo "$as_me:$LINENO: result: no" >&5
  17543. $as_echo "no" >&6; }
  17544. bundle="";
  17545. fi
  17546. if test "$bundle" = "1"; then
  17547. BUNDLE_TRUE=
  17548. BUNDLE_FALSE='#'
  17549. else
  17550. BUNDLE_TRUE='#'
  17551. BUNDLE_FALSE=
  17552. fi
  17553. # these enables are for optional or experimental features
  17554. if test -z "$enable_pam_passthru" ; then
  17555. enable_pam_passthru=yes # if not set on cmdline, set default
  17556. fi
  17557. { $as_echo "$as_me:$LINENO: checking for --enable-pam-passthru" >&5
  17558. $as_echo_n "checking for --enable-pam-passthru... " >&6; }
  17559. # Check whether --enable-pam-passthru was given.
  17560. if test "${enable_pam_passthru+set}" = set; then
  17561. enableval=$enable_pam_passthru;
  17562. fi
  17563. if test "$enable_pam_passthru" = yes ; then
  17564. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17565. $as_echo "yes" >&6; }
  17566. cat >>confdefs.h <<\_ACEOF
  17567. #define ENABLE_PAM_PASSTHRU 1
  17568. _ACEOF
  17569. else
  17570. { $as_echo "$as_me:$LINENO: result: no" >&5
  17571. $as_echo "no" >&6; }
  17572. fi
  17573. if test "$enable_pam_passthru" = "yes"; then
  17574. enable_pam_passthru_TRUE=
  17575. enable_pam_passthru_FALSE='#'
  17576. else
  17577. enable_pam_passthru_TRUE='#'
  17578. enable_pam_passthru_FALSE=
  17579. fi
  17580. if test -z "$enable_dna" ; then
  17581. enable_dna=yes # if not set on cmdline, set default
  17582. fi
  17583. { $as_echo "$as_me:$LINENO: checking for --enable-dna" >&5
  17584. $as_echo_n "checking for --enable-dna... " >&6; }
  17585. # Check whether --enable-dna was given.
  17586. if test "${enable_dna+set}" = set; then
  17587. enableval=$enable_dna;
  17588. fi
  17589. if test "$enable_dna" = yes ; then
  17590. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17591. $as_echo "yes" >&6; }
  17592. cat >>confdefs.h <<\_ACEOF
  17593. #define ENABLE_DNA 1
  17594. _ACEOF
  17595. else
  17596. { $as_echo "$as_me:$LINENO: result: no" >&5
  17597. $as_echo "no" >&6; }
  17598. fi
  17599. if test "$enable_dna" = "yes"; then
  17600. enable_dna_TRUE=
  17601. enable_dna_FALSE='#'
  17602. else
  17603. enable_dna_TRUE='#'
  17604. enable_dna_FALSE=
  17605. fi
  17606. if test -z "$enable_ldapi" ; then
  17607. enable_ldapi=yes # if not set on cmdline, set default
  17608. fi
  17609. { $as_echo "$as_me:$LINENO: checking for --enable-ldapi" >&5
  17610. $as_echo_n "checking for --enable-ldapi... " >&6; }
  17611. # Check whether --enable-ldapi was given.
  17612. if test "${enable_ldapi+set}" = set; then
  17613. enableval=$enable_ldapi;
  17614. fi
  17615. if test "$enable_ldapi" = yes ; then
  17616. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17617. $as_echo "yes" >&6; }
  17618. cat >>confdefs.h <<\_ACEOF
  17619. #define ENABLE_LDAPI 1
  17620. _ACEOF
  17621. else
  17622. { $as_echo "$as_me:$LINENO: result: no" >&5
  17623. $as_echo "no" >&6; }
  17624. fi
  17625. if test "$enable_ldapi" = "yes"; then
  17626. enable_ldapi_TRUE=
  17627. enable_ldapi_FALSE='#'
  17628. else
  17629. enable_ldapi_TRUE='#'
  17630. enable_ldapi_FALSE=
  17631. fi
  17632. if test -z "$enable_autobind" ; then
  17633. enable_autobind=no # if not set on cmdline, set default
  17634. fi
  17635. { $as_echo "$as_me:$LINENO: checking for --enable-autobind" >&5
  17636. $as_echo_n "checking for --enable-autobind... " >&6; }
  17637. # Check whether --enable-autobind was given.
  17638. if test "${enable_autobind+set}" = set; then
  17639. enableval=$enable_autobind;
  17640. fi
  17641. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes ; then
  17642. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17643. $as_echo "yes" >&6; }
  17644. cat >>confdefs.h <<\_ACEOF
  17645. #define ENABLE_AUTOBIND 1
  17646. _ACEOF
  17647. else
  17648. { $as_echo "$as_me:$LINENO: result: no" >&5
  17649. $as_echo "no" >&6; }
  17650. fi
  17651. if test "$enable_autobind" = "yes"; then
  17652. enable_autobind_TRUE=
  17653. enable_autobind_FALSE='#'
  17654. else
  17655. enable_autobind_TRUE='#'
  17656. enable_autobind_FALSE=
  17657. fi
  17658. if test -z "$enable_auto_dn_suffix" ; then
  17659. enable_auto_dn_suffix=no # if not set on cmdline, set default
  17660. fi
  17661. { $as_echo "$as_me:$LINENO: checking for --enable-auto-dn-suffix" >&5
  17662. $as_echo_n "checking for --enable-auto-dn-suffix... " >&6; }
  17663. # Check whether --enable-autobind was given.
  17664. if test "${enable_autobind+set}" = set; then
  17665. enableval=$enable_autobind;
  17666. fi
  17667. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes -a "$enable_auto_dn_suffix" = "yes"; then
  17668. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17669. $as_echo "yes" >&6; }
  17670. cat >>confdefs.h <<\_ACEOF
  17671. #define ENABLE_AUTO_DN_SUFFIX 1
  17672. _ACEOF
  17673. else
  17674. { $as_echo "$as_me:$LINENO: result: no" >&5
  17675. $as_echo "no" >&6; }
  17676. fi
  17677. if test "$enable_auto_dn_suffix" = "yes"; then
  17678. enable_auto_dn_suffix_TRUE=
  17679. enable_auto_dn_suffix_FALSE='#'
  17680. else
  17681. enable_auto_dn_suffix_TRUE='#'
  17682. enable_auto_dn_suffix_FALSE=
  17683. fi
  17684. if test -z "$enable_bitwise" ; then
  17685. enable_bitwise=yes # if not set on cmdline, set default
  17686. fi
  17687. { $as_echo "$as_me:$LINENO: checking for --enable-bitwise" >&5
  17688. $as_echo_n "checking for --enable-bitwise... " >&6; }
  17689. # Check whether --enable-bitwise was given.
  17690. if test "${enable_bitwise+set}" = set; then
  17691. enableval=$enable_bitwise;
  17692. fi
  17693. if test "$enable_bitwise" = yes ; then
  17694. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17695. $as_echo "yes" >&6; }
  17696. cat >>confdefs.h <<\_ACEOF
  17697. #define ENABLE_BITWISE 1
  17698. _ACEOF
  17699. else
  17700. { $as_echo "$as_me:$LINENO: result: no" >&5
  17701. $as_echo "no" >&6; }
  17702. fi
  17703. if test "$enable_bitwise" = "yes"; then
  17704. enable_bitwise_TRUE=
  17705. enable_bitwise_FALSE='#'
  17706. else
  17707. enable_bitwise_TRUE='#'
  17708. enable_bitwise_FALSE=
  17709. fi
  17710. if test -z "$enable_presence" ; then
  17711. enable_presence=no # if not set on cmdline, set default
  17712. fi
  17713. { $as_echo "$as_me:$LINENO: checking for --enable-presence" >&5
  17714. $as_echo_n "checking for --enable-presence... " >&6; }
  17715. # Check whether --enable-presence was given.
  17716. if test "${enable_presence+set}" = set; then
  17717. enableval=$enable_presence;
  17718. fi
  17719. if test "$enable_presence" = yes ; then
  17720. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17721. $as_echo "yes" >&6; }
  17722. cat >>confdefs.h <<\_ACEOF
  17723. #define ENABLE_PRESENCE 1
  17724. _ACEOF
  17725. else
  17726. { $as_echo "$as_me:$LINENO: result: no" >&5
  17727. $as_echo "no" >&6; }
  17728. fi
  17729. if test "$enable_presence" = "yes"; then
  17730. enable_presence_TRUE=
  17731. enable_presence_FALSE='#'
  17732. else
  17733. enable_presence_TRUE='#'
  17734. enable_presence_FALSE=
  17735. fi
  17736. if test -z "$enable_acctpolicy" ; then
  17737. enable_acctpolicy=yes # if not set on cmdline, set default
  17738. fi
  17739. { $as_echo "$as_me:$LINENO: checking for --enable-acctpolicy" >&5
  17740. $as_echo_n "checking for --enable-acctpolicy... " >&6; }
  17741. # Check whether --enable-acctpolicy was given.
  17742. if test "${enable_acctpolicy+set}" = set; then
  17743. enableval=$enable_acctpolicy;
  17744. fi
  17745. if test "$enable_acctpolicy" = yes ; then
  17746. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17747. $as_echo "yes" >&6; }
  17748. cat >>confdefs.h <<\_ACEOF
  17749. #define ENABLE_ACCTPOLICY 1
  17750. _ACEOF
  17751. else
  17752. { $as_echo "$as_me:$LINENO: result: no" >&5
  17753. $as_echo "no" >&6; }
  17754. fi
  17755. if test "$enable_acctpolicy" = "yes"; then
  17756. enable_acctpolicy_TRUE=
  17757. enable_acctpolicy_FALSE='#'
  17758. else
  17759. enable_acctpolicy_TRUE='#'
  17760. enable_acctpolicy_FALSE=
  17761. fi
  17762. # the default prefix - override with --prefix or --with-fhs
  17763. # BEGIN COPYRIGHT BLOCK
  17764. # Copyright (C) 2006 Red Hat, Inc.
  17765. # All rights reserved.
  17766. #
  17767. # This program is free software; you can redistribute it and/or
  17768. # modify it under the terms of the GNU General Public License
  17769. # as published by the Free Software Foundation; either version 2
  17770. # of the License, or (at your option) any later version.
  17771. #
  17772. # This program is distributed in the hope that it will be useful,
  17773. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17774. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17775. # GNU General Public License for more details.
  17776. #
  17777. # You should have received a copy of the GNU General Public License
  17778. # along with this program; if not, write to the Free Software
  17779. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17780. #
  17781. # END COPYRIGHT BLOCK
  17782. { $as_echo "$as_me:$LINENO: checking for FHS..." >&5
  17783. $as_echo "$as_me: checking for FHS..." >&6;}
  17784. # check for --with-fhs
  17785. { $as_echo "$as_me:$LINENO: checking for --with-fhs" >&5
  17786. $as_echo_n "checking for --with-fhs... " >&6; }
  17787. # Check whether --with-fhs was given.
  17788. if test "${with_fhs+set}" = set; then
  17789. withval=$with_fhs;
  17790. with_fhs=yes
  17791. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17792. $as_echo "yes" >&6; }
  17793. else
  17794. { $as_echo "$as_me:$LINENO: result: no" >&5
  17795. $as_echo "no" >&6; }
  17796. fi
  17797. if test "$with_fhs" = "yes"; then
  17798. cat >>confdefs.h <<\_ACEOF
  17799. #define IS_FHS 1
  17800. _ACEOF
  17801. fi
  17802. # check for --with-fhs-opt
  17803. { $as_echo "$as_me:$LINENO: checking for --with-fhs-opt" >&5
  17804. $as_echo_n "checking for --with-fhs-opt... " >&6; }
  17805. # Check whether --with-fhs-opt was given.
  17806. if test "${with_fhs_opt+set}" = set; then
  17807. withval=$with_fhs_opt;
  17808. with_fhs_opt=yes
  17809. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17810. $as_echo "yes" >&6; }
  17811. else
  17812. { $as_echo "$as_me:$LINENO: result: no" >&5
  17813. $as_echo "no" >&6; }
  17814. fi
  17815. if test "$with_fhs_opt" = "yes"; then
  17816. cat >>confdefs.h <<\_ACEOF
  17817. #define IS_FHS_OPT 1
  17818. _ACEOF
  17819. fi
  17820. if test "$with_fhs" = "yes" -a "$with_fhs_opt" = "yes"; then
  17821. { { $as_echo "$as_me:$LINENO: error: Can't set both --with-fhs and --with-fhs-opt. Please only use one of these options." >&5
  17822. $as_echo "$as_me: error: Can't set both --with-fhs and --with-fhs-opt. Please only use one of these options." >&2;}
  17823. { (exit 1); exit 1; }; }
  17824. fi
  17825. # installation paths - by default, we store everything
  17826. # under the prefix. The with-fhs option will use /usr,
  17827. # /etc, and /var. The with-fhs-opt option will use the
  17828. # prefix, but it's sysconfdir and localstatedir will be
  17829. # /etc/opt, and /var/opt.
  17830. if test "$with_fhs_opt" = "yes"; then
  17831. # Override sysconfdir and localstatedir if FHS optional
  17832. # package was requested.
  17833. sysconfdir='/etc/opt'
  17834. localstatedir='/var/opt'
  17835. # relative to datadir
  17836. sampledatadir=/data
  17837. # relative to datadir
  17838. scripttemplatedir=/script-templates
  17839. # relative to datadir
  17840. updatedir=/updates
  17841. # relative to libdir
  17842. serverdir=
  17843. # relative to includedir
  17844. serverincdir=
  17845. # relative to libdir
  17846. serverplugindir=/plugins
  17847. # relative to datadir
  17848. infdir=/inf
  17849. # relative to datadir
  17850. mibdir=/mibs
  17851. # location of property/resource files, relative to datadir
  17852. propertydir=/properties
  17853. # relative to libdir
  17854. perldir=/perl
  17855. else
  17856. if test "$with_fhs" = "yes"; then
  17857. ac_default_prefix=/usr
  17858. prefix=$ac_default_prefix
  17859. exec_prefix=$prefix
  17860. sysconfdir='/etc'
  17861. localstatedir='/var'
  17862. fi
  17863. # relative to datadir
  17864. sampledatadir=/$PACKAGE_NAME/data
  17865. # relative to datadir
  17866. scripttemplatedir=/$PACKAGE_NAME/script-templates
  17867. # relative to datadir
  17868. updatedir=/$PACKAGE_NAME/updates
  17869. # relative to libdir
  17870. serverdir=/$PACKAGE_NAME
  17871. # relative to includedir
  17872. serverincdir=/$PACKAGE_NAME
  17873. # relative to libdir
  17874. serverplugindir=/$PACKAGE_NAME/plugins
  17875. # relative to datadir
  17876. infdir=/$PACKAGE_NAME/inf
  17877. # relative to datadir
  17878. mibdir=/$PACKAGE_NAME/mibs
  17879. # location of property/resource files, relative to datadir
  17880. propertydir=/$PACKAGE_NAME/properties
  17881. # relative to libdir
  17882. perldir=/$PACKAGE_NAME/perl
  17883. fi
  17884. # if mandir is the default value, override it
  17885. # otherwise, the user must have set it - just use it
  17886. if test X"$mandir" = X'${prefix}/man' ; then
  17887. mandir='$(datadir)/man'
  17888. fi
  17889. # Shared paths for all layouts
  17890. # relative to sysconfdir
  17891. configdir=/$PACKAGE_NAME/config
  17892. # relative to sysconfdir
  17893. schemadir=/$PACKAGE_NAME/schema
  17894. # default user, group
  17895. defaultuser=nobody
  17896. defaultgroup=nobody
  17897. if test -z "$with_tmpfiles_d" ; then
  17898. if test -d $sysconfdir/tmpfiles.d ; then
  17899. with_tmpfiles_d='$(sysconfdir)/tmpfiles.d'
  17900. fi
  17901. fi
  17902. { $as_echo "$as_me:$LINENO: checking for --with-tmpfiles-d" >&5
  17903. $as_echo_n "checking for --with-tmpfiles-d... " >&6; }
  17904. # Check whether --with-tmpfiles-d was given.
  17905. if test "${with_tmpfiles_d+set}" = set; then
  17906. withval=$with_tmpfiles_d;
  17907. fi
  17908. if test "$with_tmpfiles_d" = yes ; then
  17909. { { $as_echo "$as_me:$LINENO: error: You must specify --with-tmpfiles-d=/full/path/to/tmpfiles.d directory" >&5
  17910. $as_echo "$as_me: error: You must specify --with-tmpfiles-d=/full/path/to/tmpfiles.d directory" >&2;}
  17911. { (exit 1); exit 1; }; }
  17912. elif test "$with_tmpfiles_d" = no ; then
  17913. with_tmpfiles_d=
  17914. else
  17915. { $as_echo "$as_me:$LINENO: result: $with_tmpfiles_d" >&5
  17916. $as_echo "$with_tmpfiles_d" >&6; }
  17917. fi
  17918. # check for --with-instconfigdir
  17919. { $as_echo "$as_me:$LINENO: checking for --with-instconfigdir" >&5
  17920. $as_echo_n "checking for --with-instconfigdir... " >&6; }
  17921. # Check whether --with-instconfigdir was given.
  17922. if test "${with_instconfigdir+set}" = set; then
  17923. withval=$with_instconfigdir;
  17924. if test $withval = yes ; then
  17925. { { $as_echo "$as_me:$LINENO: error: Please specify a full path with --with-instconfigdir" >&5
  17926. $as_echo "$as_me: error: Please specify a full path with --with-instconfigdir" >&2;}
  17927. { (exit 1); exit 1; }; }
  17928. fi
  17929. instconfigdir="$withval"
  17930. { $as_echo "$as_me:$LINENO: result: $withval" >&5
  17931. $as_echo "$withval" >&6; }
  17932. else
  17933. instconfigdir='$(sysconfdir)/$(PACKAGE_NAME)'
  17934. { $as_echo "$as_me:$LINENO: result: no" >&5
  17935. $as_echo "no" >&6; }
  17936. fi
  17937. # WINNT should be true if building on Windows system not using
  17938. # cygnus, mingw, or the like and using cmd.exe as the shell
  17939. if false; then
  17940. WINNT_TRUE=
  17941. WINNT_FALSE='#'
  17942. else
  17943. WINNT_TRUE='#'
  17944. WINNT_FALSE=
  17945. fi
  17946. # Deal with platform dependent defines
  17947. # initdir is the location for the SysV init scripts - very heavily platform
  17948. # dependent and not specified in fhs or lsb
  17949. initdir='$(sysconfdir)/rc.d'
  17950. { $as_echo "$as_me:$LINENO: checking for --with-initddir" >&5
  17951. $as_echo_n "checking for --with-initddir... " >&6; }
  17952. # Check whether --with-initddir was given.
  17953. if test "${with_initddir+set}" = set; then
  17954. withval=$with_initddir;
  17955. if test "$withval" = yes -o "$withval" = no ; then
  17956. { { $as_echo "$as_me:$LINENO: error: Please specify a full path with --with-initddir" >&5
  17957. $as_echo "$as_me: error: Please specify a full path with --with-initddir" >&2;}
  17958. { (exit 1); exit 1; }; }
  17959. fi
  17960. { $as_echo "$as_me:$LINENO: result: $withval" >&5
  17961. $as_echo "$withval" >&6; }
  17962. else
  17963. { $as_echo "$as_me:$LINENO: result: no" >&5
  17964. $as_echo "no" >&6; }
  17965. fi
  17966. # on most platforms, we will just use perl from PATH
  17967. # On some platforms, we cannot. Why not just use any old
  17968. # perl? Because of perldap. We use a perldap that is
  17969. # compiled to either 32bit or 64bit, so we must use a native
  17970. # perl binary compiled with the same bitsize. On Solaris
  17971. # and HP-UX, /usr/bin/perl is 32 bit, so we cannot use
  17972. # those with our 64 bit compiled product.
  17973. perlexec='/usr/bin/env perl'
  17974. # we use stty in perl scripts to disable password echo
  17975. # this doesn't work unless the full absolute path of the
  17976. # stty command is used e.g. system("stty -echo") does not
  17977. # work but system("/bin/stty -echo") does work
  17978. # since the path of stty may not be the same on all
  17979. # platforms, we set the default here to /bin/stty and
  17980. # allow that value to be overridden in the platform
  17981. # specific section below
  17982. sttyexec=/bin/stty
  17983. case $host in
  17984. *-*-linux*)
  17985. cat >>confdefs.h <<\_ACEOF
  17986. #define XP_UNIX 1
  17987. _ACEOF
  17988. cat >>confdefs.h <<\_ACEOF
  17989. #define Linux 1
  17990. _ACEOF
  17991. cat >>confdefs.h <<\_ACEOF
  17992. #define LINUX 1
  17993. _ACEOF
  17994. cat >>confdefs.h <<\_ACEOF
  17995. #define LINUX2_0 1
  17996. _ACEOF
  17997. cat >>confdefs.h <<\_ACEOF
  17998. #define LINUX2_2 1
  17999. _ACEOF
  18000. cat >>confdefs.h <<\_ACEOF
  18001. #define LINUX2_4 1
  18002. _ACEOF
  18003. cat >>confdefs.h <<\_ACEOF
  18004. #define _GNU_SOURCE 1
  18005. _ACEOF
  18006. platform="linux"
  18007. initdir='$(sysconfdir)/rc.d/init.d'
  18008. # do arch specific linux stuff here
  18009. case $host in
  18010. i*86-*-linux*)
  18011. cat >>confdefs.h <<\_ACEOF
  18012. #define CPU_x86 /**/
  18013. _ACEOF
  18014. cat >>confdefs.h <<\_ACEOF
  18015. #define ATOMIC_64BIT_OPERATIONS 1
  18016. _ACEOF
  18017. { $as_echo "$as_me:$LINENO: checking whether __sync_add_and_fetch is declared" >&5
  18018. $as_echo_n "checking whether __sync_add_and_fetch is declared... " >&6; }
  18019. if test "${ac_cv_have_decl___sync_add_and_fetch+set}" = set; then
  18020. $as_echo_n "(cached) " >&6
  18021. else
  18022. cat >conftest.$ac_ext <<_ACEOF
  18023. /* confdefs.h. */
  18024. _ACEOF
  18025. cat confdefs.h >>conftest.$ac_ext
  18026. cat >>conftest.$ac_ext <<_ACEOF
  18027. /* end confdefs.h. */
  18028. $ac_includes_default
  18029. int
  18030. main ()
  18031. {
  18032. #ifndef __sync_add_and_fetch
  18033. (void) __sync_add_and_fetch;
  18034. #endif
  18035. ;
  18036. return 0;
  18037. }
  18038. _ACEOF
  18039. rm -f conftest.$ac_objext
  18040. if { (ac_try="$ac_compile"
  18041. case "(($ac_try" in
  18042. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18043. *) ac_try_echo=$ac_try;;
  18044. esac
  18045. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18046. $as_echo "$ac_try_echo") >&5
  18047. (eval "$ac_compile") 2>conftest.er1
  18048. ac_status=$?
  18049. grep -v '^ *+' conftest.er1 >conftest.err
  18050. rm -f conftest.er1
  18051. cat conftest.err >&5
  18052. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18053. (exit $ac_status); } && {
  18054. test -z "$ac_c_werror_flag" ||
  18055. test ! -s conftest.err
  18056. } && test -s conftest.$ac_objext; then
  18057. ac_cv_have_decl___sync_add_and_fetch=yes
  18058. else
  18059. $as_echo "$as_me: failed program was:" >&5
  18060. sed 's/^/| /' conftest.$ac_ext >&5
  18061. ac_cv_have_decl___sync_add_and_fetch=no
  18062. fi
  18063. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18064. fi
  18065. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sync_add_and_fetch" >&5
  18066. $as_echo "$ac_cv_have_decl___sync_add_and_fetch" >&6; }
  18067. if test "x$ac_cv_have_decl___sync_add_and_fetch" = x""yes; then
  18068. cat >>confdefs.h <<_ACEOF
  18069. #define HAVE_DECL___SYNC_ADD_AND_FETCH 1
  18070. _ACEOF
  18071. else
  18072. cat >>confdefs.h <<_ACEOF
  18073. #define HAVE_DECL___SYNC_ADD_AND_FETCH 0
  18074. _ACEOF
  18075. fi
  18076. ;;
  18077. x86_64-*-linux*)
  18078. cat >>confdefs.h <<\_ACEOF
  18079. #define CPU_x86_64 /**/
  18080. _ACEOF
  18081. cat >>confdefs.h <<\_ACEOF
  18082. #define ATOMIC_64BIT_OPERATIONS 1
  18083. _ACEOF
  18084. { $as_echo "$as_me:$LINENO: checking whether __sync_add_and_fetch is declared" >&5
  18085. $as_echo_n "checking whether __sync_add_and_fetch is declared... " >&6; }
  18086. if test "${ac_cv_have_decl___sync_add_and_fetch+set}" = set; then
  18087. $as_echo_n "(cached) " >&6
  18088. else
  18089. cat >conftest.$ac_ext <<_ACEOF
  18090. /* confdefs.h. */
  18091. _ACEOF
  18092. cat confdefs.h >>conftest.$ac_ext
  18093. cat >>conftest.$ac_ext <<_ACEOF
  18094. /* end confdefs.h. */
  18095. $ac_includes_default
  18096. int
  18097. main ()
  18098. {
  18099. #ifndef __sync_add_and_fetch
  18100. (void) __sync_add_and_fetch;
  18101. #endif
  18102. ;
  18103. return 0;
  18104. }
  18105. _ACEOF
  18106. rm -f conftest.$ac_objext
  18107. if { (ac_try="$ac_compile"
  18108. case "(($ac_try" in
  18109. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18110. *) ac_try_echo=$ac_try;;
  18111. esac
  18112. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18113. $as_echo "$ac_try_echo") >&5
  18114. (eval "$ac_compile") 2>conftest.er1
  18115. ac_status=$?
  18116. grep -v '^ *+' conftest.er1 >conftest.err
  18117. rm -f conftest.er1
  18118. cat conftest.err >&5
  18119. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18120. (exit $ac_status); } && {
  18121. test -z "$ac_c_werror_flag" ||
  18122. test ! -s conftest.err
  18123. } && test -s conftest.$ac_objext; then
  18124. ac_cv_have_decl___sync_add_and_fetch=yes
  18125. else
  18126. $as_echo "$as_me: failed program was:" >&5
  18127. sed 's/^/| /' conftest.$ac_ext >&5
  18128. ac_cv_have_decl___sync_add_and_fetch=no
  18129. fi
  18130. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18131. fi
  18132. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sync_add_and_fetch" >&5
  18133. $as_echo "$ac_cv_have_decl___sync_add_and_fetch" >&6; }
  18134. if test "x$ac_cv_have_decl___sync_add_and_fetch" = x""yes; then
  18135. cat >>confdefs.h <<_ACEOF
  18136. #define HAVE_DECL___SYNC_ADD_AND_FETCH 1
  18137. _ACEOF
  18138. else
  18139. cat >>confdefs.h <<_ACEOF
  18140. #define HAVE_DECL___SYNC_ADD_AND_FETCH 0
  18141. _ACEOF
  18142. fi
  18143. ;;
  18144. esac
  18145. # some programs use the native thread library directly
  18146. THREADLIB=-lpthread
  18147. THREADLIB=$THREADLIB
  18148. LIBCRYPT=-lcrypt
  18149. LIBCRYPT=$LIBCRYPT
  18150. ;;
  18151. ia64-hp-hpux*)
  18152. cat >>confdefs.h <<\_ACEOF
  18153. #define XP_UNIX 1
  18154. _ACEOF
  18155. cat >>confdefs.h <<\_ACEOF
  18156. #define hpux 1
  18157. _ACEOF
  18158. cat >>confdefs.h <<\_ACEOF
  18159. #define HPUX 1
  18160. _ACEOF
  18161. cat >>confdefs.h <<\_ACEOF
  18162. #define HPUX11 1
  18163. _ACEOF
  18164. cat >>confdefs.h <<\_ACEOF
  18165. #define HPUX11_23 1
  18166. _ACEOF
  18167. cat >>confdefs.h <<\_ACEOF
  18168. #define CPU_ia64 /**/
  18169. _ACEOF
  18170. cat >>confdefs.h <<\_ACEOF
  18171. #define OS_hpux 1
  18172. _ACEOF
  18173. cat >>confdefs.h <<\_ACEOF
  18174. #define _POSIX_C_SOURCE 199506L
  18175. _ACEOF
  18176. cat >>confdefs.h <<\_ACEOF
  18177. #define _HPUX_SOURCE 1
  18178. _ACEOF
  18179. cat >>confdefs.h <<\_ACEOF
  18180. #define _INCLUDE_STDC__SOURCE_199901 1
  18181. _ACEOF
  18182. # assume 64 bit
  18183. perlexec='/opt/perl_64/bin/perl'
  18184. platform="hpux"
  18185. initconfigdir="/$PACKAGE_NAME/config"
  18186. # HPUX doesn't use /etc for this
  18187. initdir=/init.d
  18188. ;;
  18189. hppa*-hp-hpux*)
  18190. cat >>confdefs.h <<\_ACEOF
  18191. #define XP_UNIX 1
  18192. _ACEOF
  18193. cat >>confdefs.h <<\_ACEOF
  18194. #define hpux 1
  18195. _ACEOF
  18196. cat >>confdefs.h <<\_ACEOF
  18197. #define HPUX 1
  18198. _ACEOF
  18199. cat >>confdefs.h <<\_ACEOF
  18200. #define HPUX11 1
  18201. _ACEOF
  18202. cat >>confdefs.h <<\_ACEOF
  18203. #define HPUX11_11 1
  18204. _ACEOF
  18205. cat >>confdefs.h <<\_ACEOF
  18206. #define CPU_hppa /**/
  18207. _ACEOF
  18208. cat >>confdefs.h <<\_ACEOF
  18209. #define OS_hpux 1
  18210. _ACEOF
  18211. cat >>confdefs.h <<\_ACEOF
  18212. #define _POSIX_C_SOURCE 199506L
  18213. _ACEOF
  18214. cat >>confdefs.h <<\_ACEOF
  18215. #define _HPUX_SOURCE 1
  18216. _ACEOF
  18217. cat >>confdefs.h <<\_ACEOF
  18218. #define _INCLUDE_STDC__SOURCE_199901 1
  18219. _ACEOF
  18220. cat >>confdefs.h <<\_ACEOF
  18221. #define ATOMIC_64BIT_OPERATIONS 1
  18222. _ACEOF
  18223. # assume 64 bit
  18224. initconfigdir="/$PACKAGE_NAME/config"
  18225. perlexec='/opt/perl_64/bin/perl'
  18226. platform="hpux"
  18227. # HPUX doesn't use /etc for this
  18228. initdir=/init.d
  18229. ;;
  18230. sparc-sun-solaris*)
  18231. cat >>confdefs.h <<\_ACEOF
  18232. #define XP_UNIX 1
  18233. _ACEOF
  18234. cat >>confdefs.h <<\_ACEOF
  18235. #define SVR4 1
  18236. _ACEOF
  18237. cat >>confdefs.h <<\_ACEOF
  18238. #define __svr4 1
  18239. _ACEOF
  18240. cat >>confdefs.h <<\_ACEOF
  18241. #define __svr4__ 1
  18242. _ACEOF
  18243. cat >>confdefs.h <<\_ACEOF
  18244. #define _SVID_GETTOD 1
  18245. _ACEOF
  18246. cat >>confdefs.h <<\_ACEOF
  18247. #define SOLARIS 1
  18248. _ACEOF
  18249. cat >>confdefs.h <<\_ACEOF
  18250. #define CPU_sparc /**/
  18251. _ACEOF
  18252. cat >>confdefs.h <<\_ACEOF
  18253. #define OS_solaris 1
  18254. _ACEOF
  18255. cat >>confdefs.h <<\_ACEOF
  18256. #define sunos5 1
  18257. _ACEOF
  18258. cat >>confdefs.h <<\_ACEOF
  18259. #define OSVERSION 509
  18260. _ACEOF
  18261. cat >>confdefs.h <<\_ACEOF
  18262. #define _REENTRANT 1
  18263. _ACEOF
  18264. cat >>confdefs.h <<\_ACEOF
  18265. #define NO_DOMAINNAME 1
  18266. _ACEOF
  18267. cat >>confdefs.h <<\_ACEOF
  18268. #define ATOMIC_64BIT_OPERATIONS 1
  18269. _ACEOF
  18270. LIBSOCKET=-lsocket
  18271. LIBSOCKET=$LIBSOCKET
  18272. LIBNSL=-lnsl
  18273. LIBNSL=$LIBNSL
  18274. LIBDL=-ldl
  18275. LIBDL=$LIBDL
  18276. LIBCSTD=-lCstd
  18277. LIBCSTD=$LIBCSTD
  18278. LIBCRUN=-lCrun
  18279. LIBCRUN=$LIBCRUN
  18280. platform="solaris"
  18281. # assume 64 bit
  18282. perlexec='/usr/lib/sparcv9/dirsec/perl5x/bin/perl'
  18283. initdir='$(sysconfdir)/init.d'
  18284. ;;
  18285. *)
  18286. platform=""
  18287. ;;
  18288. esac
  18289. # cmd line overrides default setting above
  18290. if test -n "$with_initddir" ; then
  18291. initdir="$with_initddir"
  18292. fi
  18293. # set default initconfigdir if not already set
  18294. # value will be set so as to be relative to $(sysconfdir)
  18295. if test -z "$initconfigdir" ; then
  18296. if test -d /etc/sysconfig ; then
  18297. initconfigdir=/sysconfig
  18298. elif test -d /etc/default ; then
  18299. initconfigdir=/default
  18300. else
  18301. initconfigdir="/$PACKAGE_NAME/config"
  18302. fi
  18303. fi
  18304. if test "$platform" = "hpux"; then
  18305. HPUX_TRUE=
  18306. HPUX_FALSE='#'
  18307. else
  18308. HPUX_TRUE='#'
  18309. HPUX_FALSE=
  18310. fi
  18311. if test "$platform" = "solaris"; then
  18312. SOLARIS_TRUE=
  18313. SOLARIS_FALSE='#'
  18314. else
  18315. SOLARIS_TRUE='#'
  18316. SOLARIS_FALSE=
  18317. fi
  18318. # Check for library dependencies
  18319. # BEGIN COPYRIGHT BLOCK
  18320. # Copyright (C) 2007 Red Hat, Inc.
  18321. # All rights reserved.
  18322. #
  18323. # This program is free software; you can redistribute it and/or
  18324. # modify it under the terms of the GNU General Public License
  18325. # as published by the Free Software Foundation; either version 2
  18326. # of the License, or (at your option) any later version.
  18327. #
  18328. # This program is distributed in the hope that it will be useful,
  18329. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  18330. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18331. # GNU General Public License for more details.
  18332. #
  18333. # You should have received a copy of the GNU General Public License
  18334. # along with this program; if not, write to the Free Software
  18335. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  18336. #
  18337. # END COPYRIGHT BLOCK
  18338. { $as_echo "$as_me:$LINENO: checking for NSPR..." >&5
  18339. $as_echo "$as_me: checking for NSPR..." >&6;}
  18340. # check for --with-nspr
  18341. { $as_echo "$as_me:$LINENO: checking for --with-nspr" >&5
  18342. $as_echo_n "checking for --with-nspr... " >&6; }
  18343. # Check whether --with-nspr was given.
  18344. if test "${with_nspr+set}" = set; then
  18345. withval=$with_nspr;
  18346. if test "$withval" = "yes"
  18347. then
  18348. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18349. $as_echo "yes" >&6; }
  18350. elif test "$withval" = "no"
  18351. then
  18352. { $as_echo "$as_me:$LINENO: result: no" >&5
  18353. $as_echo "no" >&6; }
  18354. { { $as_echo "$as_me:$LINENO: error: NSPR is required." >&5
  18355. $as_echo "$as_me: error: NSPR is required." >&2;}
  18356. { (exit 1); exit 1; }; }
  18357. elif test -e "$withval"/include/nspr.h -a -d "$withval"/lib
  18358. then
  18359. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  18360. $as_echo "using $withval" >&6; }
  18361. NSPRDIR=$withval
  18362. nspr_inc="-I$NSPRDIR/include"
  18363. nspr_lib="-L$NSPRDIR/lib"
  18364. nspr_libdir="$NSPRDIR/lib"
  18365. else
  18366. echo
  18367. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  18368. $as_echo "$as_me: error: $withval not found" >&2;}
  18369. { (exit 1); exit 1; }; }
  18370. fi
  18371. else
  18372. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18373. $as_echo "yes" >&6; }
  18374. fi
  18375. # check for --with-nspr-inc
  18376. { $as_echo "$as_me:$LINENO: checking for --with-nspr-inc" >&5
  18377. $as_echo_n "checking for --with-nspr-inc... " >&6; }
  18378. # Check whether --with-nspr-inc was given.
  18379. if test "${with_nspr_inc+set}" = set; then
  18380. withval=$with_nspr_inc;
  18381. if test -e "$withval"/nspr.h
  18382. then
  18383. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  18384. $as_echo "using $withval" >&6; }
  18385. nspr_inc="-I$withval"
  18386. else
  18387. echo
  18388. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  18389. $as_echo "$as_me: error: $withval not found" >&2;}
  18390. { (exit 1); exit 1; }; }
  18391. fi
  18392. else
  18393. { $as_echo "$as_me:$LINENO: result: no" >&5
  18394. $as_echo "no" >&6; }
  18395. fi
  18396. # check for --with-nspr-lib
  18397. { $as_echo "$as_me:$LINENO: checking for --with-nspr-lib" >&5
  18398. $as_echo_n "checking for --with-nspr-lib... " >&6; }
  18399. # Check whether --with-nspr-lib was given.
  18400. if test "${with_nspr_lib+set}" = set; then
  18401. withval=$with_nspr_lib;
  18402. if test -d "$withval"
  18403. then
  18404. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  18405. $as_echo "using $withval" >&6; }
  18406. nspr_lib="-L$withval"
  18407. nspr_libdir="$withval"
  18408. else
  18409. echo
  18410. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  18411. $as_echo "$as_me: error: $withval not found" >&2;}
  18412. { (exit 1); exit 1; }; }
  18413. fi
  18414. else
  18415. { $as_echo "$as_me:$LINENO: result: no" >&5
  18416. $as_echo "no" >&6; }
  18417. fi
  18418. # if NSPR is not found yet, try pkg-config
  18419. # last resort
  18420. if test -z "$nspr_inc" -o -z "$nspr_lib" -o -z "$nspr_libdir"; then
  18421. # Extract the first word of "pkg-config", so it can be a program name with args.
  18422. set dummy pkg-config; ac_word=$2
  18423. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  18424. $as_echo_n "checking for $ac_word... " >&6; }
  18425. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  18426. $as_echo_n "(cached) " >&6
  18427. else
  18428. case $PKG_CONFIG in
  18429. [\\/]* | ?:[\\/]*)
  18430. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18431. ;;
  18432. *)
  18433. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18434. for as_dir in $PATH
  18435. do
  18436. IFS=$as_save_IFS
  18437. test -z "$as_dir" && as_dir=.
  18438. for ac_exec_ext in '' $ac_executable_extensions; do
  18439. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18440. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18441. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18442. break 2
  18443. fi
  18444. done
  18445. done
  18446. IFS=$as_save_IFS
  18447. ;;
  18448. esac
  18449. fi
  18450. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18451. if test -n "$PKG_CONFIG"; then
  18452. { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  18453. $as_echo "$PKG_CONFIG" >&6; }
  18454. else
  18455. { $as_echo "$as_me:$LINENO: result: no" >&5
  18456. $as_echo "no" >&6; }
  18457. fi
  18458. { $as_echo "$as_me:$LINENO: checking for nspr with pkg-config" >&5
  18459. $as_echo_n "checking for nspr with pkg-config... " >&6; }
  18460. if test -n "$PKG_CONFIG"; then
  18461. if $PKG_CONFIG --exists nspr; then
  18462. nspr_inc=`$PKG_CONFIG --cflags-only-I nspr`
  18463. nspr_lib=`$PKG_CONFIG --libs-only-L nspr`
  18464. nspr_libdir=`$PKG_CONFIG --libs-only-L nspr | sed -e s/-L// | sed -e s/\ .*$//`
  18465. { $as_echo "$as_me:$LINENO: result: using system NSPR" >&5
  18466. $as_echo "using system NSPR" >&6; }
  18467. elif $PKG_CONFIG --exists dirsec-nspr; then
  18468. nspr_inc=`$PKG_CONFIG --cflags-only-I dirsec-nspr`
  18469. nspr_lib=`$PKG_CONFIG --libs-only-L dirsec-nspr`
  18470. nspr_libdir=`$PKG_CONFIG --libs-only-L dirsec-nspr | sed -e s/-L// | sed -e s/\ .*$//`
  18471. { $as_echo "$as_me:$LINENO: result: using system dirsec NSPR" >&5
  18472. $as_echo "using system dirsec NSPR" >&6; }
  18473. else
  18474. { { $as_echo "$as_me:$LINENO: error: NSPR not found, specify with --with-nspr." >&5
  18475. $as_echo "$as_me: error: NSPR not found, specify with --with-nspr." >&2;}
  18476. { (exit 1); exit 1; }; }
  18477. fi
  18478. fi
  18479. fi
  18480. # BEGIN COPYRIGHT BLOCK
  18481. # Copyright (C) 2007 Red Hat, Inc.
  18482. # All rights reserved.
  18483. #
  18484. # This program is free software; you can redistribute it and/or
  18485. # modify it under the terms of the GNU General Public License
  18486. # as published by the Free Software Foundation; either version 2
  18487. # of the License, or (at your option) any later version.
  18488. #
  18489. # This program is distributed in the hope that it will be useful,
  18490. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  18491. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18492. # GNU General Public License for more details.
  18493. #
  18494. # You should have received a copy of the GNU General Public License
  18495. # along with this program; if not, write to the Free Software
  18496. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  18497. #
  18498. # END COPYRIGHT BLOCK
  18499. { $as_echo "$as_me:$LINENO: checking for NSS..." >&5
  18500. $as_echo "$as_me: checking for NSS..." >&6;}
  18501. # check for --with-nss
  18502. { $as_echo "$as_me:$LINENO: checking for --with-nss" >&5
  18503. $as_echo_n "checking for --with-nss... " >&6; }
  18504. # Check whether --with-nss was given.
  18505. if test "${with_nss+set}" = set; then
  18506. withval=$with_nss;
  18507. if test "$withval" = "yes"
  18508. then
  18509. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18510. $as_echo "yes" >&6; }
  18511. elif test "$withval" = "no"
  18512. then
  18513. { $as_echo "$as_me:$LINENO: result: no" >&5
  18514. $as_echo "no" >&6; }
  18515. { { $as_echo "$as_me:$LINENO: error: NSS is required." >&5
  18516. $as_echo "$as_me: error: NSS is required." >&2;}
  18517. { (exit 1); exit 1; }; }
  18518. elif test -e "$withval"/include/nss.h -a -d "$withval"/lib
  18519. then
  18520. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  18521. $as_echo "using $withval" >&6; }
  18522. NSSDIR=$withval
  18523. nss_inc="-I$NSSDIR/include"
  18524. nss_lib="-L$NSSDIR/lib"
  18525. nss_libdir="$NSSDIR/lib"
  18526. else
  18527. echo
  18528. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  18529. $as_echo "$as_me: error: $withval not found" >&2;}
  18530. { (exit 1); exit 1; }; }
  18531. fi
  18532. else
  18533. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18534. $as_echo "yes" >&6; }
  18535. fi
  18536. # check for --with-nss-inc
  18537. { $as_echo "$as_me:$LINENO: checking for --with-nss-inc" >&5
  18538. $as_echo_n "checking for --with-nss-inc... " >&6; }
  18539. # Check whether --with-nss-inc was given.
  18540. if test "${with_nss_inc+set}" = set; then
  18541. withval=$with_nss_inc;
  18542. if test -e "$withval"/nss.h
  18543. then
  18544. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  18545. $as_echo "using $withval" >&6; }
  18546. nss_inc="-I$withval"
  18547. else
  18548. echo
  18549. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  18550. $as_echo "$as_me: error: $withval not found" >&2;}
  18551. { (exit 1); exit 1; }; }
  18552. fi
  18553. else
  18554. { $as_echo "$as_me:$LINENO: result: no" >&5
  18555. $as_echo "no" >&6; }
  18556. fi
  18557. # check for --with-nss-lib
  18558. { $as_echo "$as_me:$LINENO: checking for --with-nss-lib" >&5
  18559. $as_echo_n "checking for --with-nss-lib... " >&6; }
  18560. # Check whether --with-nss-lib was given.
  18561. if test "${with_nss_lib+set}" = set; then
  18562. withval=$with_nss_lib;
  18563. if test -d "$withval"
  18564. then
  18565. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  18566. $as_echo "using $withval" >&6; }
  18567. nss_lib="-L$withval"
  18568. nss_libdir="$withval"
  18569. else
  18570. echo
  18571. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  18572. $as_echo "$as_me: error: $withval not found" >&2;}
  18573. { (exit 1); exit 1; }; }
  18574. fi
  18575. else
  18576. { $as_echo "$as_me:$LINENO: result: no" >&5
  18577. $as_echo "no" >&6; }
  18578. fi
  18579. # if NSS is not found yet, try pkg-config
  18580. # last resort
  18581. if test -z "$nss_inc" -o -z "$nss_lib" -o -z "$nss_libdir"; then
  18582. # Extract the first word of "pkg-config", so it can be a program name with args.
  18583. set dummy pkg-config; ac_word=$2
  18584. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  18585. $as_echo_n "checking for $ac_word... " >&6; }
  18586. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  18587. $as_echo_n "(cached) " >&6
  18588. else
  18589. case $PKG_CONFIG in
  18590. [\\/]* | ?:[\\/]*)
  18591. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18592. ;;
  18593. *)
  18594. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18595. for as_dir in $PATH
  18596. do
  18597. IFS=$as_save_IFS
  18598. test -z "$as_dir" && as_dir=.
  18599. for ac_exec_ext in '' $ac_executable_extensions; do
  18600. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18601. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18602. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18603. break 2
  18604. fi
  18605. done
  18606. done
  18607. IFS=$as_save_IFS
  18608. ;;
  18609. esac
  18610. fi
  18611. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18612. if test -n "$PKG_CONFIG"; then
  18613. { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  18614. $as_echo "$PKG_CONFIG" >&6; }
  18615. else
  18616. { $as_echo "$as_me:$LINENO: result: no" >&5
  18617. $as_echo "no" >&6; }
  18618. fi
  18619. { $as_echo "$as_me:$LINENO: checking for nss with pkg-config" >&5
  18620. $as_echo_n "checking for nss with pkg-config... " >&6; }
  18621. if test -n "$PKG_CONFIG"; then
  18622. if $PKG_CONFIG --exists nss; then
  18623. nss_inc=`$PKG_CONFIG --cflags-only-I nss`
  18624. nss_lib=`$PKG_CONFIG --libs-only-L nss`
  18625. nss_libdir=`$PKG_CONFIG --libs-only-L nss | sed -e s/-L// | sed -e s/\ .*$//`
  18626. { $as_echo "$as_me:$LINENO: result: using system NSS" >&5
  18627. $as_echo "using system NSS" >&6; }
  18628. elif $PKG_CONFIG --exists dirsec-nss; then
  18629. nss_inc=`$PKG_CONFIG --cflags-only-I dirsec-nss`
  18630. nss_lib=`$PKG_CONFIG --libs-only-L dirsec-nss`
  18631. nss_libdir=`$PKG_CONFIG --libs-only-L dirsec-nss | sed -e s/-L// | sed -e s/\ .*$//`
  18632. { $as_echo "$as_me:$LINENO: result: using system dirsec NSS" >&5
  18633. $as_echo "using system dirsec NSS" >&6; }
  18634. else
  18635. { { $as_echo "$as_me:$LINENO: error: NSS not found, specify with --with-nss." >&5
  18636. $as_echo "$as_me: error: NSS not found, specify with --with-nss." >&2;}
  18637. { (exit 1); exit 1; }; }
  18638. fi
  18639. fi
  18640. fi
  18641. # BEGIN COPYRIGHT BLOCK
  18642. # Copyright (C) 2009 Red Hat, Inc.
  18643. # All rights reserved.
  18644. #
  18645. # This program is free software; you can redistribute it and/or
  18646. # modify it under the terms of the GNU General Public License
  18647. # as published by the Free Software Foundation; either version 2
  18648. # of the License, or (at your option) any later version.
  18649. #
  18650. # This program is distributed in the hope that it will be useful,
  18651. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  18652. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18653. # GNU General Public License for more details.
  18654. #
  18655. # You should have received a copy of the GNU General Public License
  18656. # along with this program; if not, write to the Free Software
  18657. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  18658. #
  18659. # END COPYRIGHT BLOCK
  18660. { $as_echo "$as_me:$LINENO: checking for OpenLDAP..." >&5
  18661. $as_echo "$as_me: checking for OpenLDAP..." >&6;}
  18662. # check for --with-openldap
  18663. { $as_echo "$as_me:$LINENO: checking for --with-openldap" >&5
  18664. $as_echo_n "checking for --with-openldap... " >&6; }
  18665. # Check whether --with-openldap was given.
  18666. if test "${with_openldap+set}" = set; then
  18667. withval=$with_openldap;
  18668. if test "$withval" = yes
  18669. then
  18670. { $as_echo "$as_me:$LINENO: result: using system OpenLDAP" >&5
  18671. $as_echo "using system OpenLDAP" >&6; }
  18672. elif test "$withval" = no
  18673. then
  18674. { $as_echo "$as_me:$LINENO: result: no" >&5
  18675. $as_echo "no" >&6; }
  18676. elif test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  18677. then
  18678. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  18679. $as_echo "using $withval" >&6; }
  18680. OPENLDAPDIR=$withval
  18681. openldap_incdir="$OPENLDAPDIR/include"
  18682. openldap_inc="-I$openldap_incdir"
  18683. openldap_lib="-L$OPENLDAPDIR/lib"
  18684. openldap_libdir="$OPENLDAPDIR/lib"
  18685. openldap_bindir="$OPENLDAPDIR/bin"
  18686. with_openldap=yes
  18687. else
  18688. echo
  18689. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  18690. $as_echo "$as_me: error: $withval not found" >&2;}
  18691. { (exit 1); exit 1; }; }
  18692. fi
  18693. else
  18694. { $as_echo "$as_me:$LINENO: result: no" >&5
  18695. $as_echo "no" >&6; }
  18696. fi
  18697. # check for --with-openldap-inc
  18698. { $as_echo "$as_me:$LINENO: checking for --with-openldap-inc" >&5
  18699. $as_echo_n "checking for --with-openldap-inc... " >&6; }
  18700. # Check whether --with-openldap-inc was given.
  18701. if test "${with_openldap_inc+set}" = set; then
  18702. withval=$with_openldap_inc;
  18703. if test -e "$withval"/ldap.h
  18704. then
  18705. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  18706. $as_echo "using $withval" >&6; }
  18707. openldap_incdir="$withval"
  18708. openldap_inc="-I$withval"
  18709. with_openldap=yes
  18710. else
  18711. echo
  18712. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  18713. $as_echo "$as_me: error: $withval not found" >&2;}
  18714. { (exit 1); exit 1; }; }
  18715. fi
  18716. else
  18717. { $as_echo "$as_me:$LINENO: result: no" >&5
  18718. $as_echo "no" >&6; }
  18719. fi
  18720. # check for --with-openldap-lib
  18721. { $as_echo "$as_me:$LINENO: checking for --with-openldap-lib" >&5
  18722. $as_echo_n "checking for --with-openldap-lib... " >&6; }
  18723. # Check whether --with-openldap-lib was given.
  18724. if test "${with_openldap_lib+set}" = set; then
  18725. withval=$with_openldap_lib;
  18726. if test -d "$withval"
  18727. then
  18728. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  18729. $as_echo "using $withval" >&6; }
  18730. openldap_lib="-L$withval"
  18731. openldap_libdir="$withval"
  18732. with_openldap=yes
  18733. else
  18734. echo
  18735. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  18736. $as_echo "$as_me: error: $withval not found" >&2;}
  18737. { (exit 1); exit 1; }; }
  18738. fi
  18739. else
  18740. { $as_echo "$as_me:$LINENO: result: no" >&5
  18741. $as_echo "no" >&6; }
  18742. fi
  18743. # check for --with-openldap-bin
  18744. { $as_echo "$as_me:$LINENO: checking for --with-openldap-bin" >&5
  18745. $as_echo_n "checking for --with-openldap-bin... " >&6; }
  18746. # Check whether --with-openldap-bin was given.
  18747. if test "${with_openldap_bin+set}" = set; then
  18748. withval=$with_openldap_bin;
  18749. if test -d "$withval"
  18750. then
  18751. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  18752. $as_echo "using $withval" >&6; }
  18753. openldap_bindir="$withval"
  18754. with_openldap=yes
  18755. else
  18756. echo
  18757. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  18758. $as_echo "$as_me: error: $withval not found" >&2;}
  18759. { (exit 1); exit 1; }; }
  18760. fi
  18761. else
  18762. { $as_echo "$as_me:$LINENO: result: no" >&5
  18763. $as_echo "no" >&6; }
  18764. fi
  18765. # if OPENLDAP is not found yet, try pkg-config
  18766. if test "$with_openldap" = yes ; then # user wants to use openldap, but didn't specify paths
  18767. if test -z "$openldap_inc" -o -z "$openldap_lib" -o -z "$openldap_libdir" -o -z "$openldap_bindir"; then
  18768. # Extract the first word of "pkg-config", so it can be a program name with args.
  18769. set dummy pkg-config; ac_word=$2
  18770. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  18771. $as_echo_n "checking for $ac_word... " >&6; }
  18772. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  18773. $as_echo_n "(cached) " >&6
  18774. else
  18775. case $PKG_CONFIG in
  18776. [\\/]* | ?:[\\/]*)
  18777. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18778. ;;
  18779. *)
  18780. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18781. for as_dir in $PATH
  18782. do
  18783. IFS=$as_save_IFS
  18784. test -z "$as_dir" && as_dir=.
  18785. for ac_exec_ext in '' $ac_executable_extensions; do
  18786. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18787. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18788. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18789. break 2
  18790. fi
  18791. done
  18792. done
  18793. IFS=$as_save_IFS
  18794. ;;
  18795. esac
  18796. fi
  18797. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18798. if test -n "$PKG_CONFIG"; then
  18799. { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  18800. $as_echo "$PKG_CONFIG" >&6; }
  18801. else
  18802. { $as_echo "$as_me:$LINENO: result: no" >&5
  18803. $as_echo "no" >&6; }
  18804. fi
  18805. { $as_echo "$as_me:$LINENO: checking for OpenLDAP with pkg-config" >&5
  18806. $as_echo_n "checking for OpenLDAP with pkg-config... " >&6; }
  18807. if test -n "$PKG_CONFIG" && $PKG_CONFIG --exists openldap; then
  18808. openldap_inc=`$PKG_CONFIG --cflags-only-I openldap`
  18809. openldap_lib=`$PKG_CONFIG --libs-only-L openldap`
  18810. openldap_libdir=`$PKG_CONFIG --libs-only-L openldap | sed -e s/-L// | sed -e s/\ .*$//`
  18811. openldap_bindir=`$PKG_CONFIG --variable=bindir openldap`
  18812. openldap_incdir=`$PKG_CONFIG --variable=includedir openldap`
  18813. { $as_echo "$as_me:$LINENO: result: using system OpenLDAP from pkg-config" >&5
  18814. $as_echo "using system OpenLDAP from pkg-config" >&6; }
  18815. else
  18816. openldap_incdir="/usr/include"
  18817. openldap_inc="-I$openldap_incdir"
  18818. { $as_echo "$as_me:$LINENO: result: no OpenLDAP pkg-config files" >&5
  18819. $as_echo "no OpenLDAP pkg-config files" >&6; }
  18820. fi
  18821. fi
  18822. fi
  18823. if test "$with_openldap" = yes ; then
  18824. save_cppflags="$CPPFLAGS"
  18825. CPPFLAGS="$openldap_inc $nss_inc $nspr_inc"
  18826. if test "${ac_cv_header_ldap_features_h+set}" = set; then
  18827. { $as_echo "$as_me:$LINENO: checking for ldap_features.h" >&5
  18828. $as_echo_n "checking for ldap_features.h... " >&6; }
  18829. if test "${ac_cv_header_ldap_features_h+set}" = set; then
  18830. $as_echo_n "(cached) " >&6
  18831. fi
  18832. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ldap_features_h" >&5
  18833. $as_echo "$ac_cv_header_ldap_features_h" >&6; }
  18834. else
  18835. # Is the header compilable?
  18836. { $as_echo "$as_me:$LINENO: checking ldap_features.h usability" >&5
  18837. $as_echo_n "checking ldap_features.h usability... " >&6; }
  18838. cat >conftest.$ac_ext <<_ACEOF
  18839. /* confdefs.h. */
  18840. _ACEOF
  18841. cat confdefs.h >>conftest.$ac_ext
  18842. cat >>conftest.$ac_ext <<_ACEOF
  18843. /* end confdefs.h. */
  18844. $ac_includes_default
  18845. #include <ldap_features.h>
  18846. _ACEOF
  18847. rm -f conftest.$ac_objext
  18848. if { (ac_try="$ac_compile"
  18849. case "(($ac_try" in
  18850. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18851. *) ac_try_echo=$ac_try;;
  18852. esac
  18853. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18854. $as_echo "$ac_try_echo") >&5
  18855. (eval "$ac_compile") 2>conftest.er1
  18856. ac_status=$?
  18857. grep -v '^ *+' conftest.er1 >conftest.err
  18858. rm -f conftest.er1
  18859. cat conftest.err >&5
  18860. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18861. (exit $ac_status); } && {
  18862. test -z "$ac_c_werror_flag" ||
  18863. test ! -s conftest.err
  18864. } && test -s conftest.$ac_objext; then
  18865. ac_header_compiler=yes
  18866. else
  18867. $as_echo "$as_me: failed program was:" >&5
  18868. sed 's/^/| /' conftest.$ac_ext >&5
  18869. ac_header_compiler=no
  18870. fi
  18871. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18872. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18873. $as_echo "$ac_header_compiler" >&6; }
  18874. # Is the header present?
  18875. { $as_echo "$as_me:$LINENO: checking ldap_features.h presence" >&5
  18876. $as_echo_n "checking ldap_features.h presence... " >&6; }
  18877. cat >conftest.$ac_ext <<_ACEOF
  18878. /* confdefs.h. */
  18879. _ACEOF
  18880. cat confdefs.h >>conftest.$ac_ext
  18881. cat >>conftest.$ac_ext <<_ACEOF
  18882. /* end confdefs.h. */
  18883. #include <ldap_features.h>
  18884. _ACEOF
  18885. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18886. case "(($ac_try" in
  18887. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18888. *) ac_try_echo=$ac_try;;
  18889. esac
  18890. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18891. $as_echo "$ac_try_echo") >&5
  18892. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18893. ac_status=$?
  18894. grep -v '^ *+' conftest.er1 >conftest.err
  18895. rm -f conftest.er1
  18896. cat conftest.err >&5
  18897. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18898. (exit $ac_status); } >/dev/null && {
  18899. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18900. test ! -s conftest.err
  18901. }; then
  18902. ac_header_preproc=yes
  18903. else
  18904. $as_echo "$as_me: failed program was:" >&5
  18905. sed 's/^/| /' conftest.$ac_ext >&5
  18906. ac_header_preproc=no
  18907. fi
  18908. rm -f conftest.err conftest.$ac_ext
  18909. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18910. $as_echo "$ac_header_preproc" >&6; }
  18911. # So? What about this header?
  18912. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18913. yes:no: )
  18914. { $as_echo "$as_me:$LINENO: WARNING: ldap_features.h: accepted by the compiler, rejected by the preprocessor!" >&5
  18915. $as_echo "$as_me: WARNING: ldap_features.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18916. { $as_echo "$as_me:$LINENO: WARNING: ldap_features.h: proceeding with the compiler's result" >&5
  18917. $as_echo "$as_me: WARNING: ldap_features.h: proceeding with the compiler's result" >&2;}
  18918. ac_header_preproc=yes
  18919. ;;
  18920. no:yes:* )
  18921. { $as_echo "$as_me:$LINENO: WARNING: ldap_features.h: present but cannot be compiled" >&5
  18922. $as_echo "$as_me: WARNING: ldap_features.h: present but cannot be compiled" >&2;}
  18923. { $as_echo "$as_me:$LINENO: WARNING: ldap_features.h: check for missing prerequisite headers?" >&5
  18924. $as_echo "$as_me: WARNING: ldap_features.h: check for missing prerequisite headers?" >&2;}
  18925. { $as_echo "$as_me:$LINENO: WARNING: ldap_features.h: see the Autoconf documentation" >&5
  18926. $as_echo "$as_me: WARNING: ldap_features.h: see the Autoconf documentation" >&2;}
  18927. { $as_echo "$as_me:$LINENO: WARNING: ldap_features.h: section \"Present But Cannot Be Compiled\"" >&5
  18928. $as_echo "$as_me: WARNING: ldap_features.h: section \"Present But Cannot Be Compiled\"" >&2;}
  18929. { $as_echo "$as_me:$LINENO: WARNING: ldap_features.h: proceeding with the preprocessor's result" >&5
  18930. $as_echo "$as_me: WARNING: ldap_features.h: proceeding with the preprocessor's result" >&2;}
  18931. { $as_echo "$as_me:$LINENO: WARNING: ldap_features.h: in the future, the compiler will take precedence" >&5
  18932. $as_echo "$as_me: WARNING: ldap_features.h: in the future, the compiler will take precedence" >&2;}
  18933. ( cat <<\_ASBOX
  18934. ## ------------------------------------------ ##
  18935. ## Report this to http://bugzilla.redhat.com/ ##
  18936. ## ------------------------------------------ ##
  18937. _ASBOX
  18938. ) | sed "s/^/$as_me: WARNING: /" >&2
  18939. ;;
  18940. esac
  18941. { $as_echo "$as_me:$LINENO: checking for ldap_features.h" >&5
  18942. $as_echo_n "checking for ldap_features.h... " >&6; }
  18943. if test "${ac_cv_header_ldap_features_h+set}" = set; then
  18944. $as_echo_n "(cached) " >&6
  18945. else
  18946. ac_cv_header_ldap_features_h=$ac_header_preproc
  18947. fi
  18948. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ldap_features_h" >&5
  18949. $as_echo "$ac_cv_header_ldap_features_h" >&6; }
  18950. fi
  18951. if test "x$ac_cv_header_ldap_features_h" = x""yes; then
  18952. :
  18953. else
  18954. { { $as_echo "$as_me:$LINENO: error: specified with-openldap but ldap_features.h not found" >&5
  18955. $as_echo "$as_me: error: specified with-openldap but ldap_features.h not found" >&2;}
  18956. { (exit 1); exit 1; }; }
  18957. fi
  18958. ol_ver_maj=`grep LDAP_VENDOR_VERSION_MAJOR $openldap_incdir/ldap_features.h | awk '{print $3}'`
  18959. ol_ver_min=`grep LDAP_VENDOR_VERSION_MINOR $openldap_incdir/ldap_features.h | awk '{print $3}'`
  18960. ol_ver_pat=`grep LDAP_VENDOR_VERSION_PATCH $openldap_incdir/ldap_features.h | awk '{print $3}'`
  18961. ol_libver="-${ol_ver_maj}.${ol_ver_min}"
  18962. save_ldflags="$LDFLAGS"
  18963. LDFLAGS="$openldap_lib $LDFLAGS"
  18964. as_ac_Lib=`$as_echo "ac_cv_lib_ldap$ol_libver''_ldap_initialize" | $as_tr_sh`
  18965. { $as_echo "$as_me:$LINENO: checking for ldap_initialize in -lldap$ol_libver" >&5
  18966. $as_echo_n "checking for ldap_initialize in -lldap$ol_libver... " >&6; }
  18967. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  18968. $as_echo_n "(cached) " >&6
  18969. else
  18970. ac_check_lib_save_LIBS=$LIBS
  18971. LIBS="-lldap$ol_libver $LIBS"
  18972. cat >conftest.$ac_ext <<_ACEOF
  18973. /* confdefs.h. */
  18974. _ACEOF
  18975. cat confdefs.h >>conftest.$ac_ext
  18976. cat >>conftest.$ac_ext <<_ACEOF
  18977. /* end confdefs.h. */
  18978. /* Override any GCC internal prototype to avoid an error.
  18979. Use char because int might match the return type of a GCC
  18980. builtin and then its argument prototype would still apply. */
  18981. #ifdef __cplusplus
  18982. extern "C"
  18983. #endif
  18984. char ldap_initialize ();
  18985. int
  18986. main ()
  18987. {
  18988. return ldap_initialize ();
  18989. ;
  18990. return 0;
  18991. }
  18992. _ACEOF
  18993. rm -f conftest.$ac_objext conftest$ac_exeext
  18994. if { (ac_try="$ac_link"
  18995. case "(($ac_try" in
  18996. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18997. *) ac_try_echo=$ac_try;;
  18998. esac
  18999. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19000. $as_echo "$ac_try_echo") >&5
  19001. (eval "$ac_link") 2>conftest.er1
  19002. ac_status=$?
  19003. grep -v '^ *+' conftest.er1 >conftest.err
  19004. rm -f conftest.er1
  19005. cat conftest.err >&5
  19006. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19007. (exit $ac_status); } && {
  19008. test -z "$ac_c_werror_flag" ||
  19009. test ! -s conftest.err
  19010. } && test -s conftest$ac_exeext && {
  19011. test "$cross_compiling" = yes ||
  19012. $as_test_x conftest$ac_exeext
  19013. }; then
  19014. eval "$as_ac_Lib=yes"
  19015. else
  19016. $as_echo "$as_me: failed program was:" >&5
  19017. sed 's/^/| /' conftest.$ac_ext >&5
  19018. eval "$as_ac_Lib=no"
  19019. fi
  19020. rm -rf conftest.dSYM
  19021. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19022. conftest$ac_exeext conftest.$ac_ext
  19023. LIBS=$ac_check_lib_save_LIBS
  19024. fi
  19025. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  19026. $as_echo "$as_val"'`
  19027. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19028. $as_echo "$ac_res" >&6; }
  19029. as_val=`eval 'as_val=${'$as_ac_Lib'}
  19030. $as_echo "$as_val"'`
  19031. if test "x$as_val" = x""yes; then
  19032. have_ldap_lib=1
  19033. fi
  19034. if test -z "$have_ldap_lib" ; then
  19035. { $as_echo "$as_me:$LINENO: checking for ldap_initialize in -lldap" >&5
  19036. $as_echo_n "checking for ldap_initialize in -lldap... " >&6; }
  19037. if test "${ac_cv_lib_ldap_ldap_initialize+set}" = set; then
  19038. $as_echo_n "(cached) " >&6
  19039. else
  19040. ac_check_lib_save_LIBS=$LIBS
  19041. LIBS="-lldap $LIBS"
  19042. cat >conftest.$ac_ext <<_ACEOF
  19043. /* confdefs.h. */
  19044. _ACEOF
  19045. cat confdefs.h >>conftest.$ac_ext
  19046. cat >>conftest.$ac_ext <<_ACEOF
  19047. /* end confdefs.h. */
  19048. /* Override any GCC internal prototype to avoid an error.
  19049. Use char because int might match the return type of a GCC
  19050. builtin and then its argument prototype would still apply. */
  19051. #ifdef __cplusplus
  19052. extern "C"
  19053. #endif
  19054. char ldap_initialize ();
  19055. int
  19056. main ()
  19057. {
  19058. return ldap_initialize ();
  19059. ;
  19060. return 0;
  19061. }
  19062. _ACEOF
  19063. rm -f conftest.$ac_objext conftest$ac_exeext
  19064. if { (ac_try="$ac_link"
  19065. case "(($ac_try" in
  19066. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19067. *) ac_try_echo=$ac_try;;
  19068. esac
  19069. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19070. $as_echo "$ac_try_echo") >&5
  19071. (eval "$ac_link") 2>conftest.er1
  19072. ac_status=$?
  19073. grep -v '^ *+' conftest.er1 >conftest.err
  19074. rm -f conftest.er1
  19075. cat conftest.err >&5
  19076. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19077. (exit $ac_status); } && {
  19078. test -z "$ac_c_werror_flag" ||
  19079. test ! -s conftest.err
  19080. } && test -s conftest$ac_exeext && {
  19081. test "$cross_compiling" = yes ||
  19082. $as_test_x conftest$ac_exeext
  19083. }; then
  19084. ac_cv_lib_ldap_ldap_initialize=yes
  19085. else
  19086. $as_echo "$as_me: failed program was:" >&5
  19087. sed 's/^/| /' conftest.$ac_ext >&5
  19088. ac_cv_lib_ldap_ldap_initialize=no
  19089. fi
  19090. rm -rf conftest.dSYM
  19091. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19092. conftest$ac_exeext conftest.$ac_ext
  19093. LIBS=$ac_check_lib_save_LIBS
  19094. fi
  19095. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_initialize" >&5
  19096. $as_echo "$ac_cv_lib_ldap_ldap_initialize" >&6; }
  19097. if test "x$ac_cv_lib_ldap_ldap_initialize" = x""yes; then
  19098. unset ol_libver
  19099. else
  19100. { { $as_echo "$as_me:$LINENO: error: specified with-openldap but libldap not found" >&5
  19101. $as_echo "$as_me: error: specified with-openldap but libldap not found" >&2;}
  19102. { (exit 1); exit 1; }; }
  19103. fi
  19104. fi
  19105. as_ac_Lib=`$as_echo "ac_cv_lib_ldap$ol_libver''_ldap_url_parse_ext" | $as_tr_sh`
  19106. { $as_echo "$as_me:$LINENO: checking for ldap_url_parse_ext in -lldap$ol_libver" >&5
  19107. $as_echo_n "checking for ldap_url_parse_ext in -lldap$ol_libver... " >&6; }
  19108. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  19109. $as_echo_n "(cached) " >&6
  19110. else
  19111. ac_check_lib_save_LIBS=$LIBS
  19112. LIBS="-lldap$ol_libver $LIBS"
  19113. cat >conftest.$ac_ext <<_ACEOF
  19114. /* confdefs.h. */
  19115. _ACEOF
  19116. cat confdefs.h >>conftest.$ac_ext
  19117. cat >>conftest.$ac_ext <<_ACEOF
  19118. /* end confdefs.h. */
  19119. /* Override any GCC internal prototype to avoid an error.
  19120. Use char because int might match the return type of a GCC
  19121. builtin and then its argument prototype would still apply. */
  19122. #ifdef __cplusplus
  19123. extern "C"
  19124. #endif
  19125. char ldap_url_parse_ext ();
  19126. int
  19127. main ()
  19128. {
  19129. return ldap_url_parse_ext ();
  19130. ;
  19131. return 0;
  19132. }
  19133. _ACEOF
  19134. rm -f conftest.$ac_objext conftest$ac_exeext
  19135. if { (ac_try="$ac_link"
  19136. case "(($ac_try" in
  19137. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19138. *) ac_try_echo=$ac_try;;
  19139. esac
  19140. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19141. $as_echo "$ac_try_echo") >&5
  19142. (eval "$ac_link") 2>conftest.er1
  19143. ac_status=$?
  19144. grep -v '^ *+' conftest.er1 >conftest.err
  19145. rm -f conftest.er1
  19146. cat conftest.err >&5
  19147. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19148. (exit $ac_status); } && {
  19149. test -z "$ac_c_werror_flag" ||
  19150. test ! -s conftest.err
  19151. } && test -s conftest$ac_exeext && {
  19152. test "$cross_compiling" = yes ||
  19153. $as_test_x conftest$ac_exeext
  19154. }; then
  19155. eval "$as_ac_Lib=yes"
  19156. else
  19157. $as_echo "$as_me: failed program was:" >&5
  19158. sed 's/^/| /' conftest.$ac_ext >&5
  19159. eval "$as_ac_Lib=no"
  19160. fi
  19161. rm -rf conftest.dSYM
  19162. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19163. conftest$ac_exeext conftest.$ac_ext
  19164. LIBS=$ac_check_lib_save_LIBS
  19165. fi
  19166. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  19167. $as_echo "$as_val"'`
  19168. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19169. $as_echo "$ac_res" >&6; }
  19170. as_val=`eval 'as_val=${'$as_ac_Lib'}
  19171. $as_echo "$as_val"'`
  19172. if test "x$as_val" = x""yes; then
  19173. cat >>confdefs.h <<\_ACEOF
  19174. #define HAVE_LDAP_URL_PARSE_EXT 1
  19175. _ACEOF
  19176. fi
  19177. LDFLAGS="$save_ldflags"
  19178. CPPFLAGS="$save_cppflags"
  19179. cat >>confdefs.h <<\_ACEOF
  19180. #define USE_OPENLDAP 1
  19181. _ACEOF
  19182. # where to find ldapsearch, et. al.
  19183. ldaptool_bindir=$openldap_bindir
  19184. # default options to pass to the tools
  19185. # use -x because all of our scripts use simple bind
  19186. ldaptool_opts=-x
  19187. # get plain output from ldapsearch - no version, no comments
  19188. plainldif_opts=-LLL
  19189. fi
  19190. # BEGIN COPYRIGHT BLOCK
  19191. # Copyright (C) 2007 Red Hat, Inc.
  19192. # All rights reserved.
  19193. #
  19194. # This program is free software; you can redistribute it and/or
  19195. # modify it under the terms of the GNU General Public License
  19196. # as published by the Free Software Foundation; either version 2
  19197. # of the License, or (at your option) any later version.
  19198. #
  19199. # This program is distributed in the hope that it will be useful,
  19200. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  19201. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19202. # GNU General Public License for more details.
  19203. #
  19204. # You should have received a copy of the GNU General Public License
  19205. # along with this program; if not, write to the Free Software
  19206. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  19207. #
  19208. # END COPYRIGHT BLOCK
  19209. { $as_echo "$as_me:$LINENO: checking for Mozilla LDAPSDK..." >&5
  19210. $as_echo "$as_me: checking for Mozilla LDAPSDK..." >&6;}
  19211. # check for --with-ldapsdk
  19212. { $as_echo "$as_me:$LINENO: checking for --with-ldapsdk" >&5
  19213. $as_echo_n "checking for --with-ldapsdk... " >&6; }
  19214. # Check whether --with-ldapsdk was given.
  19215. if test "${with_ldapsdk+set}" = set; then
  19216. withval=$with_ldapsdk;
  19217. if test "$withval" = yes
  19218. then
  19219. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19220. $as_echo "yes" >&6; }
  19221. elif test "$withval" = no
  19222. then
  19223. { $as_echo "$as_me:$LINENO: result: no" >&5
  19224. $as_echo "no" >&6; }
  19225. elif test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  19226. then
  19227. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  19228. $as_echo "using $withval" >&6; }
  19229. LDAPSDKDIR=$withval
  19230. ldapsdk_inc="-I$LDAPSDKDIR/include"
  19231. ldapsdk_lib="-L$LDAPSDKDIR/lib"
  19232. ldapsdk_libdir="$LDAPSDKDIR/lib"
  19233. ldapsdk_bindir="$LDAPSDKDIR/bin"
  19234. with_ldapsdk=yes
  19235. else
  19236. echo
  19237. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  19238. $as_echo "$as_me: error: $withval not found" >&2;}
  19239. { (exit 1); exit 1; }; }
  19240. fi
  19241. if test "$with_ldapsdk" = yes -a "$with_openldap" = yes
  19242. then
  19243. { { $as_echo "$as_me:$LINENO: error: Cannot use both LDAPSDK and OpenLDAP." >&5
  19244. $as_echo "$as_me: error: Cannot use both LDAPSDK and OpenLDAP." >&2;}
  19245. { (exit 1); exit 1; }; }
  19246. fi
  19247. if test "$with_ldapsdk" != yes -a "$with_openldap" != yes
  19248. then
  19249. { { $as_echo "$as_me:$LINENO: error: Either LDAPSDK or OpenLDAP must be used." >&5
  19250. $as_echo "$as_me: error: Either LDAPSDK or OpenLDAP must be used." >&2;}
  19251. { (exit 1); exit 1; }; }
  19252. fi
  19253. else
  19254. if test "$with_openldap" = yes
  19255. then
  19256. { $as_echo "$as_me:$LINENO: result: no" >&5
  19257. $as_echo "no" >&6; }
  19258. else
  19259. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19260. $as_echo "yes" >&6; }
  19261. with_ldapsdk=yes
  19262. fi
  19263. fi
  19264. # check for --with-ldapsdk-inc
  19265. { $as_echo "$as_me:$LINENO: checking for --with-ldapsdk-inc" >&5
  19266. $as_echo_n "checking for --with-ldapsdk-inc... " >&6; }
  19267. # Check whether --with-ldapsdk-inc was given.
  19268. if test "${with_ldapsdk_inc+set}" = set; then
  19269. withval=$with_ldapsdk_inc;
  19270. if test -e "$withval"/ldap.h
  19271. then
  19272. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  19273. $as_echo "using $withval" >&6; }
  19274. ldapsdk_inc="-I$withval"
  19275. with_ldapsdk=yes
  19276. else
  19277. echo
  19278. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  19279. $as_echo "$as_me: error: $withval not found" >&2;}
  19280. { (exit 1); exit 1; }; }
  19281. fi
  19282. else
  19283. { $as_echo "$as_me:$LINENO: result: no" >&5
  19284. $as_echo "no" >&6; }
  19285. fi
  19286. # check for --with-ldapsdk-lib
  19287. { $as_echo "$as_me:$LINENO: checking for --with-ldapsdk-lib" >&5
  19288. $as_echo_n "checking for --with-ldapsdk-lib... " >&6; }
  19289. # Check whether --with-ldapsdk-lib was given.
  19290. if test "${with_ldapsdk_lib+set}" = set; then
  19291. withval=$with_ldapsdk_lib;
  19292. if test -d "$withval"
  19293. then
  19294. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  19295. $as_echo "using $withval" >&6; }
  19296. ldapsdk_lib="-L$withval"
  19297. ldapsdk_libdir="$withval"
  19298. with_ldapsdk=yes
  19299. else
  19300. echo
  19301. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  19302. $as_echo "$as_me: error: $withval not found" >&2;}
  19303. { (exit 1); exit 1; }; }
  19304. fi
  19305. else
  19306. { $as_echo "$as_me:$LINENO: result: no" >&5
  19307. $as_echo "no" >&6; }
  19308. fi
  19309. # check for --with-ldapsdk-bin
  19310. { $as_echo "$as_me:$LINENO: checking for --with-ldapsdk-bin" >&5
  19311. $as_echo_n "checking for --with-ldapsdk-bin... " >&6; }
  19312. # Check whether --with-ldapsdk-bin was given.
  19313. if test "${with_ldapsdk_bin+set}" = set; then
  19314. withval=$with_ldapsdk_bin;
  19315. if test -d "$withval"
  19316. then
  19317. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  19318. $as_echo "using $withval" >&6; }
  19319. ldapsdk_bindir="$withval"
  19320. with_ldapsdk=yes
  19321. else
  19322. echo
  19323. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  19324. $as_echo "$as_me: error: $withval not found" >&2;}
  19325. { (exit 1); exit 1; }; }
  19326. fi
  19327. else
  19328. { $as_echo "$as_me:$LINENO: result: no" >&5
  19329. $as_echo "no" >&6; }
  19330. fi
  19331. # if LDAPSDK is not found yet, try pkg-config
  19332. # last resort
  19333. if test "$with_ldapsdk" = yes ; then
  19334. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib" -o -z "$ldapsdk_libdir" -o -z "$ldapsdk_bindir"; then
  19335. # Extract the first word of "pkg-config", so it can be a program name with args.
  19336. set dummy pkg-config; ac_word=$2
  19337. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  19338. $as_echo_n "checking for $ac_word... " >&6; }
  19339. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  19340. $as_echo_n "(cached) " >&6
  19341. else
  19342. case $PKG_CONFIG in
  19343. [\\/]* | ?:[\\/]*)
  19344. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19345. ;;
  19346. *)
  19347. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19348. for as_dir in $PATH
  19349. do
  19350. IFS=$as_save_IFS
  19351. test -z "$as_dir" && as_dir=.
  19352. for ac_exec_ext in '' $ac_executable_extensions; do
  19353. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19354. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19355. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19356. break 2
  19357. fi
  19358. done
  19359. done
  19360. IFS=$as_save_IFS
  19361. ;;
  19362. esac
  19363. fi
  19364. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19365. if test -n "$PKG_CONFIG"; then
  19366. { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  19367. $as_echo "$PKG_CONFIG" >&6; }
  19368. else
  19369. { $as_echo "$as_me:$LINENO: result: no" >&5
  19370. $as_echo "no" >&6; }
  19371. fi
  19372. { $as_echo "$as_me:$LINENO: checking for mozldap with pkg-config" >&5
  19373. $as_echo_n "checking for mozldap with pkg-config... " >&6; }
  19374. if test -n "$PKG_CONFIG"; then
  19375. if $PKG_CONFIG --exists mozldap6; then
  19376. mozldappkg=mozldap6
  19377. elif $PKG_CONFIG --exists mozldap; then
  19378. mozldappkg=mozldap
  19379. else
  19380. { { $as_echo "$as_me:$LINENO: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&5
  19381. $as_echo "$as_me: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&2;}
  19382. { (exit 1); exit 1; }; }
  19383. fi
  19384. ldapsdk_inc=`$PKG_CONFIG --cflags-only-I $mozldappkg`
  19385. ldapsdk_lib=`$PKG_CONFIG --libs-only-L $mozldappkg`
  19386. ldapsdk_libdir=`$PKG_CONFIG --libs-only-L $mozldappkg | sed -e s/-L// | sed -e s/\ .*$//`
  19387. ldapsdk_bindir=`$PKG_CONFIG --variable=bindir $mozldappkg`
  19388. { $as_echo "$as_me:$LINENO: result: using system $mozldappkg" >&5
  19389. $as_echo "using system $mozldappkg" >&6; }
  19390. fi
  19391. fi
  19392. fi
  19393. if test "$with_ldapsdk" = yes ; then
  19394. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib"; then
  19395. { { $as_echo "$as_me:$LINENO: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&5
  19396. $as_echo "$as_me: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&2;}
  19397. { (exit 1); exit 1; }; }
  19398. fi
  19399. if test -z "$ldapsdk_bindir" ; then
  19400. if -d $libdir/mozldap6 ; then
  19401. ldapsdk_bindir=$libdir/mozldap6
  19402. else
  19403. ldapsdk_bindir=$libdir/mozldap
  19404. fi
  19405. fi
  19406. save_cppflags="$CPPFLAGS"
  19407. CPPFLAGS="$ldapsdk_inc $nss_inc $nspr_inc"
  19408. { $as_echo "$as_me:$LINENO: checking for ldap.h" >&5
  19409. $as_echo_n "checking for ldap.h... " >&6; }
  19410. if test "${ac_cv_header_ldap_h+set}" = set; then
  19411. $as_echo_n "(cached) " >&6
  19412. else
  19413. cat >conftest.$ac_ext <<_ACEOF
  19414. /* confdefs.h. */
  19415. _ACEOF
  19416. cat confdefs.h >>conftest.$ac_ext
  19417. cat >>conftest.$ac_ext <<_ACEOF
  19418. /* end confdefs.h. */
  19419. #include <ldap-standard.h>
  19420. #if LDAP_VENDOR_VERSION < 600
  19421. #error The LDAP C SDK version is not supported
  19422. #endif
  19423. #include <ldap.h>
  19424. _ACEOF
  19425. rm -f conftest.$ac_objext
  19426. if { (ac_try="$ac_compile"
  19427. case "(($ac_try" in
  19428. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19429. *) ac_try_echo=$ac_try;;
  19430. esac
  19431. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19432. $as_echo "$ac_try_echo") >&5
  19433. (eval "$ac_compile") 2>conftest.er1
  19434. ac_status=$?
  19435. grep -v '^ *+' conftest.er1 >conftest.err
  19436. rm -f conftest.er1
  19437. cat conftest.err >&5
  19438. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19439. (exit $ac_status); } && {
  19440. test -z "$ac_c_werror_flag" ||
  19441. test ! -s conftest.err
  19442. } && test -s conftest.$ac_objext; then
  19443. ac_cv_header_ldap_h=yes
  19444. else
  19445. $as_echo "$as_me: failed program was:" >&5
  19446. sed 's/^/| /' conftest.$ac_ext >&5
  19447. ac_cv_header_ldap_h=no
  19448. fi
  19449. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19450. fi
  19451. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
  19452. $as_echo "$ac_cv_header_ldap_h" >&6; }
  19453. if test "x$ac_cv_header_ldap_h" = x""yes; then
  19454. isversion6=1
  19455. else
  19456. isversion6=
  19457. fi
  19458. CPPFLAGS="$save_cppflags"
  19459. if test -z "$isversion6" ; then
  19460. { { $as_echo "$as_me:$LINENO: error: The LDAPSDK version in $ldapsdk_inc/ldap-standard.h is not supported" >&5
  19461. $as_echo "$as_me: error: The LDAPSDK version in $ldapsdk_inc/ldap-standard.h is not supported" >&2;}
  19462. { (exit 1); exit 1; }; }
  19463. fi
  19464. cat >>confdefs.h <<\_ACEOF
  19465. #define USE_MOZLDAP 1
  19466. _ACEOF
  19467. cat >>confdefs.h <<\_ACEOF
  19468. #define HAVE_LDAP_URL_PARSE_NO_DEFAULTS 1
  19469. _ACEOF
  19470. # where to find ldapsearch, et. al.
  19471. ldaptool_bindir=$ldapsdk_bindir
  19472. # default options to pass to the tools
  19473. ldaptool_opts=
  19474. # get plain output from ldapsearch - no version
  19475. plainldif_opts=-1
  19476. fi
  19477. # BEGIN COPYRIGHT BLOCK
  19478. # Copyright (C) 2007 Red Hat, Inc.
  19479. # All rights reserved.
  19480. #
  19481. # This program is free software; you can redistribute it and/or
  19482. # modify it under the terms of the GNU General Public License
  19483. # as published by the Free Software Foundation; either version 2
  19484. # of the License, or (at your option) any later version.
  19485. #
  19486. # This program is distributed in the hope that it will be useful,
  19487. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  19488. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19489. # GNU General Public License for more details.
  19490. #
  19491. # You should have received a copy of the GNU General Public License
  19492. # along with this program; if not, write to the Free Software
  19493. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  19494. #
  19495. # END COPYRIGHT BLOCK
  19496. { $as_echo "$as_me:$LINENO: checking for db..." >&5
  19497. $as_echo "$as_me: checking for db..." >&6;}
  19498. { $as_echo "$as_me:$LINENO: checking for --with-db" >&5
  19499. $as_echo_n "checking for --with-db... " >&6; }
  19500. # Check whether --with-db was given.
  19501. if test "${with_db+set}" = set; then
  19502. withval=$with_db;
  19503. if test "$withval" = "yes"; then
  19504. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19505. $as_echo "yes" >&6; }
  19506. elif test "$withval" = "no"; then
  19507. { $as_echo "$as_me:$LINENO: result: no" >&5
  19508. $as_echo "no" >&6; }
  19509. { { $as_echo "$as_me:$LINENO: error: db is required." >&5
  19510. $as_echo "$as_me: error: db is required." >&2;}
  19511. { (exit 1); exit 1; }; }
  19512. elif test -d "$withval"/include -a -d "$withval"/lib; then
  19513. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  19514. $as_echo "using $withval" >&6; }
  19515. DBDIR=$withval
  19516. db_lib="-L$DBDIR/lib"
  19517. db_libdir="$DBDIR/lib"
  19518. db_incdir="$DBDIR/include"
  19519. if ! test -e "$db_incdir/db.h" ; then
  19520. { { $as_echo "$as_me:$LINENO: error: $withval include dir not found" >&5
  19521. $as_echo "$as_me: error: $withval include dir not found" >&2;}
  19522. { (exit 1); exit 1; }; }
  19523. fi
  19524. db_inc="-I$db_incdir"
  19525. else
  19526. echo
  19527. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  19528. $as_echo "$as_me: error: $withval not found" >&2;}
  19529. { (exit 1); exit 1; }; }
  19530. fi
  19531. else
  19532. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19533. $as_echo "yes" >&6; }
  19534. fi
  19535. # check for --with-db-inc
  19536. { $as_echo "$as_me:$LINENO: checking for --with-db-inc" >&5
  19537. $as_echo_n "checking for --with-db-inc... " >&6; }
  19538. # Check whether --with-db-inc was given.
  19539. if test "${with_db_inc+set}" = set; then
  19540. withval=$with_db_inc;
  19541. if test -e "$withval"/db.h
  19542. then
  19543. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  19544. $as_echo "using $withval" >&6; }
  19545. db_incdir="$withval"
  19546. db_inc="-I$withval"
  19547. else
  19548. echo
  19549. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  19550. $as_echo "$as_me: error: $withval not found" >&2;}
  19551. { (exit 1); exit 1; }; }
  19552. fi
  19553. else
  19554. { $as_echo "$as_me:$LINENO: result: no" >&5
  19555. $as_echo "no" >&6; }
  19556. fi
  19557. # check for --with-db-lib
  19558. { $as_echo "$as_me:$LINENO: checking for --with-db-lib" >&5
  19559. $as_echo_n "checking for --with-db-lib... " >&6; }
  19560. # Check whether --with-db-lib was given.
  19561. if test "${with_db_lib+set}" = set; then
  19562. withval=$with_db_lib;
  19563. if test -d "$withval"
  19564. then
  19565. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  19566. $as_echo "using $withval" >&6; }
  19567. db_lib="-L$withval"
  19568. db_libdir="$withval"
  19569. else
  19570. echo
  19571. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  19572. $as_echo "$as_me: error: $withval not found" >&2;}
  19573. { (exit 1); exit 1; }; }
  19574. fi
  19575. else
  19576. { $as_echo "$as_me:$LINENO: result: no" >&5
  19577. $as_echo "no" >&6; }
  19578. fi
  19579. if test -z "$db_inc"; then
  19580. { $as_echo "$as_me:$LINENO: checking for db.h" >&5
  19581. $as_echo_n "checking for db.h... " >&6; }
  19582. if test -f "/usr/include/db4/db.h"; then
  19583. { $as_echo "$as_me:$LINENO: result: using /usr/include/db4/db.h" >&5
  19584. $as_echo "using /usr/include/db4/db.h" >&6; }
  19585. db_incdir="/usr/include/db4"
  19586. db_inc="-I/usr/include/db4"
  19587. db_lib='-L$(libdir)'
  19588. db_libdir='$(libdir)'
  19589. elif test -f "/usr/include/db.h"; then
  19590. { $as_echo "$as_me:$LINENO: result: using /usr/include/db.h" >&5
  19591. $as_echo "using /usr/include/db.h" >&6; }
  19592. db_incdir="/usr/include"
  19593. db_inc="-I/usr/include"
  19594. db_lib='-L$(libdir)'
  19595. db_libdir='$(libdir)'
  19596. else
  19597. { $as_echo "$as_me:$LINENO: result: no" >&5
  19598. $as_echo "no" >&6; }
  19599. { { $as_echo "$as_me:$LINENO: error: db not found, specify with --with-db." >&5
  19600. $as_echo "$as_me: error: db not found, specify with --with-db." >&2;}
  19601. { (exit 1); exit 1; }; }
  19602. fi
  19603. fi
  19604. db_ver_maj=`grep DB_VERSION_MAJOR $db_incdir/db.h | awk '{print $3}'`
  19605. db_ver_min=`grep DB_VERSION_MINOR $db_incdir/db.h | awk '{print $3}'`
  19606. db_ver_pat=`grep DB_VERSION_PATCH $db_incdir/db.h | awk '{print $3}'`
  19607. db_libver=${db_ver_maj}.${db_ver_min}
  19608. save_ldflags="$LDFLAGS"
  19609. LDFLAGS="$db_lib $LDFLAGS"
  19610. as_ac_Lib=`$as_echo "ac_cv_lib_db-$db_libver''_db_create" | $as_tr_sh`
  19611. { $as_echo "$as_me:$LINENO: checking for db_create in -ldb-$db_libver" >&5
  19612. $as_echo_n "checking for db_create in -ldb-$db_libver... " >&6; }
  19613. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  19614. $as_echo_n "(cached) " >&6
  19615. else
  19616. ac_check_lib_save_LIBS=$LIBS
  19617. LIBS="-ldb-$db_libver $LIBNSL $LIBS"
  19618. cat >conftest.$ac_ext <<_ACEOF
  19619. /* confdefs.h. */
  19620. _ACEOF
  19621. cat confdefs.h >>conftest.$ac_ext
  19622. cat >>conftest.$ac_ext <<_ACEOF
  19623. /* end confdefs.h. */
  19624. /* Override any GCC internal prototype to avoid an error.
  19625. Use char because int might match the return type of a GCC
  19626. builtin and then its argument prototype would still apply. */
  19627. #ifdef __cplusplus
  19628. extern "C"
  19629. #endif
  19630. char db_create ();
  19631. int
  19632. main ()
  19633. {
  19634. return db_create ();
  19635. ;
  19636. return 0;
  19637. }
  19638. _ACEOF
  19639. rm -f conftest.$ac_objext conftest$ac_exeext
  19640. if { (ac_try="$ac_link"
  19641. case "(($ac_try" in
  19642. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19643. *) ac_try_echo=$ac_try;;
  19644. esac
  19645. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19646. $as_echo "$ac_try_echo") >&5
  19647. (eval "$ac_link") 2>conftest.er1
  19648. ac_status=$?
  19649. grep -v '^ *+' conftest.er1 >conftest.err
  19650. rm -f conftest.er1
  19651. cat conftest.err >&5
  19652. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19653. (exit $ac_status); } && {
  19654. test -z "$ac_c_werror_flag" ||
  19655. test ! -s conftest.err
  19656. } && test -s conftest$ac_exeext && {
  19657. test "$cross_compiling" = yes ||
  19658. $as_test_x conftest$ac_exeext
  19659. }; then
  19660. eval "$as_ac_Lib=yes"
  19661. else
  19662. $as_echo "$as_me: failed program was:" >&5
  19663. sed 's/^/| /' conftest.$ac_ext >&5
  19664. eval "$as_ac_Lib=no"
  19665. fi
  19666. rm -rf conftest.dSYM
  19667. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19668. conftest$ac_exeext conftest.$ac_ext
  19669. LIBS=$ac_check_lib_save_LIBS
  19670. fi
  19671. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  19672. $as_echo "$as_val"'`
  19673. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19674. $as_echo "$ac_res" >&6; }
  19675. as_val=`eval 'as_val=${'$as_ac_Lib'}
  19676. $as_echo "$as_val"'`
  19677. if test "x$as_val" = x""yes; then
  19678. true
  19679. else
  19680. { { $as_echo "$as_me:$LINENO: error: $db_incdir/db.h is version $db_libver but libdb-$db_libver not found" >&5
  19681. $as_echo "$as_me: error: $db_incdir/db.h is version $db_libver but libdb-$db_libver not found" >&2;}
  19682. { (exit 1); exit 1; }; }
  19683. fi
  19684. LDFLAGS="$save_ldflags"
  19685. # if DB is not found yet, try pkg-config
  19686. # last resort
  19687. # Although the other db_* variables are correctly assigned at this point,
  19688. # db_bindir needs to be set by pkg-config if possible (e.g., on 64-bit Solaris)
  19689. if test -n "$PKG_CONFIG"; then
  19690. if $PKG_CONFIG --exists db; then
  19691. db_bindir=`$PKG_CONFIG --variable=bindir db`
  19692. else
  19693. db_bindir=/usr/bin
  19694. fi
  19695. else
  19696. db_bindir=/usr/bin
  19697. fi
  19698. # BEGIN COPYRIGHT BLOCK
  19699. # Copyright (C) 2007 Red Hat, Inc.
  19700. # All rights reserved.
  19701. #
  19702. # This program is free software; you can redistribute it and/or
  19703. # modify it under the terms of the GNU General Public License
  19704. # as published by the Free Software Foundation; either version 2
  19705. # of the License, or (at your option) any later version.
  19706. #
  19707. # This program is distributed in the hope that it will be useful,
  19708. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  19709. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19710. # GNU General Public License for more details.
  19711. #
  19712. # You should have received a copy of the GNU General Public License
  19713. # along with this program; if not, write to the Free Software
  19714. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  19715. #
  19716. # END COPYRIGHT BLOCK
  19717. # -*- tab-width: 4; -*-
  19718. # Configure paths for SASL
  19719. { $as_echo "$as_me:$LINENO: checking for SASL..." >&5
  19720. $as_echo "$as_me: checking for SASL..." >&6;}
  19721. { $as_echo "$as_me:$LINENO: checking for --with-sasl" >&5
  19722. $as_echo_n "checking for --with-sasl... " >&6; }
  19723. # Check whether --with-sasl was given.
  19724. if test "${with_sasl+set}" = set; then
  19725. withval=$with_sasl;
  19726. if test "$withval" = "yes"; then
  19727. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19728. $as_echo "yes" >&6; }
  19729. elif test "$withval" = "no"; then
  19730. { $as_echo "$as_me:$LINENO: result: no" >&5
  19731. $as_echo "no" >&6; }
  19732. { { $as_echo "$as_me:$LINENO: error: SASL is required." >&5
  19733. $as_echo "$as_me: error: SASL is required." >&2;}
  19734. { (exit 1); exit 1; }; }
  19735. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  19736. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  19737. $as_echo "using $withval" >&6; }
  19738. if test -f "$withval/include/sasl/sasl.h"; then
  19739. sasl_inc="-I$withval/include/sasl"
  19740. elif test -f "$withval/include/sasl.h"; then
  19741. sasl_inc="-I$withval/include"
  19742. else
  19743. { { $as_echo "$as_me:$LINENO: error: sasl.h not found" >&5
  19744. $as_echo "$as_me: error: sasl.h not found" >&2;}
  19745. { (exit 1); exit 1; }; }
  19746. fi
  19747. sasl_lib="-L$withval/lib"
  19748. sasl_libdir="$withval/lib"
  19749. else
  19750. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19751. $as_echo "yes" >&6; }
  19752. { { $as_echo "$as_me:$LINENO: error: SASL not found in $withval" >&5
  19753. $as_echo "$as_me: error: SASL not found in $withval" >&2;}
  19754. { (exit 1); exit 1; }; }
  19755. fi
  19756. else
  19757. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19758. $as_echo "yes" >&6; }
  19759. fi
  19760. { $as_echo "$as_me:$LINENO: checking for --with-sasl-inc" >&5
  19761. $as_echo_n "checking for --with-sasl-inc... " >&6; }
  19762. # Check whether --with-sasl-inc was given.
  19763. if test "${with_sasl_inc+set}" = set; then
  19764. withval=$with_sasl_inc;
  19765. if test -f "$withval"/sasl.h; then
  19766. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  19767. $as_echo "using $withval" >&6; }
  19768. sasl_inc="-I$withval"
  19769. else
  19770. echo
  19771. { { $as_echo "$as_me:$LINENO: error: $withval/sasl.h not found" >&5
  19772. $as_echo "$as_me: error: $withval/sasl.h not found" >&2;}
  19773. { (exit 1); exit 1; }; }
  19774. fi
  19775. else
  19776. { $as_echo "$as_me:$LINENO: result: no" >&5
  19777. $as_echo "no" >&6; }
  19778. fi
  19779. { $as_echo "$as_me:$LINENO: checking for --with-sasl-lib" >&5
  19780. $as_echo_n "checking for --with-sasl-lib... " >&6; }
  19781. # Check whether --with-sasl-lib was given.
  19782. if test "${with_sasl_lib+set}" = set; then
  19783. withval=$with_sasl_lib;
  19784. if test -d "$withval"; then
  19785. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  19786. $as_echo "using $withval" >&6; }
  19787. sasl_lib="-L$withval"
  19788. sasl_libdir="$withval"
  19789. else
  19790. echo
  19791. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  19792. $as_echo "$as_me: error: $withval not found" >&2;}
  19793. { (exit 1); exit 1; }; }
  19794. fi
  19795. else
  19796. { $as_echo "$as_me:$LINENO: result: no" >&5
  19797. $as_echo "no" >&6; }
  19798. fi
  19799. if test -z "$sasl_inc"; then
  19800. { $as_echo "$as_me:$LINENO: checking for sasl.h" >&5
  19801. $as_echo_n "checking for sasl.h... " >&6; }
  19802. if test -f /usr/include/sasl/sasl.h; then
  19803. { $as_echo "$as_me:$LINENO: result: using /usr/include/sasl/sasl.h" >&5
  19804. $as_echo "using /usr/include/sasl/sasl.h" >&6; }
  19805. sasl_inc="-I/usr/include/sasl"
  19806. elif test -f /usr/include/sasl.h; then
  19807. { $as_echo "$as_me:$LINENO: result: using /usr/include/sasl.h" >&5
  19808. $as_echo "using /usr/include/sasl.h" >&6; }
  19809. sasl_inc="-I/usr/include"
  19810. else
  19811. { $as_echo "$as_me:$LINENO: result: no" >&5
  19812. $as_echo "no" >&6; }
  19813. { { $as_echo "$as_me:$LINENO: error: SASL not found, specify with --with-sasl." >&5
  19814. $as_echo "$as_me: error: SASL not found, specify with --with-sasl." >&2;}
  19815. { (exit 1); exit 1; }; }
  19816. fi
  19817. fi
  19818. # BEGIN COPYRIGHT BLOCK
  19819. # Copyright (C) 2007 Red Hat, Inc.
  19820. # All rights reserved.
  19821. #
  19822. # This program is free software; you can redistribute it and/or
  19823. # modify it under the terms of the GNU General Public License
  19824. # as published by the Free Software Foundation; either version 2
  19825. # of the License, or (at your option) any later version.
  19826. #
  19827. # This program is distributed in the hope that it will be useful,
  19828. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  19829. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19830. # GNU General Public License for more details.
  19831. #
  19832. # You should have received a copy of the GNU General Public License
  19833. # along with this program; if not, write to the Free Software
  19834. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  19835. #
  19836. # END COPYRIGHT BLOCK
  19837. #
  19838. # Configure paths for SVRCORE
  19839. { $as_echo "$as_me:$LINENO: checking for SVRCORE..." >&5
  19840. $as_echo "$as_me: checking for SVRCORE..." >&6;}
  19841. { $as_echo "$as_me:$LINENO: checking for --with-svrcore" >&5
  19842. $as_echo_n "checking for --with-svrcore... " >&6; }
  19843. # Check whether --with-svrcore was given.
  19844. if test "${with_svrcore+set}" = set; then
  19845. withval=$with_svrcore;
  19846. if test "$withval" = "yes"; then
  19847. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19848. $as_echo "yes" >&6; }
  19849. elif test "$withval" = "no"; then
  19850. { $as_echo "$as_me:$LINENO: result: no" >&5
  19851. $as_echo "no" >&6; }
  19852. { { $as_echo "$as_me:$LINENO: error: SVRCORE is required." >&5
  19853. $as_echo "$as_me: error: SVRCORE is required." >&2;}
  19854. { (exit 1); exit 1; }; }
  19855. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  19856. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  19857. $as_echo "using $withval" >&6; }
  19858. if test -f "$withval/include/svrcore.h"; then
  19859. svrcore_inc="-I$withval/include"
  19860. else
  19861. { { $as_echo "$as_me:$LINENO: error: svrcore.h not found" >&5
  19862. $as_echo "$as_me: error: svrcore.h not found" >&2;}
  19863. { (exit 1); exit 1; }; }
  19864. fi
  19865. svrcore_lib="-L$withval/lib"
  19866. else
  19867. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19868. $as_echo "yes" >&6; }
  19869. { { $as_echo "$as_me:$LINENO: error: SVRCORE not found in $withval" >&5
  19870. $as_echo "$as_me: error: SVRCORE not found in $withval" >&2;}
  19871. { (exit 1); exit 1; }; }
  19872. fi
  19873. else
  19874. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19875. $as_echo "yes" >&6; }
  19876. fi
  19877. { $as_echo "$as_me:$LINENO: checking for --with-svrcore-inc" >&5
  19878. $as_echo_n "checking for --with-svrcore-inc... " >&6; }
  19879. # Check whether --with-svrcore-inc was given.
  19880. if test "${with_svrcore_inc+set}" = set; then
  19881. withval=$with_svrcore_inc;
  19882. if test -f "$withval"/svrcore.h; then
  19883. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  19884. $as_echo "using $withval" >&6; }
  19885. svrcore_inc="-I$withval"
  19886. else
  19887. echo
  19888. { { $as_echo "$as_me:$LINENO: error: $withval/svrcore.h not found" >&5
  19889. $as_echo "$as_me: error: $withval/svrcore.h not found" >&2;}
  19890. { (exit 1); exit 1; }; }
  19891. fi
  19892. else
  19893. { $as_echo "$as_me:$LINENO: result: no" >&5
  19894. $as_echo "no" >&6; }
  19895. fi
  19896. { $as_echo "$as_me:$LINENO: checking for --with-svrcore-lib" >&5
  19897. $as_echo_n "checking for --with-svrcore-lib... " >&6; }
  19898. # Check whether --with-svrcore-lib was given.
  19899. if test "${with_svrcore_lib+set}" = set; then
  19900. withval=$with_svrcore_lib;
  19901. if test -d "$withval"; then
  19902. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  19903. $as_echo "using $withval" >&6; }
  19904. svrcore_lib="-L$withval"
  19905. else
  19906. echo
  19907. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  19908. $as_echo "$as_me: error: $withval not found" >&2;}
  19909. { (exit 1); exit 1; }; }
  19910. fi
  19911. else
  19912. { $as_echo "$as_me:$LINENO: result: no" >&5
  19913. $as_echo "no" >&6; }
  19914. fi
  19915. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  19916. # Extract the first word of "pkg-config", so it can be a program name with args.
  19917. set dummy pkg-config; ac_word=$2
  19918. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  19919. $as_echo_n "checking for $ac_word... " >&6; }
  19920. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  19921. $as_echo_n "(cached) " >&6
  19922. else
  19923. case $PKG_CONFIG in
  19924. [\\/]* | ?:[\\/]*)
  19925. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19926. ;;
  19927. *)
  19928. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19929. for as_dir in $PATH
  19930. do
  19931. IFS=$as_save_IFS
  19932. test -z "$as_dir" && as_dir=.
  19933. for ac_exec_ext in '' $ac_executable_extensions; do
  19934. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19935. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19936. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19937. break 2
  19938. fi
  19939. done
  19940. done
  19941. IFS=$as_save_IFS
  19942. ;;
  19943. esac
  19944. fi
  19945. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19946. if test -n "$PKG_CONFIG"; then
  19947. { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  19948. $as_echo "$PKG_CONFIG" >&6; }
  19949. else
  19950. { $as_echo "$as_me:$LINENO: result: no" >&5
  19951. $as_echo "no" >&6; }
  19952. fi
  19953. { $as_echo "$as_me:$LINENO: checking for SVRCORE with pkg-config" >&5
  19954. $as_echo_n "checking for SVRCORE with pkg-config... " >&6; }
  19955. if test -n "$PKG_CONFIG"; then
  19956. if $PKG_CONFIG --exists svrcore; then
  19957. svrcore_inc=`$PKG_CONFIG --cflags-only-I svrcore`
  19958. svrcore_lib=`$PKG_CONFIG --libs-only-L svrcore`
  19959. { $as_echo "$as_me:$LINENO: result: using system svrcore" >&5
  19960. $as_echo "using system svrcore" >&6; }
  19961. fi
  19962. fi
  19963. fi
  19964. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  19965. { $as_echo "$as_me:$LINENO: checking for SVRCORE_GetRegisteredPinObj in -lsvrcore" >&5
  19966. $as_echo_n "checking for SVRCORE_GetRegisteredPinObj in -lsvrcore... " >&6; }
  19967. if test "${ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj+set}" = set; then
  19968. $as_echo_n "(cached) " >&6
  19969. else
  19970. ac_check_lib_save_LIBS=$LIBS
  19971. LIBS="-lsvrcore $nss_inc $nspr_inc $nss_lib -lnss3 -lsoftokn3 $nspr_lib -lplds4 -lplc4 -lnspr4 $LIBS"
  19972. cat >conftest.$ac_ext <<_ACEOF
  19973. /* confdefs.h. */
  19974. _ACEOF
  19975. cat confdefs.h >>conftest.$ac_ext
  19976. cat >>conftest.$ac_ext <<_ACEOF
  19977. /* end confdefs.h. */
  19978. /* Override any GCC internal prototype to avoid an error.
  19979. Use char because int might match the return type of a GCC
  19980. builtin and then its argument prototype would still apply. */
  19981. #ifdef __cplusplus
  19982. extern "C"
  19983. #endif
  19984. char SVRCORE_GetRegisteredPinObj ();
  19985. int
  19986. main ()
  19987. {
  19988. return SVRCORE_GetRegisteredPinObj ();
  19989. ;
  19990. return 0;
  19991. }
  19992. _ACEOF
  19993. rm -f conftest.$ac_objext conftest$ac_exeext
  19994. if { (ac_try="$ac_link"
  19995. case "(($ac_try" in
  19996. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19997. *) ac_try_echo=$ac_try;;
  19998. esac
  19999. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20000. $as_echo "$ac_try_echo") >&5
  20001. (eval "$ac_link") 2>conftest.er1
  20002. ac_status=$?
  20003. grep -v '^ *+' conftest.er1 >conftest.err
  20004. rm -f conftest.er1
  20005. cat conftest.err >&5
  20006. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20007. (exit $ac_status); } && {
  20008. test -z "$ac_c_werror_flag" ||
  20009. test ! -s conftest.err
  20010. } && test -s conftest$ac_exeext && {
  20011. test "$cross_compiling" = yes ||
  20012. $as_test_x conftest$ac_exeext
  20013. }; then
  20014. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=yes
  20015. else
  20016. $as_echo "$as_me: failed program was:" >&5
  20017. sed 's/^/| /' conftest.$ac_ext >&5
  20018. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=no
  20019. fi
  20020. rm -rf conftest.dSYM
  20021. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20022. conftest$ac_exeext conftest.$ac_ext
  20023. LIBS=$ac_check_lib_save_LIBS
  20024. fi
  20025. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&5
  20026. $as_echo "$ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&6; }
  20027. if test "x$ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" = x""yes; then
  20028. havesvrcore=1
  20029. fi
  20030. if test -n "$havesvrcore" ; then
  20031. save_cppflags="$CPPFLAGS"
  20032. CPPFLAGS="$nss_inc $nspr_inc"
  20033. if test "${ac_cv_header_svrcore_h+set}" = set; then
  20034. { $as_echo "$as_me:$LINENO: checking for svrcore.h" >&5
  20035. $as_echo_n "checking for svrcore.h... " >&6; }
  20036. if test "${ac_cv_header_svrcore_h+set}" = set; then
  20037. $as_echo_n "(cached) " >&6
  20038. fi
  20039. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_svrcore_h" >&5
  20040. $as_echo "$ac_cv_header_svrcore_h" >&6; }
  20041. else
  20042. # Is the header compilable?
  20043. { $as_echo "$as_me:$LINENO: checking svrcore.h usability" >&5
  20044. $as_echo_n "checking svrcore.h usability... " >&6; }
  20045. cat >conftest.$ac_ext <<_ACEOF
  20046. /* confdefs.h. */
  20047. _ACEOF
  20048. cat confdefs.h >>conftest.$ac_ext
  20049. cat >>conftest.$ac_ext <<_ACEOF
  20050. /* end confdefs.h. */
  20051. $ac_includes_default
  20052. #include <svrcore.h>
  20053. _ACEOF
  20054. rm -f conftest.$ac_objext
  20055. if { (ac_try="$ac_compile"
  20056. case "(($ac_try" in
  20057. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20058. *) ac_try_echo=$ac_try;;
  20059. esac
  20060. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20061. $as_echo "$ac_try_echo") >&5
  20062. (eval "$ac_compile") 2>conftest.er1
  20063. ac_status=$?
  20064. grep -v '^ *+' conftest.er1 >conftest.err
  20065. rm -f conftest.er1
  20066. cat conftest.err >&5
  20067. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20068. (exit $ac_status); } && {
  20069. test -z "$ac_c_werror_flag" ||
  20070. test ! -s conftest.err
  20071. } && test -s conftest.$ac_objext; then
  20072. ac_header_compiler=yes
  20073. else
  20074. $as_echo "$as_me: failed program was:" >&5
  20075. sed 's/^/| /' conftest.$ac_ext >&5
  20076. ac_header_compiler=no
  20077. fi
  20078. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20079. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  20080. $as_echo "$ac_header_compiler" >&6; }
  20081. # Is the header present?
  20082. { $as_echo "$as_me:$LINENO: checking svrcore.h presence" >&5
  20083. $as_echo_n "checking svrcore.h presence... " >&6; }
  20084. cat >conftest.$ac_ext <<_ACEOF
  20085. /* confdefs.h. */
  20086. _ACEOF
  20087. cat confdefs.h >>conftest.$ac_ext
  20088. cat >>conftest.$ac_ext <<_ACEOF
  20089. /* end confdefs.h. */
  20090. #include <svrcore.h>
  20091. _ACEOF
  20092. if { (ac_try="$ac_cpp conftest.$ac_ext"
  20093. case "(($ac_try" in
  20094. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20095. *) ac_try_echo=$ac_try;;
  20096. esac
  20097. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20098. $as_echo "$ac_try_echo") >&5
  20099. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  20100. ac_status=$?
  20101. grep -v '^ *+' conftest.er1 >conftest.err
  20102. rm -f conftest.er1
  20103. cat conftest.err >&5
  20104. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20105. (exit $ac_status); } >/dev/null && {
  20106. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  20107. test ! -s conftest.err
  20108. }; then
  20109. ac_header_preproc=yes
  20110. else
  20111. $as_echo "$as_me: failed program was:" >&5
  20112. sed 's/^/| /' conftest.$ac_ext >&5
  20113. ac_header_preproc=no
  20114. fi
  20115. rm -f conftest.err conftest.$ac_ext
  20116. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  20117. $as_echo "$ac_header_preproc" >&6; }
  20118. # So? What about this header?
  20119. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  20120. yes:no: )
  20121. { $as_echo "$as_me:$LINENO: WARNING: svrcore.h: accepted by the compiler, rejected by the preprocessor!" >&5
  20122. $as_echo "$as_me: WARNING: svrcore.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  20123. { $as_echo "$as_me:$LINENO: WARNING: svrcore.h: proceeding with the compiler's result" >&5
  20124. $as_echo "$as_me: WARNING: svrcore.h: proceeding with the compiler's result" >&2;}
  20125. ac_header_preproc=yes
  20126. ;;
  20127. no:yes:* )
  20128. { $as_echo "$as_me:$LINENO: WARNING: svrcore.h: present but cannot be compiled" >&5
  20129. $as_echo "$as_me: WARNING: svrcore.h: present but cannot be compiled" >&2;}
  20130. { $as_echo "$as_me:$LINENO: WARNING: svrcore.h: check for missing prerequisite headers?" >&5
  20131. $as_echo "$as_me: WARNING: svrcore.h: check for missing prerequisite headers?" >&2;}
  20132. { $as_echo "$as_me:$LINENO: WARNING: svrcore.h: see the Autoconf documentation" >&5
  20133. $as_echo "$as_me: WARNING: svrcore.h: see the Autoconf documentation" >&2;}
  20134. { $as_echo "$as_me:$LINENO: WARNING: svrcore.h: section \"Present But Cannot Be Compiled\"" >&5
  20135. $as_echo "$as_me: WARNING: svrcore.h: section \"Present But Cannot Be Compiled\"" >&2;}
  20136. { $as_echo "$as_me:$LINENO: WARNING: svrcore.h: proceeding with the preprocessor's result" >&5
  20137. $as_echo "$as_me: WARNING: svrcore.h: proceeding with the preprocessor's result" >&2;}
  20138. { $as_echo "$as_me:$LINENO: WARNING: svrcore.h: in the future, the compiler will take precedence" >&5
  20139. $as_echo "$as_me: WARNING: svrcore.h: in the future, the compiler will take precedence" >&2;}
  20140. ( cat <<\_ASBOX
  20141. ## ------------------------------------------ ##
  20142. ## Report this to http://bugzilla.redhat.com/ ##
  20143. ## ------------------------------------------ ##
  20144. _ASBOX
  20145. ) | sed "s/^/$as_me: WARNING: /" >&2
  20146. ;;
  20147. esac
  20148. { $as_echo "$as_me:$LINENO: checking for svrcore.h" >&5
  20149. $as_echo_n "checking for svrcore.h... " >&6; }
  20150. if test "${ac_cv_header_svrcore_h+set}" = set; then
  20151. $as_echo_n "(cached) " >&6
  20152. else
  20153. ac_cv_header_svrcore_h=$ac_header_preproc
  20154. fi
  20155. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_svrcore_h" >&5
  20156. $as_echo "$ac_cv_header_svrcore_h" >&6; }
  20157. fi
  20158. if test "x$ac_cv_header_svrcore_h" = x""yes; then
  20159. havesvrcore=1
  20160. else
  20161. havesvrcore=
  20162. fi
  20163. CPPFLAGS="$save_cppflags"
  20164. fi
  20165. if test -z "$havesvrcore" ; then
  20166. { { $as_echo "$as_me:$LINENO: error: SVRCORE not found, specify with --with-svrcore." >&5
  20167. $as_echo "$as_me: error: SVRCORE not found, specify with --with-svrcore." >&2;}
  20168. { (exit 1); exit 1; }; }
  20169. fi
  20170. fi
  20171. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  20172. if test -f /usr/include/svrcore.h; then
  20173. svrcore_inc="-I/usr/include"
  20174. svrcore_lib="-L/usr/lib"
  20175. else
  20176. { { $as_echo "$as_me:$LINENO: error: SVRCORE not found, specify with --with-svrcore." >&5
  20177. $as_echo "$as_me: error: SVRCORE not found, specify with --with-svrcore." >&2;}
  20178. { (exit 1); exit 1; }; }
  20179. fi
  20180. fi
  20181. # BEGIN COPYRIGHT BLOCK
  20182. # Copyright (C) 2006 Red Hat, Inc.
  20183. # All rights reserved.
  20184. #
  20185. # This program is free software; you can redistribute it and/or
  20186. # modify it under the terms of the GNU General Public License
  20187. # as published by the Free Software Foundation; either version 2
  20188. # of the License, or (at your option) any later version.
  20189. #
  20190. # This program is distributed in the hope that it will be useful,
  20191. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  20192. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20193. # GNU General Public License for more details.
  20194. #
  20195. # You should have received a copy of the GNU General Public License
  20196. # along with this program; if not, write to the Free Software
  20197. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  20198. #
  20199. # END COPYRIGHT BLOCK
  20200. { $as_echo "$as_me:$LINENO: checking for LIBICU..." >&5
  20201. $as_echo "$as_me: checking for LIBICU..." >&6;}
  20202. # check for --with-icu
  20203. { $as_echo "$as_me:$LINENO: checking for --with-icu" >&5
  20204. $as_echo_n "checking for --with-icu... " >&6; }
  20205. # Check whether --with-icu was given.
  20206. if test "${with_icu+set}" = set; then
  20207. withval=$with_icu;
  20208. if test "$withval" = "yes"
  20209. then
  20210. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20211. $as_echo "yes" >&6; }
  20212. elif test "$withval" = "no"
  20213. then
  20214. { $as_echo "$as_me:$LINENO: result: no" >&5
  20215. $as_echo "no" >&6; }
  20216. { { $as_echo "$as_me:$LINENO: error: ICU is required." >&5
  20217. $as_echo "$as_me: error: ICU is required." >&2;}
  20218. { (exit 1); exit 1; }; }
  20219. elif test -d "$withval"/lib
  20220. then
  20221. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20222. $as_echo "using $withval" >&6; }
  20223. ICUDIR=$withval
  20224. icu_lib="-L$ICUDIR/lib"
  20225. icu_inc="-I$withval/include"
  20226. icu_bin="$withval/bin"
  20227. else
  20228. echo
  20229. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  20230. $as_echo "$as_me: error: $withval not found" >&2;}
  20231. { (exit 1); exit 1; }; }
  20232. fi
  20233. else
  20234. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20235. $as_echo "yes" >&6; }
  20236. fi
  20237. # check for --with-icu-inc
  20238. { $as_echo "$as_me:$LINENO: checking for --with-icu-inc" >&5
  20239. $as_echo_n "checking for --with-icu-inc... " >&6; }
  20240. # Check whether --with-icu-inc was given.
  20241. if test "${with_icu_inc+set}" = set; then
  20242. withval=$with_icu_inc;
  20243. if test -d "$withval"
  20244. then
  20245. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20246. $as_echo "using $withval" >&6; }
  20247. icu_inc="-I$withval"
  20248. else
  20249. echo
  20250. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  20251. $as_echo "$as_me: error: $withval not found" >&2;}
  20252. { (exit 1); exit 1; }; }
  20253. fi
  20254. else
  20255. { $as_echo "$as_me:$LINENO: result: no" >&5
  20256. $as_echo "no" >&6; }
  20257. fi
  20258. # check for --with-icu-lib
  20259. { $as_echo "$as_me:$LINENO: checking for --with-icu-lib" >&5
  20260. $as_echo_n "checking for --with-icu-lib... " >&6; }
  20261. # Check whether --with-icu-lib was given.
  20262. if test "${with_icu_lib+set}" = set; then
  20263. withval=$with_icu_lib;
  20264. if test -d "$withval"
  20265. then
  20266. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20267. $as_echo "using $withval" >&6; }
  20268. icu_lib="-L$withval"
  20269. else
  20270. echo
  20271. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  20272. $as_echo "$as_me: error: $withval not found" >&2;}
  20273. { (exit 1); exit 1; }; }
  20274. fi
  20275. else
  20276. { $as_echo "$as_me:$LINENO: result: no" >&5
  20277. $as_echo "no" >&6; }
  20278. fi
  20279. # check for --with-icu-bin
  20280. { $as_echo "$as_me:$LINENO: checking for --with-icu-bin" >&5
  20281. $as_echo_n "checking for --with-icu-bin... " >&6; }
  20282. # Check whether --with-icu-bin was given.
  20283. if test "${with_icu_bin+set}" = set; then
  20284. withval=$with_icu_bin;
  20285. if test -d "$withval"
  20286. then
  20287. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20288. $as_echo "using $withval" >&6; }
  20289. icu_bin="$withval"
  20290. else
  20291. echo
  20292. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  20293. $as_echo "$as_me: error: $withval not found" >&2;}
  20294. { (exit 1); exit 1; }; }
  20295. fi
  20296. else
  20297. { $as_echo "$as_me:$LINENO: result: no" >&5
  20298. $as_echo "no" >&6; }
  20299. fi
  20300. # if ICU is not found yet, try pkg-config
  20301. # last resort
  20302. if test -z "$icu_lib"; then
  20303. # Extract the first word of "icu-config", so it can be a program name with args.
  20304. set dummy icu-config; ac_word=$2
  20305. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  20306. $as_echo_n "checking for $ac_word... " >&6; }
  20307. if test "${ac_cv_path_ICU_CONFIG+set}" = set; then
  20308. $as_echo_n "(cached) " >&6
  20309. else
  20310. case $ICU_CONFIG in
  20311. [\\/]* | ?:[\\/]*)
  20312. ac_cv_path_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test with a path.
  20313. ;;
  20314. *)
  20315. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20316. for as_dir in $PATH
  20317. do
  20318. IFS=$as_save_IFS
  20319. test -z "$as_dir" && as_dir=.
  20320. for ac_exec_ext in '' $ac_executable_extensions; do
  20321. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20322. ac_cv_path_ICU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  20323. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20324. break 2
  20325. fi
  20326. done
  20327. done
  20328. IFS=$as_save_IFS
  20329. ;;
  20330. esac
  20331. fi
  20332. ICU_CONFIG=$ac_cv_path_ICU_CONFIG
  20333. if test -n "$ICU_CONFIG"; then
  20334. { $as_echo "$as_me:$LINENO: result: $ICU_CONFIG" >&5
  20335. $as_echo "$ICU_CONFIG" >&6; }
  20336. else
  20337. { $as_echo "$as_me:$LINENO: result: no" >&5
  20338. $as_echo "no" >&6; }
  20339. fi
  20340. { $as_echo "$as_me:$LINENO: checking for icu with icu-config" >&5
  20341. $as_echo_n "checking for icu with icu-config... " >&6; }
  20342. if test -n "$ICU_CONFIG"; then
  20343. icu_lib=`$ICU_CONFIG --ldflags-searchpath`
  20344. icu_inc=`$ICU_CONFIG --cppflags-searchpath`
  20345. icu_bin=`$ICU_CONFIG --bindir`
  20346. { $as_echo "$as_me:$LINENO: result: using system ICU" >&5
  20347. $as_echo "using system ICU" >&6; }
  20348. else
  20349. { { $as_echo "$as_me:$LINENO: error: ICU not found, specify with --with-icu." >&5
  20350. $as_echo "$as_me: error: ICU not found, specify with --with-icu." >&2;}
  20351. { (exit 1); exit 1; }; }
  20352. fi
  20353. fi
  20354. # BEGIN COPYRIGHT BLOCK
  20355. # Copyright (C) 2006 Red Hat, Inc.
  20356. # All rights reserved.
  20357. #
  20358. # This program is free software; you can redistribute it and/or
  20359. # modify it under the terms of the GNU General Public License
  20360. # as published by the Free Software Foundation; either version 2
  20361. # of the License, or (at your option) any later version.
  20362. #
  20363. # This program is distributed in the hope that it will be useful,
  20364. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  20365. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20366. # GNU General Public License for more details.
  20367. #
  20368. # You should have received a copy of the GNU General Public License
  20369. # along with this program; if not, write to the Free Software
  20370. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  20371. #
  20372. # END COPYRIGHT BLOCK
  20373. { $as_echo "$as_me:$LINENO: checking for Net-SNMP..." >&5
  20374. $as_echo "$as_me: checking for Net-SNMP..." >&6;}
  20375. { $as_echo "$as_me:$LINENO: checking for --with-netsnmp" >&5
  20376. $as_echo_n "checking for --with-netsnmp... " >&6; }
  20377. # Check whether --with-netsnmp was given.
  20378. if test "${with_netsnmp+set}" = set; then
  20379. withval=$with_netsnmp;
  20380. if test "$withval" = "yes"; then
  20381. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20382. $as_echo "yes" >&6; }
  20383. elif test "$withval" = "no"; then
  20384. { $as_echo "$as_me:$LINENO: result: no" >&5
  20385. $as_echo "no" >&6; }
  20386. { { $as_echo "$as_me:$LINENO: error: Net-SNMP is required." >&5
  20387. $as_echo "$as_me: error: Net-SNMP is required." >&2;}
  20388. { (exit 1); exit 1; }; }
  20389. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include"; then
  20390. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20391. $as_echo "using $withval" >&6; }
  20392. NETSNMPDIR=$withval
  20393. if test -f "$withval/include/net-snmp/net-snmp-includes.h"; then
  20394. netsnmp_inc="-I$withval/include"
  20395. else
  20396. { { $as_echo "$as_me:$LINENO: error: net-snmp-config.h not found" >&5
  20397. $as_echo "$as_me: error: net-snmp-config.h not found" >&2;}
  20398. { (exit 1); exit 1; }; }
  20399. fi
  20400. netsnmp_lib="-L$withval/lib"
  20401. netsnmp_libdir="$withval/lib"
  20402. else
  20403. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20404. $as_echo "yes" >&6; }
  20405. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  20406. $as_echo "$as_me: error: $withval not found" >&2;}
  20407. { (exit 1); exit 1; }; }
  20408. fi
  20409. else
  20410. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20411. $as_echo "yes" >&6; }
  20412. fi
  20413. { $as_echo "$as_me:$LINENO: checking for --with-netsnmp-inc" >&5
  20414. $as_echo_n "checking for --with-netsnmp-inc... " >&6; }
  20415. # Check whether --with-netsnmp-inc was given.
  20416. if test "${with_netsnmp_inc+set}" = set; then
  20417. withval=$with_netsnmp_inc;
  20418. if test -f "$withval/net-snmp/net-snmp-includes.h"; then
  20419. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20420. $as_echo "using $withval" >&6; }
  20421. netsnmp_inc="-I$withval"
  20422. else
  20423. echo
  20424. { { $as_echo "$as_me:$LINENO: error: $withval/net-snmp/net-snmp-includes.h not found" >&5
  20425. $as_echo "$as_me: error: $withval/net-snmp/net-snmp-includes.h not found" >&2;}
  20426. { (exit 1); exit 1; }; }
  20427. fi
  20428. else
  20429. { $as_echo "$as_me:$LINENO: result: no" >&5
  20430. $as_echo "no" >&6; }
  20431. fi
  20432. { $as_echo "$as_me:$LINENO: checking for --with-netsnmp-lib" >&5
  20433. $as_echo_n "checking for --with-netsnmp-lib... " >&6; }
  20434. # Check whether --with-netsnmp-lib was given.
  20435. if test "${with_netsnmp_lib+set}" = set; then
  20436. withval=$with_netsnmp_lib;
  20437. if test -d "$withval"
  20438. then
  20439. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20440. $as_echo "using $withval" >&6; }
  20441. netsnmp_lib="-L$withval"
  20442. netsnmp_libdir="$withval"
  20443. else
  20444. echo
  20445. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  20446. $as_echo "$as_me: error: $withval not found" >&2;}
  20447. { (exit 1); exit 1; }; }
  20448. fi
  20449. else
  20450. { $as_echo "$as_me:$LINENO: result: no" >&5
  20451. $as_echo "no" >&6; }
  20452. fi
  20453. if test -z "$netsnmp_inc" -o -z "$netsnmp_lib"; then
  20454. { $as_echo "$as_me:$LINENO: checking for net-snmp-includes.h" >&5
  20455. $as_echo_n "checking for net-snmp-includes.h... " >&6; }
  20456. if test -f /usr/include/net-snmp/net-snmp-includes.h; then
  20457. { $as_echo "$as_me:$LINENO: result: using /usr/include/net-snmp/net-snmp-includes.h" >&5
  20458. $as_echo "using /usr/include/net-snmp/net-snmp-includes.h" >&6; }
  20459. netsnmp_inc="-I/usr/include"
  20460. else
  20461. { $as_echo "$as_me:$LINENO: result: no" >&5
  20462. $as_echo "no" >&6; }
  20463. { { $as_echo "$as_me:$LINENO: error: net-snmp not found, specify with --with-netsnmp." >&5
  20464. $as_echo "$as_me: error: net-snmp not found, specify with --with-netsnmp." >&2;}
  20465. { (exit 1); exit 1; }; }
  20466. fi
  20467. fi
  20468. if test -n "$netsnmp_inc"; then
  20469. if test -x "$NETSNMPDIR/bin/net-snmp-config"; then
  20470. NETSNMP_CONFIG=$NETSNMPDIR/bin/net-snmp-config
  20471. else
  20472. # Extract the first word of "net-snmp-config", so it can be a program name with args.
  20473. set dummy net-snmp-config; ac_word=$2
  20474. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  20475. $as_echo_n "checking for $ac_word... " >&6; }
  20476. if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
  20477. $as_echo_n "(cached) " >&6
  20478. else
  20479. case $NETSNMP_CONFIG in
  20480. [\\/]* | ?:[\\/]*)
  20481. ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
  20482. ;;
  20483. *)
  20484. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20485. for as_dir in $PATH
  20486. do
  20487. IFS=$as_save_IFS
  20488. test -z "$as_dir" && as_dir=.
  20489. for ac_exec_ext in '' $ac_executable_extensions; do
  20490. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20491. ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  20492. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20493. break 2
  20494. fi
  20495. done
  20496. done
  20497. IFS=$as_save_IFS
  20498. ;;
  20499. esac
  20500. fi
  20501. NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
  20502. if test -n "$NETSNMP_CONFIG"; then
  20503. { $as_echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
  20504. $as_echo "$NETSNMP_CONFIG" >&6; }
  20505. else
  20506. { $as_echo "$as_me:$LINENO: result: no" >&5
  20507. $as_echo "no" >&6; }
  20508. fi
  20509. fi
  20510. if test -n "$NETSNMP_CONFIG"; then
  20511. netsnmp_link=`$NETSNMP_CONFIG --agent-libs`
  20512. else
  20513. { { $as_echo "$as_me:$LINENO: error: net-snmp-config not found, specify with --with-netsnmp." >&5
  20514. $as_echo "$as_me: error: net-snmp-config not found, specify with --with-netsnmp." >&2;}
  20515. { (exit 1); exit 1; }; }
  20516. fi
  20517. else
  20518. { { $as_echo "$as_me:$LINENO: error: Net-SNMP not found, specify with --with-netsnmp." >&5
  20519. $as_echo "$as_me: error: Net-SNMP not found, specify with --with-netsnmp." >&2;}
  20520. { (exit 1); exit 1; }; }
  20521. fi
  20522. # BEGIN COPYRIGHT BLOCK
  20523. # Copyright (C) 2008 Red Hat, Inc.
  20524. # All rights reserved.
  20525. #
  20526. # This program is free software; you can redistribute it and/or
  20527. # modify it under the terms of the GNU General Public License
  20528. # as published by the Free Software Foundation; either version 2
  20529. # of the License, or (at your option) any later version.
  20530. #
  20531. # This program is distributed in the hope that it will be useful,
  20532. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  20533. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20534. # GNU General Public License for more details.
  20535. #
  20536. # You should have received a copy of the GNU General Public License
  20537. # along with this program; if not, write to the Free Software
  20538. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  20539. #
  20540. # END COPYRIGHT BLOCK
  20541. # -*- tab-width: 4; -*-
  20542. # Configure paths for Kerberos
  20543. { $as_echo "$as_me:$LINENO: checking for Kerberos..." >&5
  20544. $as_echo "$as_me: checking for Kerberos..." >&6;}
  20545. if test -z "$with_kerberos" ; then
  20546. with_kerberos=yes # if not set on cmdline, set default
  20547. fi
  20548. { $as_echo "$as_me:$LINENO: checking for --with-kerberos" >&5
  20549. $as_echo_n "checking for --with-kerberos... " >&6; }
  20550. # Check whether --with-kerberos was given.
  20551. if test "${with_kerberos+set}" = set; then
  20552. withval=$with_kerberos;
  20553. if test "x$withval" = "xyes"; then
  20554. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20555. $as_echo "yes" >&6; }
  20556. elif test "x$withval" = "xno"; then
  20557. { $as_echo "$as_me:$LINENO: result: no" >&5
  20558. $as_echo "no" >&6; }
  20559. with_kerberos=
  20560. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  20561. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20562. $as_echo "using $withval" >&6; }
  20563. kerberos_incdir="$withval/include"
  20564. kerberos_libdir="$withval/lib"
  20565. else
  20566. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20567. $as_echo "yes" >&6; }
  20568. { { $as_echo "$as_me:$LINENO: error: kerberos not found in $withval" >&5
  20569. $as_echo "$as_me: error: kerberos not found in $withval" >&2;}
  20570. { (exit 1); exit 1; }; }
  20571. fi
  20572. else
  20573. { $as_echo "$as_me:$LINENO: result: no" >&5
  20574. $as_echo "no" >&6; }
  20575. with_kerberos=
  20576. fi
  20577. { $as_echo "$as_me:$LINENO: checking for --with-kerberos-inc" >&5
  20578. $as_echo_n "checking for --with-kerberos-inc... " >&6; }
  20579. # Check whether --with-kerberos-inc was given.
  20580. if test "${with_kerberos_inc+set}" = set; then
  20581. withval=$with_kerberos_inc;
  20582. if test -f "$withval"/krb5.h; then
  20583. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20584. $as_echo "using $withval" >&6; }
  20585. kerberos_incdir="$withval"
  20586. with_kerberos=yes # implies use of kerberos
  20587. else
  20588. echo
  20589. { { $as_echo "$as_me:$LINENO: error: $withval/krb5.h not found" >&5
  20590. $as_echo "$as_me: error: $withval/krb5.h not found" >&2;}
  20591. { (exit 1); exit 1; }; }
  20592. fi
  20593. else
  20594. { $as_echo "$as_me:$LINENO: result: no" >&5
  20595. $as_echo "no" >&6; }
  20596. fi
  20597. { $as_echo "$as_me:$LINENO: checking for --with-kerberos-lib" >&5
  20598. $as_echo_n "checking for --with-kerberos-lib... " >&6; }
  20599. # Check whether --with-kerberos-lib was given.
  20600. if test "${with_kerberos_lib+set}" = set; then
  20601. withval=$with_kerberos_lib;
  20602. if test -d "$withval"; then
  20603. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20604. $as_echo "using $withval" >&6; }
  20605. kerberos_libdir="$withval"
  20606. with_kerberos=yes # implies use of kerberos
  20607. else
  20608. echo
  20609. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  20610. $as_echo "$as_me: error: $withval not found" >&2;}
  20611. { (exit 1); exit 1; }; }
  20612. fi
  20613. else
  20614. { $as_echo "$as_me:$LINENO: result: no" >&5
  20615. $as_echo "no" >&6; }
  20616. fi
  20617. if test -n "$with_kerberos" ; then
  20618. if test -z "$kerberos_incdir" -o -z "$kerberos_libdir" ; then
  20619. if test -z "$KRB5_CONFIG_BIN" ; then
  20620. # Extract the first word of "krb5-config", so it can be a program name with args.
  20621. set dummy krb5-config; ac_word=$2
  20622. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  20623. $as_echo_n "checking for $ac_word... " >&6; }
  20624. if test "${ac_cv_path_KRB5_CONFIG_BIN+set}" = set; then
  20625. $as_echo_n "(cached) " >&6
  20626. else
  20627. case $KRB5_CONFIG_BIN in
  20628. [\\/]* | ?:[\\/]*)
  20629. ac_cv_path_KRB5_CONFIG_BIN="$KRB5_CONFIG_BIN" # Let the user override the test with a path.
  20630. ;;
  20631. *)
  20632. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20633. for as_dir in $PATH
  20634. do
  20635. IFS=$as_save_IFS
  20636. test -z "$as_dir" && as_dir=.
  20637. for ac_exec_ext in '' $ac_executable_extensions; do
  20638. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20639. ac_cv_path_KRB5_CONFIG_BIN="$as_dir/$ac_word$ac_exec_ext"
  20640. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20641. break 2
  20642. fi
  20643. done
  20644. done
  20645. IFS=$as_save_IFS
  20646. ;;
  20647. esac
  20648. fi
  20649. KRB5_CONFIG_BIN=$ac_cv_path_KRB5_CONFIG_BIN
  20650. if test -n "$KRB5_CONFIG_BIN"; then
  20651. { $as_echo "$as_me:$LINENO: result: $KRB5_CONFIG_BIN" >&5
  20652. $as_echo "$KRB5_CONFIG_BIN" >&6; }
  20653. else
  20654. { $as_echo "$as_me:$LINENO: result: no" >&5
  20655. $as_echo "no" >&6; }
  20656. fi
  20657. fi
  20658. if test -n "$KRB5_CONFIG_BIN" ; then
  20659. { $as_echo "$as_me:$LINENO: checking for kerberos with $KRB5_CONFIG_BIN" >&5
  20660. $as_echo_n "checking for kerberos with $KRB5_CONFIG_BIN... " >&6; }
  20661. if test -z "$kerberos_libdir" ; then
  20662. kerberos_lib=`$KRB5_CONFIG_BIN --libs krb5`
  20663. fi
  20664. if test -z "$kerberos_incdir" ; then
  20665. kerberos_inc=`$KRB5_CONFIG_BIN --cflags krb5`
  20666. fi
  20667. if test -n "$kerberos_lib" ; then
  20668. { $as_echo "$as_me:$LINENO: result: using kerberos found with $KRB5_CONFIG_BIN" >&5
  20669. $as_echo "using kerberos found with $KRB5_CONFIG_BIN" >&6; }
  20670. have_krb5=yes
  20671. fi
  20672. fi
  20673. fi
  20674. fi
  20675. if test -n "$with_kerberos" -a -z "$kerberos_lib" ; then
  20676. # save these in order to set them to use the check macros below
  20677. # like AC_CHECK_HEADERS, AC_CHECK_LIB, and AC_CHECK_FUNCS
  20678. save_CPPFLAGS="$CPPFLAGS"
  20679. if test -n "$kerberos_incdir" ; then
  20680. CPPFLAGS="-I$kerberos_incdir $CPPFLAGS"
  20681. fi
  20682. save_LDFLAGS="$LDFLAGS"
  20683. if test -n "$kerberos_libdir" ; then
  20684. LDFLAGS="-L$kerberos_libdir $LDFLAGS"
  20685. fi
  20686. krb5_impl=mit
  20687. for ac_header in heim_err.h
  20688. do
  20689. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20690. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20691. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  20692. $as_echo_n "checking for $ac_header... " >&6; }
  20693. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20694. $as_echo_n "(cached) " >&6
  20695. fi
  20696. ac_res=`eval 'as_val=${'$as_ac_Header'}
  20697. $as_echo "$as_val"'`
  20698. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20699. $as_echo "$ac_res" >&6; }
  20700. else
  20701. # Is the header compilable?
  20702. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  20703. $as_echo_n "checking $ac_header usability... " >&6; }
  20704. cat >conftest.$ac_ext <<_ACEOF
  20705. /* confdefs.h. */
  20706. _ACEOF
  20707. cat confdefs.h >>conftest.$ac_ext
  20708. cat >>conftest.$ac_ext <<_ACEOF
  20709. /* end confdefs.h. */
  20710. $ac_includes_default
  20711. #include <$ac_header>
  20712. _ACEOF
  20713. rm -f conftest.$ac_objext
  20714. if { (ac_try="$ac_compile"
  20715. case "(($ac_try" in
  20716. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20717. *) ac_try_echo=$ac_try;;
  20718. esac
  20719. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20720. $as_echo "$ac_try_echo") >&5
  20721. (eval "$ac_compile") 2>conftest.er1
  20722. ac_status=$?
  20723. grep -v '^ *+' conftest.er1 >conftest.err
  20724. rm -f conftest.er1
  20725. cat conftest.err >&5
  20726. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20727. (exit $ac_status); } && {
  20728. test -z "$ac_c_werror_flag" ||
  20729. test ! -s conftest.err
  20730. } && test -s conftest.$ac_objext; then
  20731. ac_header_compiler=yes
  20732. else
  20733. $as_echo "$as_me: failed program was:" >&5
  20734. sed 's/^/| /' conftest.$ac_ext >&5
  20735. ac_header_compiler=no
  20736. fi
  20737. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20738. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  20739. $as_echo "$ac_header_compiler" >&6; }
  20740. # Is the header present?
  20741. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  20742. $as_echo_n "checking $ac_header presence... " >&6; }
  20743. cat >conftest.$ac_ext <<_ACEOF
  20744. /* confdefs.h. */
  20745. _ACEOF
  20746. cat confdefs.h >>conftest.$ac_ext
  20747. cat >>conftest.$ac_ext <<_ACEOF
  20748. /* end confdefs.h. */
  20749. #include <$ac_header>
  20750. _ACEOF
  20751. if { (ac_try="$ac_cpp conftest.$ac_ext"
  20752. case "(($ac_try" in
  20753. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20754. *) ac_try_echo=$ac_try;;
  20755. esac
  20756. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20757. $as_echo "$ac_try_echo") >&5
  20758. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  20759. ac_status=$?
  20760. grep -v '^ *+' conftest.er1 >conftest.err
  20761. rm -f conftest.er1
  20762. cat conftest.err >&5
  20763. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20764. (exit $ac_status); } >/dev/null && {
  20765. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  20766. test ! -s conftest.err
  20767. }; then
  20768. ac_header_preproc=yes
  20769. else
  20770. $as_echo "$as_me: failed program was:" >&5
  20771. sed 's/^/| /' conftest.$ac_ext >&5
  20772. ac_header_preproc=no
  20773. fi
  20774. rm -f conftest.err conftest.$ac_ext
  20775. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  20776. $as_echo "$ac_header_preproc" >&6; }
  20777. # So? What about this header?
  20778. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  20779. yes:no: )
  20780. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  20781. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  20782. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  20783. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  20784. ac_header_preproc=yes
  20785. ;;
  20786. no:yes:* )
  20787. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  20788. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  20789. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  20790. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  20791. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  20792. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  20793. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  20794. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  20795. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  20796. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  20797. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  20798. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  20799. ( cat <<\_ASBOX
  20800. ## ------------------------------------------ ##
  20801. ## Report this to http://bugzilla.redhat.com/ ##
  20802. ## ------------------------------------------ ##
  20803. _ASBOX
  20804. ) | sed "s/^/$as_me: WARNING: /" >&2
  20805. ;;
  20806. esac
  20807. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  20808. $as_echo_n "checking for $ac_header... " >&6; }
  20809. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20810. $as_echo_n "(cached) " >&6
  20811. else
  20812. eval "$as_ac_Header=\$ac_header_preproc"
  20813. fi
  20814. ac_res=`eval 'as_val=${'$as_ac_Header'}
  20815. $as_echo "$as_val"'`
  20816. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20817. $as_echo "$ac_res" >&6; }
  20818. fi
  20819. as_val=`eval 'as_val=${'$as_ac_Header'}
  20820. $as_echo "$as_val"'`
  20821. if test "x$as_val" = x""yes; then
  20822. cat >>confdefs.h <<_ACEOF
  20823. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20824. _ACEOF
  20825. fi
  20826. done
  20827. if test $ac_cv_header_heim_err_h = yes ; then
  20828. krb5_impl=heimdal
  20829. fi
  20830. if test "x$krb5_impl" = "xmit"; then
  20831. { $as_echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
  20832. $as_echo_n "checking for main in -lk5crypto... " >&6; }
  20833. if test "${ac_cv_lib_k5crypto_main+set}" = set; then
  20834. $as_echo_n "(cached) " >&6
  20835. else
  20836. ac_check_lib_save_LIBS=$LIBS
  20837. LIBS="-lk5crypto $LIBS"
  20838. cat >conftest.$ac_ext <<_ACEOF
  20839. /* confdefs.h. */
  20840. _ACEOF
  20841. cat confdefs.h >>conftest.$ac_ext
  20842. cat >>conftest.$ac_ext <<_ACEOF
  20843. /* end confdefs.h. */
  20844. int
  20845. main ()
  20846. {
  20847. return main ();
  20848. ;
  20849. return 0;
  20850. }
  20851. _ACEOF
  20852. rm -f conftest.$ac_objext conftest$ac_exeext
  20853. if { (ac_try="$ac_link"
  20854. case "(($ac_try" in
  20855. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20856. *) ac_try_echo=$ac_try;;
  20857. esac
  20858. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20859. $as_echo "$ac_try_echo") >&5
  20860. (eval "$ac_link") 2>conftest.er1
  20861. ac_status=$?
  20862. grep -v '^ *+' conftest.er1 >conftest.err
  20863. rm -f conftest.er1
  20864. cat conftest.err >&5
  20865. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20866. (exit $ac_status); } && {
  20867. test -z "$ac_c_werror_flag" ||
  20868. test ! -s conftest.err
  20869. } && test -s conftest$ac_exeext && {
  20870. test "$cross_compiling" = yes ||
  20871. $as_test_x conftest$ac_exeext
  20872. }; then
  20873. ac_cv_lib_k5crypto_main=yes
  20874. else
  20875. $as_echo "$as_me: failed program was:" >&5
  20876. sed 's/^/| /' conftest.$ac_ext >&5
  20877. ac_cv_lib_k5crypto_main=no
  20878. fi
  20879. rm -rf conftest.dSYM
  20880. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20881. conftest$ac_exeext conftest.$ac_ext
  20882. LIBS=$ac_check_lib_save_LIBS
  20883. fi
  20884. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
  20885. $as_echo "$ac_cv_lib_k5crypto_main" >&6; }
  20886. if test "x$ac_cv_lib_k5crypto_main" = x""yes; then
  20887. krb5crypto=k5crypto
  20888. else
  20889. krb5crypto=crypto
  20890. fi
  20891. { $as_echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
  20892. $as_echo_n "checking for main in -lkrb5... " >&6; }
  20893. if test "${ac_cv_lib_krb5_main+set}" = set; then
  20894. $as_echo_n "(cached) " >&6
  20895. else
  20896. ac_check_lib_save_LIBS=$LIBS
  20897. LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
  20898. cat >conftest.$ac_ext <<_ACEOF
  20899. /* confdefs.h. */
  20900. _ACEOF
  20901. cat confdefs.h >>conftest.$ac_ext
  20902. cat >>conftest.$ac_ext <<_ACEOF
  20903. /* end confdefs.h. */
  20904. int
  20905. main ()
  20906. {
  20907. return main ();
  20908. ;
  20909. return 0;
  20910. }
  20911. _ACEOF
  20912. rm -f conftest.$ac_objext conftest$ac_exeext
  20913. if { (ac_try="$ac_link"
  20914. case "(($ac_try" in
  20915. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20916. *) ac_try_echo=$ac_try;;
  20917. esac
  20918. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20919. $as_echo "$ac_try_echo") >&5
  20920. (eval "$ac_link") 2>conftest.er1
  20921. ac_status=$?
  20922. grep -v '^ *+' conftest.er1 >conftest.err
  20923. rm -f conftest.er1
  20924. cat conftest.err >&5
  20925. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20926. (exit $ac_status); } && {
  20927. test -z "$ac_c_werror_flag" ||
  20928. test ! -s conftest.err
  20929. } && test -s conftest$ac_exeext && {
  20930. test "$cross_compiling" = yes ||
  20931. $as_test_x conftest$ac_exeext
  20932. }; then
  20933. ac_cv_lib_krb5_main=yes
  20934. else
  20935. $as_echo "$as_me: failed program was:" >&5
  20936. sed 's/^/| /' conftest.$ac_ext >&5
  20937. ac_cv_lib_krb5_main=no
  20938. fi
  20939. rm -rf conftest.dSYM
  20940. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20941. conftest$ac_exeext conftest.$ac_ext
  20942. LIBS=$ac_check_lib_save_LIBS
  20943. fi
  20944. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
  20945. $as_echo "$ac_cv_lib_krb5_main" >&6; }
  20946. if test "x$ac_cv_lib_krb5_main" = x""yes; then
  20947. have_krb5=yes
  20948. kerberos_lib="-lkrb5 -l$krb5crypto -lcom_err"
  20949. else
  20950. have_krb5=no
  20951. fi
  20952. elif test "x$krb5_impl" = "xheimdal"; then
  20953. { $as_echo "$as_me:$LINENO: checking for main in -ldes" >&5
  20954. $as_echo_n "checking for main in -ldes... " >&6; }
  20955. if test "${ac_cv_lib_des_main+set}" = set; then
  20956. $as_echo_n "(cached) " >&6
  20957. else
  20958. ac_check_lib_save_LIBS=$LIBS
  20959. LIBS="-ldes $LIBS"
  20960. cat >conftest.$ac_ext <<_ACEOF
  20961. /* confdefs.h. */
  20962. _ACEOF
  20963. cat confdefs.h >>conftest.$ac_ext
  20964. cat >>conftest.$ac_ext <<_ACEOF
  20965. /* end confdefs.h. */
  20966. int
  20967. main ()
  20968. {
  20969. return main ();
  20970. ;
  20971. return 0;
  20972. }
  20973. _ACEOF
  20974. rm -f conftest.$ac_objext conftest$ac_exeext
  20975. if { (ac_try="$ac_link"
  20976. case "(($ac_try" in
  20977. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20978. *) ac_try_echo=$ac_try;;
  20979. esac
  20980. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20981. $as_echo "$ac_try_echo") >&5
  20982. (eval "$ac_link") 2>conftest.er1
  20983. ac_status=$?
  20984. grep -v '^ *+' conftest.er1 >conftest.err
  20985. rm -f conftest.er1
  20986. cat conftest.err >&5
  20987. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20988. (exit $ac_status); } && {
  20989. test -z "$ac_c_werror_flag" ||
  20990. test ! -s conftest.err
  20991. } && test -s conftest$ac_exeext && {
  20992. test "$cross_compiling" = yes ||
  20993. $as_test_x conftest$ac_exeext
  20994. }; then
  20995. ac_cv_lib_des_main=yes
  20996. else
  20997. $as_echo "$as_me: failed program was:" >&5
  20998. sed 's/^/| /' conftest.$ac_ext >&5
  20999. ac_cv_lib_des_main=no
  21000. fi
  21001. rm -rf conftest.dSYM
  21002. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21003. conftest$ac_exeext conftest.$ac_ext
  21004. LIBS=$ac_check_lib_save_LIBS
  21005. fi
  21006. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
  21007. $as_echo "$ac_cv_lib_des_main" >&6; }
  21008. if test "x$ac_cv_lib_des_main" = x""yes; then
  21009. krb5crypto=des
  21010. else
  21011. krb5crypto=crypto
  21012. fi
  21013. { $as_echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
  21014. $as_echo_n "checking for main in -lkrb5... " >&6; }
  21015. if test "${ac_cv_lib_krb5_main+set}" = set; then
  21016. $as_echo_n "(cached) " >&6
  21017. else
  21018. ac_check_lib_save_LIBS=$LIBS
  21019. LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
  21020. cat >conftest.$ac_ext <<_ACEOF
  21021. /* confdefs.h. */
  21022. _ACEOF
  21023. cat confdefs.h >>conftest.$ac_ext
  21024. cat >>conftest.$ac_ext <<_ACEOF
  21025. /* end confdefs.h. */
  21026. int
  21027. main ()
  21028. {
  21029. return main ();
  21030. ;
  21031. return 0;
  21032. }
  21033. _ACEOF
  21034. rm -f conftest.$ac_objext conftest$ac_exeext
  21035. if { (ac_try="$ac_link"
  21036. case "(($ac_try" in
  21037. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21038. *) ac_try_echo=$ac_try;;
  21039. esac
  21040. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21041. $as_echo "$ac_try_echo") >&5
  21042. (eval "$ac_link") 2>conftest.er1
  21043. ac_status=$?
  21044. grep -v '^ *+' conftest.er1 >conftest.err
  21045. rm -f conftest.er1
  21046. cat conftest.err >&5
  21047. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21048. (exit $ac_status); } && {
  21049. test -z "$ac_c_werror_flag" ||
  21050. test ! -s conftest.err
  21051. } && test -s conftest$ac_exeext && {
  21052. test "$cross_compiling" = yes ||
  21053. $as_test_x conftest$ac_exeext
  21054. }; then
  21055. ac_cv_lib_krb5_main=yes
  21056. else
  21057. $as_echo "$as_me: failed program was:" >&5
  21058. sed 's/^/| /' conftest.$ac_ext >&5
  21059. ac_cv_lib_krb5_main=no
  21060. fi
  21061. rm -rf conftest.dSYM
  21062. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21063. conftest$ac_exeext conftest.$ac_ext
  21064. LIBS=$ac_check_lib_save_LIBS
  21065. fi
  21066. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
  21067. $as_echo "$ac_cv_lib_krb5_main" >&6; }
  21068. if test "x$ac_cv_lib_krb5_main" = x""yes; then
  21069. have_krb5=yes
  21070. kerberos_lib="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
  21071. else
  21072. have_krb5=no
  21073. fi
  21074. cat >>confdefs.h <<\_ACEOF
  21075. #define HAVE_HEIMDAL_KERBEROS 1
  21076. _ACEOF
  21077. else
  21078. have_krb5=no
  21079. { $as_echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
  21080. $as_echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
  21081. fi
  21082. # reset to original values
  21083. CPPFLAGS="$save_CPPFLAGS"
  21084. LDFLAGS="$save_LDFLAGS"
  21085. if test -n "$kerberos_incdir" ; then
  21086. kerberos_inc="-I$kerberos_incdir"
  21087. fi
  21088. if test -n "$kerberos_libdir" ; then
  21089. kerberos_lib="-L$kerberos_libdir $kerberos_lib"
  21090. fi
  21091. fi
  21092. if test -n "$with_kerberos" ; then
  21093. if test "x$have_krb5" = "xyes" ; then
  21094. cat >>confdefs.h <<\_ACEOF
  21095. #define HAVE_KRB5 1
  21096. _ACEOF
  21097. else
  21098. { { $as_echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
  21099. $as_echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
  21100. { (exit 1); exit 1; }; }
  21101. fi
  21102. save_LIBS="$LIBS"
  21103. LIBS="$kerberos_lib"
  21104. save_CPPFLAGS="$CPPFLAGS"
  21105. CPPFLAGS="$kerberos_inc $CPPFLAGS"
  21106. for ac_func in krb5_cc_new_unique
  21107. do
  21108. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21109. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  21110. $as_echo_n "checking for $ac_func... " >&6; }
  21111. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  21112. $as_echo_n "(cached) " >&6
  21113. else
  21114. cat >conftest.$ac_ext <<_ACEOF
  21115. /* confdefs.h. */
  21116. _ACEOF
  21117. cat confdefs.h >>conftest.$ac_ext
  21118. cat >>conftest.$ac_ext <<_ACEOF
  21119. /* end confdefs.h. */
  21120. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  21121. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21122. #define $ac_func innocuous_$ac_func
  21123. /* System header to define __stub macros and hopefully few prototypes,
  21124. which can conflict with char $ac_func (); below.
  21125. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21126. <limits.h> exists even on freestanding compilers. */
  21127. #ifdef __STDC__
  21128. # include <limits.h>
  21129. #else
  21130. # include <assert.h>
  21131. #endif
  21132. #undef $ac_func
  21133. /* Override any GCC internal prototype to avoid an error.
  21134. Use char because int might match the return type of a GCC
  21135. builtin and then its argument prototype would still apply. */
  21136. #ifdef __cplusplus
  21137. extern "C"
  21138. #endif
  21139. char $ac_func ();
  21140. /* The GNU C library defines this for functions which it implements
  21141. to always fail with ENOSYS. Some functions are actually named
  21142. something starting with __ and the normal name is an alias. */
  21143. #if defined __stub_$ac_func || defined __stub___$ac_func
  21144. choke me
  21145. #endif
  21146. int
  21147. main ()
  21148. {
  21149. return $ac_func ();
  21150. ;
  21151. return 0;
  21152. }
  21153. _ACEOF
  21154. rm -f conftest.$ac_objext conftest$ac_exeext
  21155. if { (ac_try="$ac_link"
  21156. case "(($ac_try" in
  21157. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21158. *) ac_try_echo=$ac_try;;
  21159. esac
  21160. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21161. $as_echo "$ac_try_echo") >&5
  21162. (eval "$ac_link") 2>conftest.er1
  21163. ac_status=$?
  21164. grep -v '^ *+' conftest.er1 >conftest.err
  21165. rm -f conftest.er1
  21166. cat conftest.err >&5
  21167. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21168. (exit $ac_status); } && {
  21169. test -z "$ac_c_werror_flag" ||
  21170. test ! -s conftest.err
  21171. } && test -s conftest$ac_exeext && {
  21172. test "$cross_compiling" = yes ||
  21173. $as_test_x conftest$ac_exeext
  21174. }; then
  21175. eval "$as_ac_var=yes"
  21176. else
  21177. $as_echo "$as_me: failed program was:" >&5
  21178. sed 's/^/| /' conftest.$ac_ext >&5
  21179. eval "$as_ac_var=no"
  21180. fi
  21181. rm -rf conftest.dSYM
  21182. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21183. conftest$ac_exeext conftest.$ac_ext
  21184. fi
  21185. ac_res=`eval 'as_val=${'$as_ac_var'}
  21186. $as_echo "$as_val"'`
  21187. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  21188. $as_echo "$ac_res" >&6; }
  21189. as_val=`eval 'as_val=${'$as_ac_var'}
  21190. $as_echo "$as_val"'`
  21191. if test "x$as_val" = x""yes; then
  21192. cat >>confdefs.h <<_ACEOF
  21193. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21194. _ACEOF
  21195. fi
  21196. done
  21197. LIBS="$save_LIBS"
  21198. CPPFLAGS="$save_CPPFLAGS"
  21199. fi
  21200. # BEGIN COPYRIGHT BLOCK
  21201. # Copyright (C) 2007 Red Hat, Inc.
  21202. # All rights reserved.
  21203. #
  21204. # This program is free software; you can redistribute it and/or
  21205. # modify it under the terms of the GNU General Public License
  21206. # as published by the Free Software Foundation; either version 2
  21207. # of the License, or (at your option) any later version.
  21208. #
  21209. # This program is distributed in the hope that it will be useful,
  21210. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21211. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21212. # GNU General Public License for more details.
  21213. #
  21214. # You should have received a copy of the GNU General Public License
  21215. # along with this program; if not, write to the Free Software
  21216. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21217. #
  21218. # END COPYRIGHT BLOCK
  21219. { $as_echo "$as_me:$LINENO: checking for PCRE..." >&5
  21220. $as_echo "$as_me: checking for PCRE..." >&6;}
  21221. { $as_echo "$as_me:$LINENO: checking for --with-pcre" >&5
  21222. $as_echo_n "checking for --with-pcre... " >&6; }
  21223. # Check whether --with-pcre was given.
  21224. if test "${with_pcre+set}" = set; then
  21225. withval=$with_pcre;
  21226. if test "$withval" = "yes"; then
  21227. { $as_echo "$as_me:$LINENO: result: yes" >&5
  21228. $as_echo "yes" >&6; }
  21229. elif test "$withval" = "no"; then
  21230. { $as_echo "$as_me:$LINENO: result: no" >&5
  21231. $as_echo "no" >&6; }
  21232. { { $as_echo "$as_me:$LINENO: error: PCRE is required." >&5
  21233. $as_echo "$as_me: error: PCRE is required." >&2;}
  21234. { (exit 1); exit 1; }; }
  21235. elif test -d "$withval"/include -a -d "$withval"/lib; then
  21236. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  21237. $as_echo "using $withval" >&6; }
  21238. PCREDIR=$withval
  21239. pcre_lib="-L$PCREDIR/lib"
  21240. pcre_libdir="$PCREDIR/lib"
  21241. pcre_incdir="$PCREDIR/include"
  21242. if ! test -e "$pcre_incdir/pcre.h" ; then
  21243. { { $as_echo "$as_me:$LINENO: error: $withval include dir not found" >&5
  21244. $as_echo "$as_me: error: $withval include dir not found" >&2;}
  21245. { (exit 1); exit 1; }; }
  21246. fi
  21247. pcre_inc="-I$pcre_incdir"
  21248. else
  21249. echo
  21250. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  21251. $as_echo "$as_me: error: $withval not found" >&2;}
  21252. { (exit 1); exit 1; }; }
  21253. fi
  21254. else
  21255. { $as_echo "$as_me:$LINENO: result: yes" >&5
  21256. $as_echo "yes" >&6; }
  21257. fi
  21258. #
  21259. # if PCRE is not found yet, try pkg-config
  21260. if test -z "$pcre_inc" -o -z "$pcre_lib" -o -z "$pcre_libdir"; then
  21261. # Extract the first word of "pkg-config", so it can be a program name with args.
  21262. set dummy pkg-config; ac_word=$2
  21263. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  21264. $as_echo_n "checking for $ac_word... " >&6; }
  21265. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  21266. $as_echo_n "(cached) " >&6
  21267. else
  21268. case $PKG_CONFIG in
  21269. [\\/]* | ?:[\\/]*)
  21270. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  21271. ;;
  21272. *)
  21273. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21274. for as_dir in $PATH
  21275. do
  21276. IFS=$as_save_IFS
  21277. test -z "$as_dir" && as_dir=.
  21278. for ac_exec_ext in '' $ac_executable_extensions; do
  21279. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21280. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  21281. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21282. break 2
  21283. fi
  21284. done
  21285. done
  21286. IFS=$as_save_IFS
  21287. ;;
  21288. esac
  21289. fi
  21290. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  21291. if test -n "$PKG_CONFIG"; then
  21292. { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  21293. $as_echo "$PKG_CONFIG" >&6; }
  21294. else
  21295. { $as_echo "$as_me:$LINENO: result: no" >&5
  21296. $as_echo "no" >&6; }
  21297. fi
  21298. { $as_echo "$as_me:$LINENO: checking for pcre with pkg-config" >&5
  21299. $as_echo_n "checking for pcre with pkg-config... " >&6; }
  21300. if test -n "$PKG_CONFIG"; then
  21301. if $PKG_CONFIG --exists pcre; then
  21302. pcre_inc=`$PKG_CONFIG --cflags-only-I pcre`
  21303. pcre_lib=`$PKG_CONFIG --libs-only-L pcre`
  21304. pcre_libdir=`$PKG_CONFIG --libs-only-L pcre | sed -e s/-L// | sed -e s/\ .*$//`
  21305. { $as_echo "$as_me:$LINENO: result: using system PCRE" >&5
  21306. $as_echo "using system PCRE" >&6; }
  21307. elif $PKG_CONFIG --exists libpcre; then
  21308. pcre_inc=`$PKG_CONFIG --cflags-only-I libpcre`
  21309. pcre_lib=`$PKG_CONFIG --libs-only-L libpcre`
  21310. pcre_libdir=`$PKG_CONFIG --libs-only-L libpcre | sed -e s/-L// | sed -e s/\ .*$//`
  21311. { $as_echo "$as_me:$LINENO: result: using system PCRE" >&5
  21312. $as_echo "using system PCRE" >&6; }
  21313. else
  21314. { { $as_echo "$as_me:$LINENO: error: PCRE not found, specify with --with-pcre." >&5
  21315. $as_echo "$as_me: error: PCRE not found, specify with --with-pcre." >&2;}
  21316. { (exit 1); exit 1; }; }
  21317. fi
  21318. fi
  21319. fi
  21320. if test -z "$pcre_inc"; then
  21321. { $as_echo "$as_me:$LINENO: checking for pcre.h" >&5
  21322. $as_echo_n "checking for pcre.h... " >&6; }
  21323. if test -f "/usr/include/pcre/pcre.h"; then
  21324. { $as_echo "$as_me:$LINENO: result: using /usr/include/pcre/pcre.h" >&5
  21325. $as_echo "using /usr/include/pcre/pcre.h" >&6; }
  21326. pcre_incdir="/usr/include/pcre"
  21327. pcre_inc="-I/usr/include/pcre"
  21328. pcre_lib='-L$(libdir)'
  21329. pcre_libdir='$(libdir)'
  21330. elif test -f "/usr/include/pcre.h"; then
  21331. { $as_echo "$as_me:$LINENO: result: using /usr/include/pcre.h" >&5
  21332. $as_echo "using /usr/include/pcre.h" >&6; }
  21333. pcre_incdir="/usr/include"
  21334. pcre_inc="-I/usr/include"
  21335. pcre_lib='-L$(libdir)'
  21336. pcre_libdir='$(libdir)'
  21337. else
  21338. { $as_echo "$as_me:$LINENO: result: no" >&5
  21339. $as_echo "no" >&6; }
  21340. { { $as_echo "$as_me:$LINENO: error: PCRE not found, specify with --with-pcre." >&5
  21341. $as_echo "$as_me: error: PCRE not found, specify with --with-pcre." >&2;}
  21342. { (exit 1); exit 1; }; }
  21343. fi
  21344. fi
  21345. # BEGIN COPYRIGHT BLOCK
  21346. # Copyright (C) 2009 Red Hat, Inc.
  21347. # All rights reserved.
  21348. #
  21349. # This program is free software; you can redistribute it and/or
  21350. # modify it under the terms of the GNU General Public License
  21351. # as published by the Free Software Foundation; either version 2
  21352. # of the License, or (at your option) any later version.
  21353. #
  21354. # This program is distributed in the hope that it will be useful,
  21355. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21356. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21357. # GNU General Public License for more details.
  21358. #
  21359. # You should have received a copy of the GNU General Public License
  21360. # along with this program; if not, write to the Free Software
  21361. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21362. #
  21363. # END COPYRIGHT BLOCK
  21364. { $as_echo "$as_me:$LINENO: checking for SELinux..." >&5
  21365. $as_echo "$as_me: checking for SELinux..." >&6;}
  21366. # check for --with-selinux
  21367. { $as_echo "$as_me:$LINENO: checking for --with-selinux" >&5
  21368. $as_echo_n "checking for --with-selinux... " >&6; }
  21369. # Check whether --with-selinux was given.
  21370. if test "${with_selinux+set}" = set; then
  21371. withval=$with_selinux;
  21372. if test "$withval" = "no"; then
  21373. { $as_echo "$as_me:$LINENO: result: no" >&5
  21374. $as_echo "no" >&6; }
  21375. else
  21376. with_selinux=yes
  21377. { $as_echo "$as_me:$LINENO: result: yes" >&5
  21378. $as_echo "yes" >&6; }
  21379. fi
  21380. else
  21381. { $as_echo "$as_me:$LINENO: result: no" >&5
  21382. $as_echo "no" >&6; }
  21383. fi
  21384. PACKAGE_BASE_VERSION=`echo $PACKAGE_VERSION | awk -F\. '{print $1"."$2}'`
  21385. # set sasl_path for wrapper scripts
  21386. if test -z "$sasl_libdir" ; then
  21387. sasl_path="$libdir/sasl2"
  21388. else
  21389. sasl_path="$sasl_libdir/sasl2"
  21390. fi
  21391. if test "$with_selinux" = "yes"; then
  21392. SELINUX_TRUE=
  21393. SELINUX_FALSE='#'
  21394. else
  21395. SELINUX_TRUE='#'
  21396. SELINUX_FALSE=
  21397. fi
  21398. if test "$with_openldap" = "yes"; then
  21399. OPENLDAP_TRUE=
  21400. OPENLDAP_FALSE='#'
  21401. else
  21402. OPENLDAP_TRUE='#'
  21403. OPENLDAP_FALSE=
  21404. fi
  21405. # write out paths for binary components
  21406. cat >>confdefs.h <<\_ACEOF
  21407. #define LDAP_DEBUG 1
  21408. _ACEOF
  21409. cat >>confdefs.h <<\_ACEOF
  21410. #define LDAP_DONT_USE_SMARTHEAP 1
  21411. _ACEOF
  21412. # libtool on fedora/rhel contains some gcc-isms which cause problems
  21413. # if not using gcc (e.g. Forte on Solaris, aCC on HP-UX)
  21414. # we remove them here
  21415. if test "$GCC" != yes ; then
  21416. { $as_echo "$as_me:$LINENO: Not using gcc - fixing libtool to remove gcc-isms . . ." >&5
  21417. $as_echo "$as_me: Not using gcc - fixing libtool to remove gcc-isms . . ." >&6;}
  21418. cp -p libtool libtool.orig
  21419. cp -p libtool libtool.tmp
  21420. # dnl note the special chars [ and ] - since m4 treats [ and ] specially,
  21421. # we have to use the quadrigraph [ for [ and ] for ] - and you thought
  21422. # perl produced write-only code . . .
  21423. sed -e '/^gcc_dir/ d' \
  21424. -e '/^gcc_ver/ d' \
  21425. -e 's/^predep_objects=.*echo \("[^"]*"\).*$/predep_objects=\1/' \
  21426. -e 's/^postdep_objects=.*echo \("[^"]*"\).*$/postdep_objects=\1/' \
  21427. -e 's/^compiler_lib_search_path=.*echo \("[^"]*"\).*$/compiler_lib_search_path=\1/' \
  21428. -e 's/^sys_lib_search_path_spec=.*echo \("[^"]*"\).*$/sys_lib_search_path_spec=\1/' \
  21429. libtool > libtool.tmp
  21430. cp -p libtool.tmp libtool
  21431. rm -f libtool.tmp
  21432. fi
  21433. ac_config_files="$ac_config_files Makefile"
  21434. cat >confcache <<\_ACEOF
  21435. # This file is a shell script that caches the results of configure
  21436. # tests run on this system so they can be shared between configure
  21437. # scripts and configure runs, see configure's option --config-cache.
  21438. # It is not useful on other systems. If it contains results you don't
  21439. # want to keep, you may remove or edit it.
  21440. #
  21441. # config.status only pays attention to the cache file if you give it
  21442. # the --recheck option to rerun configure.
  21443. #
  21444. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  21445. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  21446. # following values.
  21447. _ACEOF
  21448. # The following way of writing the cache mishandles newlines in values,
  21449. # but we know of no workaround that is simple, portable, and efficient.
  21450. # So, we kill variables containing newlines.
  21451. # Ultrix sh set writes to stderr and can't be redirected directly,
  21452. # and sets the high bit in the cache file unless we assign to the vars.
  21453. (
  21454. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  21455. eval ac_val=\$$ac_var
  21456. case $ac_val in #(
  21457. *${as_nl}*)
  21458. case $ac_var in #(
  21459. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  21460. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  21461. esac
  21462. case $ac_var in #(
  21463. _ | IFS | as_nl) ;; #(
  21464. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  21465. *) $as_unset $ac_var ;;
  21466. esac ;;
  21467. esac
  21468. done
  21469. (set) 2>&1 |
  21470. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  21471. *${as_nl}ac_space=\ *)
  21472. # `set' does not quote correctly, so add quotes (double-quote
  21473. # substitution turns \\\\ into \\, and sed turns \\ into \).
  21474. sed -n \
  21475. "s/'/'\\\\''/g;
  21476. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  21477. ;; #(
  21478. *)
  21479. # `set' quotes correctly as required by POSIX, so do not add quotes.
  21480. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  21481. ;;
  21482. esac |
  21483. sort
  21484. ) |
  21485. sed '
  21486. /^ac_cv_env_/b end
  21487. t clear
  21488. :clear
  21489. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  21490. t end
  21491. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  21492. :end' >>confcache
  21493. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  21494. if test -w "$cache_file"; then
  21495. test "x$cache_file" != "x/dev/null" &&
  21496. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  21497. $as_echo "$as_me: updating cache $cache_file" >&6;}
  21498. cat confcache >$cache_file
  21499. else
  21500. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  21501. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  21502. fi
  21503. fi
  21504. rm -f confcache
  21505. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  21506. # Let make expand exec_prefix.
  21507. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  21508. DEFS=-DHAVE_CONFIG_H
  21509. ac_libobjs=
  21510. ac_ltlibobjs=
  21511. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  21512. # 1. Remove the extension, and $U if already installed.
  21513. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  21514. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  21515. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  21516. # will be set to the directory where LIBOBJS objects are built.
  21517. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  21518. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  21519. done
  21520. LIBOBJS=$ac_libobjs
  21521. LTLIBOBJS=$ac_ltlibobjs
  21522. if test -n "$EXEEXT"; then
  21523. am__EXEEXT_TRUE=
  21524. am__EXEEXT_FALSE='#'
  21525. else
  21526. am__EXEEXT_TRUE='#'
  21527. am__EXEEXT_FALSE=
  21528. fi
  21529. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  21530. { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  21531. Usually this means the macro was only invoked conditionally." >&5
  21532. $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  21533. Usually this means the macro was only invoked conditionally." >&2;}
  21534. { (exit 1); exit 1; }; }
  21535. fi
  21536. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  21537. { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  21538. Usually this means the macro was only invoked conditionally." >&5
  21539. $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
  21540. Usually this means the macro was only invoked conditionally." >&2;}
  21541. { (exit 1); exit 1; }; }
  21542. fi
  21543. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  21544. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  21545. Usually this means the macro was only invoked conditionally." >&5
  21546. $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  21547. Usually this means the macro was only invoked conditionally." >&2;}
  21548. { (exit 1); exit 1; }; }
  21549. fi
  21550. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  21551. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  21552. Usually this means the macro was only invoked conditionally." >&5
  21553. $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  21554. Usually this means the macro was only invoked conditionally." >&2;}
  21555. { (exit 1); exit 1; }; }
  21556. fi
  21557. if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  21558. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
  21559. Usually this means the macro was only invoked conditionally." >&5
  21560. $as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
  21561. Usually this means the macro was only invoked conditionally." >&2;}
  21562. { (exit 1); exit 1; }; }
  21563. fi
  21564. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  21565. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  21566. Usually this means the macro was only invoked conditionally." >&5
  21567. $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  21568. Usually this means the macro was only invoked conditionally." >&2;}
  21569. { (exit 1); exit 1; }; }
  21570. fi
  21571. if test -z "${BUNDLE_TRUE}" && test -z "${BUNDLE_FALSE}"; then
  21572. { { $as_echo "$as_me:$LINENO: error: conditional \"BUNDLE\" was never defined.
  21573. Usually this means the macro was only invoked conditionally." >&5
  21574. $as_echo "$as_me: error: conditional \"BUNDLE\" was never defined.
  21575. Usually this means the macro was only invoked conditionally." >&2;}
  21576. { (exit 1); exit 1; }; }
  21577. fi
  21578. if test -z "${enable_pam_passthru_TRUE}" && test -z "${enable_pam_passthru_FALSE}"; then
  21579. { { $as_echo "$as_me:$LINENO: error: conditional \"enable_pam_passthru\" was never defined.
  21580. Usually this means the macro was only invoked conditionally." >&5
  21581. $as_echo "$as_me: error: conditional \"enable_pam_passthru\" was never defined.
  21582. Usually this means the macro was only invoked conditionally." >&2;}
  21583. { (exit 1); exit 1; }; }
  21584. fi
  21585. if test -z "${enable_dna_TRUE}" && test -z "${enable_dna_FALSE}"; then
  21586. { { $as_echo "$as_me:$LINENO: error: conditional \"enable_dna\" was never defined.
  21587. Usually this means the macro was only invoked conditionally." >&5
  21588. $as_echo "$as_me: error: conditional \"enable_dna\" was never defined.
  21589. Usually this means the macro was only invoked conditionally." >&2;}
  21590. { (exit 1); exit 1; }; }
  21591. fi
  21592. if test -z "${enable_ldapi_TRUE}" && test -z "${enable_ldapi_FALSE}"; then
  21593. { { $as_echo "$as_me:$LINENO: error: conditional \"enable_ldapi\" was never defined.
  21594. Usually this means the macro was only invoked conditionally." >&5
  21595. $as_echo "$as_me: error: conditional \"enable_ldapi\" was never defined.
  21596. Usually this means the macro was only invoked conditionally." >&2;}
  21597. { (exit 1); exit 1; }; }
  21598. fi
  21599. if test -z "${enable_autobind_TRUE}" && test -z "${enable_autobind_FALSE}"; then
  21600. { { $as_echo "$as_me:$LINENO: error: conditional \"enable_autobind\" was never defined.
  21601. Usually this means the macro was only invoked conditionally." >&5
  21602. $as_echo "$as_me: error: conditional \"enable_autobind\" was never defined.
  21603. Usually this means the macro was only invoked conditionally." >&2;}
  21604. { (exit 1); exit 1; }; }
  21605. fi
  21606. if test -z "${enable_auto_dn_suffix_TRUE}" && test -z "${enable_auto_dn_suffix_FALSE}"; then
  21607. { { $as_echo "$as_me:$LINENO: error: conditional \"enable_auto_dn_suffix\" was never defined.
  21608. Usually this means the macro was only invoked conditionally." >&5
  21609. $as_echo "$as_me: error: conditional \"enable_auto_dn_suffix\" was never defined.
  21610. Usually this means the macro was only invoked conditionally." >&2;}
  21611. { (exit 1); exit 1; }; }
  21612. fi
  21613. if test -z "${enable_bitwise_TRUE}" && test -z "${enable_bitwise_FALSE}"; then
  21614. { { $as_echo "$as_me:$LINENO: error: conditional \"enable_bitwise\" was never defined.
  21615. Usually this means the macro was only invoked conditionally." >&5
  21616. $as_echo "$as_me: error: conditional \"enable_bitwise\" was never defined.
  21617. Usually this means the macro was only invoked conditionally." >&2;}
  21618. { (exit 1); exit 1; }; }
  21619. fi
  21620. if test -z "${enable_presence_TRUE}" && test -z "${enable_presence_FALSE}"; then
  21621. { { $as_echo "$as_me:$LINENO: error: conditional \"enable_presence\" was never defined.
  21622. Usually this means the macro was only invoked conditionally." >&5
  21623. $as_echo "$as_me: error: conditional \"enable_presence\" was never defined.
  21624. Usually this means the macro was only invoked conditionally." >&2;}
  21625. { (exit 1); exit 1; }; }
  21626. fi
  21627. if test -z "${enable_acctpolicy_TRUE}" && test -z "${enable_acctpolicy_FALSE}"; then
  21628. { { $as_echo "$as_me:$LINENO: error: conditional \"enable_acctpolicy\" was never defined.
  21629. Usually this means the macro was only invoked conditionally." >&5
  21630. $as_echo "$as_me: error: conditional \"enable_acctpolicy\" was never defined.
  21631. Usually this means the macro was only invoked conditionally." >&2;}
  21632. { (exit 1); exit 1; }; }
  21633. fi
  21634. if test -z "${WINNT_TRUE}" && test -z "${WINNT_FALSE}"; then
  21635. { { $as_echo "$as_me:$LINENO: error: conditional \"WINNT\" was never defined.
  21636. Usually this means the macro was only invoked conditionally." >&5
  21637. $as_echo "$as_me: error: conditional \"WINNT\" was never defined.
  21638. Usually this means the macro was only invoked conditionally." >&2;}
  21639. { (exit 1); exit 1; }; }
  21640. fi
  21641. if test -z "${HPUX_TRUE}" && test -z "${HPUX_FALSE}"; then
  21642. { { $as_echo "$as_me:$LINENO: error: conditional \"HPUX\" was never defined.
  21643. Usually this means the macro was only invoked conditionally." >&5
  21644. $as_echo "$as_me: error: conditional \"HPUX\" was never defined.
  21645. Usually this means the macro was only invoked conditionally." >&2;}
  21646. { (exit 1); exit 1; }; }
  21647. fi
  21648. if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
  21649. { { $as_echo "$as_me:$LINENO: error: conditional \"SOLARIS\" was never defined.
  21650. Usually this means the macro was only invoked conditionally." >&5
  21651. $as_echo "$as_me: error: conditional \"SOLARIS\" was never defined.
  21652. Usually this means the macro was only invoked conditionally." >&2;}
  21653. { (exit 1); exit 1; }; }
  21654. fi
  21655. if test -z "${SELINUX_TRUE}" && test -z "${SELINUX_FALSE}"; then
  21656. { { $as_echo "$as_me:$LINENO: error: conditional \"SELINUX\" was never defined.
  21657. Usually this means the macro was only invoked conditionally." >&5
  21658. $as_echo "$as_me: error: conditional \"SELINUX\" was never defined.
  21659. Usually this means the macro was only invoked conditionally." >&2;}
  21660. { (exit 1); exit 1; }; }
  21661. fi
  21662. if test -z "${OPENLDAP_TRUE}" && test -z "${OPENLDAP_FALSE}"; then
  21663. { { $as_echo "$as_me:$LINENO: error: conditional \"OPENLDAP\" was never defined.
  21664. Usually this means the macro was only invoked conditionally." >&5
  21665. $as_echo "$as_me: error: conditional \"OPENLDAP\" was never defined.
  21666. Usually this means the macro was only invoked conditionally." >&2;}
  21667. { (exit 1); exit 1; }; }
  21668. fi
  21669. : ${CONFIG_STATUS=./config.status}
  21670. ac_write_fail=0
  21671. ac_clean_files_save=$ac_clean_files
  21672. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  21673. { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  21674. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  21675. cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21676. #! $SHELL
  21677. # Generated by $as_me.
  21678. # Run this file to recreate the current configuration.
  21679. # Compiler output produced by configure, useful for debugging
  21680. # configure, is in config.log if it exists.
  21681. debug=false
  21682. ac_cs_recheck=false
  21683. ac_cs_silent=false
  21684. SHELL=\${CONFIG_SHELL-$SHELL}
  21685. _ACEOF
  21686. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21687. ## --------------------- ##
  21688. ## M4sh Initialization. ##
  21689. ## --------------------- ##
  21690. # Be more Bourne compatible
  21691. DUALCASE=1; export DUALCASE # for MKS sh
  21692. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  21693. emulate sh
  21694. NULLCMD=:
  21695. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  21696. # is contrary to our usage. Disable this feature.
  21697. alias -g '${1+"$@"}'='"$@"'
  21698. setopt NO_GLOB_SUBST
  21699. else
  21700. case `(set -o) 2>/dev/null` in
  21701. *posix*) set -o posix ;;
  21702. esac
  21703. fi
  21704. # PATH needs CR
  21705. # Avoid depending upon Character Ranges.
  21706. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  21707. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  21708. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  21709. as_cr_digits='0123456789'
  21710. as_cr_alnum=$as_cr_Letters$as_cr_digits
  21711. as_nl='
  21712. '
  21713. export as_nl
  21714. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  21715. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  21716. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  21717. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  21718. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  21719. as_echo='printf %s\n'
  21720. as_echo_n='printf %s'
  21721. else
  21722. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  21723. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  21724. as_echo_n='/usr/ucb/echo -n'
  21725. else
  21726. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  21727. as_echo_n_body='eval
  21728. arg=$1;
  21729. case $arg in
  21730. *"$as_nl"*)
  21731. expr "X$arg" : "X\\(.*\\)$as_nl";
  21732. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  21733. esac;
  21734. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  21735. '
  21736. export as_echo_n_body
  21737. as_echo_n='sh -c $as_echo_n_body as_echo'
  21738. fi
  21739. export as_echo_body
  21740. as_echo='sh -c $as_echo_body as_echo'
  21741. fi
  21742. # The user is always right.
  21743. if test "${PATH_SEPARATOR+set}" != set; then
  21744. PATH_SEPARATOR=:
  21745. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  21746. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  21747. PATH_SEPARATOR=';'
  21748. }
  21749. fi
  21750. # Support unset when possible.
  21751. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  21752. as_unset=unset
  21753. else
  21754. as_unset=false
  21755. fi
  21756. # IFS
  21757. # We need space, tab and new line, in precisely that order. Quoting is
  21758. # there to prevent editors from complaining about space-tab.
  21759. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  21760. # splitting by setting IFS to empty value.)
  21761. IFS=" "" $as_nl"
  21762. # Find who we are. Look in the path if we contain no directory separator.
  21763. case $0 in
  21764. *[\\/]* ) as_myself=$0 ;;
  21765. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21766. for as_dir in $PATH
  21767. do
  21768. IFS=$as_save_IFS
  21769. test -z "$as_dir" && as_dir=.
  21770. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  21771. done
  21772. IFS=$as_save_IFS
  21773. ;;
  21774. esac
  21775. # We did not find ourselves, most probably we were run as `sh COMMAND'
  21776. # in which case we are not to be found in the path.
  21777. if test "x$as_myself" = x; then
  21778. as_myself=$0
  21779. fi
  21780. if test ! -f "$as_myself"; then
  21781. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  21782. { (exit 1); exit 1; }
  21783. fi
  21784. # Work around bugs in pre-3.0 UWIN ksh.
  21785. for as_var in ENV MAIL MAILPATH
  21786. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  21787. done
  21788. PS1='$ '
  21789. PS2='> '
  21790. PS4='+ '
  21791. # NLS nuisances.
  21792. LC_ALL=C
  21793. export LC_ALL
  21794. LANGUAGE=C
  21795. export LANGUAGE
  21796. # Required to use basename.
  21797. if expr a : '\(a\)' >/dev/null 2>&1 &&
  21798. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  21799. as_expr=expr
  21800. else
  21801. as_expr=false
  21802. fi
  21803. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  21804. as_basename=basename
  21805. else
  21806. as_basename=false
  21807. fi
  21808. # Name of the executable.
  21809. as_me=`$as_basename -- "$0" ||
  21810. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  21811. X"$0" : 'X\(//\)$' \| \
  21812. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  21813. $as_echo X/"$0" |
  21814. sed '/^.*\/\([^/][^/]*\)\/*$/{
  21815. s//\1/
  21816. q
  21817. }
  21818. /^X\/\(\/\/\)$/{
  21819. s//\1/
  21820. q
  21821. }
  21822. /^X\/\(\/\).*/{
  21823. s//\1/
  21824. q
  21825. }
  21826. s/.*/./; q'`
  21827. # CDPATH.
  21828. $as_unset CDPATH
  21829. as_lineno_1=$LINENO
  21830. as_lineno_2=$LINENO
  21831. test "x$as_lineno_1" != "x$as_lineno_2" &&
  21832. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  21833. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  21834. # uniformly replaced by the line number. The first 'sed' inserts a
  21835. # line-number line after each line using $LINENO; the second 'sed'
  21836. # does the real work. The second script uses 'N' to pair each
  21837. # line-number line with the line containing $LINENO, and appends
  21838. # trailing '-' during substitution so that $LINENO is not a special
  21839. # case at line end.
  21840. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  21841. # scripts with optimization help from Paolo Bonzini. Blame Lee
  21842. # E. McMahon (1931-1989) for sed's syntax. :-)
  21843. sed -n '
  21844. p
  21845. /[$]LINENO/=
  21846. ' <$as_myself |
  21847. sed '
  21848. s/[$]LINENO.*/&-/
  21849. t lineno
  21850. b
  21851. :lineno
  21852. N
  21853. :loop
  21854. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  21855. t loop
  21856. s/-\n.*//
  21857. ' >$as_me.lineno &&
  21858. chmod +x "$as_me.lineno" ||
  21859. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  21860. { (exit 1); exit 1; }; }
  21861. # Don't try to exec as it changes $[0], causing all sort of problems
  21862. # (the dirname of $[0] is not the place where we might find the
  21863. # original and so on. Autoconf is especially sensitive to this).
  21864. . "./$as_me.lineno"
  21865. # Exit status is that of the last command.
  21866. exit
  21867. }
  21868. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  21869. as_dirname=dirname
  21870. else
  21871. as_dirname=false
  21872. fi
  21873. ECHO_C= ECHO_N= ECHO_T=
  21874. case `echo -n x` in
  21875. -n*)
  21876. case `echo 'x\c'` in
  21877. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  21878. *) ECHO_C='\c';;
  21879. esac;;
  21880. *)
  21881. ECHO_N='-n';;
  21882. esac
  21883. if expr a : '\(a\)' >/dev/null 2>&1 &&
  21884. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  21885. as_expr=expr
  21886. else
  21887. as_expr=false
  21888. fi
  21889. rm -f conf$$ conf$$.exe conf$$.file
  21890. if test -d conf$$.dir; then
  21891. rm -f conf$$.dir/conf$$.file
  21892. else
  21893. rm -f conf$$.dir
  21894. mkdir conf$$.dir 2>/dev/null
  21895. fi
  21896. if (echo >conf$$.file) 2>/dev/null; then
  21897. if ln -s conf$$.file conf$$ 2>/dev/null; then
  21898. as_ln_s='ln -s'
  21899. # ... but there are two gotchas:
  21900. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  21901. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  21902. # In both cases, we have to default to `cp -p'.
  21903. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  21904. as_ln_s='cp -p'
  21905. elif ln conf$$.file conf$$ 2>/dev/null; then
  21906. as_ln_s=ln
  21907. else
  21908. as_ln_s='cp -p'
  21909. fi
  21910. else
  21911. as_ln_s='cp -p'
  21912. fi
  21913. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  21914. rmdir conf$$.dir 2>/dev/null
  21915. if mkdir -p . 2>/dev/null; then
  21916. as_mkdir_p=:
  21917. else
  21918. test -d ./-p && rmdir ./-p
  21919. as_mkdir_p=false
  21920. fi
  21921. if test -x / >/dev/null 2>&1; then
  21922. as_test_x='test -x'
  21923. else
  21924. if ls -dL / >/dev/null 2>&1; then
  21925. as_ls_L_option=L
  21926. else
  21927. as_ls_L_option=
  21928. fi
  21929. as_test_x='
  21930. eval sh -c '\''
  21931. if test -d "$1"; then
  21932. test -d "$1/.";
  21933. else
  21934. case $1 in
  21935. -*)set "./$1";;
  21936. esac;
  21937. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  21938. ???[sx]*):;;*)false;;esac;fi
  21939. '\'' sh
  21940. '
  21941. fi
  21942. as_executable_p=$as_test_x
  21943. # Sed expression to map a string onto a valid CPP name.
  21944. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  21945. # Sed expression to map a string onto a valid variable name.
  21946. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  21947. exec 6>&1
  21948. # Save the log message, to keep $[0] and so on meaningful, and to
  21949. # report actual input values of CONFIG_FILES etc. instead of their
  21950. # values after options handling.
  21951. ac_log="
  21952. This file was extended by dirsrv $as_me 1.0, which was
  21953. generated by GNU Autoconf 2.63. Invocation command line was
  21954. CONFIG_FILES = $CONFIG_FILES
  21955. CONFIG_HEADERS = $CONFIG_HEADERS
  21956. CONFIG_LINKS = $CONFIG_LINKS
  21957. CONFIG_COMMANDS = $CONFIG_COMMANDS
  21958. $ $0 $@
  21959. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  21960. "
  21961. _ACEOF
  21962. case $ac_config_files in *"
  21963. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  21964. esac
  21965. case $ac_config_headers in *"
  21966. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  21967. esac
  21968. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21969. # Files that config.status was made for.
  21970. config_files="$ac_config_files"
  21971. config_headers="$ac_config_headers"
  21972. config_commands="$ac_config_commands"
  21973. _ACEOF
  21974. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21975. ac_cs_usage="\
  21976. \`$as_me' instantiates files from templates according to the
  21977. current configuration.
  21978. Usage: $0 [OPTION]... [FILE]...
  21979. -h, --help print this help, then exit
  21980. -V, --version print version number and configuration settings, then exit
  21981. -q, --quiet, --silent
  21982. do not print progress messages
  21983. -d, --debug don't remove temporary files
  21984. --recheck update $as_me by reconfiguring in the same conditions
  21985. --file=FILE[:TEMPLATE]
  21986. instantiate the configuration file FILE
  21987. --header=FILE[:TEMPLATE]
  21988. instantiate the configuration header FILE
  21989. Configuration files:
  21990. $config_files
  21991. Configuration headers:
  21992. $config_headers
  21993. Configuration commands:
  21994. $config_commands
  21995. Report bugs to <[email protected]>."
  21996. _ACEOF
  21997. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21998. ac_cs_version="\\
  21999. dirsrv config.status 1.0
  22000. configured by $0, generated by GNU Autoconf 2.63,
  22001. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  22002. Copyright (C) 2008 Free Software Foundation, Inc.
  22003. This config.status script is free software; the Free Software Foundation
  22004. gives unlimited permission to copy, distribute and modify it."
  22005. ac_pwd='$ac_pwd'
  22006. srcdir='$srcdir'
  22007. INSTALL='$INSTALL'
  22008. MKDIR_P='$MKDIR_P'
  22009. AWK='$AWK'
  22010. test -n "\$AWK" || AWK=awk
  22011. _ACEOF
  22012. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22013. # The default lists apply if the user does not specify any file.
  22014. ac_need_defaults=:
  22015. while test $# != 0
  22016. do
  22017. case $1 in
  22018. --*=*)
  22019. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22020. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  22021. ac_shift=:
  22022. ;;
  22023. *)
  22024. ac_option=$1
  22025. ac_optarg=$2
  22026. ac_shift=shift
  22027. ;;
  22028. esac
  22029. case $ac_option in
  22030. # Handling of the options.
  22031. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  22032. ac_cs_recheck=: ;;
  22033. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  22034. $as_echo "$ac_cs_version"; exit ;;
  22035. --debug | --debu | --deb | --de | --d | -d )
  22036. debug=: ;;
  22037. --file | --fil | --fi | --f )
  22038. $ac_shift
  22039. case $ac_optarg in
  22040. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22041. esac
  22042. CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  22043. ac_need_defaults=false;;
  22044. --header | --heade | --head | --hea )
  22045. $ac_shift
  22046. case $ac_optarg in
  22047. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22048. esac
  22049. CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
  22050. ac_need_defaults=false;;
  22051. --he | --h)
  22052. # Conflict between --help and --header
  22053. { $as_echo "$as_me: error: ambiguous option: $1
  22054. Try \`$0 --help' for more information." >&2
  22055. { (exit 1); exit 1; }; };;
  22056. --help | --hel | -h )
  22057. $as_echo "$ac_cs_usage"; exit ;;
  22058. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  22059. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  22060. ac_cs_silent=: ;;
  22061. # This is an error.
  22062. -*) { $as_echo "$as_me: error: unrecognized option: $1
  22063. Try \`$0 --help' for more information." >&2
  22064. { (exit 1); exit 1; }; } ;;
  22065. *) ac_config_targets="$ac_config_targets $1"
  22066. ac_need_defaults=false ;;
  22067. esac
  22068. shift
  22069. done
  22070. ac_configure_extra_args=
  22071. if $ac_cs_silent; then
  22072. exec 6>/dev/null
  22073. ac_configure_extra_args="$ac_configure_extra_args --silent"
  22074. fi
  22075. _ACEOF
  22076. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22077. if \$ac_cs_recheck; then
  22078. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  22079. shift
  22080. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  22081. CONFIG_SHELL='$SHELL'
  22082. export CONFIG_SHELL
  22083. exec "\$@"
  22084. fi
  22085. _ACEOF
  22086. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22087. exec 5>>config.log
  22088. {
  22089. echo
  22090. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  22091. ## Running $as_me. ##
  22092. _ASBOX
  22093. $as_echo "$ac_log"
  22094. } >&5
  22095. _ACEOF
  22096. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22097. #
  22098. # INIT-COMMANDS
  22099. #
  22100. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  22101. # The HP-UX ksh and POSIX shell print the target directory to stdout
  22102. # if CDPATH is set.
  22103. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22104. sed_quote_subst='$sed_quote_subst'
  22105. double_quote_subst='$double_quote_subst'
  22106. delay_variable_subst='$delay_variable_subst'
  22107. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  22108. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  22109. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  22110. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  22111. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  22112. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  22113. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  22114. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  22115. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  22116. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  22117. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  22118. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  22119. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  22120. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  22121. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  22122. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  22123. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  22124. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  22125. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  22126. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  22127. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  22128. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  22129. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  22130. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  22131. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  22132. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  22133. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  22134. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22135. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  22136. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  22137. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  22138. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  22139. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  22140. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  22141. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  22142. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22143. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22144. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22145. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  22146. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  22147. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  22148. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  22149. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  22150. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  22151. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  22152. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  22153. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  22154. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  22155. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  22156. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  22157. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  22158. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  22159. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  22160. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  22161. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  22162. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  22163. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  22164. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  22165. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  22166. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  22167. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  22168. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  22169. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22170. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22171. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  22172. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  22173. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22174. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22175. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  22176. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22177. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22178. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22179. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22180. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22181. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22182. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  22183. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  22184. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  22185. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22186. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  22187. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  22188. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  22189. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  22190. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  22191. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  22192. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  22193. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  22194. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  22195. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  22196. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  22197. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22198. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  22199. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  22200. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22201. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22202. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  22203. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  22204. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  22205. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  22206. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  22207. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  22208. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  22209. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22210. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22211. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22212. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22213. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22214. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22215. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  22216. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  22217. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22218. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22219. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  22220. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  22221. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  22222. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  22223. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  22224. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  22225. compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
  22226. predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  22227. postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  22228. predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
  22229. postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
  22230. compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
  22231. LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22232. old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22233. compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22234. GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22235. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22236. lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22237. lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22238. lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22239. lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22240. archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22241. enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22242. export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22243. whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22244. compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22245. old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22246. old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22247. archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22248. archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22249. module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22250. module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22251. with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22252. allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22253. no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22254. hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22255. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22256. hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22257. hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22258. hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22259. hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22260. hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22261. hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22262. inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22263. link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22264. fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22265. always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22266. export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22267. exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22268. include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22269. prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22270. file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22271. hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22272. compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22273. predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22274. postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22275. predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22276. postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22277. compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22278. LTCC='$LTCC'
  22279. LTCFLAGS='$LTCFLAGS'
  22280. compiler='$compiler_DEFAULT'
  22281. # Quote evaled strings.
  22282. for var in SED \
  22283. GREP \
  22284. EGREP \
  22285. FGREP \
  22286. LD \
  22287. NM \
  22288. LN_S \
  22289. lt_SP2NL \
  22290. lt_NL2SP \
  22291. reload_flag \
  22292. OBJDUMP \
  22293. deplibs_check_method \
  22294. file_magic_cmd \
  22295. AR \
  22296. AR_FLAGS \
  22297. STRIP \
  22298. RANLIB \
  22299. CC \
  22300. CFLAGS \
  22301. compiler \
  22302. lt_cv_sys_global_symbol_pipe \
  22303. lt_cv_sys_global_symbol_to_cdecl \
  22304. lt_cv_sys_global_symbol_to_c_name_address \
  22305. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  22306. SHELL \
  22307. ECHO \
  22308. lt_prog_compiler_no_builtin_flag \
  22309. lt_prog_compiler_wl \
  22310. lt_prog_compiler_pic \
  22311. lt_prog_compiler_static \
  22312. lt_cv_prog_compiler_c_o \
  22313. need_locks \
  22314. DSYMUTIL \
  22315. NMEDIT \
  22316. LIPO \
  22317. OTOOL \
  22318. OTOOL64 \
  22319. shrext_cmds \
  22320. export_dynamic_flag_spec \
  22321. whole_archive_flag_spec \
  22322. compiler_needs_object \
  22323. with_gnu_ld \
  22324. allow_undefined_flag \
  22325. no_undefined_flag \
  22326. hardcode_libdir_flag_spec \
  22327. hardcode_libdir_flag_spec_ld \
  22328. hardcode_libdir_separator \
  22329. fix_srcfile_path \
  22330. exclude_expsyms \
  22331. include_expsyms \
  22332. file_list_spec \
  22333. variables_saved_for_relink \
  22334. libname_spec \
  22335. library_names_spec \
  22336. soname_spec \
  22337. finish_eval \
  22338. old_striplib \
  22339. striplib \
  22340. compiler_lib_search_dirs \
  22341. predep_objects \
  22342. postdep_objects \
  22343. predeps \
  22344. postdeps \
  22345. compiler_lib_search_path \
  22346. LD_CXX \
  22347. compiler_CXX \
  22348. lt_prog_compiler_no_builtin_flag_CXX \
  22349. lt_prog_compiler_wl_CXX \
  22350. lt_prog_compiler_pic_CXX \
  22351. lt_prog_compiler_static_CXX \
  22352. lt_cv_prog_compiler_c_o_CXX \
  22353. export_dynamic_flag_spec_CXX \
  22354. whole_archive_flag_spec_CXX \
  22355. compiler_needs_object_CXX \
  22356. with_gnu_ld_CXX \
  22357. allow_undefined_flag_CXX \
  22358. no_undefined_flag_CXX \
  22359. hardcode_libdir_flag_spec_CXX \
  22360. hardcode_libdir_flag_spec_ld_CXX \
  22361. hardcode_libdir_separator_CXX \
  22362. fix_srcfile_path_CXX \
  22363. exclude_expsyms_CXX \
  22364. include_expsyms_CXX \
  22365. file_list_spec_CXX \
  22366. compiler_lib_search_dirs_CXX \
  22367. predep_objects_CXX \
  22368. postdep_objects_CXX \
  22369. predeps_CXX \
  22370. postdeps_CXX \
  22371. compiler_lib_search_path_CXX; do
  22372. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  22373. *[\\\\\\\`\\"\\\$]*)
  22374. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  22375. ;;
  22376. *)
  22377. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22378. ;;
  22379. esac
  22380. done
  22381. # Double-quote double-evaled strings.
  22382. for var in reload_cmds \
  22383. old_postinstall_cmds \
  22384. old_postuninstall_cmds \
  22385. old_archive_cmds \
  22386. extract_expsyms_cmds \
  22387. old_archive_from_new_cmds \
  22388. old_archive_from_expsyms_cmds \
  22389. archive_cmds \
  22390. archive_expsym_cmds \
  22391. module_cmds \
  22392. module_expsym_cmds \
  22393. export_symbols_cmds \
  22394. prelink_cmds \
  22395. postinstall_cmds \
  22396. postuninstall_cmds \
  22397. finish_cmds \
  22398. sys_lib_search_path_spec \
  22399. sys_lib_dlsearch_path_spec \
  22400. old_archive_cmds_CXX \
  22401. old_archive_from_new_cmds_CXX \
  22402. old_archive_from_expsyms_cmds_CXX \
  22403. archive_cmds_CXX \
  22404. archive_expsym_cmds_CXX \
  22405. module_cmds_CXX \
  22406. module_expsym_cmds_CXX \
  22407. export_symbols_cmds_CXX \
  22408. prelink_cmds_CXX; do
  22409. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  22410. *[\\\\\\\`\\"\\\$]*)
  22411. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  22412. ;;
  22413. *)
  22414. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22415. ;;
  22416. esac
  22417. done
  22418. # Fix-up fallback echo if it was mangled by the above quoting rules.
  22419. case \$lt_ECHO in
  22420. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  22421. ;;
  22422. esac
  22423. ac_aux_dir='$ac_aux_dir'
  22424. xsi_shell='$xsi_shell'
  22425. lt_shell_append='$lt_shell_append'
  22426. # See if we are running on zsh, and set the options which allow our
  22427. # commands through without removal of \ escapes INIT.
  22428. if test -n "\${ZSH_VERSION+set}" ; then
  22429. setopt NO_GLOB_SUBST
  22430. fi
  22431. PACKAGE='$PACKAGE'
  22432. VERSION='$VERSION'
  22433. TIMESTAMP='$TIMESTAMP'
  22434. RM='$RM'
  22435. ofile='$ofile'
  22436. _ACEOF
  22437. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22438. # Handling of arguments.
  22439. for ac_config_target in $ac_config_targets
  22440. do
  22441. case $ac_config_target in
  22442. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  22443. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  22444. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  22445. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  22446. *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  22447. $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  22448. { (exit 1); exit 1; }; };;
  22449. esac
  22450. done
  22451. # If the user did not use the arguments to specify the items to instantiate,
  22452. # then the envvar interface is used. Set only those that are not.
  22453. # We use the long form for the default assignment because of an extremely
  22454. # bizarre bug on SunOS 4.1.3.
  22455. if $ac_need_defaults; then
  22456. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  22457. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  22458. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  22459. fi
  22460. # Have a temporary directory for convenience. Make it in the build tree
  22461. # simply because there is no reason against having it here, and in addition,
  22462. # creating and moving files from /tmp can sometimes cause problems.
  22463. # Hook for its removal unless debugging.
  22464. # Note that there is a small window in which the directory will not be cleaned:
  22465. # after its creation but before its name has been assigned to `$tmp'.
  22466. $debug ||
  22467. {
  22468. tmp=
  22469. trap 'exit_status=$?
  22470. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  22471. ' 0
  22472. trap '{ (exit 1); exit 1; }' 1 2 13 15
  22473. }
  22474. # Create a (secure) tmp directory for tmp files.
  22475. {
  22476. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  22477. test -n "$tmp" && test -d "$tmp"
  22478. } ||
  22479. {
  22480. tmp=./conf$$-$RANDOM
  22481. (umask 077 && mkdir "$tmp")
  22482. } ||
  22483. {
  22484. $as_echo "$as_me: cannot create a temporary directory in ." >&2
  22485. { (exit 1); exit 1; }
  22486. }
  22487. # Set up the scripts for CONFIG_FILES section.
  22488. # No need to generate them if there are no CONFIG_FILES.
  22489. # This happens for instance with `./config.status config.h'.
  22490. if test -n "$CONFIG_FILES"; then
  22491. ac_cr=' '
  22492. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  22493. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  22494. ac_cs_awk_cr='\\r'
  22495. else
  22496. ac_cs_awk_cr=$ac_cr
  22497. fi
  22498. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  22499. _ACEOF
  22500. {
  22501. echo "cat >conf$$subs.awk <<_ACEOF" &&
  22502. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  22503. echo "_ACEOF"
  22504. } >conf$$subs.sh ||
  22505. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  22506. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  22507. { (exit 1); exit 1; }; }
  22508. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  22509. ac_delim='%!_!# '
  22510. for ac_last_try in false false false false false :; do
  22511. . ./conf$$subs.sh ||
  22512. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  22513. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  22514. { (exit 1); exit 1; }; }
  22515. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  22516. if test $ac_delim_n = $ac_delim_num; then
  22517. break
  22518. elif $ac_last_try; then
  22519. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  22520. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  22521. { (exit 1); exit 1; }; }
  22522. else
  22523. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22524. fi
  22525. done
  22526. rm -f conf$$subs.sh
  22527. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22528. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  22529. _ACEOF
  22530. sed -n '
  22531. h
  22532. s/^/S["/; s/!.*/"]=/
  22533. p
  22534. g
  22535. s/^[^!]*!//
  22536. :repl
  22537. t repl
  22538. s/'"$ac_delim"'$//
  22539. t delim
  22540. :nl
  22541. h
  22542. s/\(.\{148\}\).*/\1/
  22543. t more1
  22544. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  22545. p
  22546. n
  22547. b repl
  22548. :more1
  22549. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22550. p
  22551. g
  22552. s/.\{148\}//
  22553. t nl
  22554. :delim
  22555. h
  22556. s/\(.\{148\}\).*/\1/
  22557. t more2
  22558. s/["\\]/\\&/g; s/^/"/; s/$/"/
  22559. p
  22560. b
  22561. :more2
  22562. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22563. p
  22564. g
  22565. s/.\{148\}//
  22566. t delim
  22567. ' <conf$$subs.awk | sed '
  22568. /^[^""]/{
  22569. N
  22570. s/\n//
  22571. }
  22572. ' >>$CONFIG_STATUS || ac_write_fail=1
  22573. rm -f conf$$subs.awk
  22574. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22575. _ACAWK
  22576. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  22577. for (key in S) S_is_set[key] = 1
  22578. FS = ""
  22579. }
  22580. {
  22581. line = $ 0
  22582. nfields = split(line, field, "@")
  22583. substed = 0
  22584. len = length(field[1])
  22585. for (i = 2; i < nfields; i++) {
  22586. key = field[i]
  22587. keylen = length(key)
  22588. if (S_is_set[key]) {
  22589. value = S[key]
  22590. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  22591. len += length(value) + length(field[++i])
  22592. substed = 1
  22593. } else
  22594. len += 1 + keylen
  22595. }
  22596. print line
  22597. }
  22598. _ACAWK
  22599. _ACEOF
  22600. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22601. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  22602. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  22603. else
  22604. cat
  22605. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  22606. || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  22607. $as_echo "$as_me: error: could not setup config files machinery" >&2;}
  22608. { (exit 1); exit 1; }; }
  22609. _ACEOF
  22610. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  22611. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  22612. # trailing colons and then remove the whole line if VPATH becomes empty
  22613. # (actually we leave an empty line to preserve line numbers).
  22614. if test "x$srcdir" = x.; then
  22615. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  22616. s/:*\$(srcdir):*/:/
  22617. s/:*\${srcdir}:*/:/
  22618. s/:*@srcdir@:*/:/
  22619. s/^\([^=]*=[ ]*\):*/\1/
  22620. s/:*$//
  22621. s/^[^=]*=[ ]*$//
  22622. }'
  22623. fi
  22624. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22625. fi # test -n "$CONFIG_FILES"
  22626. # Set up the scripts for CONFIG_HEADERS section.
  22627. # No need to generate them if there are no CONFIG_HEADERS.
  22628. # This happens for instance with `./config.status Makefile'.
  22629. if test -n "$CONFIG_HEADERS"; then
  22630. cat >"$tmp/defines.awk" <<\_ACAWK ||
  22631. BEGIN {
  22632. _ACEOF
  22633. # Transform confdefs.h into an awk script `defines.awk', embedded as
  22634. # here-document in config.status, that substitutes the proper values into
  22635. # config.h.in to produce config.h.
  22636. # Create a delimiter string that does not exist in confdefs.h, to ease
  22637. # handling of long lines.
  22638. ac_delim='%!_!# '
  22639. for ac_last_try in false false :; do
  22640. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  22641. if test -z "$ac_t"; then
  22642. break
  22643. elif $ac_last_try; then
  22644. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
  22645. $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
  22646. { (exit 1); exit 1; }; }
  22647. else
  22648. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22649. fi
  22650. done
  22651. # For the awk script, D is an array of macro values keyed by name,
  22652. # likewise P contains macro parameters if any. Preserve backslash
  22653. # newline sequences.
  22654. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  22655. sed -n '
  22656. s/.\{148\}/&'"$ac_delim"'/g
  22657. t rset
  22658. :rset
  22659. s/^[ ]*#[ ]*define[ ][ ]*/ /
  22660. t def
  22661. d
  22662. :def
  22663. s/\\$//
  22664. t bsnl
  22665. s/["\\]/\\&/g
  22666. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22667. D["\1"]=" \3"/p
  22668. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  22669. d
  22670. :bsnl
  22671. s/["\\]/\\&/g
  22672. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22673. D["\1"]=" \3\\\\\\n"\\/p
  22674. t cont
  22675. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  22676. t cont
  22677. d
  22678. :cont
  22679. n
  22680. s/.\{148\}/&'"$ac_delim"'/g
  22681. t clear
  22682. :clear
  22683. s/\\$//
  22684. t bsnlc
  22685. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  22686. d
  22687. :bsnlc
  22688. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  22689. b cont
  22690. ' <confdefs.h | sed '
  22691. s/'"$ac_delim"'/"\\\
  22692. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  22693. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22694. for (key in D) D_is_set[key] = 1
  22695. FS = ""
  22696. }
  22697. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  22698. line = \$ 0
  22699. split(line, arg, " ")
  22700. if (arg[1] == "#") {
  22701. defundef = arg[2]
  22702. mac1 = arg[3]
  22703. } else {
  22704. defundef = substr(arg[1], 2)
  22705. mac1 = arg[2]
  22706. }
  22707. split(mac1, mac2, "(") #)
  22708. macro = mac2[1]
  22709. prefix = substr(line, 1, index(line, defundef) - 1)
  22710. if (D_is_set[macro]) {
  22711. # Preserve the white space surrounding the "#".
  22712. print prefix "define", macro P[macro] D[macro]
  22713. next
  22714. } else {
  22715. # Replace #undef with comments. This is necessary, for example,
  22716. # in the case of _POSIX_SOURCE, which is predefined and required
  22717. # on some systems where configure will not decide to define it.
  22718. if (defundef == "undef") {
  22719. print "/*", prefix defundef, macro, "*/"
  22720. next
  22721. }
  22722. }
  22723. }
  22724. { print }
  22725. _ACAWK
  22726. _ACEOF
  22727. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22728. { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
  22729. $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
  22730. { (exit 1); exit 1; }; }
  22731. fi # test -n "$CONFIG_HEADERS"
  22732. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  22733. shift
  22734. for ac_tag
  22735. do
  22736. case $ac_tag in
  22737. :[FHLC]) ac_mode=$ac_tag; continue;;
  22738. esac
  22739. case $ac_mode$ac_tag in
  22740. :[FHL]*:*);;
  22741. :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  22742. $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  22743. { (exit 1); exit 1; }; };;
  22744. :[FH]-) ac_tag=-:-;;
  22745. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  22746. esac
  22747. ac_save_IFS=$IFS
  22748. IFS=:
  22749. set x $ac_tag
  22750. IFS=$ac_save_IFS
  22751. shift
  22752. ac_file=$1
  22753. shift
  22754. case $ac_mode in
  22755. :L) ac_source=$1;;
  22756. :[FH])
  22757. ac_file_inputs=
  22758. for ac_f
  22759. do
  22760. case $ac_f in
  22761. -) ac_f="$tmp/stdin";;
  22762. *) # Look for the file first in the build tree, then in the source tree
  22763. # (if the path is not absolute). The absolute path cannot be DOS-style,
  22764. # because $ac_f cannot contain `:'.
  22765. test -f "$ac_f" ||
  22766. case $ac_f in
  22767. [\\/$]*) false;;
  22768. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  22769. esac ||
  22770. { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  22771. $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  22772. { (exit 1); exit 1; }; };;
  22773. esac
  22774. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  22775. ac_file_inputs="$ac_file_inputs '$ac_f'"
  22776. done
  22777. # Let's still pretend it is `configure' which instantiates (i.e., don't
  22778. # use $as_me), people would be surprised to read:
  22779. # /* config.h. Generated by config.status. */
  22780. configure_input='Generated from '`
  22781. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  22782. `' by configure.'
  22783. if test x"$ac_file" != x-; then
  22784. configure_input="$ac_file. $configure_input"
  22785. { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  22786. $as_echo "$as_me: creating $ac_file" >&6;}
  22787. fi
  22788. # Neutralize special characters interpreted by sed in replacement strings.
  22789. case $configure_input in #(
  22790. *\&* | *\|* | *\\* )
  22791. ac_sed_conf_input=`$as_echo "$configure_input" |
  22792. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  22793. *) ac_sed_conf_input=$configure_input;;
  22794. esac
  22795. case $ac_tag in
  22796. *:-:* | *:-) cat >"$tmp/stdin" \
  22797. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  22798. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  22799. { (exit 1); exit 1; }; } ;;
  22800. esac
  22801. ;;
  22802. esac
  22803. ac_dir=`$as_dirname -- "$ac_file" ||
  22804. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22805. X"$ac_file" : 'X\(//\)[^/]' \| \
  22806. X"$ac_file" : 'X\(//\)$' \| \
  22807. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  22808. $as_echo X"$ac_file" |
  22809. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22810. s//\1/
  22811. q
  22812. }
  22813. /^X\(\/\/\)[^/].*/{
  22814. s//\1/
  22815. q
  22816. }
  22817. /^X\(\/\/\)$/{
  22818. s//\1/
  22819. q
  22820. }
  22821. /^X\(\/\).*/{
  22822. s//\1/
  22823. q
  22824. }
  22825. s/.*/./; q'`
  22826. { as_dir="$ac_dir"
  22827. case $as_dir in #(
  22828. -*) as_dir=./$as_dir;;
  22829. esac
  22830. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  22831. as_dirs=
  22832. while :; do
  22833. case $as_dir in #(
  22834. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  22835. *) as_qdir=$as_dir;;
  22836. esac
  22837. as_dirs="'$as_qdir' $as_dirs"
  22838. as_dir=`$as_dirname -- "$as_dir" ||
  22839. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22840. X"$as_dir" : 'X\(//\)[^/]' \| \
  22841. X"$as_dir" : 'X\(//\)$' \| \
  22842. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22843. $as_echo X"$as_dir" |
  22844. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22845. s//\1/
  22846. q
  22847. }
  22848. /^X\(\/\/\)[^/].*/{
  22849. s//\1/
  22850. q
  22851. }
  22852. /^X\(\/\/\)$/{
  22853. s//\1/
  22854. q
  22855. }
  22856. /^X\(\/\).*/{
  22857. s//\1/
  22858. q
  22859. }
  22860. s/.*/./; q'`
  22861. test -d "$as_dir" && break
  22862. done
  22863. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22864. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  22865. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  22866. { (exit 1); exit 1; }; }; }
  22867. ac_builddir=.
  22868. case "$ac_dir" in
  22869. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22870. *)
  22871. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  22872. # A ".." for each directory in $ac_dir_suffix.
  22873. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  22874. case $ac_top_builddir_sub in
  22875. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22876. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  22877. esac ;;
  22878. esac
  22879. ac_abs_top_builddir=$ac_pwd
  22880. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  22881. # for backward compatibility:
  22882. ac_top_builddir=$ac_top_build_prefix
  22883. case $srcdir in
  22884. .) # We are building in place.
  22885. ac_srcdir=.
  22886. ac_top_srcdir=$ac_top_builddir_sub
  22887. ac_abs_top_srcdir=$ac_pwd ;;
  22888. [\\/]* | ?:[\\/]* ) # Absolute name.
  22889. ac_srcdir=$srcdir$ac_dir_suffix;
  22890. ac_top_srcdir=$srcdir
  22891. ac_abs_top_srcdir=$srcdir ;;
  22892. *) # Relative name.
  22893. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  22894. ac_top_srcdir=$ac_top_build_prefix$srcdir
  22895. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  22896. esac
  22897. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  22898. case $ac_mode in
  22899. :F)
  22900. #
  22901. # CONFIG_FILE
  22902. #
  22903. case $INSTALL in
  22904. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  22905. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  22906. esac
  22907. ac_MKDIR_P=$MKDIR_P
  22908. case $MKDIR_P in
  22909. [\\/$]* | ?:[\\/]* ) ;;
  22910. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  22911. esac
  22912. _ACEOF
  22913. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22914. # If the template does not know about datarootdir, expand it.
  22915. # FIXME: This hack should be removed a few years after 2.60.
  22916. ac_datarootdir_hack=; ac_datarootdir_seen=
  22917. ac_sed_dataroot='
  22918. /datarootdir/ {
  22919. p
  22920. q
  22921. }
  22922. /@datadir@/p
  22923. /@docdir@/p
  22924. /@infodir@/p
  22925. /@localedir@/p
  22926. /@mandir@/p
  22927. '
  22928. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  22929. *datarootdir*) ac_datarootdir_seen=yes;;
  22930. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  22931. { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  22932. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  22933. _ACEOF
  22934. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22935. ac_datarootdir_hack='
  22936. s&@datadir@&$datadir&g
  22937. s&@docdir@&$docdir&g
  22938. s&@infodir@&$infodir&g
  22939. s&@localedir@&$localedir&g
  22940. s&@mandir@&$mandir&g
  22941. s&\\\${datarootdir}&$datarootdir&g' ;;
  22942. esac
  22943. _ACEOF
  22944. # Neutralize VPATH when `$srcdir' = `.'.
  22945. # Shell code in configure.ac might set extrasub.
  22946. # FIXME: do we really want to maintain this feature?
  22947. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22948. ac_sed_extra="$ac_vpsub
  22949. $extrasub
  22950. _ACEOF
  22951. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22952. :t
  22953. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  22954. s|@configure_input@|$ac_sed_conf_input|;t t
  22955. s&@top_builddir@&$ac_top_builddir_sub&;t t
  22956. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  22957. s&@srcdir@&$ac_srcdir&;t t
  22958. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  22959. s&@top_srcdir@&$ac_top_srcdir&;t t
  22960. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  22961. s&@builddir@&$ac_builddir&;t t
  22962. s&@abs_builddir@&$ac_abs_builddir&;t t
  22963. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  22964. s&@INSTALL@&$ac_INSTALL&;t t
  22965. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  22966. $ac_datarootdir_hack
  22967. "
  22968. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  22969. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  22970. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  22971. { (exit 1); exit 1; }; }
  22972. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  22973. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  22974. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  22975. { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22976. which seems to be undefined. Please make sure it is defined." >&5
  22977. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22978. which seems to be undefined. Please make sure it is defined." >&2;}
  22979. rm -f "$tmp/stdin"
  22980. case $ac_file in
  22981. -) cat "$tmp/out" && rm -f "$tmp/out";;
  22982. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  22983. esac \
  22984. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  22985. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  22986. { (exit 1); exit 1; }; }
  22987. ;;
  22988. :H)
  22989. #
  22990. # CONFIG_HEADER
  22991. #
  22992. if test x"$ac_file" != x-; then
  22993. {
  22994. $as_echo "/* $configure_input */" \
  22995. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  22996. } >"$tmp/config.h" \
  22997. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  22998. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  22999. { (exit 1); exit 1; }; }
  23000. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  23001. { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  23002. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  23003. else
  23004. rm -f "$ac_file"
  23005. mv "$tmp/config.h" "$ac_file" \
  23006. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  23007. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  23008. { (exit 1); exit 1; }; }
  23009. fi
  23010. else
  23011. $as_echo "/* $configure_input */" \
  23012. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  23013. || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
  23014. $as_echo "$as_me: error: could not create -" >&2;}
  23015. { (exit 1); exit 1; }; }
  23016. fi
  23017. # Compute "$ac_file"'s index in $config_headers.
  23018. _am_arg="$ac_file"
  23019. _am_stamp_count=1
  23020. for _am_header in $config_headers :; do
  23021. case $_am_header in
  23022. $_am_arg | $_am_arg:* )
  23023. break ;;
  23024. * )
  23025. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  23026. esac
  23027. done
  23028. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  23029. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23030. X"$_am_arg" : 'X\(//\)[^/]' \| \
  23031. X"$_am_arg" : 'X\(//\)$' \| \
  23032. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  23033. $as_echo X"$_am_arg" |
  23034. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23035. s//\1/
  23036. q
  23037. }
  23038. /^X\(\/\/\)[^/].*/{
  23039. s//\1/
  23040. q
  23041. }
  23042. /^X\(\/\/\)$/{
  23043. s//\1/
  23044. q
  23045. }
  23046. /^X\(\/\).*/{
  23047. s//\1/
  23048. q
  23049. }
  23050. s/.*/./; q'`/stamp-h$_am_stamp_count
  23051. ;;
  23052. :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
  23053. $as_echo "$as_me: executing $ac_file commands" >&6;}
  23054. ;;
  23055. esac
  23056. case $ac_file$ac_mode in
  23057. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  23058. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  23059. # are listed without --file. Let's play safe and only enable the eval
  23060. # if we detect the quoting.
  23061. case $CONFIG_FILES in
  23062. *\'*) eval set x "$CONFIG_FILES" ;;
  23063. *) set x $CONFIG_FILES ;;
  23064. esac
  23065. shift
  23066. for mf
  23067. do
  23068. # Strip MF so we end up with the name of the file.
  23069. mf=`echo "$mf" | sed -e 's/:.*$//'`
  23070. # Check whether this is an Automake generated Makefile or not.
  23071. # We used to match only the files named `Makefile.in', but
  23072. # some people rename them; so instead we look at the file content.
  23073. # Grep'ing the first line is not enough: some people post-process
  23074. # each Makefile.in and add a new line on top of each file to say so.
  23075. # Grep'ing the whole file is not good either: AIX grep has a line
  23076. # limit of 2048, but all sed's we know have understand at least 4000.
  23077. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  23078. dirpart=`$as_dirname -- "$mf" ||
  23079. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23080. X"$mf" : 'X\(//\)[^/]' \| \
  23081. X"$mf" : 'X\(//\)$' \| \
  23082. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  23083. $as_echo X"$mf" |
  23084. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23085. s//\1/
  23086. q
  23087. }
  23088. /^X\(\/\/\)[^/].*/{
  23089. s//\1/
  23090. q
  23091. }
  23092. /^X\(\/\/\)$/{
  23093. s//\1/
  23094. q
  23095. }
  23096. /^X\(\/\).*/{
  23097. s//\1/
  23098. q
  23099. }
  23100. s/.*/./; q'`
  23101. else
  23102. continue
  23103. fi
  23104. # Extract the definition of DEPDIR, am__include, and am__quote
  23105. # from the Makefile without running `make'.
  23106. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  23107. test -z "$DEPDIR" && continue
  23108. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  23109. test -z "am__include" && continue
  23110. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  23111. # When using ansi2knr, U may be empty or an underscore; expand it
  23112. U=`sed -n 's/^U = //p' < "$mf"`
  23113. # Find all dependency output files, they are included files with
  23114. # $(DEPDIR) in their names. We invoke sed twice because it is the
  23115. # simplest approach to changing $(DEPDIR) to its actual value in the
  23116. # expansion.
  23117. for file in `sed -n "
  23118. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  23119. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  23120. # Make sure the directory exists.
  23121. test -f "$dirpart/$file" && continue
  23122. fdir=`$as_dirname -- "$file" ||
  23123. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23124. X"$file" : 'X\(//\)[^/]' \| \
  23125. X"$file" : 'X\(//\)$' \| \
  23126. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  23127. $as_echo X"$file" |
  23128. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23129. s//\1/
  23130. q
  23131. }
  23132. /^X\(\/\/\)[^/].*/{
  23133. s//\1/
  23134. q
  23135. }
  23136. /^X\(\/\/\)$/{
  23137. s//\1/
  23138. q
  23139. }
  23140. /^X\(\/\).*/{
  23141. s//\1/
  23142. q
  23143. }
  23144. s/.*/./; q'`
  23145. { as_dir=$dirpart/$fdir
  23146. case $as_dir in #(
  23147. -*) as_dir=./$as_dir;;
  23148. esac
  23149. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  23150. as_dirs=
  23151. while :; do
  23152. case $as_dir in #(
  23153. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  23154. *) as_qdir=$as_dir;;
  23155. esac
  23156. as_dirs="'$as_qdir' $as_dirs"
  23157. as_dir=`$as_dirname -- "$as_dir" ||
  23158. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23159. X"$as_dir" : 'X\(//\)[^/]' \| \
  23160. X"$as_dir" : 'X\(//\)$' \| \
  23161. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  23162. $as_echo X"$as_dir" |
  23163. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23164. s//\1/
  23165. q
  23166. }
  23167. /^X\(\/\/\)[^/].*/{
  23168. s//\1/
  23169. q
  23170. }
  23171. /^X\(\/\/\)$/{
  23172. s//\1/
  23173. q
  23174. }
  23175. /^X\(\/\).*/{
  23176. s//\1/
  23177. q
  23178. }
  23179. s/.*/./; q'`
  23180. test -d "$as_dir" && break
  23181. done
  23182. test -z "$as_dirs" || eval "mkdir $as_dirs"
  23183. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  23184. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  23185. { (exit 1); exit 1; }; }; }
  23186. # echo "creating $dirpart/$file"
  23187. echo '# dummy' > "$dirpart/$file"
  23188. done
  23189. done
  23190. }
  23191. ;;
  23192. "libtool":C)
  23193. # See if we are running on zsh, and set the options which allow our
  23194. # commands through without removal of \ escapes.
  23195. if test -n "${ZSH_VERSION+set}" ; then
  23196. setopt NO_GLOB_SUBST
  23197. fi
  23198. cfgfile="${ofile}T"
  23199. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  23200. $RM "$cfgfile"
  23201. cat <<_LT_EOF >> "$cfgfile"
  23202. #! $SHELL
  23203. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  23204. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  23205. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  23206. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  23207. #
  23208. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  23209. # 2006, 2007, 2008 Free Software Foundation, Inc.
  23210. # Written by Gordon Matzigkeit, 1996
  23211. #
  23212. # This file is part of GNU Libtool.
  23213. #
  23214. # GNU Libtool is free software; you can redistribute it and/or
  23215. # modify it under the terms of the GNU General Public License as
  23216. # published by the Free Software Foundation; either version 2 of
  23217. # the License, or (at your option) any later version.
  23218. #
  23219. # As a special exception to the GNU General Public License,
  23220. # if you distribute this file as part of a program or library that
  23221. # is built using GNU Libtool, you may include this file under the
  23222. # same distribution terms that you use for the rest of that program.
  23223. #
  23224. # GNU Libtool is distributed in the hope that it will be useful,
  23225. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23226. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23227. # GNU General Public License for more details.
  23228. #
  23229. # You should have received a copy of the GNU General Public License
  23230. # along with GNU Libtool; see the file COPYING. If not, a copy
  23231. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  23232. # obtained by writing to the Free Software Foundation, Inc.,
  23233. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  23234. # The names of the tagged configurations supported by this script.
  23235. available_tags="CXX "
  23236. # ### BEGIN LIBTOOL CONFIG
  23237. # Whether or not to build static libraries.
  23238. build_old_libs=$enable_static
  23239. # Which release of libtool.m4 was used?
  23240. macro_version=$macro_version
  23241. macro_revision=$macro_revision
  23242. # Whether or not to build shared libraries.
  23243. build_libtool_libs=$enable_shared
  23244. # What type of objects to build.
  23245. pic_mode=$pic_mode
  23246. # Whether or not to optimize for fast installation.
  23247. fast_install=$enable_fast_install
  23248. # The host system.
  23249. host_alias=$host_alias
  23250. host=$host
  23251. host_os=$host_os
  23252. # The build system.
  23253. build_alias=$build_alias
  23254. build=$build
  23255. build_os=$build_os
  23256. # A sed program that does not truncate output.
  23257. SED=$lt_SED
  23258. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  23259. Xsed="\$SED -e 1s/^X//"
  23260. # A grep program that handles long lines.
  23261. GREP=$lt_GREP
  23262. # An ERE matcher.
  23263. EGREP=$lt_EGREP
  23264. # A literal string matcher.
  23265. FGREP=$lt_FGREP
  23266. # A BSD- or MS-compatible name lister.
  23267. NM=$lt_NM
  23268. # Whether we need soft or hard links.
  23269. LN_S=$lt_LN_S
  23270. # What is the maximum length of a command?
  23271. max_cmd_len=$max_cmd_len
  23272. # Object file suffix (normally "o").
  23273. objext=$ac_objext
  23274. # Executable file suffix (normally "").
  23275. exeext=$exeext
  23276. # whether the shell understands "unset".
  23277. lt_unset=$lt_unset
  23278. # turn spaces into newlines.
  23279. SP2NL=$lt_lt_SP2NL
  23280. # turn newlines into spaces.
  23281. NL2SP=$lt_lt_NL2SP
  23282. # How to create reloadable object files.
  23283. reload_flag=$lt_reload_flag
  23284. reload_cmds=$lt_reload_cmds
  23285. # An object symbol dumper.
  23286. OBJDUMP=$lt_OBJDUMP
  23287. # Method to check whether dependent libraries are shared objects.
  23288. deplibs_check_method=$lt_deplibs_check_method
  23289. # Command to use when deplibs_check_method == "file_magic".
  23290. file_magic_cmd=$lt_file_magic_cmd
  23291. # The archiver.
  23292. AR=$lt_AR
  23293. AR_FLAGS=$lt_AR_FLAGS
  23294. # A symbol stripping program.
  23295. STRIP=$lt_STRIP
  23296. # Commands used to install an old-style archive.
  23297. RANLIB=$lt_RANLIB
  23298. old_postinstall_cmds=$lt_old_postinstall_cmds
  23299. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  23300. # A C compiler.
  23301. LTCC=$lt_CC
  23302. # LTCC compiler flags.
  23303. LTCFLAGS=$lt_CFLAGS
  23304. # Take the output of nm and produce a listing of raw symbols and C names.
  23305. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  23306. # Transform the output of nm in a proper C declaration.
  23307. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  23308. # Transform the output of nm in a C name address pair.
  23309. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  23310. # Transform the output of nm in a C name address pair when lib prefix is needed.
  23311. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  23312. # The name of the directory that contains temporary libtool files.
  23313. objdir=$objdir
  23314. # Shell to use when invoking shell scripts.
  23315. SHELL=$lt_SHELL
  23316. # An echo program that does not interpret backslashes.
  23317. ECHO=$lt_ECHO
  23318. # Used to examine libraries when file_magic_cmd begins with "file".
  23319. MAGIC_CMD=$MAGIC_CMD
  23320. # Must we lock files when doing compilation?
  23321. need_locks=$lt_need_locks
  23322. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  23323. DSYMUTIL=$lt_DSYMUTIL
  23324. # Tool to change global to local symbols on Mac OS X.
  23325. NMEDIT=$lt_NMEDIT
  23326. # Tool to manipulate fat objects and archives on Mac OS X.
  23327. LIPO=$lt_LIPO
  23328. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  23329. OTOOL=$lt_OTOOL
  23330. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  23331. OTOOL64=$lt_OTOOL64
  23332. # Old archive suffix (normally "a").
  23333. libext=$libext
  23334. # Shared library suffix (normally ".so").
  23335. shrext_cmds=$lt_shrext_cmds
  23336. # The commands to extract the exported symbol list from a shared archive.
  23337. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  23338. # Variables whose values should be saved in libtool wrapper scripts and
  23339. # restored at link time.
  23340. variables_saved_for_relink=$lt_variables_saved_for_relink
  23341. # Do we need the "lib" prefix for modules?
  23342. need_lib_prefix=$need_lib_prefix
  23343. # Do we need a version for libraries?
  23344. need_version=$need_version
  23345. # Library versioning type.
  23346. version_type=$version_type
  23347. # Shared library runtime path variable.
  23348. runpath_var=$runpath_var
  23349. # Shared library path variable.
  23350. shlibpath_var=$shlibpath_var
  23351. # Is shlibpath searched before the hard-coded library search path?
  23352. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  23353. # Format of library name prefix.
  23354. libname_spec=$lt_libname_spec
  23355. # List of archive names. First name is the real one, the rest are links.
  23356. # The last name is the one that the linker finds with -lNAME
  23357. library_names_spec=$lt_library_names_spec
  23358. # The coded name of the library, if different from the real name.
  23359. soname_spec=$lt_soname_spec
  23360. # Command to use after installation of a shared archive.
  23361. postinstall_cmds=$lt_postinstall_cmds
  23362. # Command to use after uninstallation of a shared archive.
  23363. postuninstall_cmds=$lt_postuninstall_cmds
  23364. # Commands used to finish a libtool library installation in a directory.
  23365. finish_cmds=$lt_finish_cmds
  23366. # As "finish_cmds", except a single script fragment to be evaled but
  23367. # not shown.
  23368. finish_eval=$lt_finish_eval
  23369. # Whether we should hardcode library paths into libraries.
  23370. hardcode_into_libs=$hardcode_into_libs
  23371. # Compile-time system search path for libraries.
  23372. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  23373. # Run-time system search path for libraries.
  23374. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  23375. # Whether dlopen is supported.
  23376. dlopen_support=$enable_dlopen
  23377. # Whether dlopen of programs is supported.
  23378. dlopen_self=$enable_dlopen_self
  23379. # Whether dlopen of statically linked programs is supported.
  23380. dlopen_self_static=$enable_dlopen_self_static
  23381. # Commands to strip libraries.
  23382. old_striplib=$lt_old_striplib
  23383. striplib=$lt_striplib
  23384. # The linker used to build libraries.
  23385. LD=$lt_LD
  23386. # Commands used to build an old-style archive.
  23387. old_archive_cmds=$lt_old_archive_cmds
  23388. # A language specific compiler.
  23389. CC=$lt_compiler
  23390. # Is the compiler the GNU compiler?
  23391. with_gcc=$GCC
  23392. # Compiler flag to turn off builtin functions.
  23393. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  23394. # How to pass a linker flag through the compiler.
  23395. wl=$lt_lt_prog_compiler_wl
  23396. # Additional compiler flags for building library objects.
  23397. pic_flag=$lt_lt_prog_compiler_pic
  23398. # Compiler flag to prevent dynamic linking.
  23399. link_static_flag=$lt_lt_prog_compiler_static
  23400. # Does compiler simultaneously support -c and -o options?
  23401. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  23402. # Whether or not to add -lc for building shared libraries.
  23403. build_libtool_need_lc=$archive_cmds_need_lc
  23404. # Whether or not to disallow shared libs when runtime libs are static.
  23405. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  23406. # Compiler flag to allow reflexive dlopens.
  23407. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  23408. # Compiler flag to generate shared objects directly from archives.
  23409. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  23410. # Whether the compiler copes with passing no objects directly.
  23411. compiler_needs_object=$lt_compiler_needs_object
  23412. # Create an old-style archive from a shared archive.
  23413. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  23414. # Create a temporary old-style archive to link instead of a shared archive.
  23415. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  23416. # Commands used to build a shared archive.
  23417. archive_cmds=$lt_archive_cmds
  23418. archive_expsym_cmds=$lt_archive_expsym_cmds
  23419. # Commands used to build a loadable module if different from building
  23420. # a shared archive.
  23421. module_cmds=$lt_module_cmds
  23422. module_expsym_cmds=$lt_module_expsym_cmds
  23423. # Whether we are building with GNU ld or not.
  23424. with_gnu_ld=$lt_with_gnu_ld
  23425. # Flag that allows shared libraries with undefined symbols to be built.
  23426. allow_undefined_flag=$lt_allow_undefined_flag
  23427. # Flag that enforces no undefined symbols.
  23428. no_undefined_flag=$lt_no_undefined_flag
  23429. # Flag to hardcode \$libdir into a binary during linking.
  23430. # This must work even if \$libdir does not exist
  23431. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  23432. # If ld is used when linking, flag to hardcode \$libdir into a binary
  23433. # during linking. This must work even if \$libdir does not exist.
  23434. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  23435. # Whether we need a single "-rpath" flag with a separated argument.
  23436. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  23437. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23438. # DIR into the resulting binary.
  23439. hardcode_direct=$hardcode_direct
  23440. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23441. # DIR into the resulting binary and the resulting library dependency is
  23442. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23443. # library is relocated.
  23444. hardcode_direct_absolute=$hardcode_direct_absolute
  23445. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23446. # into the resulting binary.
  23447. hardcode_minus_L=$hardcode_minus_L
  23448. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23449. # into the resulting binary.
  23450. hardcode_shlibpath_var=$hardcode_shlibpath_var
  23451. # Set to "yes" if building a shared library automatically hardcodes DIR
  23452. # into the library and all subsequent libraries and executables linked
  23453. # against it.
  23454. hardcode_automatic=$hardcode_automatic
  23455. # Set to yes if linker adds runtime paths of dependent libraries
  23456. # to runtime path list.
  23457. inherit_rpath=$inherit_rpath
  23458. # Whether libtool must link a program against all its dependency libraries.
  23459. link_all_deplibs=$link_all_deplibs
  23460. # Fix the shell variable \$srcfile for the compiler.
  23461. fix_srcfile_path=$lt_fix_srcfile_path
  23462. # Set to "yes" if exported symbols are required.
  23463. always_export_symbols=$always_export_symbols
  23464. # The commands to list exported symbols.
  23465. export_symbols_cmds=$lt_export_symbols_cmds
  23466. # Symbols that should not be listed in the preloaded symbols.
  23467. exclude_expsyms=$lt_exclude_expsyms
  23468. # Symbols that must always be exported.
  23469. include_expsyms=$lt_include_expsyms
  23470. # Commands necessary for linking programs (against libraries) with templates.
  23471. prelink_cmds=$lt_prelink_cmds
  23472. # Specify filename containing input files.
  23473. file_list_spec=$lt_file_list_spec
  23474. # How to hardcode a shared library path into an executable.
  23475. hardcode_action=$hardcode_action
  23476. # The directories searched by this compiler when creating a shared library.
  23477. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  23478. # Dependencies to place before and after the objects being linked to
  23479. # create a shared library.
  23480. predep_objects=$lt_predep_objects
  23481. postdep_objects=$lt_postdep_objects
  23482. predeps=$lt_predeps
  23483. postdeps=$lt_postdeps
  23484. # The library search path used internally by the compiler when linking
  23485. # a shared library.
  23486. compiler_lib_search_path=$lt_compiler_lib_search_path
  23487. # ### END LIBTOOL CONFIG
  23488. _LT_EOF
  23489. case $host_os in
  23490. aix3*)
  23491. cat <<\_LT_EOF >> "$cfgfile"
  23492. # AIX sometimes has problems with the GCC collect2 program. For some
  23493. # reason, if we set the COLLECT_NAMES environment variable, the problems
  23494. # vanish in a puff of smoke.
  23495. if test "X${COLLECT_NAMES+set}" != Xset; then
  23496. COLLECT_NAMES=
  23497. export COLLECT_NAMES
  23498. fi
  23499. _LT_EOF
  23500. ;;
  23501. esac
  23502. ltmain="$ac_aux_dir/ltmain.sh"
  23503. # We use sed instead of cat because bash on DJGPP gets confused if
  23504. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  23505. # text mode, it properly converts lines to CR/LF. This bash problem
  23506. # is reportedly fixed, but why not run on old versions too?
  23507. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  23508. || (rm -f "$cfgfile"; exit 1)
  23509. case $xsi_shell in
  23510. yes)
  23511. cat << \_LT_EOF >> "$cfgfile"
  23512. # func_dirname file append nondir_replacement
  23513. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  23514. # otherwise set result to NONDIR_REPLACEMENT.
  23515. func_dirname ()
  23516. {
  23517. case ${1} in
  23518. */*) func_dirname_result="${1%/*}${2}" ;;
  23519. * ) func_dirname_result="${3}" ;;
  23520. esac
  23521. }
  23522. # func_basename file
  23523. func_basename ()
  23524. {
  23525. func_basename_result="${1##*/}"
  23526. }
  23527. # func_dirname_and_basename file append nondir_replacement
  23528. # perform func_basename and func_dirname in a single function
  23529. # call:
  23530. # dirname: Compute the dirname of FILE. If nonempty,
  23531. # add APPEND to the result, otherwise set result
  23532. # to NONDIR_REPLACEMENT.
  23533. # value returned in "$func_dirname_result"
  23534. # basename: Compute filename of FILE.
  23535. # value retuned in "$func_basename_result"
  23536. # Implementation must be kept synchronized with func_dirname
  23537. # and func_basename. For efficiency, we do not delegate to
  23538. # those functions but instead duplicate the functionality here.
  23539. func_dirname_and_basename ()
  23540. {
  23541. case ${1} in
  23542. */*) func_dirname_result="${1%/*}${2}" ;;
  23543. * ) func_dirname_result="${3}" ;;
  23544. esac
  23545. func_basename_result="${1##*/}"
  23546. }
  23547. # func_stripname prefix suffix name
  23548. # strip PREFIX and SUFFIX off of NAME.
  23549. # PREFIX and SUFFIX must not contain globbing or regex special
  23550. # characters, hashes, percent signs, but SUFFIX may contain a leading
  23551. # dot (in which case that matches only a dot).
  23552. func_stripname ()
  23553. {
  23554. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  23555. # positional parameters, so assign one to ordinary parameter first.
  23556. func_stripname_result=${3}
  23557. func_stripname_result=${func_stripname_result#"${1}"}
  23558. func_stripname_result=${func_stripname_result%"${2}"}
  23559. }
  23560. # func_opt_split
  23561. func_opt_split ()
  23562. {
  23563. func_opt_split_opt=${1%%=*}
  23564. func_opt_split_arg=${1#*=}
  23565. }
  23566. # func_lo2o object
  23567. func_lo2o ()
  23568. {
  23569. case ${1} in
  23570. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  23571. *) func_lo2o_result=${1} ;;
  23572. esac
  23573. }
  23574. # func_xform libobj-or-source
  23575. func_xform ()
  23576. {
  23577. func_xform_result=${1%.*}.lo
  23578. }
  23579. # func_arith arithmetic-term...
  23580. func_arith ()
  23581. {
  23582. func_arith_result=$(( $* ))
  23583. }
  23584. # func_len string
  23585. # STRING may not start with a hyphen.
  23586. func_len ()
  23587. {
  23588. func_len_result=${#1}
  23589. }
  23590. _LT_EOF
  23591. ;;
  23592. *) # Bourne compatible functions.
  23593. cat << \_LT_EOF >> "$cfgfile"
  23594. # func_dirname file append nondir_replacement
  23595. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  23596. # otherwise set result to NONDIR_REPLACEMENT.
  23597. func_dirname ()
  23598. {
  23599. # Extract subdirectory from the argument.
  23600. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  23601. if test "X$func_dirname_result" = "X${1}"; then
  23602. func_dirname_result="${3}"
  23603. else
  23604. func_dirname_result="$func_dirname_result${2}"
  23605. fi
  23606. }
  23607. # func_basename file
  23608. func_basename ()
  23609. {
  23610. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  23611. }
  23612. # func_stripname prefix suffix name
  23613. # strip PREFIX and SUFFIX off of NAME.
  23614. # PREFIX and SUFFIX must not contain globbing or regex special
  23615. # characters, hashes, percent signs, but SUFFIX may contain a leading
  23616. # dot (in which case that matches only a dot).
  23617. # func_strip_suffix prefix name
  23618. func_stripname ()
  23619. {
  23620. case ${2} in
  23621. .*) func_stripname_result=`$ECHO "X${3}" \
  23622. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  23623. *) func_stripname_result=`$ECHO "X${3}" \
  23624. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  23625. esac
  23626. }
  23627. # sed scripts:
  23628. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  23629. my_sed_long_arg='1s/^-[^=]*=//'
  23630. # func_opt_split
  23631. func_opt_split ()
  23632. {
  23633. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  23634. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  23635. }
  23636. # func_lo2o object
  23637. func_lo2o ()
  23638. {
  23639. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  23640. }
  23641. # func_xform libobj-or-source
  23642. func_xform ()
  23643. {
  23644. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  23645. }
  23646. # func_arith arithmetic-term...
  23647. func_arith ()
  23648. {
  23649. func_arith_result=`expr "$@"`
  23650. }
  23651. # func_len string
  23652. # STRING may not start with a hyphen.
  23653. func_len ()
  23654. {
  23655. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  23656. }
  23657. _LT_EOF
  23658. esac
  23659. case $lt_shell_append in
  23660. yes)
  23661. cat << \_LT_EOF >> "$cfgfile"
  23662. # func_append var value
  23663. # Append VALUE to the end of shell variable VAR.
  23664. func_append ()
  23665. {
  23666. eval "$1+=\$2"
  23667. }
  23668. _LT_EOF
  23669. ;;
  23670. *)
  23671. cat << \_LT_EOF >> "$cfgfile"
  23672. # func_append var value
  23673. # Append VALUE to the end of shell variable VAR.
  23674. func_append ()
  23675. {
  23676. eval "$1=\$$1\$2"
  23677. }
  23678. _LT_EOF
  23679. ;;
  23680. esac
  23681. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  23682. || (rm -f "$cfgfile"; exit 1)
  23683. mv -f "$cfgfile" "$ofile" ||
  23684. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  23685. chmod +x "$ofile"
  23686. cat <<_LT_EOF >> "$ofile"
  23687. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  23688. # The linker used to build libraries.
  23689. LD=$lt_LD_CXX
  23690. # Commands used to build an old-style archive.
  23691. old_archive_cmds=$lt_old_archive_cmds_CXX
  23692. # A language specific compiler.
  23693. CC=$lt_compiler_CXX
  23694. # Is the compiler the GNU compiler?
  23695. with_gcc=$GCC_CXX
  23696. # Compiler flag to turn off builtin functions.
  23697. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  23698. # How to pass a linker flag through the compiler.
  23699. wl=$lt_lt_prog_compiler_wl_CXX
  23700. # Additional compiler flags for building library objects.
  23701. pic_flag=$lt_lt_prog_compiler_pic_CXX
  23702. # Compiler flag to prevent dynamic linking.
  23703. link_static_flag=$lt_lt_prog_compiler_static_CXX
  23704. # Does compiler simultaneously support -c and -o options?
  23705. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  23706. # Whether or not to add -lc for building shared libraries.
  23707. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  23708. # Whether or not to disallow shared libs when runtime libs are static.
  23709. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  23710. # Compiler flag to allow reflexive dlopens.
  23711. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  23712. # Compiler flag to generate shared objects directly from archives.
  23713. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  23714. # Whether the compiler copes with passing no objects directly.
  23715. compiler_needs_object=$lt_compiler_needs_object_CXX
  23716. # Create an old-style archive from a shared archive.
  23717. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  23718. # Create a temporary old-style archive to link instead of a shared archive.
  23719. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  23720. # Commands used to build a shared archive.
  23721. archive_cmds=$lt_archive_cmds_CXX
  23722. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  23723. # Commands used to build a loadable module if different from building
  23724. # a shared archive.
  23725. module_cmds=$lt_module_cmds_CXX
  23726. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  23727. # Whether we are building with GNU ld or not.
  23728. with_gnu_ld=$lt_with_gnu_ld_CXX
  23729. # Flag that allows shared libraries with undefined symbols to be built.
  23730. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  23731. # Flag that enforces no undefined symbols.
  23732. no_undefined_flag=$lt_no_undefined_flag_CXX
  23733. # Flag to hardcode \$libdir into a binary during linking.
  23734. # This must work even if \$libdir does not exist
  23735. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  23736. # If ld is used when linking, flag to hardcode \$libdir into a binary
  23737. # during linking. This must work even if \$libdir does not exist.
  23738. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  23739. # Whether we need a single "-rpath" flag with a separated argument.
  23740. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  23741. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23742. # DIR into the resulting binary.
  23743. hardcode_direct=$hardcode_direct_CXX
  23744. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23745. # DIR into the resulting binary and the resulting library dependency is
  23746. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23747. # library is relocated.
  23748. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  23749. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23750. # into the resulting binary.
  23751. hardcode_minus_L=$hardcode_minus_L_CXX
  23752. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23753. # into the resulting binary.
  23754. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  23755. # Set to "yes" if building a shared library automatically hardcodes DIR
  23756. # into the library and all subsequent libraries and executables linked
  23757. # against it.
  23758. hardcode_automatic=$hardcode_automatic_CXX
  23759. # Set to yes if linker adds runtime paths of dependent libraries
  23760. # to runtime path list.
  23761. inherit_rpath=$inherit_rpath_CXX
  23762. # Whether libtool must link a program against all its dependency libraries.
  23763. link_all_deplibs=$link_all_deplibs_CXX
  23764. # Fix the shell variable \$srcfile for the compiler.
  23765. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  23766. # Set to "yes" if exported symbols are required.
  23767. always_export_symbols=$always_export_symbols_CXX
  23768. # The commands to list exported symbols.
  23769. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  23770. # Symbols that should not be listed in the preloaded symbols.
  23771. exclude_expsyms=$lt_exclude_expsyms_CXX
  23772. # Symbols that must always be exported.
  23773. include_expsyms=$lt_include_expsyms_CXX
  23774. # Commands necessary for linking programs (against libraries) with templates.
  23775. prelink_cmds=$lt_prelink_cmds_CXX
  23776. # Specify filename containing input files.
  23777. file_list_spec=$lt_file_list_spec_CXX
  23778. # How to hardcode a shared library path into an executable.
  23779. hardcode_action=$hardcode_action_CXX
  23780. # The directories searched by this compiler when creating a shared library.
  23781. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  23782. # Dependencies to place before and after the objects being linked to
  23783. # create a shared library.
  23784. predep_objects=$lt_predep_objects_CXX
  23785. postdep_objects=$lt_postdep_objects_CXX
  23786. predeps=$lt_predeps_CXX
  23787. postdeps=$lt_postdeps_CXX
  23788. # The library search path used internally by the compiler when linking
  23789. # a shared library.
  23790. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  23791. # ### END LIBTOOL TAG CONFIG: CXX
  23792. _LT_EOF
  23793. ;;
  23794. esac
  23795. done # for ac_tag
  23796. { (exit 0); exit 0; }
  23797. _ACEOF
  23798. chmod +x $CONFIG_STATUS
  23799. ac_clean_files=$ac_clean_files_save
  23800. test $ac_write_fail = 0 ||
  23801. { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  23802. $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  23803. { (exit 1); exit 1; }; }
  23804. # configure is writing to config.log, and then calls config.status.
  23805. # config.status does its own redirection, appending to config.log.
  23806. # Unfortunately, on DOS this fails, as config.log is still kept open
  23807. # by configure, so config.status won't be able to write to it; its
  23808. # output is simply discarded. So we exec the FD to /dev/null,
  23809. # effectively closing config.log, so it can be properly (re)opened and
  23810. # appended to by config.status. When coming back to configure, we
  23811. # need to make the FD available again.
  23812. if test "$no_create" != yes; then
  23813. ac_cs_success=:
  23814. ac_config_status_args=
  23815. test "$silent" = yes &&
  23816. ac_config_status_args="$ac_config_status_args --quiet"
  23817. exec 5>/dev/null
  23818. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  23819. exec 5>>config.log
  23820. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  23821. # would make configure fail if this is the last instruction.
  23822. $ac_cs_success || { (exit 1); exit 1; }
  23823. fi
  23824. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  23825. { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  23826. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  23827. fi